Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PoignardAzur/panoramix
/ functions
Functions
370 in github.com/PoignardAzur/panoramix
⨍
Functions
370
◇
Types & classes
94
↓ 65 callers
Method
clone
(&self)
src/elements/any_element.rs:62
↓ 29 callers
Method
get_root_debug_state
Retrieve a copy of the root widget's `DebugState` (and by recursion, all others)
src/test_harness.rs:91
↓ 28 callers
Function
make_list
(keys: &[i32])
src/elements/compute_diff.rs:95
↓ 16 callers
Function
compute_diff
( old_list: &[(Key, T1)], new_list: &[(Key, T2)], )
src/elements/compute_diff.rs:42
↓ 16 callers
Function
error
(tokens: impl ToTokens, message: impl Display)
panoramix-derive/src/component.rs:9
↓ 14 callers
Method
update_root_element
Update the entire harness with a new element, which replaces the one passed to [`Harness::run_test_window`]. This is especially useful to test implem
src/test_harness.rs:113
↓ 11 callers
Method
widget
(&self)
src/widgets/single_widget.rs:26
↓ 9 callers
Method
build
(self, _prev_state: ())
src/elements/label.rs:72
↓ 9 callers
Method
mouse_click_on
Send events that lead to a given widget being clicked. Combines [`mouse_move`](Self::mouse_move), [`mouse_button_press`](Self::mouse_button_press), a
src/test_harness.rs:154
↓ 9 callers
Method
on_click
Provide a closure to be called when this button is clicked.
src/elements/button.rs:74
↓ 9 callers
Method
widget_mut
(&mut self)
src/widgets/single_widget.rs:30
↓ 8 callers
Method
next_space
(&mut self)
src/widgets/flex_widget.rs:322
↓ 7 callers
Method
major
(self, coords: Size)
src/flex.rs:125
↓ 7 callers
Method
with_reserved_id
For unit tests only. The button created by this element always has the same id. If two widgets are created with the same id (for instance, because th
src/elements/button.rs:66
↓ 6 callers
Method
as_mut_any
(&mut self)
src/elements/any_element.rs:32
↓ 6 callers
Method
child_mut
(&mut self)
src/widgets/clickable_widget.rs:34
↓ 6 callers
Method
get_local_state
Returns the local state of the current component instance. The local state of a component is initialized to a default value when a component is first
src/ctx.rs:41
↓ 5 callers
Method
build
( self, prev_state: Self::AggregateChildrenState, )
src/elements/flex_element.rs:106
↓ 5 callers
Method
dequeue_action
(&mut self, id: WidgetId)
src/glue.rs:44
↓ 5 callers
Method
event
(&mut self, ctx: &mut EventCtx, event: &Event, data: &mut DruidAppData, env: &Env)
src/root_handler.rs:171
↓ 5 callers
Method
id
(&self)
src/widgets/button_widget.rs:36
↓ 5 callers
Method
on
Bind callback to an event. When an event is emitted that matches the EventParam type (TODO - see [`ParentEvent`] for details), call the given callbac
src/element_tree.rs:103
↓ 5 callers
Method
set_origin
(&mut self, ctx: &mut LayoutCtx, data: &DruidAppData, env: &Env, origin: Point)
src/widgets/single_widget.rs:86
↓ 5 callers
Method
widgets_mut
(&mut self)
src/widgets/widget_list.rs:16
↓ 4 callers
Method
baseline_offset
(&self)
src/widgets/single_widget.rs:94
↓ 4 callers
Method
build
( self, prev_state: Self::AggregateChildrenState, )
src/elements/element_option.rs:17
↓ 4 callers
Method
build
( self, prev_state: Self::AggregateChildrenState, )
src/elements/element_list.rs:87
↓ 4 callers
Method
child_mut
(&mut self)
src/widgets/styled_container.rs:38
↓ 4 callers
Method
flex_params
(&self)
src/widgets/single_widget.rs:44
↓ 4 callers
Method
layout_rect
(&self)
src/widgets/single_widget.rs:90
↓ 4 callers
Method
minor
(self, coords: Size)
src/flex.rs:132
↓ 4 callers
Function
new_label_list
(names: &[&str])
src/elements/element_list.rs:267
↓ 4 callers
Method
queue_action
(&mut self, id: WidgetId, action: Action)
src/glue.rs:40
↓ 4 callers
Method
request_druid_update
(&mut self, ctx: &mut EventCtx)
src/widgets/single_widget.rs:34
↓ 3 callers
Method
constraints
Generate constraints with new values on the major axis.
src/flex.rs:147
↓ 3 callers
Method
init_tree
(&self)
src/elements/element_option.rs:36
↓ 3 callers
Method
launch
Start the application.
src/root_handler.rs:294
↓ 3 callers
Method
pack
(self, major: f64, minor: f64)
src/flex.rs:139
↓ 3 callers
Method
set_background
Set the background for this widget. This can be passed anything which can be represented by a [`BackgroundBrush`]; noteably, it can be any [`Color`],
src/widgets/styled_container.rs:69
↓ 3 callers
Method
with_tracing
(self, init_tracing: bool)
src/root_handler.rs:286
↓ 2 callers
Method
as_any
(&self)
src/elements/any_element.rs:28
↓ 2 callers
Method
dyn_clone
(&self)
src/elements/any_element.rs:36
↓ 2 callers
Method
event_queue
( &mut self, md: Metadata<ComponentEvent, ComponentState>, )
src/ctx.rs:77
↓ 2 callers
Method
get_state
Retrieve a copy of this widget's `WidgetState`, or die trying.
src/test_harness.rs:81
↓ 2 callers
Method
init
(&mut self, ctx: &mut EventCtx)
src/root_handler.rs:66
↓ 2 callers
Method
map_event
Map events from the element to events of the parent component. When an event is emitted that matches the EventParam type (TODO - see [`ParentEvent`]
src/element_tree.rs:131
↓ 2 callers
Method
mouse_move
Move an internal mouse state, and send a MouseMove event to the window.
src/test_harness.rs:123
↓ 2 callers
Function
new_mock_list
(names: &[&str])
src/elements/element_list.rs:275
↓ 2 callers
Method
next
(&mut self)
src/widgets/flex_widget.rs:333
↓ 2 callers
Method
on_text_changed
Provide a closure to be called when this box is edited.
src/elements/textbox.rs:82
↓ 2 callers
Method
process_local_event
( &self, _children_state: &mut Self::AggregateChildrenState, widget: &mut ButtonWidget
src/elements/button.rs:120
↓ 2 callers
Method
set_border
Paint a border around the widget with a color and width. Arguments can be either concrete values, or a [`Key`] of the respective type. [`Key`]: stru
src/widgets/styled_container.rs:99
↓ 2 callers
Method
set_rounded
Round off corners of this container by setting a corner radius
src/widgets/styled_container.rs:122
↓ 2 callers
Method
state
( &mut self, md: Metadata<ComponentEvent, ComponentState>, )
src/ctx.rs:93
↓ 2 callers
Method
with_flex_container_params
(self, flex_container: FlexContainerParams)
src/elements/flex_element.rs:64
↓ 1 callers
Method
align
Given the difference between the size of the container and the size of the child (on their minor axis) return the necessary offset for this alignment.
src/widgets/flex_widget.rs:274
↓ 1 callers
Method
any_widgets
(&self)
src/widgets/any_widget_seq.rs:24
↓ 1 callers
Method
any_widgets_mut
(&mut self)
src/widgets/any_widget_seq.rs:28
↓ 1 callers
Method
build
(self, _prev_state: ())
src/elements/button.rs:91
↓ 1 callers
Method
build
(self, prev_state: MockState)
src/elements/mock_component.rs:84
↓ 1 callers
Method
build
(self, _prev_state: ())
src/elements/textbox.rs:99
↓ 1 callers
Method
build
( self, prev_state: Self::AggregateChildrenState, )
src/elements/clickable.rs:69
↓ 1 callers
Method
build
( &mut self, prev_state: Option<AnyStateBox>, )
src/elements/any_element.rs:119
↓ 1 callers
Method
build
TODO - add spans
src/elements/component.rs:138
↓ 1 callers
Method
build
(self, _prev_state: ())
src/elements/checkbox.rs:100
↓ 1 callers
Method
build
(self, _prev_state: ())
src/elements/empty.rs:48
↓ 1 callers
Method
children_mut
(&mut self)
src/widgets/clickable_widget.rs:123
↓ 1 callers
Method
dyn_eq
(&self, other: &Box<dyn AnyState>)
src/elements/any_element.rs:40
↓ 1 callers
Method
eq
(&self, other: &Self)
src/elements/any_element.rs:76
↓ 1 callers
Function
find_next_common_item
( old_list: &[(Key, T1)], new_list: &[(Key, T2)], cursor_old: usize, cursor_new: usize, )
src/elements/compute_diff.rs:25
↓ 1 callers
Method
id
(&self)
src/widgets/textbox_widget.rs:35
↓ 1 callers
Method
id
(&self)
src/widgets/checkbox_widget.rs:35
↓ 1 callers
Function
init_tracing
()
src/glue.rs:64
↓ 1 callers
Method
init_tree
(&self)
src/elements/label.rs:89
↓ 1 callers
Method
init_tree
(&self)
src/elements/element_list.rs:147
↓ 1 callers
Method
keyboard_key
Send a KeyDown and a KeyUp event to the window.
src/test_harness.rs:172
↓ 1 callers
Method
mouse_button_press
Send a MouseDown event to the window.
src/test_harness.rs:134
↓ 1 callers
Method
mouse_button_release
Send a MouseUp event to the window.
src/test_harness.rs:143
↓ 1 callers
Method
paint_rect
(&self)
src/widgets/single_widget.rs:82
↓ 1 callers
Function
parse_return_ty
(return_ty: syn::Type)
panoramix-derive/src/component.rs:186
↓ 1 callers
Method
process_event
( &self, _comp_ctx: &mut ProcessEventCtx, children_state: &mut Self::AggregateChildren
src/elements/component.rs:233
↓ 1 callers
Method
reconcile
( &self, prev_value: &Self, widget: &mut Self::TargetWidgetSeq, ctx: &mut Reco
src/elements/label.rs:95
↓ 1 callers
Method
run
( &mut self, ctx: &mut EventCtx, data: &mut DruidAppData, env: &Env, f
src/root_handler.rs:96
↓ 1 callers
Method
set_origin
(&mut self, ctx: &mut LayoutCtx, data: &DruidAppData, env: &Env, origin: Point)
src/widgets/clickable_widget.rs:176
↓ 1 callers
Method
submit_command
Send a druid command through the widget tree.
src/test_harness.rs:106
↓ 1 callers
Method
to_option
(self)
src/elements/with_event.rs:16
↓ 1 callers
Method
widgets
(&self)
src/widgets/any_widget_seq.rs:40
↓ 1 callers
Method
widgets
(&self)
src/widgets/clickable_widget.rs:198
↓ 1 callers
Method
widgets
(&self)
src/widgets/widget_list.rs:9
↓ 1 callers
Method
widgets_mut
(&mut self)
src/widgets/any_widget_seq.rs:44
↓ 1 callers
Method
widgets_mut
(&mut self)
src/widgets/clickable_widget.rs:202
↓ 1 callers
Method
with_flex_params
Change the way the label's size is calculated
src/elements/label.rs:45
↓ 1 callers
Method
with_reserved_id
For unit tests only. The textbox created by this element always has the same id. If two widgets are created with the same id (for instance, because t
src/elements/textbox.rs:74
↓ 1 callers
Method
with_reserved_id
For unit tests only. The widget created by this element always has the same id. If two widgets are created with the same id (for instance, because th
src/elements/clickable.rs:44
↓ 1 callers
Method
with_reserved_id
For unit tests only. The checkbox created by this element always has the same id. If two widgets are created with the same id (for instance, because
src/elements/checkbox.rs:75
Function
AwesomeEditableList
(ctx: &CompCtx, _props: ())
tests/all_elements.rs:69
Function
AwesomeEditableList
(ctx: &CompCtx, _props: ())
examples/todo_list.rs:72
Function
AwesomeEditableList
(ctx: &CompCtx, _props: ())
examples/list.rs:67
Function
CorrectMetadata
(ctx: &CompCtx, id: WidgetId)
tests/metadata.rs:44
Function
EmptyComponent
(_ctx: &CompCtx, _my_props: ())
panoramix-derive/tests/empty_component.rs:7
next →
1–100 of 370, ranked by callers