0.6.0 #1

Merged
pogmommy merged 89 commits from 0.6.0 into main 2025-07-04 20:29:26 -07:00
3 changed files with 4 additions and 2 deletions
Showing only changes of commit 9a7e699539 - Show all commits

View file

@ -30,7 +30,7 @@ macro_rules! define_builtin_vars {
} }
define_builtin_vars! { define_builtin_vars! {
// @desc EWW_TEMPS - Heat of the components in Celcius // @desc EWW_TEMPS - Heat of the components in degree Celsius
// @prop { <name>: temperature } // @prop { <name>: temperature }
"EWW_TEMPS" [2] => || Ok(DynVal::from(get_temperatures())), "EWW_TEMPS" [2] => || Ok(DynVal::from(get_temperatures())),

View file

@ -312,7 +312,8 @@ fn build_gtk_combo_box_text(bargs: &mut BuilderArgs) -> Result<gtk::ComboBoxText
const WIDGET_NAME_EXPANDER: &str = "expander"; const WIDGET_NAME_EXPANDER: &str = "expander";
/// @widget expander /// @widget expander
/// @desc A widget that can expand and collapse, showing/hiding it's children. /// @desc A widget that can expand and collapse, showing/hiding it's children. Should contain
/// exactly one child.
fn build_gtk_expander(bargs: &mut BuilderArgs) -> Result<gtk::Expander> { fn build_gtk_expander(bargs: &mut BuilderArgs) -> Result<gtk::Expander> {
let gtk_widget = gtk::Expander::new(None); let gtk_widget = gtk::Expander::new(None);

View file

@ -40,6 +40,7 @@ Supported currently are the following features:
- some function calls: - some function calls:
- `round(number, decimal_digits)`: Round a number to the given amount of decimals - `round(number, decimal_digits)`: Round a number to the given amount of decimals
- `sin(number)`, `cos(number)`, `tan(number)`, `cot(number)`: Calculate the trigonometric value of a given number in **radians** - `sin(number)`, `cos(number)`, `tan(number)`, `cot(number)`: Calculate the trigonometric value of a given number in **radians**
- `min(a, b)`, `max(a, b)`: Get the smaller or bigger number out of two given numbers
- `degtorad(number)`: Converts a number from degrees to radians - `degtorad(number)`: Converts a number from degrees to radians
- `radtodeg(number)`: Converts a number from radians to degrees - `radtodeg(number)`: Converts a number from radians to degrees
- `replace(string, regex, replacement)`: Replace matches of a given regex in a string - `replace(string, regex, replacement)`: Replace matches of a given regex in a string