pub struct PermissionsSubpage {Show 30 fields
pub save_button: TemplateChild<LoadingButton>,
pub messages_row: TemplateChild<PowerLevelSelectionRow>,
pub redact_own_row: TemplateChild<PowerLevelSelectionRow>,
pub redact_others_row: TemplateChild<PowerLevelSelectionRow>,
pub notify_room_row: TemplateChild<PowerLevelSelectionRow>,
pub state_row: TemplateChild<PowerLevelSelectionRow>,
pub name_row: TemplateChild<PowerLevelSelectionRow>,
pub topic_row: TemplateChild<PowerLevelSelectionRow>,
pub avatar_row: TemplateChild<PowerLevelSelectionRow>,
pub aliases_row: TemplateChild<PowerLevelSelectionRow>,
pub history_visibility_row: TemplateChild<PowerLevelSelectionRow>,
pub encryption_row: TemplateChild<PowerLevelSelectionRow>,
pub power_levels_row: TemplateChild<PowerLevelSelectionRow>,
pub server_acl_row: TemplateChild<PowerLevelSelectionRow>,
pub upgrade_row: TemplateChild<PowerLevelSelectionRow>,
pub invite_row: TemplateChild<PowerLevelSelectionRow>,
pub kick_row: TemplateChild<PowerLevelSelectionRow>,
pub ban_row: TemplateChild<PowerLevelSelectionRow>,
pub members_default_spin_row: TemplateChild<SpinRow>,
pub members_default_adjustment: TemplateChild<Adjustment>,
pub members_default_text_row: TemplateChild<ActionRow>,
pub members_default_label: TemplateChild<Label>,
pub members_privileged_button: TemplateChild<ButtonCountRow>,
pub members_subpage: TemplateChild<PermissionsMembersSubpage>,
pub add_members_subpage: TemplateChild<PermissionsAddMembersSubpage>,
pub permissions: BoundObjectWeakRef<Permissions>,
pub editable: Cell<bool>,
pub changed: Cell<bool>,
pub privileged_members: OnceCell<PrivilegedMembers>,
pub update_in_progress: Cell<bool>,
}
Fields§
§messages_row: TemplateChild<PowerLevelSelectionRow>
§redact_own_row: TemplateChild<PowerLevelSelectionRow>
§redact_others_row: TemplateChild<PowerLevelSelectionRow>
§notify_room_row: TemplateChild<PowerLevelSelectionRow>
§state_row: TemplateChild<PowerLevelSelectionRow>
§name_row: TemplateChild<PowerLevelSelectionRow>
§topic_row: TemplateChild<PowerLevelSelectionRow>
§avatar_row: TemplateChild<PowerLevelSelectionRow>
§aliases_row: TemplateChild<PowerLevelSelectionRow>
§history_visibility_row: TemplateChild<PowerLevelSelectionRow>
§encryption_row: TemplateChild<PowerLevelSelectionRow>
§power_levels_row: TemplateChild<PowerLevelSelectionRow>
§server_acl_row: TemplateChild<PowerLevelSelectionRow>
§upgrade_row: TemplateChild<PowerLevelSelectionRow>
§invite_row: TemplateChild<PowerLevelSelectionRow>
§kick_row: TemplateChild<PowerLevelSelectionRow>
§ban_row: TemplateChild<PowerLevelSelectionRow>
§members_default_spin_row: TemplateChild<SpinRow>
§members_default_adjustment: TemplateChild<Adjustment>
§members_default_text_row: TemplateChild<ActionRow>
§members_default_label: TemplateChild<Label>
§members_subpage: TemplateChild<PermissionsMembersSubpage>
The subpage to view and edit members with custom power levels.
add_members_subpage: TemplateChild<PermissionsAddMembersSubpage>
The subpage to add members with custom power levels.
permissions: BoundObjectWeakRef<Permissions>
The permissions to watch.
editable: Cell<bool>
Whether our own user can change the power levels in this room.
changed: Cell<bool>
Whether the permissions were changed by the user.
privileged_members: OnceCell<PrivilegedMembers>
The list of members with custom power levels.
update_in_progress: Cell<bool>
Whether an update is in progress.
Avoids to call Self::update_changed()
too often when several rows
might be changed at once.
Implementations§
Source§impl PermissionsSubpage
impl PermissionsSubpage
Sourcefn register_type()
fn register_type()
Registers the type only once.
Source§impl PermissionsSubpage
impl PermissionsSubpage
Sourcefn set_permissions(&self, permissions: &Permissions)
fn set_permissions(&self, permissions: &Permissions)
Set the permissions to watch.
Sourcefn set_editable(&self, editable: bool)
fn set_editable(&self, editable: bool)
Set whether our own user can change the power levels in this room.
Sourcepub(super) fn update_changed(&self)
pub(super) fn update_changed(&self)
Update whether the permissions were changed by the user.
Sourcepub(super) fn compute_changed(&self) -> bool
pub(super) fn compute_changed(&self) -> bool
Compute whether the user changed the permissions.
Sourcefn update_room_actions(&self)
fn update_room_actions(&self)
Update the room actions section.
Sourcepub(super) fn update_state_rows(&self)
pub(super) fn update_state_rows(&self)
Update the rows about state events, except the default one.
Sourcefn update_member_actions(&self)
fn update_member_actions(&self)
Update the member actions section.
Sourcefn update_members_power_levels(&self)
fn update_members_power_levels(&self)
Update the member roles section.
Trait Implementations§
Source§impl CompositeTemplate for PermissionsSubpage
impl CompositeTemplate for PermissionsSubpage
fn bind_template(klass: &mut Self::Class)
fn check_template_children(widget: &<Self as ObjectSubclass>::Type)
Source§impl Debug for PermissionsSubpage
impl Debug for PermissionsSubpage
Source§impl Default for PermissionsSubpage
impl Default for PermissionsSubpage
Source§fn default() -> PermissionsSubpage
fn default() -> PermissionsSubpage
Source§impl DerivedObjectProperties for PermissionsSubpage
impl DerivedObjectProperties for PermissionsSubpage
Source§fn derived_properties() -> &'static [ParamSpec]
fn derived_properties() -> &'static [ParamSpec]
Source§fn derived_property(&self, id: usize, pspec: &ParamSpec) -> Value
fn derived_property(&self, id: usize, pspec: &ParamSpec) -> Value
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)
ObjectImpl
but auto-generated by the Properties
macro
to allow handling more complex use-cases.Source§impl ObjectImpl for PermissionsSubpage
impl ObjectImpl for PermissionsSubpage
Source§fn properties() -> &'static [ParamSpec]
fn properties() -> &'static [ParamSpec]
Source§fn set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
fn set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
Source§fn constructed(&self)
fn constructed(&self)
Source§fn notify(&self, pspec: &ParamSpec)
fn notify(&self, pspec: &ParamSpec)
self.notify("property")
.fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])
Source§impl ObjectSubclass for PermissionsSubpage
impl ObjectSubclass for PermissionsSubpage
Source§type Interfaces = ()
type Interfaces = ()
Source§type Class = ClassStruct<PermissionsSubpage>
type Class = ClassStruct<PermissionsSubpage>
Source§type Instance = InstanceStruct<PermissionsSubpage>
type Instance = InstanceStruct<PermissionsSubpage>
Source§type Type = PermissionsSubpage
type Type = PermissionsSubpage
wrapper!
Source§type ParentType = NavigationPage
type ParentType = NavigationPage
Source§fn class_init(klass: &mut Self::Class)
fn class_init(klass: &mut Self::Class)
Source§fn instance_init(obj: &InitializingObject<Self>)
fn instance_init(obj: &InitializingObject<Self>)
Source§const ALLOW_NAME_CONFLICT: bool = false
const ALLOW_NAME_CONFLICT: bool = false
Source§fn type_init(_type_: &mut InitializingType<Self>)
fn type_init(_type_: &mut InitializingType<Self>)
Source§fn with_class(_klass: &Self::Class) -> Self
fn with_class(_klass: &Self::Class) -> Self
Source§impl WidgetImpl for PermissionsSubpage
impl WidgetImpl for PermissionsSubpage
fn compute_expand(&self, hexpand: &mut bool, vexpand: &mut bool)
fn contains(&self, x: f64, y: f64) -> bool
fn direction_changed(&self, previous_direction: TextDirection)
fn focus(&self, direction_type: DirectionType) -> bool
fn request_mode(&self) -> SizeRequestMode
fn grab_focus(&self) -> bool
fn map(&self)
fn measure( &self, orientation: Orientation, for_size: i32, ) -> (i32, i32, i32, i32)
fn mnemonic_activate(&self, group_cycling: bool) -> bool
fn move_focus(&self, direction_type: DirectionType)
fn query_tooltip( &self, x: i32, y: i32, keyboard_tooltip: bool, tooltip: &Tooltip, ) -> bool
fn realize(&self)
fn root(&self)
fn set_focus_child(&self, child: Option<&Widget>)
fn size_allocate(&self, width: i32, height: i32, baseline: i32)
fn snapshot(&self, snapshot: &Snapshot)
fn state_flags_changed(&self, state_flags: &StateFlags)
fn system_setting_changed(&self, settings: &SystemSetting)
fn unmap(&self)
fn unrealize(&self)
fn unroot(&self)
Auto Trait Implementations§
impl !Freeze for PermissionsSubpage
impl !RefUnwindSafe for PermissionsSubpage
impl !Send for PermissionsSubpage
impl !Sync for PermissionsSubpage
impl Unpin for PermissionsSubpage
impl !UnwindSafe for PermissionsSubpage
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
Source§impl<T> CompositeTemplateDisposeExt for T
impl<T> CompositeTemplateDisposeExt for T
fn dispose_template(&self)
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>
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>
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> ObjectImplExt for Twhere
T: ObjectImpl,
impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
Source§fn parent_constructed(&self)
fn parent_constructed(&self)
glib::Object::constructed()
.Source§fn parent_notify(&self, pspec: &ParamSpec)
fn parent_notify(&self, pspec: &ParamSpec)
glib::Object::notify()
.Source§fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])
fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])
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>
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>
Source§fn from_instance(obj: &<T as ObjectSubclass>::Type) -> &T
fn from_instance(obj: &<T as ObjectSubclass>::Type) -> &T
Source§fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
Source§fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T
fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T
Source§fn ref_counted(&self) -> ObjectImplRef<T>
fn ref_counted(&self) -> ObjectImplRef<T>
self
.