Struct nannou::ui::widget::PreUpdateCache [−][src]
pub struct PreUpdateCache {}Show fields
pub type_id: TypeId, pub id: NodeIndex<u32>, pub maybe_parent_id: Option<NodeIndex<u32>>, pub maybe_x_positioned_relatively_id: Option<NodeIndex<u32>>, pub maybe_y_positioned_relatively_id: Option<NodeIndex<u32>>, pub rect: Rect, pub depth: f32, pub kid_area: KidArea, pub maybe_dragged_from: Option<[f64; 2]>, pub maybe_floating: Option<Floating>, pub crop_kids: bool, pub maybe_x_scroll_state: Option<State<X>>, pub maybe_y_scroll_state: Option<State<Y>>, pub maybe_graphics_for: Option<NodeIndex<u32>>, pub is_over: fn(&Container, [f64; 2], &Theme) -> IsOver,
Fields
type_id: TypeId
The Widget’s unique type identifier.
id: NodeIndex<u32>
The Widget’s unique Id.
maybe_parent_id: Option<NodeIndex<u32>>
The Widget’s parent’s unique index (if it has a parent).
maybe_x_positioned_relatively_id: Option<NodeIndex<u32>>
If this Widget is relatively positioned to another Widget, this will be the index of the Widget to which this Widget is relatively positioned along the x axis.
maybe_y_positioned_relatively_id: Option<NodeIndex<u32>>
If this Widget is relatively positioned to another Widget, this will be the index of the Widget to which this Widget is relatively positioned along the y axis.
rect: Rect
The Rect describing the Widget’s position and dimensions.
depth: f32
The z-axis depth - affects the render order of sibling widgets.
kid_area: KidArea
The area upon which the Widget’s children widgets will be placed.
maybe_dragged_from: Option<[f64; 2]>
If Widget is draggable and is being dragged, this is where it started
maybe_floating: Option<Floating>
Floating data for the Widget if there is some.
crop_kids: bool
Whether or not the children of the Widget should be cropped to its kid_area
.
maybe_x_scroll_state: Option<State<X>>
Scrolling data for the Widget’s x axis if there is some.
maybe_y_scroll_state: Option<State<Y>>
Scrolling data for the Widget’s y axis if there is some.
maybe_graphics_for: Option<NodeIndex<u32>>
Whether or not the Widget has been instantiated as a graphical element for some other widget.
is_over: fn(&Container, [f64; 2], &Theme) -> IsOver
A function describing whether or not a given point is over the widget.
Auto Trait Implementations
impl RefUnwindSafe for PreUpdateCache
impl Send for PreUpdateCache
impl Sync for PreUpdateCache
impl Unpin for PreUpdateCache
impl UnwindSafe for PreUpdateCache
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
[src]
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
pub fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
pub fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
pub fn convert_into(self) -> U
[src]
pub fn convert_unclamped_into(self) -> U
[src]
pub fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> Downcast<T> for T
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> SetParameter for T
pub fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Upcast<T> for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,