[−][src]Struct tuifw::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]
self,
tree: &WidgetTree,
prop: DepProp<DepSystemType, DepSystemValueType>
) -> &DepSystemValueType
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]
self,
context: &mut dyn dyn_context_Context,
prop: DepProp<DepSystemType, DepSystemValueType>,
value: DepSystemValueType
) -> DepSystemValueType
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]
self,
context: &mut dyn dyn_context_Context,
prop: DepProp<DepSystemType, DepSystemValueType>,
value: DepSystemValueType
) -> DepSystemValueType
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]
self,
tree: &mut WidgetTree,
prop: DepProp<DepSystemType, DepSystemValueType>,
on_changed: fn(context: &mut dyn dyn_context_Context, owner: Self, old: &DepSystemValueType)
)
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]
self,
context: &mut dyn dyn_context_Context,
event: DepEvent<DepSystemType, DepSystemArgsType>,
args: &mut DepSystemArgsType
)
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]
self,
tree: &mut WidgetTree,
event: DepEvent<DepSystemType, DepSystemArgsType>,
on_raised: fn(context: &mut dyn dyn_context_Context, owner: Self, args: &mut DepSystemArgsType)
)
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Widget
[src]
fn cmp(&self, other: &Widget) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Widget> for Widget
[src]
impl PartialOrd<Widget> for Widget
[src]
fn partial_cmp(&self, other: &Widget) -> Option<Ordering>
[src]
fn lt(&self, other: &Widget) -> bool
[src]
fn le(&self, other: &Widget) -> bool
[src]
fn gt(&self, other: &Widget) -> bool
[src]
fn ge(&self, other: &Widget) -> bool
[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]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,