[][src]Struct tuifw::view::View

pub struct View(_);

Implementations

impl View[src]

pub fn new<Tag: ComponentId, T>(
    tree: &mut ViewTree,
    parent: View,
    tag: impl FnOnce(View) -> (Tag, T)
) -> T
[src]

pub fn tag<Tag: ComponentId>(self, tree: &ViewTree) -> Tag[src]

pub fn build<'a>(
    self,
    context: &'a mut dyn Context,
    f: impl FnOnce(ViewBuilder<'a>) -> ViewBuilder<'a>
)
[src]

pub fn focus(self, tree: &mut ViewTree) -> View[src]

pub fn unset_decorator(self, tree: &mut ViewTree)[src]

pub fn set_decorator<D: Decorator>(self, tree: &mut ViewTree, decorator: D)[src]

pub fn unset_layout(self, tree: &mut ViewTree)[src]

pub fn set_layout<L: Layout>(self, tree: &mut ViewTree, layout: L)[src]

pub fn unset_panel(self, tree: &mut ViewTree)[src]

pub fn set_panel<P: Panel>(self, tree: &mut ViewTree, panel: P)[src]

pub fn parent(self, tree: &ViewTree) -> Option<View>[src]

pub fn self_and_parents<'a>(
    self,
    tree: &'a ViewTree
) -> impl Iterator<Item = View> + 'a
[src]

pub fn last_child(self, tree: &ViewTree) -> Option<View>[src]

pub fn next(self, tree: &ViewTree) -> View[src]

pub fn children<'a>(self, tree: &'a ViewTree) -> impl Iterator<Item = View> + 'a[src]

pub fn desired_size(self, tree: &ViewTree) -> Vector[src]

pub fn render_bounds(self, tree: &ViewTree) -> Rect[src]

pub fn actual_fg(self, tree: &ViewTree) -> Color[src]

pub fn actual_bg(self, tree: &ViewTree) -> Option<Color>[src]

pub fn actual_attr(self, tree: &ViewTree) -> Attr[src]

pub fn base_get<DepObjValueType: DepPropType>(
    self,
    tree: &ViewTree,
    prop: DepProp<ViewBase, DepObjValueType>
) -> &DepObjValueType
[src]

pub fn base_set_uncond<DepObjValueType: DepPropType>(
    self,
    context: &mut dyn dyn_context_Context,
    prop: DepProp<ViewBase, DepObjValueType>,
    value: DepObjValueType
) -> DepObjValueType
[src]

pub fn base_unset_uncond<DepObjValueType: DepPropType>(
    self,
    context: &mut dyn dyn_context_Context,
    prop: DepProp<ViewBase, DepObjValueType>
) -> std_option_Option<DepObjValueType>
[src]

pub fn base_set_distinct<DepObjValueType: DepPropType + std_cmp_PartialEq>(
    self,
    context: &mut dyn dyn_context_Context,
    prop: DepProp<ViewBase, DepObjValueType>,
    value: DepObjValueType
) -> std_option_Option<DepObjValueType>
[src]

pub fn base_unset_distinct<DepObjValueType: DepPropType + std_cmp_PartialEq>(
    self,
    context: &mut dyn dyn_context_Context,
    prop: DepProp<ViewBase, DepObjValueType>
) -> std_option_Option<DepObjValueType>
[src]

pub fn base_on_changed<DepObjValueType: DepPropType>(
    self,
    tree: &mut ViewTree,
    prop: DepProp<ViewBase, DepObjValueType>,
    on_changed: fn(context: &mut dyn dyn_context_Context, id: Self, old: &DepObjValueType)
)
[src]

pub fn base_raise<DepEventArgsType>(
    self,
    context: &mut dyn dyn_context_Context,
    event: DepEvent<ViewBase, DepEventArgsType>,
    args: &mut DepEventArgsType
)
[src]

pub fn base_on<DepEventArgsType>(
    self,
    tree: &mut ViewTree,
    event: DepEvent<ViewBase, DepEventArgsType>,
    on_raised: fn(context: &mut dyn dyn_context_Context, id: Self, args: &mut DepEventArgsType)
)
[src]

pub fn base_apply_style(
    self,
    context: &mut dyn dyn_context_Context,
    style: std_option_Option<Style<ViewBase>>
) -> std_option_Option<Style<ViewBase>>
[src]

pub fn align_get<DepObjValueType: DepPropType>(
    self,
    tree: &ViewTree,
    prop: DepProp<ViewAlign, DepObjValueType>
) -> &DepObjValueType
[src]

