Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ddbnl/ez_term
/ functions
Functions
1,238 in github.com/ddbnl/ez_term
⨍
Functions
1,238
◇
Types & classes
60
↓ 391 callers
Method
copy_from
(&mut self, other: &EzProperty<T>)
src/property/ez_property.rs:90
↓ 384 callers
Method
set_from_ez_value
(&mut self, value: EzValues)
src/property/ez_property.rs:104
↓ 201 callers
Method
get_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 callers
Method
set
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 callers
Function
clean_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 callers
Method
get_effective_size
(&self)
src/states/layout_state.rs:407
↓ 85 callers
Method
get
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 callers
Method
update
(&self, scheduler: &mut SchedulerFrontend)
src/states/ez_state.rs:668
↓ 66 callers
Method
as_generic
Cast this state as a layout state ref, you must be sure you have one.
src/run/tree.rs:441
↓ 66 callers
Method
get_path
(&self)
src/widgets/layout/layout.rs:273
↓ 58 callers
Method
get_color_config
(&self)
src/states/label_state.rs:384
↓ 58 callers
Method
get_path
(&self)
src/widgets/label.rs:96
↓ 57 callers
Method
as_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 callers
Method
get_scrolling_config
Get a ref to the [ScrollingConfig] active for this layout
src/states/layout_state.rs:783
↓ 39 callers
Method
get_auto_scale
(&self)
src/states/label_state.rs:312
↓ 38 callers
Method
as_layout_mut
Cast this as a mutable layout ref, you must be sure you have one.
src/widgets/ez_object.rs:119
↓ 38 callers
Method
get_size_mut
(&mut self)
src/states/label_state.rs:324
↓ 37 callers
Method
new_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 callers
Method
update_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 callers
Method
as_generic_mut
Cast this state as a mutable layout state ref, you must be sure you have one.
src/run/tree.rs:446
↓ 35 callers
Method
as_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 callers
Function
load_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 callers
Method
get_size
(&self)
src/states/label_state.rs:320
↓ 30 callers
Method
get_auto_scale_width
(&self)
src/states/definitions.rs:334
↓ 29 callers
Method
as_layout
Cast this as a layout ref, you must be sure you have one.
src/widgets/ez_object.rs:110
↓ 29 callers
Method
get_border_config
(&self)
src/states/label_state.rs:376
↓ 28 callers
Method
set_text
(&mut self, text: String)
src/states/label_state.rs:442
↓ 27 callers
Method
get_bg_color
(&self)
src/states/definitions.rs:1632
↓ 27 callers
Method
get_infinite_size
(&self)
src/states/label_state.rs:328
↓ 27 callers
Method
get_text
(&self)
src/states/label_state.rs:434
↓ 27 callers
Method
new_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 callers
Method
update_property
(&mut self, name: &str, value: EzValues)
src/states/label_state.rs:155
↓ 26 callers
Method
get_auto_scale_height
(&self)
src/states/definitions.rs:342
↓ 26 callers
Method
get_fg_color
(&self)
src/states/definitions.rs:1624
↓ 25 callers
Method
set_height
(&mut self, height: usize)
src/states/definitions.rs:230
↓ 24 callers
Method
get_width
(&self)
src/states/definitions.rs:226
↓ 24 callers
Method
new_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 callers
Method
set_width
(&mut self, width: usize)
src/states/definitions.rs:219
↓ 22 callers
Method
get_border
(&self)
src/states/definitions.rs:1408
↓ 22 callers
Method
get_height
(&self)
src/states/definitions.rs:237
↓ 22 callers
Method
get_padding
(&self)
src/states/label_state.rs:368
↓ 22 callers
Method
get_state_mut
(&mut self)
src/widgets/layout/layout.rs:281
↓ 22 callers
Function
load_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 callers
Function
load_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 callers
Function
run
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 callers
Method
get_value
(&self)
src/states/slider_state.rs:461
↓ 20 callers
Method
new_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 callers
Method
contains
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 callers
Method
get_cursor_pos
(&self)
src/states/text_input_state.rs:488
↓ 19 callers
Method
get_view_start
(&self)
src/states/text_input_state.rs:512
↓ 19 callers
Function
load_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 callers
Method
get_scrolling_config_mut
Get a mutable ref to the [ScrollingConfig] active for this layout
src/states/layout_state.rs:788
↓ 18 callers
Method
parse
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 callers
Method
set_value
(&mut self, value: usize)
src/states/slider_state.rs:457
↓ 17 callers
Method
get_absolute_position
(&self)
src/states/label_state.rs:348
↓ 17 callers
Function
load_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 callers
Method
set_x
(&mut self, x: usize)
src/states/definitions.rs:289
↓ 16 callers
Method
as_layout
Cast this state as a layout state ref, you must be sure you have one.
src/run/tree.rs:451
↓ 16 callers
Method
get_position
(&self)
src/states/label_state.rs:336
↓ 16 callers
Method
set_y
(&mut self, y: usize)
src/states/definitions.rs:297
↓ 14 callers
Method
contains
Wrap method that makes keycodes uppercase insensitive
src/states/definitions.rs:1102
↓ 14 callers
Method
get_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 callers
Method
extend
Append another tree to this tree.
src/run/tree.rs:59
↓ 13 callers
Method
get_path
(&self)
src/states/label_state.rs:98
↓ 13 callers
Method
get_scroll_x
(&self)
src/states/definitions.rs:1246
↓ 13 callers
Method
get_scroll_y
(&self)
src/states/definitions.rs:1254
↓ 13 callers
Method
new_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 callers
Method
new_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 callers
Method
set_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 callers
Function
bind_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 callers
Method
get_max
(&self)
src/states/slider_state.rs:483
↓ 12 callers
Method
get_position_mut
(&mut self)
src/states/label_state.rs:340
↓ 12 callers
Method
get_text_mut
(&mut self)
src/states/label_state.rs:438
↓ 12 callers
Method
get_update_func
(&mut self, name: &str)
src/scheduler/scheduler.rs:904
↓ 12 callers
Method
has_modal
(&self)
src/states/layout_state.rs:886
↓ 12 callers
Method
set_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 callers
Method
copy_state_values
(&mut self, other: EzState)
src/states/label_state.rs:205
↓ 11 callers
Method
propagate_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 callers
Method
set_cursor_x
(&mut self, pos: usize)
src/states/text_input_state.rs:480
↓ 11 callers
Method
set_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 callers
Function
add_border
Add a border around a PixelMap.
src/widgets/helper_functions.rs:61
↓ 10 callers
Function
add_padding
Add padding around a PixelMap.
src/widgets/helper_functions.rs:129
↓ 10 callers
Method
as_layout_mut
Cast this state as a mutable layout state ref, you must be sure you have one.
src/run/tree.rs:460
↓ 10 callers
Method
get_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 callers
Method
get_children
Get a list of children non-recursively. Can be [layout] or [EzWidget]
src/widgets/layout/children.rs:314
↓ 10 callers
Method
get_contents
(&self, state_tree: &mut StateTree)
src/widgets/layout/layout.rs:285
↓ 10 callers
Method
get_mut
( &mut self, key: KeyCode, modifiers: KeyModifiers, )
src/states/definitions.rs:1138
↓ 10 callers
Method
get_x
(&self)
src/states/definitions.rs:293
↓ 10 callers
Function
load_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 callers
Method
load_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 callers
Method
set_disabled
(&mut self, disabled: bool)
src/states/label_state.rs:392
↓ 9 callers
Method
as_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 callers
Method
get
(&self, key: KeyCode, modifiers: KeyModifiers)
src/states/definitions.rs:1120
↓ 9 callers
Method
get_disabled
(&self)
src/states/label_state.rs:396
↓ 9 callers
Method
get_path
(&self)
src/widgets/dropdown.rs:116
↓ 9 callers
Method
get_scroll_start_x
(&self)
src/states/definitions.rs:1262
↓ 9 callers
Method
get_y
(&self)
src/states/definitions.rs:301
↓ 9 callers
Method
usize_y
(&self)
src/run/definitions.rs:42
↓ 8 callers
Method
add_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 callers
Method
as_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