MCPcopy Create free account

hub / github.com/ddbnl/ez_term / functions

Functions1,238 in github.com/ddbnl/ez_term

↓ 3 callersMethodas_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 callersMethodas_radio_button
Cast this state as a RadioButton widget ref, you must be sure you have one.
src/widgets/ez_object.rs:271
↓ 3 callersMethodas_text_input
Cast this state as a TextInput widget ref, you must be sure you have one.
src/widgets/ez_object.rs:289
↓ 3 callersMethodbind
Bind a custom callback to this property which will be called when the value changes
src/property/ez_property.rs:99
↓ 3 callersMethodcheck_changed_text
Check if text has changed to call on_value_change.
src/widgets/text_input.rs:389
↓ 3 callersFunctioncreate_keymap_modifiers
(modifiers: Option<Vec<KeyModifiers>>)
src/states/definitions.rs:1161
↓ 3 callersMethodget
Get a ref to the value of this property
src/property/ez_property.rs:66
↓ 3 callersMethodget_blink_switch
(&self)
src/states/text_input_state.rs:504
↓ 3 callersMethodget_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 callersMethodget_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 callersMethodget_cols
(&self)
src/states/definitions.rs:147
↓ 3 callersMethodget_contents
(&self)
src/states/canvas_state.rs:432
↓ 3 callersMethodget_horizontal_scrollbar_parameters
( &self, content_width: usize, widget_width: usize, view_start: usize, )
src/widgets/layout/scrolling.rs:227
↓ 3 callersMethodget_options
(&self)
src/states/dropdown_state.rs:461
↓ 3 callersMethodget_path
(&self)
src/states/layout_state.rs:170
↓ 3 callersMethodget_path
(&self)
src/widgets/progress_bar.rs:100
↓ 3 callersMethodget_path
(&self)
src/widgets/canvas.rs:96
↓ 3 callersMethodget_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 callersMethodget_recursive
(&self, path: &str)
src/run/tree.rs:306
↓ 3 callersMethodget_selection_bg_color
(&self)
src/states/definitions.rs:1648
↓ 3 callersMethodget_state_mut
(&mut self)
src/widgets/label.rs:104
↓ 3 callersMethodget_state_mut
(&mut self)
src/widgets/checkbox.rs:114
↓ 3 callersMethodget_table_config
Get a ref to the [TableConfig] active for this layout
src/states/layout_state.rs:793
↓ 3 callersMethodget_vertical_scrollbar_parameters
( &self, content_height: usize, widget_height: usize, view_start: usize, )
src/widgets/layout/scrolling.rs:246
↓ 3 callersFunctionget_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 callersMethodhandle_event
( &self, event: Event, state_tree: &mut StateTree, callback_tree: &mut Callbac
src/widgets/slider.rs:192
↓ 3 callersMethodhandle_scroll_down
Handle command by user to scroll down by increasing the scroll_view of y
src/widgets/layout/scrolling.rs:10
↓ 3 callersMethodhandle_scroll_left
Handle command by user to scroll down by decreasing the scroll_view of x
src/widgets/layout/scrolling.rs:78
↓ 3 callersMethodhandle_scroll_right
Handle command by user to scroll down by increasing the scroll_view of x
src/widgets/layout/scrolling.rs:55
↓ 3 callersMethodhandle_scroll_up
Handle command by user to scroll down by decreasing the scroll_view of y
src/widgets/layout/scrolling.rs:34
↓ 3 callersMethodnew_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 callersMethodnew_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 callersMethodon_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 callersMethodon_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 callersFunctionparse_color_property
(value: &str)
src/parser/parse_properties.rs:15
↓ 3 callersFunctionresolve_property
(value: &str, path: String)
src/parser/load_base_properties.rs:21
↓ 3 callersMethodset_blink_switch
(&mut self, active: bool)
src/states/text_input_state.rs:500
↓ 3 callersMethodset_choice
(&mut self, choice: &str)
src/states/dropdown_state.rs:449
↓ 3 callersMethodset_size_hint_x
(&mut self, x: Option<f64>)
src/states/definitions.rs:376
↓ 3 callersMethodset_size_hint_y
(&mut self, y: Option<f64>)
src/states/definitions.rs:384
↓ 3 callersMethodsubscribe_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 callersMethodtotal_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 callersMethodupdate_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 callersFunctionwrite_to_screen
Write content to screen. Only writes differences between an frame and the new frame.
src/run/terminal.rs:39
↓ 2 callersFunction_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 callersMethodas_button
Cast this state as a Button widget ref, you must be sure you have one.
src/widgets/ez_object.rs:163
↓ 2 callersMethodas_canvas
Cast this as a Canvas widget ref, you must be sure you have one.
src/widgets/ez_object.rs:127
↓ 2 callersMethodas_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 callersMethodas_checkbox_mut
Cast this as a mutable Checkbox widget ref, you must be sure you have one.
src/widgets/ez_object.rs:226
↓ 2 callersMethodas_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 callersMethodas_coordinates
(&self)
src/run/definitions.rs:46
↓ 2 callersMethodas_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 callersMethodas_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 callersMethodas_label
Cast this state as a Label widget ref, you must be sure you have one.
src/widgets/ez_object.rs:145
↓ 2 callersMethodas_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 callersMethodas_radio_button
Cast this state as a RadioButton widget state ref, you must be sure you have one.
src/run/tree.rs:613
↓ 2 callersMethodas_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 callersMethodas_slider
Cast this state as a Slider widget ref, you must be sure you have one.
src/widgets/ez_object.rs:181
↓ 2 callersMethodas_usize
(&self)
src/property/ez_values.rs:36
↓ 2 callersMethodbind_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 callersMethodbind_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 callersMethodcollides
Returns a bool representing whether a single point collides with a widget.
src/states/ez_state.rs:633
↓ 2 callersFunctiondeselect_widget
Handle a widget being deselected.
src/run/select.rs:35
↓ 2 callersMethodexit
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 callersFunctionfind_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 callersFunctionfind_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 callersFunctionformat_text
Create pixels from text, consuming formatting text, e.g. \[underline\] becomes a formatted pixel.
src/widgets/helper_functions.rs:400
↓ 2 callersMethodget_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 callersMethodget_active_symbol
(&self)
src/states/checkbox_state.rs:463
↓ 2 callersMethodget_all_mut
Get object mut refs in the tree recursively including self.
src/run/tree.rs:373
↓ 2 callersMethodget_allow_none
(&self)
src/states/dropdown_state.rs:469
↓ 2 callersMethodget_auto_scale_mut
(&mut self)
src/states/label_state.rs:316
↓ 2 callersMethodget_box
Get the top left and bottom right corners of a widget in (X, Y) coordinate tuples.
src/states/ez_state.rs:589
↓ 2 callersMethodget_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 callersMethodget_child_mut
Get a specific child mutable ref by its'[id]
src/widgets/layout/children.rs:333
↓ 2 callersMethodget_cursor_color
(&self)
src/states/definitions.rs:1764
↓ 2 callersMethodget_disabled_bg_color
(&self)
src/states/definitions.rs:1664
↓ 2 callersMethodget_disabled_fg_color
(&self)
src/states/definitions.rs:1656
↓ 2 callersMethodget_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 callersMethodget_halign
(&self)
src/states/label_state.rs:356
↓ 2 callersMethodget_height
(&self)
src/states/ez_state.rs:397
↓ 2 callersMethodget_id
(&self)
src/states/ez_state.rs:303
↓ 2 callersMethodget_inactive_symbol
(&self)
src/states/checkbox_state.rs:471
↓ 2 callersMethodget_max_length
(&self)
src/states/text_input_state.rs:520
↓ 2 callersMethodget_modal_mut
Get reference to all open modals
src/states/layout_state.rs:896
↓ 2 callersMethodget_path
(&self)
src/widgets/checkbox.rs:106
↓ 2 callersMethodget_pixel
Turn this pixel into a crossterm StyledContent which can be drawn on screen.
src/run/definitions.rs:95
↓ 2 callersMethodget_pos_hint
(&self)
src/states/label_state.rs:304
↓ 2 callersMethodget_pos_hint_mut
(&mut self)
src/states/label_state.rs:308
↓ 2 callersMethodget_recursive_mut
(&mut self, path: &str)
src/run/tree.rs:333
↓ 2 callersMethodget_selected
(&self)
src/states/ez_state.rs:664
↓ 2 callersMethodget_selected
(&self)
src/states/button_state.rs:344
↓ 2 callersMethodget_size_hint_mut
(&mut self)
src/states/label_state.rs:300
↓ 2 callersMethodget_size_hint_x
(&self)
src/states/definitions.rs:380
↓ 2 callersMethodget_size_hint_y
(&self)
src/states/definitions.rs:388
↓ 2 callersMethodget_size_mut
(&mut self)
src/states/layout_state.rs:395
↓ 2 callersMethodget_state
(&self)
src/widgets/dropdown.rs:120
↓ 2 callersMethodget_state_mut
(&mut self)
src/widgets/text_input.rs:112
↓ 2 callersMethodget_state_mut
(&mut self)
src/widgets/progress_bar.rs:108
↓ 2 callersMethodget_state_mut
(&mut self)
src/widgets/dropdown.rs:124
← previousnext →201–300 of 1,238, ranked by callers