MCPcopy Create free account

hub / github.com/ddbnl/ez_term / functions

Functions1,238 in github.com/ddbnl/ez_term

↓ 1 callersMethodhandle_right
( &self, state_tree: &mut StateTree, callback_tree: &mut CallbackTree, schedul
src/widgets/slider.rs:365
↓ 1 callersMethodhandle_scroll_drag_x
( &self, state: &mut LayoutState, previous_pos: Option<IsizeCoordinates>, mous
src/widgets/layout/layout.rs:669
↓ 1 callersMethodhandle_scroll_drag_y
( &self, state: &mut LayoutState, previous_pos: Option<IsizeCoordinates>, mous
src/widgets/layout/layout.rs:716
↓ 1 callersMethodhandle_tab_left
(&self, state_tree: &mut StateTree, scheduler: &mut SchedulerFrontend)
src/widgets/layout/tab_mode.rs:10
↓ 1 callersMethodhandle_tab_right
(&self, state_tree: &mut StateTree, scheduler: &mut SchedulerFrontend)
src/widgets/layout/tab_mode.rs:31
↓ 1 callersMethodhandle_toggle
( &self, state_tree: &mut StateTree, callback_tree: &mut CallbackTree, schedul
src/widgets/checkbox.rs:223
↓ 1 callersMethodhandle_up
Called when this widget is already dropped down and up is pressed
src/widgets/dropdown.rs:512
↓ 1 callersMethodheight
Get the height of the highest row in the view treee.
src/run/tree.rs:701
↓ 1 callersMethodinitialize
Initialize a widget object based on the type specified by the definition. The type can be a template defined by the user.
src/parser/ez_definition.rs:139
↓ 1 callersFunctioninitialize_callback_tree
Get the State for each child [EzWidget] and return it in a <[path], [State]> HashMap.
src/run/tree.rs:730
↓ 1 callersFunctioninitialize_state_tree
Get the State for each child [EzWidget] and return it in a <[path], [State]> HashMap.
src/run/tree.rs:718
↓ 1 callersFunctioninitialize_widgets
Called just before [run]. Creates initial view- and state trees and writes initial content to the screen.
src/run/run.rs:55
↓ 1 callersFunctionload_ez_files
Load multiple file paths into a root layout. Return the root widget and a new scheduler. Both will be needed to run an [App].
build.rs:116
↓ 1 callersFunctionload_ez_folder
Load all '.ez' files from a folder recursively. There can only be one root widget, so when loading multiple files make sure all definitions are templa
build.rs:98
↓ 1 callersMethodload_ez_parameter
( &mut self, parameter_name: String, parameter_value: String, scheduler: &mut
src/widgets/label.rs:51
↓ 1 callersFunctionload_ez_text
Load a string from an Ez file into a root widget. Parse the first level and interpret the widget definition found there as the root widget (must be a
src/parser/parse_lang.rs:31
↓ 1 callersFunctionload_halign_property
Load a [HorizontalAlignment] [EzProperty]. It is either bound to another halign property and initialized with [HorizontalAlignment::Left] or parsed fr
src/parser/load_base_properties.rs:339
↓ 1 callersFunctionload_layout_mode_property
Load a [LayoutMode] [EzProperty]. It is either bound to another LayoutMode property and initialized with [LayoutMode::Top] or parsed from the user def
src/parser/load_base_properties.rs:273
↓ 1 callersFunctionload_layout_orientation_property
Load a [LayoutOrientation] [EzProperty]. It is either bound to another LayoutOrientation property and initialized with [LayoutOrientation::Horizontal]
src/parser/load_base_properties.rs:293
↓ 1 callersFunctionload_valign_property
Load a [VerticalAlignment] [EzProperty]. It is either bound to another valign property and initialized with [VerticalAlignment::Top] or parsed from th
src/parser/load_base_properties.rs:316
↓ 1 callersFunctionmerge_configs
Merge two configs, where config_1 takes precedence, overwriting any properties it has in common with config_2. This is used for templates which can ha
src/parser/ez_definition.rs:298
↓ 1 callersMethodon_deselect
( &self, state_tree: &mut StateTree, callback_tree: &mut CallbackTree, schedul
src/widgets/layout/layout.rs:623
↓ 1 callersMethodon_drag_exit
Called on an existing drag is stopped. This default implementation only calls the appropriate callback. Objects can overwrite this function but must r
src/widgets/ez_object.rs:686
↓ 1 callersMethodon_drag_exit_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:707
↓ 1 callersMethodon_hover
( &self, state_tree: &mut StateTree, callback_tree: &mut CallbackTree, schedul
src/widgets/button.rs:214
↓ 1 callersMethodon_hover_exit
Called on an object when it was mouse hovered but now the mouse has left the widget. This default implementation only calls the appropriate callback.
src/widgets/ez_object.rs:614
↓ 1 callersMethodon_hover_exit_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:626
↓ 1 callersMethodon_keyboard_enter
Implement user keyboard enter to select a new tab after it's already selected.
src/widgets/layout/layout.rs:383
↓ 1 callersMethodon_left_mouse_click
( &self, state_tree: &mut StateTree, callback_tree: &mut CallbackTree, schedul
src/widgets/slider.rs:228
↓ 1 callersMethodon_right_mouse_click
Called on an object when it is right clicked. This default implementation only calls the appropriate callback. Objects can overwrite this function bu
src/widgets/ez_object.rs:542
↓ 1 callersMethodon_right_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:556
↓ 1 callersMethodon_scroll_down
( &self, state_tree: &mut StateTree, callback_tree: &mut CallbackTree, schedul
src/widgets/layout/layout.rs:577
↓ 1 callersMethodon_scroll_up
( &self, state_tree: &mut StateTree, callback_tree: &mut CallbackTree, schedul
src/widgets/layout/layout.rs:556
↓ 1 callersMethodon_select
( &self, state_tree: &mut StateTree, callback_tree: &mut CallbackTree, schedul
src/widgets/text_input.rs:266
↓ 1 callersFunctionopen_and_register_modal
Support function for opening a popup. After opening the actual popup in the root layout the state tree is extended with the new modal widget state, an
src/run/run.rs:73
↓ 1 callersMethodopen_modal
Open a new modal. Returns the state of the new modal.
src/states/layout_state.rs:835
↓ 1 callersMethodopen_modal_from_template
Open a popup based on a template defined in the Ez file. Returns the state of the new popup
src/states/layout_state.rs:823
↓ 1 callersFunctionparse_bool_property
Convenience function use by widgets to load a bool property defined in a .ez file. Looks like "false".
src/parser/parse_properties.rs:72
↓ 1 callersFunctionparse_halign_property
Convenience function use by widgets to load a horizontal alignment defined in a .ez file. Looks like: "left"
src/parser/parse_properties.rs:291
↓ 1 callersFunctionparse_horizontal_pos_hint_property
Convenience function use by widgets to load a pos_hint property defined in a .ez file. Looks like "pos_hint_x: right: 0.9"
src/parser/parse_properties.rs:158
↓ 1 callersFunctionparse_layout_mode_property
Convenience function use by layouts to load a mode property defined in a .ez file. Looks like: "box"
src/parser/parse_properties.rs:241
↓ 1 callersFunctionparse_layout_orientation_property
Convenience function use by layouts to load an orientation property defined in a .ez file. Looks like: "horizontal"
src/parser/parse_properties.rs:264
↓ 1 callersFunctionparse_size_hint_property
Convenience function use by widgets to load a size_hint property defined in a .ez file. Looks like "0.33" or "1/3"
src/parser/parse_properties.rs:87
↓ 1 callersFunctionparse_valign_property
Convenience function use by widgets to load a vertical alignment defined in a .ez file Looks like: "bottom"
src/parser/parse_properties.rs:308
↓ 1 callersFunctionparse_vertical_pos_hint_property
Convenience function use by widgets to load a pos_hint_y property defined in a .ez file Looks like "pos_hint_y: bottom: 0.9"
src/parser/parse_properties.rs:197
↓ 1 callersFunctionredraw_changed_widgets
Redraw widgets to the ViewTree (ViewTree diffs are written to screen at each frame). If a forced_redraw (global screen rewrite) is queued, widgets are
src/run/terminal.rs:55
↓ 1 callersFunctionredraw_widgets
Redraw a list of widgets to a ViewTree.
src/run/terminal.rs:72
↓ 1 callersMethodremove_global_key
Remove one specific global key bind. # Parameters: - key: KeyCode - modifiers: Option<Vec<KeyModifiers>> # Example: We'll remove the key combinati
src/scheduler/scheduler.rs:1763
↓ 1 callersFunctionremove_widgets
( scheduler: &mut SchedulerFrontend, root_widget: &mut Layout, state_tree: &mut StateTree, cal
src/scheduler/scheduler_funcs.rs:150
↓ 1 callersFunctionresolve_parent_path
Resolve a parent containing path that was passed in an Ez file property. E.g. 'parent.parent.label.size' becomes /root/layout_1/layout_2/label/size
src/parser/load_base_properties.rs:66
↓ 1 callersFunctionrun_loop
Main loop of the app. Consumes Crossterm events to handle key/mouse input. The app works with three trees in order play nice with Rusts' "only one mut
src/run/run.rs:112
↓ 1 callersFunctionrun_tasks
Check if any scheduled tasks are ready to be run, or if any RunOnce tasks were scheduled by the user.
src/scheduler/scheduler_funcs.rs:62
↓ 1 callersFunctionselect_next
Select the next widget by selection order as defined in each selectable widget. If the last widget is currently selected wrap around and select the fi
src/run/select.rs:59
↓ 1 callersFunctionselect_previous
Select the previous widget by selection order as defined in each selectable widget. If the first widget is currently selected wrap around and select t
src/run/select.rs:127
↓ 1 callersFunctionselect_widget
Handle a widget being selected.
src/run/select.rs:15
↓ 1 callersMethodset_auto_scale_height
(&mut self, height: bool)
src/states/definitions.rs:338
↓ 1 callersMethodset_auto_scale_width
(&mut self, width: bool)
src/states/definitions.rs:330
↓ 1 callersMethodset_child_sizes
Set the sizes of children that use size_hint(s) using own proportions.
src/widgets/layout/children.rs:13
↓ 1 callersMethodset_contents
Set the content of this Widget. You must manually fill a [PixelMap] of the same [height] and [width] as this widget and pass it here.
src/states/canvas_state.rs:428
↓ 1 callersMethodset_height
(&mut self, height: usize)
src/states/ez_state.rs:389
↓ 1 callersMethodset_id
(&mut self, id: &str)
src/widgets/label.rs:84
↓ 1 callersMethodset_options
(&mut self, options: Vec<String>)
src/states/dropdown_state.rs:457
↓ 1 callersMethodset_orientation
Set [LayoutOrientation]
src/states/layout_state.rs:725
↓ 1 callersMethodset_original_height
(&mut self, height: usize)
src/states/definitions.rs:1274
↓ 1 callersMethodset_original_width
(&mut self, width: usize)
src/states/definitions.rs:1282
↓ 1 callersMethodset_pos_hint_x
(&mut self, x: HorizontalPosHint)
src/states/definitions.rs:422
↓ 1 callersMethodset_pos_hint_y
(&mut self, y: VerticalPosHint)
src/states/definitions.rs:430
↓ 1 callersMethodset_templates
Set templates. Used by [ez_parser] on the root layout to keep a hold of all templates defined by the user. They can be used to instantiate e.g. popups
src/states/layout_state.rs:902
↓ 1 callersMethodset_value
(&mut self, mut value: usize)
src/states/progress_bar_state.rs:441
↓ 1 callersMethodset_width
(&mut self, width: usize)
src/states/ez_state.rs:385
↓ 1 callersFunctionstart_new_threads
Any threads that are scheduled to be started will be spawned. Threads can be scheduled by the user.
src/scheduler/scheduler_funcs.rs:27
↓ 1 callersFunctionstop
Gracefully stop the app, restoring the terminal to its' original state.
src/run/run.rs:48
↓ 1 callersFunctiontest_checkbox_on_value_change
As an example we will change the label next to a checkbox to say "enabled" or "disabled" depending on the state of a checkbox.
examples/full_example.rs:256
↓ 1 callersMethodtop_bottom_left_right_content
( &self, state_tree: &mut StateTree, content_list: &[PixelMap], effective_size
src/widgets/layout/stack_mode.rs:479
↓ 1 callersMethodtop_bottom_right_left_content
( &self, state_tree: &mut StateTree, content_list: &[PixelMap], effective_size
src/widgets/layout/stack_mode.rs:545
↓ 1 callersFunctiontrigger_update_funcs
Execute update func for each property subscribed to another.
src/scheduler/scheduler_funcs.rs:335
↓ 1 callersFunctionupdate_callback_configs
Check if any callback configs were scheduled to be updated or replaced.
src/scheduler/scheduler_funcs.rs:202
↓ 1 callersMethodupdate_from
Update this CallbackConfig using another CallbackConfig. Any fields that are not None on the other object will be copied.
src/states/definitions.rs:1021
↓ 1 callersFunctionupdate_properties
Check all EzProperty that have at least one subscriber and check if they've send a new value. If so, call the update func of all subscribers and any r
src/scheduler/scheduler_funcs.rs:239
↓ 1 callersFunctionupdate_threads
Check if any new thread are ready to be spawned, or if any spawned threads are ready to be joined.
src/scheduler/scheduler_funcs.rs:19
↓ 1 callersMethodwidth
Get the current width of the view tree.
src/run/tree.rs:696
↓ 1 callersFunctionwrap_usize_property
In EzLang it's possible to use math (e.g. widget1.height - widget2.height + 5). This function wraps a usize update method in a new update method that
src/parser/load_base_properties.rs:120
↓ 1 callersMethodwrite_pixel
Write a pixel to the ViewTree. To write [PixelMap]s use [write_content].
src/run/tree.rs:688
Methodadd
(self, rhs: usize)
src/property/ez_property.rs:184
Methodas_bool
Get a mutable ref [EzProperty<bool>] from this enum. You must be sure this is a bool property or it will panic.
src/property/ez_properties.rs:155
Methodas_bool_mut
Get a mutable ref [EzProperty<bool>] from this enum. You must be sure this is a bool property or it will panic.
src/property/ez_properties.rs:165
Methodas_button
Cast this state as a Button widget state ref, you must be sure you have one.
src/run/tree.rs:505
Methodas_button_mut
Cast this state as a mutable Button widget state ref, you must be sure you have one.
src/states/ez_state.rs:164
Methodas_canvas
Cast this state as a Canvas widget state ref, you must be sure you have one.
src/run/tree.rs:469
Methodas_canvas_mut
Cast this state as a mutable Canvas widget state ref, you must be sure you have one.
src/states/ez_state.rs:128
Methodas_checkbox_mut
Cast this state as a mutable Checkbox widget state ref, you must be sure you have one.
src/states/ez_state.rs:218
Methodas_color
Get a mutable ref [EzProperty<Color>] from this enum. You must be sure this is a Color property or it will panic.
src/property/ez_properties.rs:175
Methodas_color_mut
Get a mutable ref [EzProperty<Color>] from this enum. You must be sure this is a color property or it will panic.
src/property/ez_properties.rs:185
Methodas_dropdown_mut
Cast this state as a mutable Dropdown widget state ref, you must be sure you have one.
src/states/ez_state.rs:236
Methodas_dropped_down_menu
Cast this state as a dropped down menu modal state ref, you must be sure you have one.
src/states/ez_state.rs:245
Methodas_dropped_down_menu
Cast this state as a dropped down menu modal state ref, you must be sure you have one.
src/run/tree.rs:595
Methodas_dropped_down_menu_mut
Cast this state as a mutable dropped down menu modal state ref, you must be sure you have one.
src/states/ez_state.rs:254
Methodas_dropped_down_menu_mut
Cast this state as a mutable dropped down menu modal state ref, you must be sure you have one.
src/run/tree.rs:604
Methodas_f64
Get a [EzProperty<f64>] ref from this enum. You must be sure this is an f64 property or it will panic.
src/property/ez_properties.rs:115
Methodas_f64_mut
Get a mutable ref [EzProperty<f64>] from this enum. You must be sure this is an f64 property or it will panic.
src/property/ez_properties.rs:125
← previousnext →501–600 of 1,238, ranked by callers