Struct souk::main::ui::sideload::sideload_window::imp::SkSideloadWindow
source · pub struct SkSideloadWindow {Show 35 fields
file: OnceCell<File>,
sideloadable: RefCell<Option<SkSideloadable>>,
task: RefCell<Option<SkTask>>,
sideload_stack: TemplateChild<Stack>,
sideload_leaflet: TemplateChild<Leaflet>,
cancel_sideload_button: TemplateChild<Button>,
start_button: TemplateChild<Button>,
package_box: TemplateChild<Box>,
details_title: TemplateChild<WindowTitle>,
package_icon_image: TemplateChild<Image>,
package_name_label: TemplateChild<Label>,
package_developer_label: TemplateChild<Label>,
package_version_label: TemplateChild<Label>,
package_branch_badge: TemplateChild<SkBadge>,
package_repository_badge: TemplateChild<SkBadge>,
package_context_listbox: TemplateChild<ListBox>,
warn_group: TemplateChild<PreferencesGroup>,
no_updates_row: TemplateChild<ActionRow>,
replacing_remote_row: TemplateChild<ActionRow>,
remotes_group: TemplateChild<PreferencesGroup>,
remotes_listbox: TemplateChild<ListBox>,
context_box: TemplateChild<SkContextBox>,
installation_listbox: TemplateChild<SkInstallationListBox>,
progress_title: TemplateChild<WindowTitle>,
progress_bar: TemplateChild<SkTaskProgressBar>,
progress_status_label: TemplateChild<Label>,
progress_download_label: TemplateChild<Label>,
done_title: TemplateChild<WindowTitle>,
done_spage: TemplateChild<StatusPage>,
launch_button: TemplateChild<Button>,
error_title: TemplateChild<WindowTitle>,
error_spage: TemplateChild<StatusPage>,
already_done_title: TemplateChild<WindowTitle>,
already_done_spage: TemplateChild<StatusPage>,
missing_runtime_spage: TemplateChild<StatusPage>,
}
Fields§
§file: OnceCell<File>
§sideloadable: RefCell<Option<SkSideloadable>>
§task: RefCell<Option<SkTask>>
§sideload_stack: TemplateChild<Stack>
§sideload_leaflet: TemplateChild<Leaflet>
§package_box: TemplateChild<Box>
§details_title: TemplateChild<WindowTitle>
§package_icon_image: TemplateChild<Image>
§package_name_label: TemplateChild<Label>
§package_developer_label: TemplateChild<Label>
§package_version_label: TemplateChild<Label>
§package_branch_badge: TemplateChild<SkBadge>
§package_repository_badge: TemplateChild<SkBadge>
§package_context_listbox: TemplateChild<ListBox>
§warn_group: TemplateChild<PreferencesGroup>
§no_updates_row: TemplateChild<ActionRow>
§replacing_remote_row: TemplateChild<ActionRow>
§remotes_group: TemplateChild<PreferencesGroup>
§remotes_listbox: TemplateChild<ListBox>
§context_box: TemplateChild<SkContextBox>
§installation_listbox: TemplateChild<SkInstallationListBox>
§progress_title: TemplateChild<WindowTitle>
§progress_bar: TemplateChild<SkTaskProgressBar>
§progress_status_label: TemplateChild<Label>
§progress_download_label: TemplateChild<Label>
§done_title: TemplateChild<WindowTitle>
§done_spage: TemplateChild<StatusPage>
§error_title: TemplateChild<WindowTitle>
§error_spage: TemplateChild<StatusPage>
§already_done_title: TemplateChild<WindowTitle>
§already_done_spage: TemplateChild<StatusPage>
§missing_runtime_spage: TemplateChild<StatusPage>
Implementations§
source§impl SkSideloadWindow
impl SkSideloadWindow
fn set_sideloadable(&self, sideloadable: Option<&SkSideloadable>)
fn set_task(&self, task: &SkTask)
fn set_labels(&self, kind: LabelKind)
sourceasync fn update_sideloadable(&self)
async fn update_sideloadable(&self)
Load the sideloadable for the selected file asynchronously
async fn start_sideload(&self)
fn show_error_message(&self, message: &str)
fn show_missing_runtime_message(&self, runtime: &str)
fn go_back(&self)
fn start_sideload_clicked(&self)
fn cancel_sideload_clicked(&self)
fn launch_app_clicked(&self)
Trait Implementations§
source§impl CompositeTemplate for SkSideloadWindow
impl CompositeTemplate for SkSideloadWindow
fn bind_template(klass: &mut Self::Class)
fn check_template_children(widget: &<Self as ObjectSubclass>::Type)
source§impl CompositeTemplateCallbacks for SkSideloadWindow
impl CompositeTemplateCallbacks for SkSideloadWindow
const CALLBACKS: &'static [TemplateCallback] = _
§fn bind_template_callbacks<T>(klass: &mut T)where
T: WidgetClassSubclassExt,
fn bind_template_callbacks<T>(klass: &mut T)where
T: WidgetClassSubclassExt,
Binds the template callbacks from this type into the default template scope for
klass
.§fn bind_template_callbacks_prefixed<T>(klass: &mut T, prefix: &str)where
T: WidgetClassSubclassExt,
fn bind_template_callbacks_prefixed<T>(klass: &mut T, prefix: &str)where
T: WidgetClassSubclassExt,
Binds the template callbacks from this type into the default template scope for
klass
,
prepending prefix
to each callback name.§fn add_callbacks_to_scope(scope: &BuilderRustScope)
fn add_callbacks_to_scope(scope: &BuilderRustScope)
Binds the template callbacks from this type into
scope
.§fn add_callbacks_to_scope_prefixed(scope: &BuilderRustScope, prefix: &str)
fn add_callbacks_to_scope_prefixed(scope: &BuilderRustScope, prefix: &str)
Binds the template callbacks from this type into
scope
, prepending prefix
to each
callback name.source§impl Debug for SkSideloadWindow
impl Debug for SkSideloadWindow
source§impl Default for SkSideloadWindow
impl Default for SkSideloadWindow
source§fn default() -> SkSideloadWindow
fn default() -> SkSideloadWindow
Returns the “default value” for a type. Read more
source§impl DerivedObjectProperties for SkSideloadWindow
impl DerivedObjectProperties for SkSideloadWindow
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 ObjectImpl for SkSideloadWindow
impl ObjectImpl for SkSideloadWindow
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 constructed(&self)
fn constructed(&self)
Constructed. Read more
§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 SkSideloadWindow
impl ObjectSubclass for SkSideloadWindow
§type Interfaces = ()
type Interfaces = ()
List of interfaces implemented by this type.
§type Class = ClassStruct<SkSideloadWindow>
type Class = ClassStruct<SkSideloadWindow>
The C class struct. Read more
§type Instance = InstanceStruct<SkSideloadWindow>
type Instance = InstanceStruct<SkSideloadWindow>
The C instance struct. Read more
§type ParentType = Window
type ParentType = Window
Parent Rust type to inherit from.
§type Type = SkSideloadWindow
type Type = SkSideloadWindow
Wrapper around this subclass defined with
wrapper!
source§fn class_init(klass: &mut Self::Class)
fn class_init(klass: &mut Self::Class)
Class initialization. Read more
source§fn instance_init(obj: &InitializingObject<Self>)
fn instance_init(obj: &InitializingObject<Self>)
Performs additional instance initialization. Read more
§fn with_class(_klass: &Self::Class) -> Self
fn with_class(_klass: &Self::Class) -> Self
Constructor. Read more
source§impl ObjectSubclassType for SkSideloadWindow
impl ObjectSubclassType for SkSideloadWindow
source§impl WidgetImpl for SkSideloadWindow
impl WidgetImpl for SkSideloadWindow
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 hide(&self)
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 show(&self)
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)
source§impl WindowImpl for SkSideloadWindow
impl WindowImpl for SkSideloadWindow
fn activate_focus(&self)
fn activate_default(&self)
fn keys_changed(&self)
fn enable_debugging(&self, toggle: bool) -> bool
fn close_request(&self) -> Inhibit
impl AdwWindowImpl for SkSideloadWindow
Auto Trait Implementations§
impl !RefUnwindSafe for SkSideloadWindow
impl !Send for SkSideloadWindow
impl !Sync for SkSideloadWindow
impl Unpin for SkSideloadWindow
impl UnwindSafe for SkSideloadWindow
Blanket Implementations§
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> 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>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
§fn parent_constructed(&self)
fn parent_constructed(&self)
Chain up to the parent class’ implementation of
glib::Object::constructed()
.§fn parent_notify(&self, pspec: &ParamSpec)
fn parent_notify(&self, pspec: &ParamSpec)
Chain up to the parent class’ implementation of
glib::Object::notify()
.§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()
.§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.
§impl<T> ObjectSubclassExt for Twhere
T: ObjectSubclass,
impl<T> ObjectSubclassExt for Twhere
T: ObjectSubclass,
§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.
§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.
§fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
Returns the corresponding object instance. Read more
§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
§fn ref_counted(&self) -> ObjectImplRef<T>
fn ref_counted(&self) -> ObjectImplRef<T>
Returns a new reference-counted wrapper around
self
.