MCPcopy Create free account

hub / github.com/ddbnl/ez_term / functions

Functions1,238 in github.com/ddbnl/ez_term

↓ 8 callersMethodget_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 callersMethodget_filler_content
( &self, effective_size: &Size, colors: &ColorConfig, fill: bool, fill
src/widgets/layout/stack_mode.rs:745
↓ 8 callersMethodget_infinite_size_mut
(&mut self)
src/states/label_state.rs:332
↓ 8 callersMethodget_min
(&self)
src/states/slider_state.rs:472
↓ 8 callersMethodget_padding
(&self)
src/states/layout_state.rs:503
↓ 8 callersMethodget_padding_top
(&self)
src/states/definitions.rs:1831
↓ 8 callersMethodget_state
(&self)
src/widgets/label.rs:100
↓ 8 callersMethodget_step
(&self)
src/states/slider_state.rs:494
↓ 8 callersMethodon_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 callersMethodset_view_start
(&mut self, view_start: usize)
src/states/text_input_state.rs:508
↓ 7 callersMethodas_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 callersMethoddismiss_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 callersMethodget_active
(&self)
src/states/checkbox_state.rs:455
↓ 7 callersMethodget_color_config_mut
(&mut self)
src/states/label_state.rs:388
↓ 7 callersMethodget_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 callersMethodget_is_scrolling_x
(&self)
src/states/definitions.rs:1294
↓ 7 callersMethodget_is_scrolling_y
(&self)
src/states/definitions.rs:1302
↓ 7 callersMethodget_mode
Get [LayoutMode]
src/states/layout_state.rs:720
↓ 7 callersMethodget_original_height
(&self)
src/states/definitions.rs:1278
↓ 7 callersMethodget_original_width
(&self)
src/states/definitions.rs:1286
↓ 7 callersMethodget_padding_left
(&self)
src/states/definitions.rs:1847
↓ 7 callersMethodget_path
(&self)
src/widgets/text_input.rs:104
↓ 7 callersMethodget_scroll_start_y
(&self)
src/states/definitions.rs:1270
↓ 7 callersMethodget_view_page
(&self)
src/states/layout_state.rs:874
↓ 7 callersMethodon_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 callersMethodusize_x
(&self)
src/run/definitions.rs:38
↓ 6 callersMethodcreate_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 callersMethodget_all
Get object refs in the tree recursively, including self.
src/run/tree.rs:363
↓ 6 callersMethodget_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 callersMethodget_fill
Get [fill]
src/states/layout_state.rs:808
↓ 6 callersMethodget_filler_bg_color
(&self)
src/states/definitions.rs:1744
↓ 6 callersMethodget_filler_fg_color
(&self)
src/states/definitions.rs:1736
↓ 6 callersMethodget_filler_symbol
Get [filler_symbol]
src/states/layout_state.rs:818
↓ 6 callersMethodget_id
(&self)
src/widgets/layout/layout.rs:265
↓ 6 callersMethodget_orientation
Get [LayoutOrientation]
src/states/layout_state.rs:730
↓ 6 callersMethodget_padding_bottom
(&self)
src/states/definitions.rs:1839
↓ 6 callersMethodget_path
(&self)
src/widgets/slider.rs:118
↓ 6 callersMethodget_path
(&self)
src/widgets/radio_button.rs:124
↓ 6 callersMethodget_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 callersMethodon_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 callersMethodremove_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 callersMethodschedule_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 callersMethodset_absolute_position
(&mut self, pos: IsizeCoordinates)
src/states/label_state.rs:344
↓ 6 callersMethodset_fg_color
(&mut self, color: Color)
src/states/definitions.rs:1620
↓ 6 callersMethodset_scroll_start_x
(&mut self, view_start: f64)
src/states/definitions.rs:1258
↓ 6 callersMethodset_scroll_start_y
(&mut self, view_start: f64)
src/states/definitions.rs:1266
↓ 6 callersMethodset_view_page
(&mut self, page: usize)
src/states/layout_state.rs:870
↓ 5 callersMethodas_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 callersMethodas_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 callersMethodas_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 callersMethodas_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 callersMethodas_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 callersMethoddeselect_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 callersMethodforce_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 callersMethodget_absolute_scroll_start_x
(&self, effective_widget_width: usize)
src/states/definitions.rs:1314
↓ 5 callersMethodget_absolute_scroll_start_y
(&self, effective_widget_height: usize)
src/states/definitions.rs:1327
↓ 5 callersMethodget_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 callersMethodget_child
Get a specific child ref by its' [id]
src/widgets/layout/children.rs:324
↓ 5 callersMethodget_choice
(&self)
src/states/dropdown_state.rs:453
↓ 5 callersMethodget_col_default_width
(&self)
src/states/definitions.rs:163
↓ 5 callersMethodget_padding_right
(&self)
src/states/definitions.rs:1855
↓ 5 callersMethodget_path
(&self)
src/widgets/button.rs:94
↓ 5 callersMethodget_row_default_height
(&self)
src/states/definitions.rs:155
↓ 5 callersMethodget_selected_tab_header
Get the tab header that is currently selected
src/states/layout_state.rs:773
↓ 5 callersMethodget_selection_order
(&self)
src/states/label_state.rs:400
↓ 5 callersMethodget_view_size
(&self)
src/states/layout_state.rs:866
↓ 5 callersFunctionget_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 callersMethodoverwrite_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 callersMethodprepare_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 callersMethodschedule_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 callersMethodschedule_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 callersMethodset_dropped_down_selected_row
(&mut self, dropped_down_selected_row: usize)
src/states/dropdown_state.rs:795
↓ 4 callersMethodas_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 callersMethodclean_up_properties
(&self, scheduler: &mut SchedulerFrontend)
src/states/definitions.rs:183
↓ 4 callersMethodcollides_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 callersMethodget_border_config
(&self)
src/states/layout_state.rs:511
↓ 4 callersMethodget_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 callersMethodget_from_file
(&self)
src/states/label_state.rs:430
↓ 4 callersMethodget_modal
Get reference to all open modals
src/states/layout_state.rs:891
↓ 4 callersMethodget_padding_mut
(&mut self)
src/states/label_state.rs:372
↓ 4 callersMethodget_rows
(&self)
src/states/definitions.rs:139
↓ 4 callersMethodget_selection_fg_color
(&self)
src/states/definitions.rs:1640
↓ 4 callersMethodget_size_hint
(&self)
src/states/label_state.rs:296
↓ 4 callersMethodget_state_mut
(&mut self)
src/widgets/slider.rs:126
↓ 4 callersMethodget_state_mut
(&mut self)
src/widgets/radio_button.rs:132
↓ 4 callersFunctionload_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 callersMethodon_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 callersMethodopen_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 callersMethodset_active
(&mut self, active: bool)
src/states/checkbox_state.rs:451
↓ 4 callersMethodset_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 callersMethodset_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 callersMethodset_selected
(&mut self, state: bool)
src/states/button_state.rs:340
↓ 4 callersMethodset_selected_tab_header
Set the tab header that is currently selected
src/states/layout_state.rs:768
↓ 4 callersFunctionwidget_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 callersMethodwrite_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 callersMethodadd_child
Add a child ([layout] or [EzWidget]) to this layout.
src/widgets/layout/children.rs:221
↓ 3 callersFunctionalign_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 callersFunctionalign_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 callersMethodas_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 callersMethodas_layout
Cast this state as a layout state ref, you must be sure you have one.
src/states/ez_state.rs:101
← previousnext →101–200 of 1,238, ranked by callers