Skip to main content

InnerPopupMenuImpl_root_380

Struct InnerPopupMenuImpl_root_380 

Source
#[repr(C)]
pub struct InnerPopupMenuImpl_root_380 {
Show 33 fields root_380: WindowItem, focus_scope_382: FocusScope, frame_shadow_383: BoxShadow, frame_384: BasicBorderRectangle, frame_clip_385: Clip, sub_menu_389: ContextMenu, root_380_absolute_position: Property<LogicalPosition>, root_380_current_highlight: Property<i32>, root_380_current_highlight_y_pos: Property<LogicalLength>, root_380_current_open: Property<i32>, root_380_entries: Property<ModelRc<MenuEntry>>, root_380_frame_384_layoutinfo_h: Property<LayoutInfo>, root_380_layout_386_layout_cache: Property<SharedVector<Coord>>, root_380_layout_386_layoutinfo_h: Property<LayoutInfo>, root_380_layout_386_layoutinfo_v: Property<LayoutInfo>, root_380_layoutinfo_h: Property<LayoutInfo>, root_380_layoutinfo_v: Property<LayoutInfo>, root_380_optimized_open_sub_menu_after_timeout_381_interval: Property<i64>, root_380_optimized_open_sub_menu_after_timeout_381_running: Property<bool>, root_380_sub_menu_389_absolute_position: Property<LogicalPosition>, root_380_sub_menu_389_entries: Property<ModelRc<MenuEntry>>, root_380_activated: Callback<(MenuEntry,), ()>, root_380_close: Callback<(), ()>, root_380_optimized_open_sub_menu_after_timeout_381_triggered: Callback<(), ()>, root_380_sub_menu: Callback<(MenuEntry,), ModelRc<MenuEntry>>, repeater0: Repeater<InnerComponent_menuitem_387>, change_tracker0: ChangeTracker, change_tracker1: ChangeTracker, timer0: Timer, self_weak: OnceCell<VWeakMapped<ItemTreeVTable, InnerPopupMenuImpl_root_380>>, globals: OnceCell<Rc<SharedGlobals>>, tree_index: Cell<u32>, tree_index_of_first_child: Cell<u32>,
}

Fields§

§root_380: WindowItem§focus_scope_382: FocusScope§frame_shadow_383: BoxShadow§frame_384: BasicBorderRectangle§frame_clip_385: Clip§sub_menu_389: ContextMenu§root_380_absolute_position: Property<LogicalPosition>§root_380_current_highlight: Property<i32>§root_380_current_highlight_y_pos: Property<LogicalLength>§root_380_current_open: Property<i32>§root_380_entries: Property<ModelRc<MenuEntry>>§root_380_frame_384_layoutinfo_h: Property<LayoutInfo>§root_380_layout_386_layout_cache: Property<SharedVector<Coord>>§root_380_layout_386_layoutinfo_h: Property<LayoutInfo>§root_380_layout_386_layoutinfo_v: Property<LayoutInfo>§root_380_layoutinfo_h: Property<LayoutInfo>§root_380_layoutinfo_v: Property<LayoutInfo>§root_380_optimized_open_sub_menu_after_timeout_381_interval: Property<i64>§root_380_optimized_open_sub_menu_after_timeout_381_running: Property<bool>§root_380_sub_menu_389_absolute_position: Property<LogicalPosition>§root_380_sub_menu_389_entries: Property<ModelRc<MenuEntry>>§root_380_activated: Callback<(MenuEntry,), ()>§root_380_close: Callback<(), ()>§root_380_optimized_open_sub_menu_after_timeout_381_triggered: Callback<(), ()>§root_380_sub_menu: Callback<(MenuEntry,), ModelRc<MenuEntry>>§repeater0: Repeater<InnerComponent_menuitem_387>§change_tracker0: ChangeTracker§change_tracker1: ChangeTracker§timer0: Timer§self_weak: OnceCell<VWeakMapped<ItemTreeVTable, InnerPopupMenuImpl_root_380>>§globals: OnceCell<Rc<SharedGlobals>>§tree_index: Cell<u32>§tree_index_of_first_child: Cell<u32>

Implementations§

Source§

impl InnerPopupMenuImpl_root_380

Source

pub const FIELD_OFFSETS: InnerPopupMenuImpl_root_380FieldsOffsets

Return a struct containing the offset of for the fields of this struct

Source§

impl InnerPopupMenuImpl_root_380

Source

fn init( self_rc: VRcMapped<ItemTreeVTable, Self>, globals: Rc<SharedGlobals>, tree_index: u32, tree_index_of_first_child: u32, )

Source

fn user_init(self_rc: VRcMapped<ItemTreeVTable, Self>)

Source

