Struct fractal::components::avatar::editable::imp::EditableAvatar
source · pub struct EditableAvatar {Show 15 fields
pub data: RefCell<Option<AvatarData>>,
pub editable: Cell<bool>,
pub inhibit_remove: Cell<bool>,
pub state: Cell<EditableAvatarState>,
pub edit_state: Cell<ActionState>,
pub edit_sensitive: Cell<bool>,
pub removable: Cell<bool>,
pub remove_state: Cell<ActionState>,
pub remove_sensitive: Cell<bool>,
pub temp_paintable: RefCell<Option<Paintable>>,
temp_paintable_animation_ref: RefCell<Option<CountedRef>>,
pub stack: TemplateChild<Stack>,
pub temp_avatar: TemplateChild<Avatar>,
pub button_remove: TemplateChild<ActionButton>,
pub button_edit: TemplateChild<ActionButton>,
}
Fields§
§data: RefCell<Option<AvatarData>>
The AvatarData
to display.
editable: Cell<bool>
Whether this avatar is changeable.
inhibit_remove: Cell<bool>
Whether to prevent the remove button from showing.
state: Cell<EditableAvatarState>
The current state of the edit.
edit_state: Cell<ActionState>
The state of the avatar edit.
edit_sensitive: Cell<bool>
Whether the edit button is sensitive.
removable: Cell<bool>
Whether this avatar is removable.
remove_state: Cell<ActionState>
The state of the avatar removal.
remove_sensitive: Cell<bool>
Whether the remove button is sensitive.
temp_paintable: RefCell<Option<Paintable>>
A temporary paintable to show instead of the avatar.
temp_paintable_animation_ref: RefCell<Option<CountedRef>>
§stack: TemplateChild<Stack>
§temp_avatar: TemplateChild<Avatar>
Implementations§
source§impl EditableAvatar
impl EditableAvatar
sourcefn register_type()
fn register_type()
Registers the type only once.
source§impl EditableAvatar
impl EditableAvatar
sourcefn set_data(&self, data: Option<AvatarData>)
fn set_data(&self, data: Option<AvatarData>)
Set the AvatarData
to display.
sourcefn set_editable(&self, editable: bool)
fn set_editable(&self, editable: bool)
Set whether this avatar is editable.
sourcefn set_inhibit_remove(&self, inhibit: bool)
fn set_inhibit_remove(&self, inhibit: bool)
Set whether to prevent the remove button from showing..
sourcefn set_state(&self, state: EditableAvatarState)
fn set_state(&self, state: EditableAvatarState)
Set the state of the edit.
sourcefn avatar_dimensions(&self) -> ImageDimensions
fn avatar_dimensions(&self) -> ImageDimensions
The dimensions of the avatar in this widget.
sourcepub(super) async fn set_temp_paintable_from_file(&self, file: File)
pub(super) async fn set_temp_paintable_from_file(&self, file: File)
Load the temporary paintable from the given file.
sourcefn set_temp_paintable(&self, paintable: Option<Paintable>)
fn set_temp_paintable(&self, paintable: Option<Paintable>)
Set the temporary paintable.
sourcefn show_temp_paintable(&self, show: bool)
fn show_temp_paintable(&self, show: bool)
Show the temporary paintable instead of the current avatar.
sourcefn update_temp_paintable_state(&self)
fn update_temp_paintable_state(&self)
Update the state of the temp paintable.
Trait Implementations§
source§impl CompositeTemplate for EditableAvatar
impl CompositeTemplate for EditableAvatar
fn bind_template(klass: &mut Self::Class)
fn check_template_children(widget: &<Self as ObjectSubclass>::Type)
source§impl Debug for EditableAvatar
impl Debug for EditableAvatar
source§impl Default for EditableAvatar
impl Default for EditableAvatar
source§fn default() -> EditableAvatar
fn default() -> EditableAvatar
source§impl DerivedObjectProperties for EditableAvatar
impl DerivedObjectProperties for EditableAvatar
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 EditableAvatar
impl ObjectImpl for EditableAvatar
source§fn constructed(&self)
fn constructed(&self)
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 notify(&self, pspec: &ParamSpec)
fn notify(&self, pspec: &ParamSpec)
self.notify("property")
.fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])
source§impl ObjectSubclass for EditableAvatar
impl ObjectSubclass for EditableAvatar
§type Interfaces = ()
type Interfaces = ()
§type Class = ClassStruct<EditableAvatar>
type Class = ClassStruct<EditableAvatar>
§type Instance = InstanceStruct<EditableAvatar>
type Instance = InstanceStruct<EditableAvatar>
§type Type = EditableAvatar
type Type = EditableAvatar
wrapper!
§type ParentType = Bin
type ParentType = Bin
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 EditableAvatar
impl ObjectSubclassType for EditableAvatar
source§impl WidgetImpl for EditableAvatar
impl WidgetImpl for EditableAvatar
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 BinImpl for EditableAvatar
Auto Trait Implementations§
impl !Freeze for EditableAvatar
impl !RefUnwindSafe for EditableAvatar
impl !Send for EditableAvatar
impl !Sync for EditableAvatar
impl Unpin for EditableAvatar
impl !UnwindSafe for EditableAvatar
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> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
source§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
.