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
↓ 2 callers
Method
get_tab_name
(&self)
src/states/layout_state.rs:759
↓ 2 callers
Method
get_valign
(&self)
src/states/label_state.rs:364
↓ 2 callers
Method
get_width
(&self)
src/states/ez_state.rs:393
↓ 2 callers
Method
initialize
Initialize the view tree with empty pixel based on a passed with and height.
src/run/tree.rs:706
↓ 2 callers
Function
initialize_terminal
Prepare state of the terminal for drawing the UI.
src/run/terminal.rs:22
↓ 2 callers
Function
is_in_view
Determine whether a widget (by path) is in view. We start with the root widget and make our way down to the widget in question. We check whether the a
src/run/select.rs:239
↓ 2 callers
Method
is_selectable
(&self)
src/states/button_state.rs:320
↓ 2 callers
Method
is_syncing
(&self)
src/scheduler/scheduler.rs:1921
↓ 2 callers
Function
load_f64_property
Load a f64 [EzProperty]. It is either bound to another f64 property and initialized with 0.0 or parsed from the user defined string from the .ez file.
src/parser/load_base_properties.rs:190
↓ 2 callers
Function
load_horizontal_pos_hint_property
Load a horizontal position hint [EzProperty]. It is either bound to another hposhint property and initialized with None or parsed from the user define
src/parser/load_base_properties.rs:361
↓ 2 callers
Function
load_vertical_pos_hint_property
Load a vertical position hint [EzProperty]. It is either bound to another vposhint property and initialized with None or parsed from the user defined
src/parser/load_base_properties.rs:380
↓ 2 callers
Method
merge_horizontal_contents
Take a [PixelMap] and merge it horizontally with another [PixelMap]
src/widgets/layout/box_mode.rs:280
↓ 2 callers
Method
merge_vertical_contents
Take a [PixelMap] and merge it vertically with another [PixelMap]
src/widgets/layout/box_mode.rs:311
↓ 2 callers
Method
new_horizontal_pos_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:1341
↓ 2 callers
Method
new_layout_mode_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:1157
↓ 2 callers
Method
new_layout_orientation_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:1201
↓ 2 callers
Method
new_vertical_pos_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:1389
↓ 2 callers
Function
offset_scrolled_absolute_position
Adjust an absolute position based on scrolling config and size of the parent layout.
src/widgets/helper_functions.rs:380
↓ 2 callers
Method
on_deselect_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:859
↓ 2 callers
Method
on_drag
( &self, state_tree: &mut StateTree, callback_tree: &mut CallbackTree, schedul
src/widgets/slider.rs:267
↓ 2 callers
Method
on_keyboard_enter_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:452
↓ 2 callers
Method
on_press
Called on an object when it is selected and the user presses enter on the keyboard or when an object is left clicked. Default implementation only call
src/widgets/ez_object.rs:514
↓ 2 callers
Method
on_scroll_down_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:770
↓ 2 callers
Method
on_scroll_up_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:742
↓ 2 callers
Function
parse_level
Parse a single indentation level of a config file. Returns a Vec of config lines, a Vec of [EzWidgetDefinition] of widgets found on that level, and a
src/parser/parse_lang.rs:88
↓ 2 callers
Function
peek_id_from_config
Check if a widget definition config contains an ID. If so, return an ID and path from it.
src/parser/ez_definition.rs:278
↓ 2 callers
Method
redraw
Redraw the widget on the screen. Using the view tree, only changed content is written to improve performance.
src/widgets/ez_object.rs:380
↓ 2 callers
Method
remove_child
Remove a widget. Never remove a child directly but call this instead. It keeps the child lookup table cache up to date.
src/widgets/layout/children.rs:300
↓ 2 callers
Method
remove_widget
Remove a widget from a layout. Removing a layout will also remove all children of that layout. You cannot remove the root layout. You cannot remove a
src/scheduler/scheduler.rs:879
↓ 2 callers
Function
reposition_with_pos_hint
Set the positions of an object that uses pos_hint(s) using its parents proportions and position.
src/widgets/helper_functions.rs:27
↓ 2 callers
Function
resize_with_size_hint
Resize an object according to its' size hint values.
src/widgets/helper_functions.rs:11
↓ 2 callers
Method
resolve_tab_name
(&self, name: &str, state_tree: &mut StateTree)
src/widgets/layout/tab_mode.rs:52
↓ 2 callers
Method
scale_to_largest_child
(&self, content_list: &[PixelMap], state_tree: &mut StateTree)
src/widgets/layout/children.rs:444
↓ 2 callers
Method
set_active_blink_task
(&mut self, active: bool)
src/states/text_input_state.rs:492
↓ 2 callers
Method
set_bg_color
(&mut self, color: Color)
src/states/definitions.rs:1628
↓ 2 callers
Method
set_cursor_pos
(&mut self, cursor_pos: Coordinates)
src/states/text_input_state.rs:476
↓ 2 callers
Method
set_flashing
(&mut self, flashing: bool)
src/states/button_state.rs:463
↓ 2 callers
Method
set_is_scrolling_x
(&mut self, x: bool)
src/states/definitions.rs:1290
↓ 2 callers
Method
set_is_scrolling_y
(&mut self, y: bool)
src/states/definitions.rs:1298
↓ 2 callers
Method
set_path
(&mut self, id: &str)
src/widgets/layout/layout.rs:269
↓ 2 callers
Function
shutdown_terminal
Set terminal to original state.
src/run/terminal.rs:31
↓ 2 callers
Function
start_cursor_blink
Start blink the position on which the cursor is currently located. This is a custom cursor not the actual terminal cursor. This is because in dynamic
src/widgets/text_input.rs:408
↓ 2 callers
Method
try_get
(&self, node: &str)
src/run/tree.rs:215
↓ 2 callers
Method
try_get_mut
(&mut self, id: &str)
src/run/tree.rs:274
↓ 2 callers
Method
value_from_mouse_pos
( &self, state: &mut SliderState, mut mouse_pos: IsizeCoordinates, )
src/widgets/slider.rs:326
↓ 2 callers
Function
wrap_text
Make list of lines, splitting into lines at line breaks in the text or when the widget width has been exceeded. If the latter occurs, we will try to s
src/widgets/helper_functions.rs:287
↓ 1 callers
Method
_add_node
(&mut self, mut steps: Vec<&str>, node: T)
src/run/tree.rs:101
↓ 1 callers
Method
_check_method_channels
(&mut self, state_tree: &mut StateTree)
src/scheduler/scheduler.rs:2002
↓ 1 callers
Method
_extend
(&mut self, mut steps: Vec<&str>, tree: Tree<T>)
src/run/tree.rs:68
↓ 1 callers
Method
_get_by_id_recursive
(&self, steps: Vec<String>)
src/run/tree.rs:395
↓ 1 callers
Method
_get_by_id_recursive_mut
(&mut self, steps: Vec<String>)
src/run/tree.rs:424
↓ 1 callers
Method
_get_recursive
(&self, mut steps: Peekable<Split<char>>)
src/run/tree.rs:319
↓ 1 callers
Method
_get_recursive_mut
(&mut self, mut steps: Peekable<Split<char>>)
src/run/tree.rs:347
↓ 1 callers
Method
_get_widgets_recursive
(&'a self, results: &mut Vec<&'a EzObjects>)
src/widgets/layout/children.rs:435
↓ 1 callers
Method
_remove_node
(&mut self, mut steps: Vec<&str>)
src/run/tree.rs:149
↓ 1 callers
Method
_stop_sync_to_thread
Method to stop a synced scheduler. No need to use this as an end-user; schedule_threaded will do the work for you.
src/scheduler/scheduler.rs:2205
↓ 1 callers
Method
_sync_to_thread
Method to set up a synced scheduler to use in a thread. No need to use this as an end-user; schedule_threaded will do the work for you.
src/scheduler/scheduler.rs:2211
↓ 1 callers
Function
add_custom_data
Take new custom data and add it to the existing custom data map
src/scheduler/scheduler_funcs.rs:358
↓ 1 callers
Method
add_empty_filler
Fill any empty positions with empty [Pixel]. Used to fill full size of the layout in case the user did not define a custom filler.
src/widgets/layout/layout.rs:874
↓ 1 callers
Function
add_property_callbacks
Take new property callbacks and add them to the existing callback config in the callback tree
src/scheduler/scheduler_funcs.rs:371
↓ 1 callers
Method
add_user_filler
Fill any empty positions with [Pixel] from [get_filler]
src/widgets/layout/layout.rs:838
↓ 1 callers
Method
as_bool
(&self)
src/property/ez_values.rs:82
↓ 1 callers
Method
as_button
Cast this state as a Button widget state ref, you must be sure you have one.
src/states/ez_state.rs:155
↓ 1 callers
Method
as_canvas
Cast this state as a Canvas widget state ref, you must be sure you have one.
src/states/ez_state.rs:119
↓ 1 callers
Method
as_canvas_mut
Cast this as a mutable Canvas widget ref, you must be sure you have one.
src/widgets/ez_object.rs:136
↓ 1 callers
Method
as_checkbox
Cast this state as a Checkbox widget state ref, you must be sure you have one.
src/states/ez_state.rs:209
↓ 1 callers
Method
as_checkbox
Cast this as a Checkbox widget ref, you must be sure you have one.
src/widgets/ez_object.rs:217
↓ 1 callers
Method
as_checkbox
Cast this state as a Checkbox widget state ref, you must be sure you have one.
src/run/tree.rs:559
↓ 1 callers
Method
as_color
(&self)
src/property/ez_values.rs:90
↓ 1 callers
Method
as_dropdown
Cast this state as a Dropdown widget state ref, you must be sure you have one.
src/states/ez_state.rs:227
↓ 1 callers
Method
as_dropdown
Cast this state as a Dropdown widget ref, you must be sure you have one.
src/widgets/ez_object.rs:235
↓ 1 callers
Method
as_dropdown
Cast this state as a Dropdown widget state ref, you must be sure you have one.
src/run/tree.rs:577
↓ 1 callers
Method
as_dropdown_mut
Cast this state as a mutable Dropdown widget state ref, you must be sure you have one.
src/run/tree.rs:586
↓ 1 callers
Method
as_f64
(&self)
src/property/ez_values.rs:44
↓ 1 callers
Method
as_horizontal_alignment
(&self)
src/property/ez_values.rs:122
↓ 1 callers
Method
as_horizontal_pos_hint
(&self)
src/property/ez_values.rs:138
↓ 1 callers
Method
as_label
Cast this state as a Label widget state ref, you must be sure you have one.
src/states/ez_state.rs:137
↓ 1 callers
Method
as_label_mut
Cast this state as a mutable Label widget ref, you must be sure you have one.
src/widgets/ez_object.rs:154
↓ 1 callers
Method
as_layout_mode
(&self)
src/property/ez_values.rs:98
↓ 1 callers
Method
as_layout_orientation
(&self)
src/property/ez_values.rs:106
↓ 1 callers
Method
as_progress_bar
Cast this state as a Progress bar widget state ref, you must be sure you have one.
src/states/ez_state.rs:191
↓ 1 callers
Method
as_progress_bar
Cast this state as a Progress bar widget state ref, you must be sure you have one.
src/run/tree.rs:541
↓ 1 callers
Method
as_progress_bar_mut
Cast this state as a mutable Progress bar widget ref, you must be sure you have one.
src/widgets/ez_object.rs:208
↓ 1 callers
Method
as_radio_button
Cast this state as a RadioButton widget state ref, you must be sure you have one.
src/states/ez_state.rs:263
↓ 1 callers
Method
as_size_hint
(&self)
src/property/ez_values.rs:146
↓ 1 callers
Method
as_slider
Cast this state as a Slider widget state ref, you must be sure you have one.
src/states/ez_state.rs:173
↓ 1 callers
Method
as_slider
Cast this state as a Slider widget state ref, you must be sure you have one.
src/run/tree.rs:523
↓ 1 callers
Method
as_slider_mut
Cast this state as a mutable Slider widget state ref, you must be sure you have one.
src/run/tree.rs:532
↓ 1 callers
Method
as_string
(&self)
src/property/ez_values.rs:52
↓ 1 callers
Method
as_text_input
Cast this state as a TextInput widget state ref, you must be sure you have one.
src/states/ez_state.rs:281
↓ 1 callers
Method
as_usize_mut
Get a mutable ref [EzProperty<usize>] from this enum. You must be sure this is a usize property or it will panic.
src/property/ez_properties.rs:105
↓ 1 callers
Method
as_vertical_alignment
(&self)
src/property/ez_values.rs:114
↓ 1 callers
Method
as_vertical_pos_hint
(&self)
src/property/ez_values.rs:130
↓ 1 callers
Method
auto_scale_to_content
Scale size down to the size of the actual content of the layout.
src/widgets/layout/layout.rs:765
↓ 1 callers
Method
bottom_top_left_right_content
( &self, state_tree: &mut StateTree, content_list: &[PixelMap], effective_size
src/widgets/layout/stack_mode.rs:610
↓ 1 callers
Method
bottom_top_right_left_content
( &self, state_tree: &mut StateTree, content_list: &[PixelMap], effective_size
src/widgets/layout/stack_mode.rs:675
↓ 1 callers
Method
cancel_recurring_task
Cancel a recurring task. This function is always safe to call, if there's no task to cancel it will not panic. An alternative way to cancel a recurrin
src/scheduler/scheduler.rs:402
↓ 1 callers
Method
cancel_task
Cancel a run-once task. This of course only works if called before the task was executed (possible if it had a delay). This function is always safe to
src/scheduler/scheduler.rs:285
↓ 1 callers
Method
check_default_size_hints
Check if all chrildren employ default size_hints (i.e. size_hint=1) for x and y separately.
src/widgets/layout/children.rs:106
↓ 1 callers
Function
check_finished_threads
Check if any threads have finished running. Joined them if so and remove all references.
src/scheduler/scheduler_funcs.rs:41
← previous
next →
301–400 of 1,238, ranked by callers