[][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<DepSystemType: WidgetObj + DepObj<Id = Self>, DepSystemValueType>(
    self,
    tree: &WidgetTree,
    prop: DepProp<DepSystemType, DepSystemValueType>
) -> &DepSystemValueType
[src]

pub fn obj_set_uncond<DepSystemType: WidgetObj + DepObj<Id = Self>, DepSystemValueType>(
    self,
    context: &mut dyn dyn_context_Context,
    prop: DepProp<DepSystemType, DepSystemValueType>,
    value: DepSystemValueType
) -> DepSystemValueType
[src]

pub fn obj_set_distinct<DepSystemType: WidgetObj + DepObj<Id = Self>, DepSystemValueType: std_cmp_Eq>(
    self,
    context: &mut dyn dyn_context_Context,
    prop: DepProp<DepSystemType, DepSystemValueType>,
    value: DepSystemValueType
) -> DepSystemValueType
[src]

pub fn obj_on_changed<DepSystemType: WidgetObj + DepObj<Id = Self>, DepSystemValueType>(
    self,
    tree: &mut WidgetTree,
    prop: DepProp<DepSystemType, DepSystemValueType>,
    on_changed: fn(context: &mut dyn dyn_context_Context, owner: Self, old: &DepSystemValueType)
)
[src]

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

pub fn obj_on<DepSystemType: WidgetObj + DepObj<Id = Self>, DepSystemArgsType>(
    self,
    tree: &mut WidgetTree,
    event: DepEvent<DepSystemType, DepSystemArgsType>,
    on_raised: fn(context: &mut dyn dyn_context_Context, owner: Self, args: &mut DepSystemArgsType)
)
[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<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[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>,