Widget

Enum Widget 

Source
#[non_exhaustive]
pub enum Widget {
Show 18 variants inkMultiChildren(inkMultiChildren), inkCanvasWidget(inkCanvasWidget), inkHorizontalPanelWidget(inkHorizontalPanelWidget), inkVerticalPanelWidget(inkVerticalPanelWidget), inkScrollAreaWidget(inkScrollAreaWidget), inkUniformGridWidget(inkUniformGridWidget), inkVirtualCompoundWidget(inkVirtualCompoundWidget), inkFlexWidget(inkFlexWidget), inkCacheWidget(inkCacheWidget), inkTextWidget(inkTextWidget), inkImageWidget(inkImageWidget), inkVideoWidget(inkVideoWidget), inkMaskWidget(inkMaskWidget), inkBorderWidget(inkBorderWidget), inkShapeWidget(inkShapeWidget), inkCircleWidget(inkCircleWidget), inkRectangleWidget(inkRectangleWidget), inkVectorGraphicWidget(inkVectorGraphicWidget),
}
Expand description

any widget

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

inkMultiChildren(inkMultiChildren)

§

inkCanvasWidget(inkCanvasWidget)

§

inkHorizontalPanelWidget(inkHorizontalPanelWidget)

§

inkVerticalPanelWidget(inkVerticalPanelWidget)

§

inkScrollAreaWidget(inkScrollAreaWidget)

§

inkUniformGridWidget(inkUniformGridWidget)

§

inkVirtualCompoundWidget(inkVirtualCompoundWidget)

§

inkFlexWidget(inkFlexWidget)

§

inkCacheWidget(inkCacheWidget)

§

inkTextWidget(inkTextWidget)

§

inkImageWidget(inkImageWidget)

§

inkVideoWidget(inkVideoWidget)

§

inkMaskWidget(inkMaskWidget)

§

inkBorderWidget(inkBorderWidget)

§

inkShapeWidget(inkShapeWidget)

§

inkCircleWidget(inkCircleWidget)

§

inkRectangleWidget(inkRectangleWidget)

§

inkVectorGraphicWidget(inkVectorGraphicWidget)

Implementations§

Source§

impl Widget

Source

pub fn name(&self) -> Option<&str>

Source

pub fn as_compound(&self) -> Option<&dyn InkCompoundWidget>

Source

pub fn as_widget(&self) -> Option<&dyn InkWidget>

Source

pub fn as_leaf(&self) -> Option<&dyn InkLeafWidget>

Source

pub fn is_leaf(&self) -> bool

Source

pub fn is_compound(&self) -> bool

Trait Implementations§

Source§

impl ByIndex for Widget

Source§

fn by_index(&self, idx: usize) -> Option<Widget>

find a widget by index
Source§

impl ByName for Widget

Source§

fn by_name(&self, name: &str) -> Option<(usize, Widget)>

find a widget by name
Source§

impl Classname for Widget

Source§

impl Clone for Widget

Source§

fn clone(&self) -> Widget

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Widget

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Widget

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<inkBorderWidget> for Widget

Source§

fn from(v: inkBorderWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkCacheWidget> for Widget

Source§

fn from(v: inkCacheWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkCanvasWidget> for Widget

Source§

fn from(v: inkCanvasWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkCircleWidget> for Widget

Source§

fn from(v: inkCircleWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkFlexWidget> for Widget

Source§

fn from(v: inkFlexWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkHorizontalPanelWidget> for Widget

Source§

fn from(v: inkHorizontalPanelWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkImageWidget> for Widget

Source§

fn from(v: inkImageWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkMaskWidget> for Widget

Source§

fn from(v: inkMaskWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkMultiChildren> for Widget

Source§

fn from(v: inkMultiChildren) -> Widget

Converts to this type from the input type.
Source§

impl From<inkRectangleWidget> for Widget

Source§

fn from(v: inkRectangleWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkScrollAreaWidget> for Widget

Source§

fn from(v: inkScrollAreaWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkShapeWidget> for Widget

Source§

fn from(v: inkShapeWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkTextWidget> for Widget

Source§

fn from(v: inkTextWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkUniformGridWidget> for Widget

Source§

fn from(v: inkUniformGridWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkVectorGraphicWidget> for Widget

Source§

fn from(v: inkVectorGraphicWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkVerticalPanelWidget> for Widget

Source§

fn from(v: inkVerticalPanelWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkVideoWidget> for Widget

Source§

fn from(v: inkVideoWidget) -> Widget

Converts to this type from the input type.
Source§

impl From<inkVirtualCompoundWidget> for Widget

Source§

fn from(v: inkVirtualCompoundWidget) -> Widget

Converts to this type from the input type.
Source§

impl PartialEq for Widget

Source§

fn eq(&self, other: &Widget) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Widget

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryInto<inkBorderWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkBorderWidget, <Self as TryInto<inkBorderWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkCacheWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkCacheWidget, <Self as TryInto<inkCacheWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkCanvasWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkCanvasWidget, <Self as TryInto<inkCanvasWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkCircleWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkCircleWidget, <Self as TryInto<inkCircleWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkFlexWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkFlexWidget, <Self as TryInto<inkFlexWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkHorizontalPanelWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkHorizontalPanelWidget, <Self as TryInto<inkHorizontalPanelWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkImageWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkImageWidget, <Self as TryInto<inkImageWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkMaskWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkMaskWidget, <Self as TryInto<inkMaskWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkMultiChildren> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkMultiChildren, <Self as TryInto<inkMultiChildren>>::Error>

Performs the conversion.
Source§

impl TryInto<inkRectangleWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkRectangleWidget, <Self as TryInto<inkRectangleWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkScrollAreaWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkScrollAreaWidget, <Self as TryInto<inkScrollAreaWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkShapeWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkShapeWidget, <Self as TryInto<inkShapeWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkTextWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkTextWidget, <Self as TryInto<inkTextWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkUniformGridWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkUniformGridWidget, <Self as TryInto<inkUniformGridWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkVectorGraphicWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkVectorGraphicWidget, <Self as TryInto<inkVectorGraphicWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkVerticalPanelWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkVerticalPanelWidget, <Self as TryInto<inkVerticalPanelWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkVideoWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkVideoWidget, <Self as TryInto<inkVideoWidget>>::Error>

Performs the conversion.
Source§

impl TryInto<inkVirtualCompoundWidget> for Widget

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<inkVirtualCompoundWidget, <Self as TryInto<inkVirtualCompoundWidget>>::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for Widget

Auto Trait Implementations§

§

impl Freeze for Widget

§

impl RefUnwindSafe for Widget

§

impl Send for Widget

§

impl Sync for Widget

§

impl Unpin for Widget

§

impl UnwindSafe for Widget

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
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,