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
↓ 8 callers
Method
get_children_in_view
Get layout children that are in view based on view_size and view_page properties.
src/widgets/layout/layout.rs:893
↓ 8 callers
Method
get_filler_content
( &self, effective_size: &Size, colors: &ColorConfig, fill: bool, fill
src/widgets/layout/stack_mode.rs:745
↓ 8 callers
Method
get_infinite_size_mut
(&mut self)
src/states/label_state.rs:332
↓ 8 callers
Method
get_min
(&self)
src/states/slider_state.rs:472
↓ 8 callers
Method
get_padding
(&self)
src/states/layout_state.rs:503
↓ 8 callers
Method
get_padding_top
(&self)
src/states/definitions.rs:1831
↓ 8 callers
Method
get_state
(&self)
src/widgets/label.rs:100
↓ 8 callers
Method
get_step
(&self)
src/states/slider_state.rs:494
↓ 8 callers
Method
on_value_change_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:798
↓ 8 callers
Method
set_view_start
(&mut self, view_start: usize)
src/states/text_input_state.rs:508
↓ 7 callers
Method
as_button_mut
Cast this state as a mutable Button widget ref, you must be sure you have one.
src/widgets/ez_object.rs:172
↓ 7 callers
Method
dismiss_modal
Dismiss the open modal. Can always be called safely even if one no longer exists (though this does trigger a screen redraw so try to avoid that). For
src/scheduler/scheduler.rs:568
↓ 7 callers
Method
get_active
(&self)
src/states/checkbox_state.rs:455
↓ 7 callers
Method
get_color_config_mut
(&mut self)
src/states/label_state.rs:388
↓ 7 callers
Method
get_context_colors
Convenience function. Get a Foreground and Background color depending on the state of the widget (e.g. disabled, selected, etc.).
src/states/ez_state.rs:568
↓ 7 callers
Method
get_is_scrolling_x
(&self)
src/states/definitions.rs:1294
↓ 7 callers
Method
get_is_scrolling_y
(&self)
src/states/definitions.rs:1302
↓ 7 callers
Method
get_mode
Get [LayoutMode]
src/states/layout_state.rs:720
↓ 7 callers
Method
get_original_height
(&self)
src/states/definitions.rs:1278
↓ 7 callers
Method
get_original_width
(&self)
src/states/definitions.rs:1286
↓ 7 callers
Method
get_padding_left
(&self)
src/states/definitions.rs:1847
↓ 7 callers
Method
get_path
(&self)
src/widgets/text_input.rs:104
↓ 7 callers
Method
get_scroll_start_y
(&self)
src/states/definitions.rs:1270
↓ 7 callers
Method
get_view_page
(&self)
src/states/layout_state.rs:874
↓ 7 callers
Method
on_hover_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:593
↓ 7 callers
Method
usize_x
(&self)
src/run/definitions.rs:38
↓ 6 callers
Method
create_widget
Finish creating a widget from a template or base widget type and add it to a layout. This allows you to create widgets from code. # Parameters: - ne
src/scheduler/scheduler.rs:807
↓ 6 callers
Method
get_all
Get object refs in the tree recursively, including self.
src/run/tree.rs:363
↓ 6 callers
Method
get_effective_absolute_position
Get the absolute position of where the actual content of the widget starts, taking out e.g. border and padding
src/states/ez_state.rs:501
↓ 6 callers
Method
get_fill
Get [fill]
src/states/layout_state.rs:808
↓ 6 callers
Method
get_filler_bg_color
(&self)
src/states/definitions.rs:1744
↓ 6 callers
Method
get_filler_fg_color
(&self)
src/states/definitions.rs:1736
↓ 6 callers
Method
get_filler_symbol
Get [filler_symbol]
src/states/layout_state.rs:818
↓ 6 callers
Method
get_id
(&self)
src/widgets/layout/layout.rs:265
↓ 6 callers
Method
get_orientation
Get [LayoutOrientation]
src/states/layout_state.rs:730
↓ 6 callers
Method
get_padding_bottom
(&self)
src/states/definitions.rs:1839
↓ 6 callers
Method
get_path
(&self)
src/widgets/slider.rs:118
↓ 6 callers
Method
get_path
(&self)
src/widgets/radio_button.rs:124
↓ 6 callers
Method
get_widgets_recursive
Get a list of all children refs recursively. Call on root [layout] for all [EzWidgets] that exist.
src/widgets/layout/children.rs:430
↓ 6 callers
Method
on_press_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:526
↓ 6 callers
Method
remove_node
Remove a node from the state tree. There's generally no reason to use this as an end-user; the tree will be pruned regularly.
src/run/tree.rs:121
↓ 6 callers
Method
schedule_recurring
Method that allows you to schedule a closure or function for recurring execution; it will be executed on an interval as long as the function keeps ret
src/scheduler/scheduler.rs:346
↓ 6 callers
Method
set_absolute_position
(&mut self, pos: IsizeCoordinates)
src/states/label_state.rs:344
↓ 6 callers
Method
set_fg_color
(&mut self, color: Color)
src/states/definitions.rs:1620
↓ 6 callers
Method
set_scroll_start_x
(&mut self, view_start: f64)
src/states/definitions.rs:1258
↓ 6 callers
Method
set_scroll_start_y
(&mut self, view_start: f64)
src/states/definitions.rs:1266
↓ 6 callers
Method
set_view_page
(&mut self, page: usize)
src/states/layout_state.rs:870
↓ 5 callers
Method
as_button_mut
Cast this state as a mutable Button widget state ref, you must be sure you have one.
src/run/tree.rs:514
↓ 5 callers
Method
as_dropdown_mut
Cast this state as a mutable Dropdown widget ref, you must be sure you have one.
src/widgets/ez_object.rs:244
↓ 5 callers
Method
as_dropped_down_menu
Cast this state as a DroppedDownMenu widget ref, you must be sure you have one.
src/widgets/ez_object.rs:253
↓ 5 callers
Method
as_slider_mut
Cast this state as a mutable slider widget ref, you must be sure you have one.
src/widgets/ez_object.rs:190
↓ 5 callers
Method
as_text_input_mut
Cast this state as a mutable TextInput widget state ref, you must be sure you have one.
src/run/tree.rs:640
↓ 5 callers
Method
deselect_widget
Users can select certain widget types through mouse or keyboard. This method allows deselecting the current widget programmatically. For a tutorial on
src/scheduler/scheduler.rs:1875
↓ 5 callers
Method
force_redraw
Forces a global screen redraw (though only changed pixels will actually be redrawn). While this method if exposed to give you the option to use it, th
src/scheduler/scheduler.rs:1609
↓ 5 callers
Method
get_absolute_scroll_start_x
(&self, effective_widget_width: usize)
src/states/definitions.rs:1314
↓ 5 callers
Method
get_absolute_scroll_start_y
(&self, effective_widget_height: usize)
src/states/definitions.rs:1327
↓ 5 callers
Method
get_active_tab
Get the id of the layout that is currently active as a tab (i.e. content is showing)
src/states/layout_state.rs:751
↓ 5 callers
Method
get_child
Get a specific child ref by its' [id]
src/widgets/layout/children.rs:324
↓ 5 callers
Method
get_choice
(&self)
src/states/dropdown_state.rs:453
↓ 5 callers
Method
get_col_default_width
(&self)
src/states/definitions.rs:163
↓ 5 callers
Method
get_padding_right
(&self)
src/states/definitions.rs:1855
↓ 5 callers
Method
get_path
(&self)
src/widgets/button.rs:94
↓ 5 callers
Method
get_row_default_height
(&self)
src/states/definitions.rs:155
↓ 5 callers
Method
get_selected_tab_header
Get the tab header that is currently selected
src/states/layout_state.rs:773
↓ 5 callers
Method
get_selection_order
(&self)
src/states/label_state.rs:400
↓ 5 callers
Method
get_view_size
(&self)
src/states/layout_state.rs:866
↓ 5 callers
Function
get_widget_by_position
Find a widget by a screen position coordinate. Used e.g. by mouse event handlers. If a modal if active only the modal is searched.
src/run/select.rs:194
↓ 5 callers
Method
overwrite_callback_config
Replace the entire CallbackConfig of a widget on the next frame. You can pass an empty CallbackConfig to remove all callbacks for a widget. # Paramet
src/scheduler/scheduler.rs:616
↓ 5 callers
Method
prepare_create_widget
Create a widget from a template or base widget type and add it to a layout. This allows you to create widgets from code. # Parameters: - Widget typ
src/scheduler/scheduler.rs:719
↓ 5 callers
Method
schedule_once
Method that allows you to schedule a closure or function for single execution after a delay (which can be 0). Only intended for code that returns imme
src/scheduler/scheduler.rs:240
↓ 5 callers
Method
schedule_threaded
Method that allows you to schedule a closure or function for threaded execution. This allows you to run code that does not return immediately (like yo
src/scheduler/scheduler.rs:463
↓ 5 callers
Method
set_dropped_down_selected_row
(&mut self, dropped_down_selected_row: usize)
src/states/dropdown_state.rs:795
↓ 4 callers
Method
as_text_input_mut
Cast this state as a mutable TextInput widget ref, you must be sure you have one.
src/widgets/ez_object.rs:298
↓ 4 callers
Method
clean_up_properties
(&self, scheduler: &mut SchedulerFrontend)
src/states/definitions.rs:183
↓ 4 callers
Method
collides_effective
Returns a bool representing whether a single point collides with a widget using its effective size, meaning its borders, padding, etc. are ignored
src/states/ez_state.rs:627
↓ 4 callers
Method
get_border_config
(&self)
src/states/layout_state.rs:511
↓ 4 callers
Method
get_dropped_down_options
Get an ordered list of options, including the empty option if it was allowed. Order is: - Active choice - Empty (if allowed) - Rest of the options in
src/states/dropdown_state.rs:813
↓ 4 callers
Method
get_from_file
(&self)
src/states/label_state.rs:430
↓ 4 callers
Method
get_modal
Get reference to all open modals
src/states/layout_state.rs:891
↓ 4 callers
Method
get_padding_mut
(&mut self)
src/states/label_state.rs:372
↓ 4 callers
Method
get_rows
(&self)
src/states/definitions.rs:139
↓ 4 callers
Method
get_selection_fg_color
(&self)
src/states/definitions.rs:1640
↓ 4 callers
Method
get_size_hint
(&self)
src/states/label_state.rs:296
↓ 4 callers
Method
get_state_mut
(&mut self)
src/widgets/slider.rs:126
↓ 4 callers
Method
get_state_mut
(&mut self)
src/widgets/radio_button.rs:132
↓ 4 callers
Function
load_size_hint_property
Load a [SizeHint] [EzProperty]. It is either bound to another SizeHint property and initialized with Some(1.0) or parsed from the user defined string
src/parser/load_base_properties.rs:399
↓ 4 callers
Method
on_drag_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:664
↓ 4 callers
Method
open_modal
Method that allows you to open a modal (e.g. a popup). To open a modal you need to define a Layout template in an .ez file. You can then spawn an inst
src/scheduler/scheduler.rs:532
↓ 4 callers
Method
set_active
(&mut self, active: bool)
src/states/checkbox_state.rs:451
↓ 4 callers
Method
set_active_screen
Set the ID of the child that is the currently active screen (i.e. content is showing)
src/states/layout_state.rs:735
↓ 4 callers
Method
set_active_tab
Set the id of the layout that is currently active as the current tab (i.e. content is showing)
src/states/layout_state.rs:746
↓ 4 callers
Method
set_selected
(&mut self, state: bool)
src/states/button_state.rs:340
↓ 4 callers
Method
set_selected_tab_header
Set the tab header that is currently selected
src/states/layout_state.rs:768
↓ 4 callers
Function
widget_is_hidden
Check if a widget is hidden, for example if it belongs to a tab or screan that is not active.
src/run/select.rs:391
↓ 4 callers
Method
write_content
Write content to a [ViewTree]. Only writes differences. By writing to a view tree first and then only writing the [ViewTree] to screen at the end of a
src/run/tree.rs:676
↓ 3 callers
Method
add_child
Add a child ([layout] or [EzWidget]) to this layout.
src/widgets/layout/children.rs:221
↓ 3 callers
Function
align_content_horizontally
Align the passed content horizontally within a desired total width. Return the aligned [PixelMap] and an offset for how much the content moved horizon
src/widgets/helper_functions.rs:178
↓ 3 callers
Function
align_content_vertically
Align the passed content vertically within a desired total height. Return the aligned [PixelMap] and an offset for how much the content moved vertical
src/widgets/helper_functions.rs:236
↓ 3 callers
Method
as_ez_object_mut
Cast this enum to a mutable generic [EzObject] trait object. As this trait is implemented by both [layout] and [widget], it is safe to call on all var
src/widgets/ez_object.rs:93
↓ 3 callers
Method
as_layout
Cast this state as a layout state ref, you must be sure you have one.
src/states/ez_state.rs:101
← previous
next →
101–200 of 1,238, ranked by callers