[][src]Struct tuifw::Widget

pub struct Widget(_);

Implementations

impl Widget[src]

pub fn new<O: WidgetObj>(tree: &mut WidgetTree, obj: O) -> Widget[src]

pub fn attach(self, tree: &mut WidgetTree, parent: Widget)[src]

pub fn load(self, tree: &mut WidgetTree, view: View)[src]

pub fn obj_get<Owner: WidgetObj + DepType<Id = Self>, DepObjValueType: DepPropType>(
    self,
    tree: &WidgetTree,
    prop: DepProp<Owner, DepObjValueType>
) -> &DepObjValueType
[src]

pub fn obj_set_uncond<Owner: WidgetObj + DepType<Id = Self>, DepObjValueType: DepPropType>(
    self,
    context: &mut dyn dyn_context_Context,
    prop: DepProp<Owner, DepObjValueType>,
    value: DepObjValueType
) -> DepObjValueType
[src]

pub fn obj_unset_uncond<Owner: WidgetObj + DepType<Id = Self>, DepObjValueType: DepPropType>(
    self,
    context: &mut dyn dyn_context_Context,
    prop: DepProp<Owner, DepObjValueType>
) -> std_option_Option<DepObjValueType>
[src]

pub fn obj_set_distinct<Owner: WidgetObj + DepType<Id = Self>, DepObjValueType: DepPropType + std_cmp_PartialEq>(
    self,
    context: &mut dyn dyn_context_Context,
    prop: DepProp<Owner, DepObjValueType>,
    value: DepObjValueType
) -> std_option_Option<DepObjValueType>
[src]

pub fn obj_unset_distinct<Owner: WidgetObj + DepType<Id = Self>, DepObjValueType: DepPropType + std_cmp_PartialEq>(
    self,
    context: &mut dyn dyn_context_Context,
    prop: DepProp<Owner, DepObjValueType>
) -> std_option_Option<DepObjValueType>
[src]

pub fn obj_on_changed<Owner: WidgetObj + DepType<Id = Self>, DepObjValueType: DepPropType>(
    self,
    tree: &mut WidgetTree,
    prop: DepProp<Owner, DepObjValueType>,
    on_changed: fn(context: &mut dyn dyn_context_Context, id: Self, old: &DepObjValueType)
)
[src]

pub fn obj_raise<Owner: WidgetObj + DepType<Id = Self>, DepEventArgsType>(
    self,
    context: &mut dyn dyn_context_Context,
    event: DepEvent<Owner, DepEventArgsType>,
    args: &mut DepEventArgsType
)
[src]

pub fn obj_on<Owner: WidgetObj + DepType<Id = Self>, DepEventArgsType>(
    self,
    tree: &mut WidgetTree,
    event: DepEvent<Owner, DepEventArgsType>,
    on_raised: fn(context: &mut dyn dyn_context_Context, id: Self, args: &mut DepEventArgsType)
)
[src]

pub fn obj_apply_style<Owner: WidgetObj + DepType<Id = Self>>(
    self,
    context: &mut dyn dyn_context_Context,
    style: std_option_Option<Style<Owner>>
) -> std_option_Option<Style<Owner>>
[src]

Trait Implementations

impl Clone for Widget[src]

impl ComponentId for Widget[src]

impl Copy for Widget[src]

impl Debug for Widget[src]

impl Eq for Widget[src]

impl Hash for Widget[src]

impl Ord for Widget[src]

impl PartialEq<Widget> for Widget[src]

impl PartialOrd<Widget> for Widget[src]

impl StructuralEq for Widget[src]

impl StructuralPartialEq for Widget[src]

Auto Trait Implementations

impl RefUnwindSafe for Widget

impl Send for Widget

impl Sync for Widget

impl Unpin for Widget

impl UnwindSafe for Widget

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<PropType> DepPropType for PropType where
    PropType: 'static + Clone + Send + Sync + Debug
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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