pub struct FlexBox { /* private fields */ }Implementations§
Source§impl FlexBox
impl FlexBox
pub fn key(&self, _key: u64) -> &Self
pub fn width(&self, width: f32, unit: Unit) -> &Self
pub fn width_len(&self, length: Length) -> &Self
pub fn height(&self, height: f32, unit: Unit) -> &Self
pub fn height_len(&self, length: Length) -> &Self
pub fn fill_width(&self) -> &Self
pub fn fill_height(&self) -> &Self
pub fn fill_size(&self) -> &Self
pub fn fill_width_percent(&self, percent: f32) -> &Self
pub fn fill_height_percent(&self, percent: f32) -> &Self
pub fn bg_color(&self, color: u32) -> &Self
pub fn padding(&self, left: f32, top: f32, right: f32, bottom: f32) -> &Self
pub fn flex_direction(&self, direction: FlexDirection) -> &Self
pub fn corner_radius(&self, radius: f32) -> &Self
pub fn corners(&self, tl: f32, tr: f32, br: f32, bl: f32) -> &Self
pub fn border(&self, width: f32, color: u32) -> &Self
pub fn border_config(&self, border: Border) -> &Self
pub fn opacity(&self, value: f32) -> &Self
pub fn transitions(&self, transitions: Option<NodeTransitions>) -> &Self
pub fn blur(&self, sigma: f32) -> &Self
pub fn drop_shadow( &self, color: u32, offset_x: f32, offset_y: f32, blur_sigma: f32, spread: f32, ) -> &Self
pub fn background_blur(&self, sigma: f32) -> &Self
pub fn linear_gradient( &self, sx: f32, sy: f32, ex: f32, ey: f32, offsets: Vec<f32>, colors: Vec<u32>, ) -> &Self
pub fn linear_gradient_stops( &self, sx: f32, sy: f32, ex: f32, ey: f32, stops: Vec<GradientStop>, ) -> &Self
pub fn interactive(&self, interactive: bool) -> &Self
pub fn enabled(&self, enabled: bool) -> &Self
pub fn focusable(&self, enabled: bool, tab_index: i32) -> &Self
pub fn cursor(&self, style: CursorStyle) -> &Self
pub fn node_id(&self, node_id: impl Into<String>) -> &Self
pub fn semantic_role(&self, role: SemanticRole) -> &Self
pub fn semantic_label(&self, label: impl Into<String>) -> &Self
pub fn semantic_disabled(&self, disabled: bool) -> &Self
pub fn semantic_checked(&self, state: SemanticCheckedState) -> &Self
pub fn semantic_selected(&self, selected: bool) -> &Self
pub fn semantic_value_range( &self, value_now: f32, value_min: f32, value_max: f32, ) -> &Self
pub fn semantic_orientation(&self, orientation: Orientation) -> &Self
pub fn request_semantic_announcement(&self) -> &Self
pub fn visibility(&self, visibility: Visibility) -> &Self
pub fn portal(&self, is_portal: bool) -> &Self
pub fn min_width(&self, value: f32, unit: Unit) -> &Self
pub fn min_width_len(&self, length: Length) -> &Self
pub fn max_width(&self, value: f32, unit: Unit) -> &Self
pub fn max_width_len(&self, length: Length) -> &Self
pub fn min_height(&self, value: f32, unit: Unit) -> &Self
pub fn min_height_len(&self, length: Length) -> &Self
pub fn max_height(&self, value: f32, unit: Unit) -> &Self
pub fn max_height_len(&self, length: Length) -> &Self
pub fn flex_basis(&self, basis: f32) -> &Self
pub fn justify_content(&self, justify: JustifyContent) -> &Self
pub fn align_items(&self, align: AlignItems) -> &Self
pub fn align_self(&self, align: AlignSelf) -> &Self
pub fn margin(&self, left: f32, top: f32, right: f32, bottom: f32) -> &Self
pub fn apply_presenter_style(&self, style: PresenterHostStyle) -> &Self
pub fn clear_presenter_style(&self) -> &Self
pub fn clear_bg_color(&self) -> &Self
pub fn clear_padding(&self) -> &Self
pub fn clear_corners(&self) -> &Self
pub fn clear_border(&self) -> &Self
pub fn clear_drop_shadow(&self) -> &Self
pub fn clear_opacity(&self) -> &Self
pub fn clear_flex_direction(&self) -> &Self
pub fn clear_justify_content(&self) -> &Self
pub fn clear_align_items(&self) -> &Self
pub fn clear_cursor(&self) -> &Self
pub fn resolved_host_style(&self) -> PresenterHostStyle
pub fn position_type(&self, position_type: PositionType) -> &Self
pub fn position(&self, left: f32, top: f32) -> &Self
pub fn custom_drawable(&self, enabled: bool) -> &Self
pub fn flex_wrap(&self, wrap: FlexWrap) -> &Self
pub fn clip_to_bounds(&self, clip: bool) -> &Self
pub fn selection_area(&self, enabled: bool) -> &Self
pub fn selection_area_barrier(&self, enabled: bool) -> &Self
pub fn on_pointer_click( &self, handler: impl Fn(&mut PointerEventArgs) + 'static, ) -> &Self
pub fn on_pointer_down( &self, handler: impl Fn(&mut PointerEventArgs) + 'static, ) -> &Self
pub fn on_pointer_move( &self, handler: impl Fn(&mut PointerEventArgs) + 'static, ) -> &Self
pub fn on_pointer_up( &self, handler: impl Fn(&mut PointerEventArgs) + 'static, ) -> &Self
pub fn on_pointer_enter( &self, handler: impl Fn(&mut PointerEventArgs) + 'static, ) -> &Self
pub fn on_pointer_leave( &self, handler: impl Fn(&mut PointerEventArgs) + 'static, ) -> &Self
pub fn on_pointer_cancel( &self, handler: impl Fn(&mut PointerEventArgs) + 'static, ) -> &Self
pub fn on_wheel(&self, handler: impl Fn(&mut WheelEventArgs) + 'static) -> &Self
pub fn on_pan_gesture( &self, handler: impl Fn(&mut GestureEventArgs) + 'static, ) -> &Self
pub fn on_pinch_gesture( &self, handler: impl Fn(&mut GestureEventArgs) + 'static, ) -> &Self
pub fn long_press_options( &self, minimum_duration_ms: i32, movement_tolerance: f32, ) -> &Self
pub fn on_long_press( &self, handler: impl Fn(&mut LongPressEventArgs) + 'static, ) -> &Self
pub fn on_key_down( &self, handler: impl Fn(&mut KeyEventArgs) + 'static, ) -> &Self
pub fn on_key_up(&self, handler: impl Fn(&mut KeyEventArgs) + 'static) -> &Self
pub fn on_focus_changed( &self, handler: impl Fn(FocusChangedEventArgs) + 'static, ) -> &Self
pub fn child<T: Node>(&self, child: &T) -> &Self
pub fn children<I, C>(&self, children: I) -> &Self
Trait Implementations§
Source§impl HasFlexBoxRoot for FlexBox
impl HasFlexBoxRoot for FlexBox
fn flex_box_root(&self) -> &FlexBox
Source§impl Node for FlexBox
impl Node for FlexBox
fn node_id(&self, node_id: impl Into<String>) -> &Selfwhere
Self: Sized,
fn semantic_role(&self, role: SemanticRole) -> &Selfwhere
Self: Sized,
fn semantic_label(&self, label: impl Into<String>) -> &Selfwhere
Self: Sized,
fn semantic_checked(&self, state: SemanticCheckedState) -> &Selfwhere
Self: Sized,
fn semantic_disabled(&self, disabled: bool) -> &Selfwhere
Self: Sized,
fn clear_semantic_disabled(&self) -> &Selfwhere
Self: Sized,
fn semantic_selected(&self, selected: bool) -> &Selfwhere
Self: Sized,
fn clear_semantic_selected(&self) -> &Selfwhere
Self: Sized,
fn semantic_expanded(&self, expanded: bool) -> &Selfwhere
Self: Sized,
fn clear_semantic_expanded(&self) -> &Selfwhere
Self: Sized,
fn semantic_value_range(
&self,
value_now: f32,
value_min: f32,
value_max: f32,
) -> &Selfwhere
Self: Sized,
fn clear_semantic_value_range(&self) -> &Selfwhere
Self: Sized,
fn semantic_orientation(&self, orientation: Orientation) -> &Selfwhere
Self: Sized,
fn request_semantic_announcement(&self) -> &Selfwhere
Self: Sized,
fn child_count(&self) -> usize
fn is_enabled(&self) -> bool
fn is_visible(&self) -> bool
fn cursor_style(&self) -> CursorStyle
fn persist_state(&self, adapter: Rc<dyn PersistedStateAdapter>) -> &Selfwhere
Self: Sized,
fn handle(&self) -> NodeHandle
fn has_built_handle(&self) -> bool
Source§fn on_pointer_click(
&self,
handler: impl Fn(&mut PointerEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn on_pointer_click(
&self,
handler: impl Fn(&mut PointerEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
Handles the low-level routed pointer-click event. Read more
Source§fn on_pointer_double_click(
&self,
handler: impl Fn(&mut PointerEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn on_pointer_double_click(
&self,
handler: impl Fn(&mut PointerEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
Handles a low-level routed pointer double-click after the ordinary pointer-click callback.
Source§fn on_pointer_triple_click(
&self,
handler: impl Fn(&mut PointerEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn on_pointer_triple_click(
&self,
handler: impl Fn(&mut PointerEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
Handles a low-level routed pointer triple-click after the ordinary pointer-click callback.
fn on_pointer_down(
&self,
handler: impl Fn(&mut PointerEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn on_pointer_move(
&self,
handler: impl Fn(&mut PointerEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn on_pointer_up(
&self,
handler: impl Fn(&mut PointerEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn on_pointer_enter(
&self,
handler: impl Fn(&mut PointerEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn on_pointer_leave(
&self,
handler: impl Fn(&mut PointerEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn on_pointer_cancel(
&self,
handler: impl Fn(&mut PointerEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn on_wheel(&self, handler: impl Fn(&mut WheelEventArgs) + 'static) -> &Selfwhere
Self: Sized,
fn on_pan_gesture(
&self,
handler: impl Fn(&mut GestureEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn on_pinch_gesture(
&self,
handler: impl Fn(&mut GestureEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn long_press_options(
&self,
minimum_duration_ms: i32,
movement_tolerance: f32,
) -> &Selfwhere
Self: Sized,
fn on_long_press(
&self,
handler: impl Fn(&mut LongPressEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn focusable(&self, enabled: bool, tab_index: i32) -> &Selfwhere
Self: Sized,
fn focus_now(&self) -> &Selfwhere
Self: Sized,
fn enabled(&self, enabled: bool) -> &Selfwhere
Self: Sized,
fn visibility(&self, visibility: Visibility) -> &Selfwhere
Self: Sized,
fn cursor(&self, style: CursorStyle) -> &Selfwhere
Self: Sized,
fn clear_cursor(&self) -> &Selfwhere
Self: Sized,
fn on_key_down(&self, handler: impl Fn(&mut KeyEventArgs) + 'static) -> &Selfwhere
Self: Sized,
fn on_key_up(&self, handler: impl Fn(&mut KeyEventArgs) + 'static) -> &Selfwhere
Self: Sized,
fn on_focus_changed(
&self,
handler: impl Fn(FocusChangedEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn drag_allowed_effects(&self, effects: DragDropEffects) -> &Selfwhere
Self: Sized,
fn drag_data(
&self,
handler: impl Fn() -> Option<DragDataObject> + 'static,
) -> &Selfwhere
Self: Sized,
fn clear_drag_data(&self) -> &Selfwhere
Self: Sized,
fn allow_drop(&self, flag: bool) -> &Selfwhere
Self: Sized,
fn on_drag_completed(
&self,
handler: impl Fn(DragCompletedEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn on_drag_enter(
&self,
handler: impl Fn(DragEventArgs) -> DropProposal + 'static,
) -> &Selfwhere
Self: Sized,
fn on_drag_over(
&self,
handler: impl Fn(DragEventArgs) -> DropProposal + 'static,
) -> &Selfwhere
Self: Sized,
fn on_drag_leave(&self, handler: impl Fn(DragEventArgs) + 'static) -> &Selfwhere
Self: Sized,
fn on_drop(&self, handler: impl Fn(DragEventArgs) + 'static) -> &Selfwhere
Self: Sized,
fn allow_external_drop(&self, flag: bool) -> &Selfwhere
Self: Sized,
fn on_external_drag_enter(
&self,
handler: impl Fn(ExternalDropEventArgs) -> DropProposal + 'static,
) -> &Selfwhere
Self: Sized,
fn on_external_drag_over(
&self,
handler: impl Fn(ExternalDropEventArgs) -> DropProposal + 'static,
) -> &Selfwhere
Self: Sized,
fn on_external_drag_leave(
&self,
handler: impl Fn(ExternalDropEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn on_external_drop(
&self,
handler: impl Fn(ExternalDropEventArgs) + 'static,
) -> &Selfwhere
Self: Sized,
fn get_bounds(&self) -> [f32; 4]
fn absolute_to_local_position( &self, absolute_x: f32, absolute_y: f32, ) -> [f32; 2]
fn local_to_absolute_position(&self, local_x: f32, local_y: f32) -> [f32; 2]
fn ensure_handle(&self)
fn build(&self)
fn dispose(&self)
fn build_children(&self)
fn append_child<T: Node>(&self, child: &T)
fn remove_child<T: Node>(&self, child: &T) -> bool
fn parent_handle(&self) -> Option<NodeHandle>
fn notify_retained_layout_mutation(&self)
fn notify_retained_mutation(&self)
fn notify_retained_child_layout_changed(&self)
fn preserve_selection_on_pointer_down(&self, preserve: bool) -> &Selfwhere
Self: Sized,
fn tool_tip(&self, tool_tip: ToolTip) -> &Selfwhere
Self: Sized,
fn tool_tip_text(&self, text: impl Into<String>) -> &Selfwhere
Self: Sized,
fn clear_tool_tip(&self) -> &Selfwhere
Self: Sized,
Source§impl ThemeBindable for FlexBox
impl ThemeBindable for FlexBox
fn bind_theme(&self, handler: impl Fn(&Self, Theme) + 'static) -> &Self
Auto Trait Implementations§
impl !RefUnwindSafe for FlexBox
impl !Send for FlexBox
impl !Sync for FlexBox
impl !UnwindSafe for FlexBox
impl Freeze for FlexBox
impl Unpin for FlexBox
impl UnsafeUnpin for FlexBox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more