pub struct GeneralPage {Show 18 fields
avatar: TemplateChild<EditableAvatar>,
display_name: TemplateChild<EntryRow>,
display_name_button: TemplateChild<ActionButton>,
user_id: TemplateChild<CopyableRow>,
user_sessions_row: TemplateChild<ButtonCountRow>,
change_password_row: TemplateChild<ButtonRow>,
manage_account_row: TemplateChild<ButtonRow>,
homeserver: TemplateChild<CopyableRow>,
session_id: TemplateChild<CopyableRow>,
deactivate_account_button: TemplateChild<ButtonRow>,
session: WeakRef<Session>,
account_settings: WeakRef<AccountSettings>,
capabilities: RefCell<Capabilities>,
changing_avatar: RefCell<Option<OngoingAsyncAction<OwnedMxcUri>>>,
changing_display_name: RefCell<Option<OngoingAsyncAction<String>>>,
avatar_uri_handler: RefCell<Option<SignalHandlerId>>,
display_name_handler: RefCell<Option<SignalHandlerId>>,
user_sessions_count_handler: RefCell<Option<SignalHandlerId>>,
}
Fields§
§avatar: TemplateChild<EditableAvatar>
§display_name: TemplateChild<EntryRow>
§user_id: TemplateChild<CopyableRow>
§user_sessions_row: TemplateChild<ButtonCountRow>
§change_password_row: TemplateChild<ButtonRow>
§manage_account_row: TemplateChild<ButtonRow>
§homeserver: TemplateChild<CopyableRow>
§session_id: TemplateChild<CopyableRow>
§session: WeakRef<Session>
The current session.
account_settings: WeakRef<AccountSettings>
The ancestor AccountSettings
.
capabilities: RefCell<Capabilities>
The possible changes on the homeserver.
changing_avatar: RefCell<Option<OngoingAsyncAction<OwnedMxcUri>>>
§changing_display_name: RefCell<Option<OngoingAsyncAction<String>>>
§avatar_uri_handler: RefCell<Option<SignalHandlerId>>
§display_name_handler: RefCell<Option<SignalHandlerId>>
§user_sessions_count_handler: RefCell<Option<SignalHandlerId>>
Implementations§
Source§impl GeneralPage
impl GeneralPage
Sourcefn register_type()
fn register_type()
Registers the type only once.
Source§impl GeneralPage
impl GeneralPage
Sourcefn set_session(&self, session: Option<Session>)
fn set_session(&self, session: Option<Session>)
Set the current session.
Sourcefn set_account_settings(&self, account_settings: Option<&AccountSettings>)
fn set_account_settings(&self, account_settings: Option<&AccountSettings>)
Set the acestor AccountSettings
.
Sourcefn account_management_url_builder(&self) -> Option<AccountManagementUrlBuilder>
fn account_management_url_builder(&self) -> Option<AccountManagementUrlBuilder>
The builder for the account management URL of the OAuth 2.0 authorization server, if any.
Sourceasync fn load_capabilities(&self)
async fn load_capabilities(&self)
Load the possible changes on the user account.
Sourcefn update_capabilities(&self)
fn update_capabilities(&self)
Update the possible changes on the user account with the current state.
Sourceasync fn manage_account(&self)
async fn manage_account(&self)
Open the URL to manage the account.
Sourcefn user_avatar_changed(&self, uri: Option<&OwnedMxcUri>)
fn user_avatar_changed(&self, uri: Option<&OwnedMxcUri>)
Update the view when the user’s avatar changed.
Sourceasync fn change_avatar(&self, file: File)
async fn change_avatar(&self, file: File)
Change the avatar of the user with the one in the given file.
Sourceasync fn remove_avatar(&self)
async fn remove_avatar(&self)
Remove the current avatar of the user.
Sourcefn display_name_changed(&self)
fn display_name_changed(&self)
Update the view when the text of the display name changed.
Sourcefn has_display_name_changed(&self) -> bool
fn has_display_name_changed(&self) -> bool
Whether the display name in the entry row is different than the user’s.
Sourcefn user_display_name_changed(&self, name: &str)
fn user_display_name_changed(&self, name: &str)
Update the view when the user’s display name changed.
Sourceasync fn change_display_name(&self)
async fn change_display_name(&self)
Change the display name of the user.
Trait Implementations§
Source§impl CompositeTemplate for GeneralPage
impl CompositeTemplate for GeneralPage
fn bind_template(klass: &mut Self::Class)
fn check_template_children(widget: &<Self as ObjectSubclass>::Type)
Source§impl CompositeTemplateCallbacks for GeneralPage
impl CompositeTemplateCallbacks for GeneralPage
const CALLBACKS: &'static [TemplateCallback]
Source§fn bind_template_callbacks<T>(klass: &mut T)where
T: WidgetClassExt,
fn bind_template_callbacks<T>(klass: &mut T)where
T: WidgetClassExt,
klass
.Source§fn bind_template_callbacks_prefixed<T>(klass: &mut T, prefix: &str)where
T: WidgetClassExt,
fn bind_template_callbacks_prefixed<T>(klass: &mut T, prefix: &str)where
T: WidgetClassExt,
klass
, prepending prefix
to each callback name.Source§fn add_callbacks_to_scope(scope: &BuilderRustScope)
fn add_callbacks_to_scope(scope: &BuilderRustScope)
scope
.Source§fn add_callbacks_to_scope_prefixed(scope: &BuilderRustScope, prefix: &str)
fn add_callbacks_to_scope_prefixed(scope: &BuilderRustScope, prefix: &str)
scope
, prepending
prefix
to each callback name.Source§impl Debug for GeneralPage
impl Debug for GeneralPage
Source§impl Default for GeneralPage
impl Default for GeneralPage
Source§fn default() -> GeneralPage
fn default() -> GeneralPage
Source§impl DerivedObjectProperties for GeneralPage
impl DerivedObjectProperties for GeneralPage
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 GeneralPage
impl ObjectImpl for GeneralPage
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 GeneralPage
impl ObjectSubclass for GeneralPage
Source§type Interfaces = ()
type Interfaces = ()
Source§type Class = ClassStruct<GeneralPage>
type Class = ClassStruct<GeneralPage>
Source§type Instance = InstanceStruct<GeneralPage>
type Instance = InstanceStruct<GeneralPage>
Source§type Type = GeneralPage
type Type = GeneralPage
wrapper!
Source§type ParentType = PreferencesPage
type ParentType = PreferencesPage
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 ObjectSubclassType for GeneralPage
impl ObjectSubclassType for GeneralPage
Source§impl WidgetImpl for GeneralPage
impl WidgetImpl for GeneralPage
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)
impl PreferencesPageImpl for GeneralPage
Auto Trait Implementations§
impl !Freeze for GeneralPage
impl !RefUnwindSafe for GeneralPage
impl !Send for GeneralPage
impl !Sync for GeneralPage
impl Unpin for GeneralPage
impl !UnwindSafe for GeneralPage
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
.