[−][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<Owner: WidgetObj + DepType<Id = Self>, DepObjValueType: DepPropType>(
self,
tree: &WidgetTree,
prop: DepProp<Owner, DepObjValueType>
) -> &DepObjValueType
[src]
self,
tree: &WidgetTree,
prop: DepProp<Owner, DepObjValueType>
) -> &DepObjValueType
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]
self,
context: &mut dyn dyn_context_Context,
prop: DepProp<Owner, DepObjValueType>,
value: DepObjValueType
) -> DepObjValueType
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]
self,
context: &mut dyn dyn_context_Context,
prop: DepProp<Owner, DepObjValueType>
) -> std_option_Option<DepObjValueType>
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]
self,
context: &mut dyn dyn_context_Context,
prop: DepProp<Owner, DepObjValueType>,
value: DepObjValueType
) -> std_option_Option<DepObjValueType>
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]
self,
context: &mut dyn dyn_context_Context,
prop: DepProp<Owner, DepObjValueType>
) -> std_option_Option<DepObjValueType>
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]
self,
tree: &mut WidgetTree,
prop: DepProp<Owner, DepObjValueType>,
on_changed: fn(context: &mut dyn dyn_context_Context, id: Self, old: &DepObjValueType)
)
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]
self,
context: &mut dyn dyn_context_Context,
event: DepEvent<Owner, DepEventArgsType>,
args: &mut DepEventArgsType
)
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]
self,
tree: &mut WidgetTree,
event: DepEvent<Owner, DepEventArgsType>,
on_raised: fn(context: &mut dyn dyn_context_Context, id: Self, args: &mut DepEventArgsType)
)
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]
self,
context: &mut dyn dyn_context_Context,
style: std_option_Option<Style<Owner>>
) -> std_option_Option<Style<Owner>>
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<PropType> DepPropType for PropType where
PropType: 'static + Clone + Send + Sync + Debug,
[src]
PropType: 'static + Clone + Send + Sync + Debug,
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> DynClone for T where
T: Clone,
[src]
T: Clone,
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>,