pub trait LockscreenExt: IsA<Lockscreen> + 'static {
Show 14 methods
// Provided methods
fn add_extra_page(&self, widget: &impl IsA<Widget>) { ... }
fn clear_pin_entry(&self) { ... }
fn page(&self) -> LockscreenPage { ... }
fn pin_entry(&self) -> GString { ... }
fn set_default_page(&self, page: LockscreenPage) { ... }
fn set_page(&self, page: LockscreenPage) { ... }
fn set_unlock_status(&self, status: &str) { ... }
fn shake_pin_entry(&self) { ... }
fn requires_unlock(&self) -> bool { ... }
fn set_require_unlock(&self, require_unlock: bool) { ... }
fn connect_lockscreen_unlock<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_wakeup_output<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_page_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_require_unlock_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}Provided Methods§
Sourcefn add_extra_page(&self, widget: &impl IsA<Widget>)
fn add_extra_page(&self, widget: &impl IsA<Widget>)
Examples found in repository?
examples/custom-shell-and-lockscreen.rs (line 118)
110 fn constructed(&self) {
111 self.parent_constructed();
112 glib::g_message!("example", "Constructed custom Lockscreen");
113
114 let hi = Image::builder()
115 .icon_name("face-kiss")
116 .pixel_size(100)
117 .build();
118 self.obj().add_extra_page(&hi);
119 hi.set_visible(true);
120
121 self.obj().connect_lockscreen_unlock(|_| {
122 glib::g_message!("example", "Custom Lockscreen was unlocked.");
123 });
124
125 self.obj().connect_page_notify(|me| {
126 glib::g_message!("example", "Lockscreen page changed to {:?}", me.page());
127 });
128 }fn clear_pin_entry(&self)
Sourcefn page(&self) -> LockscreenPage
fn page(&self) -> LockscreenPage
Examples found in repository?
examples/custom-shell-and-lockscreen.rs (line 126)
110 fn constructed(&self) {
111 self.parent_constructed();
112 glib::g_message!("example", "Constructed custom Lockscreen");
113
114 let hi = Image::builder()
115 .icon_name("face-kiss")
116 .pixel_size(100)
117 .build();
118 self.obj().add_extra_page(&hi);
119 hi.set_visible(true);
120
121 self.obj().connect_lockscreen_unlock(|_| {
122 glib::g_message!("example", "Custom Lockscreen was unlocked.");
123 });
124
125 self.obj().connect_page_notify(|me| {
126 glib::g_message!("example", "Lockscreen page changed to {:?}", me.page());
127 });
128 }fn pin_entry(&self) -> GString
fn set_default_page(&self, page: LockscreenPage)
fn set_page(&self, page: LockscreenPage)
fn set_unlock_status(&self, status: &str)
fn shake_pin_entry(&self)
fn requires_unlock(&self) -> bool
fn set_require_unlock(&self, require_unlock: bool)
Sourcefn connect_lockscreen_unlock<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_lockscreen_unlock<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Examples found in repository?
examples/custom-shell-and-lockscreen.rs (lines 121-123)
110 fn constructed(&self) {
111 self.parent_constructed();
112 glib::g_message!("example", "Constructed custom Lockscreen");
113
114 let hi = Image::builder()
115 .icon_name("face-kiss")
116 .pixel_size(100)
117 .build();
118 self.obj().add_extra_page(&hi);
119 hi.set_visible(true);
120
121 self.obj().connect_lockscreen_unlock(|_| {
122 glib::g_message!("example", "Custom Lockscreen was unlocked.");
123 });
124
125 self.obj().connect_page_notify(|me| {
126 glib::g_message!("example", "Lockscreen page changed to {:?}", me.page());
127 });
128 }fn connect_wakeup_output<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Sourcefn connect_page_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_page_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Examples found in repository?
examples/custom-shell-and-lockscreen.rs (lines 125-127)
110 fn constructed(&self) {
111 self.parent_constructed();
112 glib::g_message!("example", "Constructed custom Lockscreen");
113
114 let hi = Image::builder()
115 .icon_name("face-kiss")
116 .pixel_size(100)
117 .build();
118 self.obj().add_extra_page(&hi);
119 hi.set_visible(true);
120
121 self.obj().connect_lockscreen_unlock(|_| {
122 glib::g_message!("example", "Custom Lockscreen was unlocked.");
123 });
124
125 self.obj().connect_page_notify(|me| {
126 glib::g_message!("example", "Lockscreen page changed to {:?}", me.page());
127 });
128 }fn connect_require_unlock_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.