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
↓ 3 callers
Method
as_layout_mut
Cast this state as a mutable layout state ref, you must be sure you have one.
src/states/ez_state.rs:110
↓ 3 callers
Method
as_radio_button
Cast this state as a RadioButton widget ref, you must be sure you have one.
src/widgets/ez_object.rs:271
↓ 3 callers
Method
as_text_input
Cast this state as a TextInput widget ref, you must be sure you have one.
src/widgets/ez_object.rs:289
↓ 3 callers
Method
bind
Bind a custom callback to this property which will be called when the value changes
src/property/ez_property.rs:99
↓ 3 callers
Method
check_changed_text
Check if text has changed to call on_value_change.
src/widgets/text_input.rs:389
↓ 3 callers
Function
create_keymap_modifiers
(modifiers: Option<Vec<KeyModifiers>>)
src/states/definitions.rs:1161
↓ 3 callers
Method
get
Get a ref to the value of this property
src/property/ez_property.rs:66
↓ 3 callers
Method
get_blink_switch
(&self)
src/states/text_input_state.rs:504
↓ 3 callers
Method
get_by_id
Get a ref by full widget ID. If the widget ID is not globally unique it will panic in order to prevent unexpected behavior. If you want to find widget
src/run/tree.rs:385
↓ 3 callers
Method
get_child_by_path_mut
Get a specific child mutable ref by its' [path]. Call on root layout to find any [EzObject] that exists
src/widgets/layout/children.rs:389
↓ 3 callers
Method
get_cols
(&self)
src/states/definitions.rs:147
↓ 3 callers
Method
get_contents
(&self)
src/states/canvas_state.rs:432
↓ 3 callers
Method
get_horizontal_scrollbar_parameters
( &self, content_width: usize, widget_width: usize, view_start: usize, )
src/widgets/layout/scrolling.rs:227
↓ 3 callers
Method
get_options
(&self)
src/states/dropdown_state.rs:461
↓ 3 callers
Method
get_path
(&self)
src/states/layout_state.rs:170
↓ 3 callers
Method
get_path
(&self)
src/widgets/progress_bar.rs:100
↓ 3 callers
Method
get_path
(&self)
src/widgets/canvas.rs:96
↓ 3 callers
Method
get_property
Get a reference to a custom property. # Parameters: - Name of the custom property: &str # Example: We'll retrieve a custom property: ``` use ez_t
src/scheduler/scheduler.rs:1481
↓ 3 callers
Method
get_recursive
(&self, path: &str)
src/run/tree.rs:306
↓ 3 callers
Method
get_selection_bg_color
(&self)
src/states/definitions.rs:1648
↓ 3 callers
Method
get_state_mut
(&mut self)
src/widgets/label.rs:104
↓ 3 callers
Method
get_state_mut
(&mut self)
src/widgets/checkbox.rs:114
↓ 3 callers
Method
get_table_config
Get a ref to the [TableConfig] active for this layout
src/states/layout_state.rs:793
↓ 3 callers
Method
get_vertical_scrollbar_parameters
( &self, content_height: usize, widget_height: usize, view_start: usize, )
src/widgets/layout/scrolling.rs:246
↓ 3 callers
Function
get_view_parts
Given a view, return which parts of the widget text are visible. Also return the part that comes before the view and after the view. Used by keyboard
src/widgets/text_input.rs:448
↓ 3 callers
Method
handle_event
( &self, event: Event, state_tree: &mut StateTree, callback_tree: &mut Callbac
src/widgets/slider.rs:192
↓ 3 callers
Method
handle_scroll_down
Handle command by user to scroll down by increasing the scroll_view of y
src/widgets/layout/scrolling.rs:10
↓ 3 callers
Method
handle_scroll_left
Handle command by user to scroll down by decreasing the scroll_view of x
src/widgets/layout/scrolling.rs:78
↓ 3 callers
Method
handle_scroll_right
Handle command by user to scroll down by increasing the scroll_view of x
src/widgets/layout/scrolling.rs:55
↓ 3 callers
Method
handle_scroll_up
Handle command by user to scroll down by decreasing the scroll_view of y
src/widgets/layout/scrolling.rs:34
↓ 3 callers
Method
new_f64_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:994
↓ 3 callers
Method
new_size_hint_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:1435
↓ 3 callers
Method
on_left_mouse_click_callback
Call the bound callback if there is any. This method can always be called safely. Used to prevent a lot of duplicate ```if let Some(i)``` code.
src/widgets/ez_object.rs:490
↓ 3 callers
Method
on_select_callback
Call the bound callback if there is any. This method can always be called safely. Used to prevent a lot of duplicate ```if let Some(i)``` code.
src/widgets/ez_object.rs:827
↓ 3 callers
Function
parse_color_property
(value: &str)
src/parser/parse_properties.rs:15
↓ 3 callers
Function
resolve_property
(value: &str, path: String)
src/parser/load_base_properties.rs:21
↓ 3 callers
Method
set_blink_switch
(&mut self, active: bool)
src/states/text_input_state.rs:500
↓ 3 callers
Method
set_choice
(&mut self, choice: &str)
src/states/dropdown_state.rs:449
↓ 3 callers
Method
set_size_hint_x
(&mut self, x: Option<f64>)
src/states/definitions.rs:376
↓ 3 callers
Method
set_size_hint_y
(&mut self, y: Option<f64>)
src/states/definitions.rs:384
↓ 3 callers
Method
subscribe_to_property
As an end-user, use 'property.bind' or 'scheduler.bind_property. Subscribe one property to another, ensuring the subscriber will always have the value
src/scheduler/scheduler.rs:1520
↓ 3 callers
Method
total_options
Return the total amount of options in this dropdown including the empty option if it is allowed.
src/states/dropdown_state.rs:475
↓ 3 callers
Method
update_widget
Schedule a widget to be redrawn on the next frame. If you are working with a widget state, it is usually more convenient to call "state.update" instea
src/scheduler/scheduler.rs:1565
↓ 3 callers
Function
write_to_screen
Write content to screen. Only writes differences between an frame and the new frame.
src/run/terminal.rs:39
↓ 2 callers
Function
_collides
Base func for whether a single point collides with a widget. Use [collides] or [collides_effective] depending on the situation.
src/states/ez_state.rs:680
↓ 2 callers
Method
as_button
Cast this state as a Button widget ref, you must be sure you have one.
src/widgets/ez_object.rs:163
↓ 2 callers
Method
as_canvas
Cast this as a Canvas widget ref, you must be sure you have one.
src/widgets/ez_object.rs:127
↓ 2 callers
Method
as_canvas_mut
Cast this state as a mutable Canvas widget state ref, you must be sure you have one.
src/run/tree.rs:478
↓ 2 callers
Method
as_checkbox_mut
Cast this as a mutable Checkbox widget ref, you must be sure you have one.
src/widgets/ez_object.rs:226
↓ 2 callers
Method
as_checkbox_mut
Cast this state as a mutable Checkbox widget state ref, you must be sure you have one.
src/run/tree.rs:568
↓ 2 callers
Method
as_coordinates
(&self)
src/run/definitions.rs:46
↓ 2 callers
Method
as_dropped_down_menu_mut
Cast this state as a mutable DroppedDownMenu widget ref, you must be sure you have one.
src/widgets/ez_object.rs:262
↓ 2 callers
Method
as_generic_mut
Cast this enum to a mutable generic widget state trait object, which contains methods for setting and getting fields common to all widget states. Can
src/states/ez_state.rs:84
↓ 2 callers
Method
as_label
Cast this state as a Label widget ref, you must be sure you have one.
src/widgets/ez_object.rs:145
↓ 2 callers
Method
as_progress_bar
Cast this state as a Progress bar widget ref, you must be sure you have one.
src/widgets/ez_object.rs:199
↓ 2 callers
Method
as_radio_button
Cast this state as a RadioButton widget state ref, you must be sure you have one.
src/run/tree.rs:613
↓ 2 callers
Method
as_radio_button_mut
Cast this state as a mutable RadioButton widget ref, you must be sure you have one.
src/widgets/ez_object.rs:280
↓ 2 callers
Method
as_slider
Cast this state as a Slider widget ref, you must be sure you have one.
src/widgets/ez_object.rs:181
↓ 2 callers
Method
as_usize
(&self)
src/property/ez_values.rs:36
↓ 2 callers
Method
bind_global_key
Bind a callback to a custom key being pressed anywhere in the UI. Global key binds take priority over widget key binds. # Parameters: - key: KeyCode
src/scheduler/scheduler.rs:1719
↓ 2 callers
Method
bind_property_callback
Bind a callback to a property (can be a widget property or a custom property). Whenever the property value changes, the callback is called. This metho
src/scheduler/scheduler.rs:1662
↓ 2 callers
Method
collides
Returns a bool representing whether a single point collides with a widget.
src/states/ez_state.rs:633
↓ 2 callers
Function
deselect_widget
Handle a widget being deselected.
src/run/select.rs:35
↓ 2 callers
Method
exit
Exit the program gracefully. EzTerm makes several changes to the terminal to display the UI, so if you do not exit gracefully it may leave the termina
src/scheduler/scheduler.rs:1908
↓ 2 callers
Function
find_next_selection
Given a current selection order number, find the next widget, or wrap back around to the first if none. Returns the full path of the next widget to be
src/run/select.rs:96
↓ 2 callers
Function
find_previous_selection
Given a current selection order number, find the previous widget, or wrap back around to the last if none. Returns the full path of the previous widge
src/run/select.rs:164
↓ 2 callers
Function
format_text
Create pixels from text, consuming formatting text, e.g. \[underline\] becomes a formatted pixel.
src/widgets/helper_functions.rs:400
↓ 2 callers
Method
get_active_screen
Get the ID of the child that is the currently active screen (i.e. content is showing)
src/states/layout_state.rs:740
↓ 2 callers
Method
get_active_symbol
(&self)
src/states/checkbox_state.rs:463
↓ 2 callers
Method
get_all_mut
Get object mut refs in the tree recursively including self.
src/run/tree.rs:373
↓ 2 callers
Method
get_allow_none
(&self)
src/states/dropdown_state.rs:469
↓ 2 callers
Method
get_auto_scale_mut
(&mut self)
src/states/label_state.rs:316
↓ 2 callers
Method
get_box
Get the top left and bottom right corners of a widget in (X, Y) coordinate tuples.
src/states/ez_state.rs:589
↓ 2 callers
Method
get_by_id_mut
Get a mut ref by full widget ID. If the widget ID is not globally unique it will panic in order to prevent unexpected behavior. If you want to find wi
src/run/tree.rs:413
↓ 2 callers
Method
get_child_mut
Get a specific child mutable ref by its'[id]
src/widgets/layout/children.rs:333
↓ 2 callers
Method
get_cursor_color
(&self)
src/states/definitions.rs:1764
↓ 2 callers
Method
get_disabled_bg_color
(&self)
src/states/definitions.rs:1664
↓ 2 callers
Method
get_disabled_fg_color
(&self)
src/states/definitions.rs:1656
↓ 2 callers
Method
get_group
Get the group this radio button belongs to. Radio buttons that share a group are mutually exclusive.
src/states/radio_button_state.rs:471
↓ 2 callers
Method
get_halign
(&self)
src/states/label_state.rs:356
↓ 2 callers
Method
get_height
(&self)
src/states/ez_state.rs:397
↓ 2 callers
Method
get_id
(&self)
src/states/ez_state.rs:303
↓ 2 callers
Method
get_inactive_symbol
(&self)
src/states/checkbox_state.rs:471
↓ 2 callers
Method
get_max_length
(&self)
src/states/text_input_state.rs:520
↓ 2 callers
Method
get_modal_mut
Get reference to all open modals
src/states/layout_state.rs:896
↓ 2 callers
Method
get_path
(&self)
src/widgets/checkbox.rs:106
↓ 2 callers
Method
get_pixel
Turn this pixel into a crossterm StyledContent which can be drawn on screen.
src/run/definitions.rs:95
↓ 2 callers
Method
get_pos_hint
(&self)
src/states/label_state.rs:304
↓ 2 callers
Method
get_pos_hint_mut
(&mut self)
src/states/label_state.rs:308
↓ 2 callers
Method
get_recursive_mut
(&mut self, path: &str)
src/run/tree.rs:333
↓ 2 callers
Method
get_selected
(&self)
src/states/ez_state.rs:664
↓ 2 callers
Method
get_selected
(&self)
src/states/button_state.rs:344
↓ 2 callers
Method
get_size_hint_mut
(&mut self)
src/states/label_state.rs:300
↓ 2 callers
Method
get_size_hint_x
(&self)
src/states/definitions.rs:380
↓ 2 callers
Method
get_size_hint_y
(&self)
src/states/definitions.rs:388
↓ 2 callers
Method
get_size_mut
(&mut self)
src/states/layout_state.rs:395
↓ 2 callers
Method
get_state
(&self)
src/widgets/dropdown.rs:120
↓ 2 callers
Method
get_state_mut
(&mut self)
src/widgets/text_input.rs:112
↓ 2 callers
Method
get_state_mut
(&mut self)
src/widgets/progress_bar.rs:108
↓ 2 callers
Method
get_state_mut
(&mut self)
src/widgets/dropdown.rs:124
← previous
next →
201–300 of 1,238, ranked by callers