MCPcopy Create free account

hub / github.com/ddbnl/ez_term / functions

Functions1,238 in github.com/ddbnl/ez_term

↓ 391 callersMethodcopy_from
(&mut self, other: &EzProperty<T>)
src/property/ez_property.rs:90
↓ 384 callersMethodset_from_ez_value
(&mut self, value: EzValues)
src/property/ez_property.rs:104
↓ 201 callersMethodget_mut
Find a node on the (state) tree and get a mut ref. Parameter can be an ID or a path; both will work if the node exists. When using an ID, make sure th
src/run/tree.rs:255
↓ 167 callersMethodset
Set the value of this property. If any other properties are subscribed to this property, they will automatically be updated as well.
src/property/ez_property.rs:72
↓ 120 callersFunctionclean_up_property
Clean up a property completely. Called automatically when widget states are cleaned up. E.g. when a modal is removed from a layout.
src/scheduler/scheduler_funcs.rs:390
↓ 115 callersMethodget_effective_size
(&self)
src/states/layout_state.rs:407
↓ 85 callersMethodget
Find a node on the (state) tree and get a ref. Parameter can be an ID or a path; both will work if the node exists. When using an ID, make sure that t
src/run/tree.rs:198
↓ 76 callersMethodupdate
(&self, scheduler: &mut SchedulerFrontend)
src/states/ez_state.rs:668
↓ 66 callersMethodas_generic
Cast this state as a layout state ref, you must be sure you have one.
src/run/tree.rs:441
↓ 66 callersMethodget_path
(&self)
src/widgets/layout/layout.rs:273
↓ 58 callersMethodget_color_config
(&self)
src/states/label_state.rs:384
↓ 58 callersMethodget_path
(&self)
src/widgets/label.rs:96
↓ 57 callersMethodas_ez_object
Cast this enum to a generic [EzObject] trait object. As this trait is implemented by both [layout] and [widget], it is safe to call on all variants.
src/widgets/ez_object.rs:75
↓ 57 callersMethodget_scrolling_config
Get a ref to the [ScrollingConfig] active for this layout
src/states/layout_state.rs:783
↓ 39 callersMethodget_auto_scale
(&self)
src/states/label_state.rs:312
↓ 38 callersMethodas_layout_mut
Cast this as a mutable layout ref, you must be sure you have one.
src/widgets/ez_object.rs:119
↓ 38 callersMethodget_size_mut
(&mut self)
src/states/label_state.rs:324
↓ 37 callersMethodnew_usize_property
Create a custom property. You can bind this property to widget properties of the same type; then when you update the custom property, the widget will
src/scheduler/scheduler.rs:953
↓ 37 callersMethodupdate_callback_config
Update the CallbackConfig of a widget on the next frame. Any callback set on the new callback config will be set on the existing one (overwriting if o
src/scheduler/scheduler.rs:663
↓ 35 callersMethodas_generic_mut
Cast this state as a mutable layout state ref, you must be sure you have one.
src/run/tree.rs:446
↓ 35 callersMethodas_label_mut
Cast this state as a mutable Label widget state ref, you must be sure you have one.
src/run/tree.rs:496
↓ 34 callersFunctionload_usize_property
Load a usize [EzProperty]. It is either bound to another usize property and initialized with 0 or parsed from the user defined string from the .ez fil
src/parser/load_base_properties.rs:81
↓ 31 callersMethodget_size
(&self)
src/states/label_state.rs:320
↓ 30 callersMethodget_auto_scale_width
(&self)
src/states/definitions.rs:334
↓ 29 callersMethodas_layout
Cast this as a layout ref, you must be sure you have one.
src/widgets/ez_object.rs:110
↓ 29 callersMethodget_border_config
(&self)
src/states/label_state.rs:376
↓ 28 callersMethodset_text
(&mut self, text: String)
src/states/label_state.rs:442
↓ 27 callersMethodget_bg_color
(&self)
src/states/definitions.rs:1632
↓ 27 callersMethodget_infinite_size
(&self)
src/states/label_state.rs:328
↓ 27 callersMethodget_text
(&self)
src/states/label_state.rs:434
↓ 27 callersMethodnew_bool_property
Create a custom property. You can bind this property to widget properties of the same type; then when you update the custom property, the widget will
src/scheduler/scheduler.rs:1076
↓ 27 callersMethodupdate_property
(&mut self, name: &str, value: EzValues)
src/states/label_state.rs:155
↓ 26 callersMethodget_auto_scale_height
(&self)
src/states/definitions.rs:342
↓ 26 callersMethodget_fg_color
(&self)
src/states/definitions.rs:1624
↓ 25 callersMethodset_height
(&mut self, height: usize)
src/states/definitions.rs:230
↓ 24 callersMethodget_width
(&self)
src/states/definitions.rs:226
↓ 24 callersMethodnew_string_property
Create a custom property. You can bind this property to widget properties of the same type; then when you update the custom property, the widget will
src/scheduler/scheduler.rs:1035
↓ 24 callersMethodset_width
(&mut self, width: usize)
src/states/definitions.rs:219
↓ 22 callersMethodget_border
(&self)
src/states/definitions.rs:1408
↓ 22 callersMethodget_height
(&self)
src/states/definitions.rs:237
↓ 22 callersMethodget_padding
(&self)
src/states/label_state.rs:368
↓ 22 callersMethodget_state_mut
(&mut self)
src/widgets/layout/layout.rs:281
↓ 22 callersFunctionload_ui
Load a file path into a root layout. Return the root widget, state tree and a new scheduler. These will be needed to run the ui.
src/parser/parse_lang.rs:20
↓ 21 callersFunctionload_string_property
Load a string [EzProperty]. It is either bound to another string property and initialized with "" or parsed from the user defined string from the .ez
src/parser/load_base_properties.rs:235
↓ 21 callersFunctionrun
This function starts the terminal app. Make sure you load a root layout from a .ez file first and pass it to this func, like this: ``` use ez_term::*
src/run/run.rs:40
↓ 20 callersMethodget_value
(&self)
src/states/slider_state.rs:461
↓ 20 callersMethodnew_color_property
Create a custom property. You can bind this property to widget properties of the same type; then when you update the custom property, the widget will
src/scheduler/scheduler.rs:1117
↓ 19 callersMethodcontains
Check if a path or ID exists in the tree. You won't have to use this often; if a widget exists then the widget state will exist. Might be useful if yo
src/run/tree.rs:292
↓ 19 callersMethodget_cursor_pos
(&self)
src/states/text_input_state.rs:488
↓ 19 callersMethodget_view_start
(&self)
src/states/text_input_state.rs:512
↓ 19 callersFunctionload_color_property
Load a [Color] [EzProperty]. It is either bound to another Color property and initialized with [Color::Black] or parsed from the user defined string f
src/parser/load_base_properties.rs:253
↓ 18 callersMethodget_scrolling_config_mut
Get a mutable ref to the [ScrollingConfig] active for this layout
src/states/layout_state.rs:788
↓ 18 callersMethodparse
Parse a definition by separating the config lines from the sub widget definitions. Then apply the config to the initialized widget, then initialize an
src/parser/ez_definition.rs:89
↓ 18 callersMethodset_value
(&mut self, value: usize)
src/states/slider_state.rs:457
↓ 17 callersMethodget_absolute_position
(&self)
src/states/label_state.rs:348
↓ 17 callersFunctionload_bool_property
Load a bool [EzProperty]. It is either bound to another bool property and initialized with false or parsed from the user defined string from the .ez f
src/parser/load_base_properties.rs:216
↓ 17 callersMethodset_x
(&mut self, x: usize)
src/states/definitions.rs:289
↓ 16 callersMethodas_layout
Cast this state as a layout state ref, you must be sure you have one.
src/run/tree.rs:451
↓ 16 callersMethodget_position
(&self)
src/states/label_state.rs:336
↓ 16 callersMethodset_y
(&mut self, y: usize)
src/states/definitions.rs:297
↓ 14 callersMethodcontains
Wrap method that makes keycodes uppercase insensitive
src/states/definitions.rs:1102
↓ 14 callersMethodget_effective_position
Get position where the actual content of this widget starts relative to parent, taking out e.g. borders, padding, etc.
src/states/ez_state.rs:471
↓ 13 callersMethodextend
Append another tree to this tree.
src/run/tree.rs:59
↓ 13 callersMethodget_path
(&self)
src/states/label_state.rs:98
↓ 13 callersMethodget_scroll_x
(&self)
src/states/definitions.rs:1246
↓ 13 callersMethodget_scroll_y
(&self)
src/states/definitions.rs:1254
↓ 13 callersMethodnew_horizontal_alignment_property
Create a custom property. You can bind this property to widget properties of the same type; then when you update the custom property, the widget will
src/scheduler/scheduler.rs:1293
↓ 13 callersMethodnew_vertical_alignment_property
Create a custom property. You can bind this property to widget properties of the same type; then when you update the custom property, the widget will
src/scheduler/scheduler.rs:1247
↓ 13 callersMethodset_effective_height
Set the how much height you want the actual content inside this widget to have. Height for e.g. border and padding will be added to this automatically
src/states/layout_state.rs:457
↓ 12 callersFunctionbind_ez_property
Bind an [EzProperty] to another EzProperty if the user-passed property declares it. Returns true if the property was bound, else false. Referenced can
src/parser/load_base_properties.rs:47
↓ 12 callersMethodget_max
(&self)
src/states/slider_state.rs:483
↓ 12 callersMethodget_position_mut
(&mut self)
src/states/label_state.rs:340
↓ 12 callersMethodget_text_mut
(&mut self)
src/states/label_state.rs:438
↓ 12 callersMethodget_update_func
(&mut self, name: &str)
src/scheduler/scheduler.rs:904
↓ 12 callersMethodhas_modal
(&self)
src/states/layout_state.rs:886
↓ 12 callersMethodset_effective_width
Set the how much width you want the actual content inside this widget to have. Width for e.g. border and padding will be added to this automatically.
src/states/layout_state.rs:441
↓ 11 callersMethodcopy_state_values
(&mut self, other: EzState)
src/states/label_state.rs:205
↓ 11 callersMethodpropagate_absolute_positions
Takes [absolute_position] of this layout and adds the [x][y] of children to calculate and set their [absolute_position]. Then calls this method on chi
src/widgets/layout/children.rs:155
↓ 11 callersMethodset_cursor_x
(&mut self, pos: usize)
src/states/text_input_state.rs:480
↓ 11 callersMethodset_selected_widget
Users can select certain widget types through mouse or keyboard. This method allows selecting widgets programmatically. # Parameters: - Widget ID o
src/scheduler/scheduler.rs:1839
↓ 10 callersFunctionadd_border
Add a border around a PixelMap.
src/widgets/helper_functions.rs:61
↓ 10 callersFunctionadd_padding
Add padding around a PixelMap.
src/widgets/helper_functions.rs:129
↓ 10 callersMethodas_layout_mut
Cast this state as a mutable layout state ref, you must be sure you have one.
src/run/tree.rs:460
↓ 10 callersMethodget_child_by_path
Get a specific child ref by its' [path]. Call on root layout to find any EzObject that exists
src/widgets/layout/children.rs:343
↓ 10 callersMethodget_children
Get a list of children non-recursively. Can be [layout] or [EzWidget]
src/widgets/layout/children.rs:314
↓ 10 callersMethodget_contents
(&self, state_tree: &mut StateTree)
src/widgets/layout/layout.rs:285
↓ 10 callersMethodget_mut
( &mut self, key: KeyCode, modifiers: KeyModifiers, )
src/states/definitions.rs:1138
↓ 10 callersMethodget_x
(&self)
src/states/definitions.rs:293
↓ 10 callersFunctionload_common_property
Load a property common to all [EzObjects]. Returns a bool representing whether the property was consumed. If not consumed it should be a property spec
src/parser/load_common_properties.rs:15
↓ 10 callersMethodload_ez_config
Accepts config lines from the ez_parser module and prepares them to be loaded by load_ez_parameter below.
src/widgets/ez_object.rs:313
↓ 10 callersMethodset_disabled
(&mut self, disabled: bool)
src/states/label_state.rs:392
↓ 9 callersMethodas_generic
Cast this enum to a generic widget state trait object, which contains methods for setting and getting fields common to all widget states. Can always b
src/states/ez_state.rs:66
↓ 9 callersMethodget
(&self, key: KeyCode, modifiers: KeyModifiers)
src/states/definitions.rs:1120
↓ 9 callersMethodget_disabled
(&self)
src/states/label_state.rs:396
↓ 9 callersMethodget_path
(&self)
src/widgets/dropdown.rs:116
↓ 9 callersMethodget_scroll_start_x
(&self)
src/states/definitions.rs:1262
↓ 9 callersMethodget_y
(&self)
src/states/definitions.rs:301
↓ 9 callersMethodusize_y
(&self)
src/run/definitions.rs:42
↓ 8 callersMethodadd_node
Add a node to the state tree. There's generally no reason to use this as an end-user.
src/run/tree.rs:87
↓ 8 callersMethodas_progress_bar_mut
Cast this state as a mutable Progress bar widget state ref, you must be sure you have one.
src/run/tree.rs:550
next →1–100 of 1,238, ranked by callers