Trait libhelium::prelude::ViewExt

source ·
pub trait ViewExt: IsA<View> + Sealed + 'static {
Show 14 methods // Provided methods fn add_child( &self, builder: &Builder, child: &impl IsA<Object>, type_: Option<&str>, ) { ... } fn add(&self, widget: &impl IsA<Widget>) { ... } fn title(&self) -> GString { ... } fn set_title(&self, value: &str) { ... } fn stack(&self) -> Stack { ... } fn set_stack(&self, value: &Stack) { ... } fn subtitle(&self) -> GString { ... } fn set_subtitle(&self, value: &str) { ... } fn has_margins(&self) -> bool { ... } fn set_has_margins(&self, value: bool) { ... } fn connect_title_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_stack_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_subtitle_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_has_margins_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all View methods.

§Implementors

ViewAux, View

Provided Methods§

source

fn add_child( &self, builder: &Builder, child: &impl IsA<Object>, type_: Option<&str>, )

Add a child to the welcome screen, should only be used in the context of a UI or Blueprint file. There should be no need to use this method in code.

source

fn add(&self, widget: &impl IsA<Widget>)

Add a child directly to the view. Used only in code.

Since: 1.0

source

fn title(&self) -> GString

source

fn set_title(&self, value: &str)

source

fn stack(&self) -> Stack

source

fn set_stack(&self, value: &Stack)

source

fn subtitle(&self) -> GString

source

fn set_subtitle(&self, value: &str)

source

fn has_margins(&self) -> bool

source

fn set_has_margins(&self, value: bool)

source

fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_stack_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_subtitle_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_has_margins_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: IsA<View>> ViewExt for O