fn visit_dynamic_children( self: Pin<&Self>, dyn_index: u32, order: TraversalOrder, visitor: ItemVisitorRefMut<'_>, ) -> VisitChildrenResult

Source

fn layout_info(self: Pin<&Self>, orientation: Orientation) -> LayoutInfo

Source

fn subtree_range(self: Pin<&Self>, dyn_index: u32) -> IndexRange

Source

fn subtree_component( self: Pin<&Self>, dyn_index: u32, subtree_index: usize, result: &mut ItemTreeWeak, )

Source

fn index_property(self: Pin<&Self>) -> usize

Source

fn item_geometry(self: Pin<&Self>, index: u32) -> LogicalRect

Source

fn accessible_role(self: Pin<&Self>, index: u32) -> AccessibleRole

Source

fn accessible_string_property( self: Pin<&Self>, index: u32, what: AccessibleStringProperty, ) -> Option<SharedString>

Source

fn accessibility_action( self: Pin<&Self>, index: u32, action: &AccessibilityAction, )

Source

fn supported_accessibility_actions( self: Pin<&Self>, index: u32, ) -> SupportedAccessibilityAction

Source

fn item_element_infos(self: Pin<&Self>, index: u32) -> Option<SharedString>

Source

fn update_timers(self: Pin<&Self>)

Source

pub fn fn_activate(self: Pin<&Self>, arg_0: MenuEntry, arg_1: Coord, arg_2: i32)

Source

pub fn fn_focus(self: Pin<&Self>)

Source§

impl InnerPopupMenuImpl_root_380

Source

fn new( globals: Rc<SharedGlobals>, ) -> Result<VRc<ItemTreeVTable, Self>, PlatformError>

Source

fn item_tree() -> &'static [ItemTreeNode]

Source

fn item_array() -> &'static [VOffset<Self, ItemVTable, AllowPin>]

Trait Implementations§

Source§

impl Default for InnerPopupMenuImpl_root_380

Source§

fn default() -> InnerPopupMenuImpl_root_380

Returns the “default value” for a type. Read more
Source§

impl Drop for InnerPopupMenuImpl_root_380

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl HasStaticVTable<ItemTreeVTable> for InnerPopupMenuImpl_root_380

Source§

fn static_vtable() -> &'static ItemTreeVTable

Safety: must be a valid VTable for Self
Source§

impl ItemTree for InnerPopupMenuImpl_root_380

Source§

fn visit_children_item( self: Pin<&Self>, index: isize, order: TraversalOrder, visitor: ItemVisitorRefMut<'_>, ) -> VisitChildrenResult

Visit the children of the item at index index. Note that the root item is at index 0, so passing 0 would visit the item under root (the children of root). If you want to visit the root item, you need to pass -1 as an index.
Source§

fn get_item_ref(self: Pin<&Self>, index: u32) -> Pin<ItemRef<'_>>

Return a reference to an item using the given index
Source§

fn get_item_tree(self: Pin<&Self>) -> Slice<'_, ItemTreeNode>

Return the item tree that is defined by this ItemTree.
Source§

fn get_subtree_range(self: Pin<&Self>, index: u32) -> IndexRange

Return the range of indices below the dynamic ItemTreeNode at index
Source§

fn get_subtree( self: Pin<&Self>, index: u32, subtree_index: usize, result: &mut ItemTreeWeak, )

Return the ItemTreeRc at subindex below the dynamic ItemTreeNode at index
Source§

fn subtree_index(self: Pin<&Self>) -> usize

Return the index of the current subtree or usize::MAX if this is not a subtree
Source§

fn parent_node(self: Pin<&Self>, _result: &mut ItemWeak)

Return the node this ItemTree is a part of in the parent ItemTree. Read more
Source§

fn embed_component( self: Pin<&Self>, _parent_component: &ItemTreeWeak, _item_tree_index: u32, ) -> bool

This embeds this ItemTree into the item tree of another ItemTree Read more
Source§

fn layout_info(self: Pin<&Self>, orientation: Orientation) -> LayoutInfo

Returns the layout info for the root of the ItemTree
Source§

fn item_geometry(self: Pin<&Self>, index: u32) -> LogicalRect

Returns the item’s geometry (relative to its parent item)
Source§

fn accessible_role(self: Pin<&Self>, index: u32) -> AccessibleRole

Returns the accessible role for a given item
Source§

fn accessible_string_property( self: Pin<&Self>, index: u32, what: AccessibleStringProperty, result: &mut SharedString, ) -> bool

Returns the accessible property via the result. Returns true if such a property exists.
Source§

fn accessibility_action( self: Pin<&Self>, index: u32, action: &AccessibilityAction, )

Executes an accessibility action.
Source§

fn supported_accessibility_actions( self: Pin<&Self>, index: u32, ) -> SupportedAccessibilityAction

Returns the supported accessibility actions.
Source§

fn item_element_infos( self: Pin<&Self>, _index: u32, _result: &mut SharedString, ) -> bool

Add the ElementName::id entries of the given item
Source§

fn window_adapter( self: Pin<&Self>, do_create: bool, result: &mut Option<Rc<dyn WindowAdapter>>, )

Returns a Window, creating a fresh one if do_create is true.
Source§

impl PinnedDrop for InnerPopupMenuImpl_root_380

Source§

fn drop(self: Pin<&mut InnerPopupMenuImpl_root_380>)

This is the equivalent to the regular Drop trait with the difference that self is pinned.
Source§

impl<'__dummy_lifetime> Unpin for InnerPopupMenuImpl_root_380
where __MustNotImplUnpin<'__dummy_lifetime>: Unpin,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> NoneValue for T
where T: Default,

§

type NoneType = T

§

fn null_value() -> T

The none-equivalent value.
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

Source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more