pub fn align_set_uncond<DepObjValueType: DepPropType>(
    self,
    context: &mut dyn dyn_context_Context,
    prop: DepProp<ViewAlign, DepObjValueType>,
    value: DepObjValueType
) -> DepObjValueType
[src]

pub fn align_unset_uncond<DepObjValueType: DepPropType>(
    self,
    context: &mut dyn dyn_context_Context,
    prop: DepProp<ViewAlign, DepObjValueType>
) -> std_option_Option<DepObjValueType>
[src]

pub fn align_set_distinct<DepObjValueType: DepPropType + std_cmp_PartialEq>(
    self,
    context: &mut dyn dyn_context_Context,
    prop: DepProp<ViewAlign, DepObjValueType>,
    value: DepObjValueType
) -> std_option_Option<DepObjValueType>
[src]

pub fn align_unset_distinct<DepObjValueType: DepPropType + std_cmp_PartialEq>(
    self,
    context: &mut dyn dyn_context_Context,
    prop: DepProp<ViewAlign, DepObjValueType>
) -> std_option_Option<DepObjValueType>
[src]

pub fn align_on_changed<DepObjValueType: DepPropType>(
    self,
    tree: &mut ViewTree,
    prop: DepProp<ViewAlign, DepObjValueType>,
    on_changed: fn(context: &mut dyn dyn_context_Context, id: Self, old: &DepObjValueType)
)
[src]

pub fn align_raise<DepEventArgsType>(
    self,
    context: &mut dyn dyn_context_Context,
    event: DepEvent<ViewAlign, DepEventArgsType>,
    args: &mut DepEventArgsType
)
[src]

pub fn align_on<DepEventArgsType>(
    self,
    tree: &mut ViewTree,
    event: DepEvent<ViewAlign, DepEventArgsType>,
    on_raised: fn(context: &mut dyn dyn_context_Context, id: Self, args: &mut DepEventArgsType)
)
[src]

pub fn align_apply_style(
    self,
    context: &mut dyn dyn_context_Context,
    style: std_option_Option<Style<ViewAlign>>
) -> std_option_Option<Style<ViewAlign>>
[src]

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

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

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

pub fn decorator_set_distinct<Owner: Decorator + 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 decorator_unset_distinct<Owner: Decorator + 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 decorator_on_changed<Owner: Decorator + DepType<Id = Self>, DepObjValueType: DepPropType>(
    self,
    tree: &mut ViewTree,
    prop: DepProp<Owner, DepObjValueType>,
    on_changed: fn(context: &mut dyn dyn_context_Context, id: Self, old: &DepObjValueType)
)
[src]

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

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

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

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

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

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

pub fn layout_set_distinct<Owner: Layout + 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 layout_unset_distinct<Owner: Layout + 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 layout_on_changed<Owner: Layout + DepType<Id = Self>, DepObjValueType: DepPropType>(
    self,
    tree: &mut ViewTree,
    prop: DepProp<Owner, DepObjValueType>,
    on_changed: fn(context: &mut dyn dyn_context_Context, id: Self, old: &DepObjValueType)
)
[src]

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

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

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

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

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

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

pub fn panel_set_distinct<Owner: Panel + 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 panel_unset_distinct<Owner: Panel + 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 panel_on_changed<Owner: Panel + DepType<Id = Self>, DepObjValueType: DepPropType>(
    self,
    tree: &mut ViewTree,
    prop: DepProp<Owner, DepObjValueType>,
    on_changed: fn(context: &mut dyn dyn_context_Context, id: Self, old: &DepObjValueType)
)
[src]

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

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

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

#[must_use]pub fn invalidate_rect(self, tree: &mut ViewTree, rect: Rect) -> Option<()>[src]

#[must_use]pub fn invalidate_render(self, tree: &mut ViewTree) -> Option<()>[src]

pub fn invalidate_measure(self, tree: &mut ViewTree)[src]

pub fn invalidate_arrange(self, tree: &mut ViewTree)[src]

pub fn measure(self, tree: &mut ViewTree, size: (Option<i16>, Option<i16>))[src]

pub fn arrange(self, tree: &mut ViewTree, rect: Rect)[src]

Trait Implementations

impl Clone for View[src]

impl ComponentId for View[src]

impl Copy for View[src]

impl Debug for View[src]

impl<'a> DepObjBuilderCore<View> for ViewBuilder<'a>[src]

impl Eq for View[src]

impl Hash for View[src]

impl Ord for View[src]

impl PartialEq<View> for View[src]

impl PartialOrd<View> for View[src]

impl StructuralEq for View[src]

impl StructuralPartialEq for View[src]

Auto Trait Implementations

impl RefUnwindSafe for View

impl Send for View

impl Sync for View

impl Unpin for View

impl UnwindSafe for View

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>,