pub struct SidebarSection {
pub model: OnceCell<ListModel>,
inner_model: OnceCell<ListModel>,
pub filter: RoomCategoryFilter,
pub name: Cell<SidebarSectionName>,
pub display_name: PhantomData<String>,
pub is_empty: Cell<bool>,
pub is_expanded: Cell<bool>,
}
Fields§
§model: OnceCell<ListModel>
The source model of this section.
inner_model: OnceCell<ListModel>
The inner model of this section.
filter: RoomCategoryFilter
The filter of this section.
name: Cell<SidebarSectionName>
The name of this section.
display_name: PhantomData<String>
The display name of this section.
is_empty: Cell<bool>
Whether this section is empty.
is_expanded: Cell<bool>
Whether this section is expanded.
Implementations§
Source§impl SidebarSection
impl SidebarSection
Sourcefn register_type()
fn register_type()
Registers the type only once.
Source§impl SidebarSection
impl SidebarSection
Sourcefn inner_model(&self) -> &ListModel
fn inner_model(&self) -> &ListModel
The inner model of this section.
Sourcefn set_name(&self, name: SidebarSectionName)
fn set_name(&self, name: SidebarSectionName)
Set the name of this section.
Sourcefn display_name(&self) -> String
fn display_name(&self) -> String
The display name of this section.
Sourcefn set_is_empty(&self, is_empty: bool)
fn set_is_empty(&self, is_empty: bool)
Set whether this section is empty.
Sourcefn set_is_expanded(&self, expanded: bool)
fn set_is_expanded(&self, expanded: bool)
Set whether this section is expanded.
Sourcefn session_settings(&self) -> Option<SessionSettings>
fn session_settings(&self) -> Option<SessionSettings>
The settings of the current session.
Trait Implementations§
Source§impl Debug for SidebarSection
impl Debug for SidebarSection
Source§impl Default for SidebarSection
impl Default for SidebarSection
Source§fn default() -> SidebarSection
fn default() -> SidebarSection
Returns the “default value” for a type. Read more
Source§impl DerivedObjectProperties for SidebarSection
impl DerivedObjectProperties for SidebarSection
Source§fn derived_properties() -> &'static [ParamSpec]
fn derived_properties() -> &'static [ParamSpec]
Properties installed for this type.
Source§fn derived_property(&self, id: usize, pspec: &ParamSpec) -> Value
fn derived_property(&self, id: usize, pspec: &ParamSpec) -> Value
Similar to
ObjectImpl
but auto-generated by the Properties
macro
to allow handling more complex use-cases.Source§fn derived_set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
fn derived_set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
Similar to
ObjectImpl
but auto-generated by the Properties
macro
to allow handling more complex use-cases.Source§impl ListModelImpl for SidebarSection
impl ListModelImpl for SidebarSection
Source§impl ObjectImpl for SidebarSection
impl ObjectImpl for SidebarSection
Source§fn constructed(&self)
fn constructed(&self)
Constructed. Read more
Source§fn properties() -> &'static [ParamSpec]
fn properties() -> &'static [ParamSpec]
Properties installed for this type.
Source§fn set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
fn set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
Property setter. Read more
Source§fn notify(&self, pspec: &ParamSpec)
fn notify(&self, pspec: &ParamSpec)
Function to be called when property change is notified for with
self.notify("property")
.fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])
Source§impl ObjectSubclass for SidebarSection
impl ObjectSubclass for SidebarSection
Source§type ParentType = Object
type ParentType = Object
Parent Rust type to inherit from.
Source§type Class = ClassStruct<SidebarSection>
type Class = ClassStruct<SidebarSection>
The C class struct. Read more
Source§type Instance = InstanceStruct<SidebarSection>
type Instance = InstanceStruct<SidebarSection>
The C instance struct. Read more
Source§type Type = SidebarSection
type Type = SidebarSection
Wrapper around this subclass defined with
wrapper!
Source§type Interfaces = (ListModel,)
type Interfaces = (ListModel,)
List of interfaces implemented by this type.
Source§const ALLOW_NAME_CONFLICT: bool = false
const ALLOW_NAME_CONFLICT: bool = false
Allow name conflicts for this class. Read more
Source§fn type_init(_type_: &mut InitializingType<Self>)
fn type_init(_type_: &mut InitializingType<Self>)
Additional type initialization. Read more
Source§fn class_init(_klass: &mut Self::Class)
fn class_init(_klass: &mut Self::Class)
Class initialization. Read more
Source§fn with_class(_klass: &Self::Class) -> Self
fn with_class(_klass: &Self::Class) -> Self
Constructor. Read more
Source§fn instance_init(_obj: &InitializingObject<Self>)
fn instance_init(_obj: &InitializingObject<Self>)
Performs additional instance initialization. Read more
Auto Trait Implementations§
impl !Freeze for SidebarSection
impl !RefUnwindSafe for SidebarSection
impl !Send for SidebarSection
impl !Sync for SidebarSection
impl Unpin for SidebarSection
impl UnwindSafe for SidebarSection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ListModelImplExt for Twhere
T: ListModelImpl,
impl<T> ListModelImplExt for Twhere
T: ListModelImpl,
fn parent_item_type(&self) -> Type
fn parent_n_items(&self) -> u32
fn parent_item(&self, position: u32) -> Option<Object>
Source§impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
Source§fn parent_constructed(&self)
fn parent_constructed(&self)
Chain up to the parent class’ implementation of
glib::Object::constructed()
.Source§fn parent_notify(&self, pspec: &ParamSpec)
fn parent_notify(&self, pspec: &ParamSpec)
Chain up to the parent class’ implementation of
glib::Object::notify()
.Source§fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])
fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])
Chain up to the parent class’ implementation of
glib::Object::dispatch_properties_changed()
.Source§fn signal_chain_from_overridden(
&self,
token: &SignalClassHandlerToken,
values: &[Value],
) -> Option<Value>
fn signal_chain_from_overridden( &self, token: &SignalClassHandlerToken, values: &[Value], ) -> Option<Value>
Chain up to parent class signal handler.
Source§impl<T> ObjectSubclassExt for Twhere
T: ObjectSubclass,
impl<T> ObjectSubclassExt for Twhere
T: ObjectSubclass,
Source§fn instance(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
fn instance(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
👎Deprecated: Use obj() instead
Returns the corresponding object instance.
Source§fn from_instance(obj: &<T as ObjectSubclass>::Type) -> &T
fn from_instance(obj: &<T as ObjectSubclass>::Type) -> &T
👎Deprecated: Use from_obj() instead
Returns the implementation from an instance.
Source§fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
Returns the corresponding object instance. Read more
Source§fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T
fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T
Returns the implementation from an instance. Read more
Source§fn ref_counted(&self) -> ObjectImplRef<T>
fn ref_counted(&self) -> ObjectImplRef<T>
Returns a new reference-counted wrapper around
self
.