pub trait StatusbarExt:
IsA<Statusbar>
+ Sealed
+ 'static {
// Provided methods
fn context_id(&self, context_description: &str) -> u32 { ... }
fn message_area(&self) -> Option<Box> { ... }
fn pop(&self, context_id: u32) { ... }
fn push(&self, context_id: u32, text: &str) -> u32 { ... }
fn remove(&self, context_id: u32, message_id: u32) { ... }
fn remove_all(&self, context_id: u32) { ... }
fn connect_text_popped<F: Fn(&Self, u32, &str) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_text_pushed<F: Fn(&Self, u32, &str) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}Provided Methods§
Sourcefn context_id(&self, context_description: &str) -> u32
fn context_id(&self, context_description: &str) -> u32
Sourcefn message_area(&self) -> Option<Box>
fn message_area(&self) -> Option<Box>
Sourcefn push(&self, context_id: u32, text: &str) -> u32
fn push(&self, context_id: u32, text: &str) -> u32
Pushes a new message onto a statusbar’s stack.
§context_id
the message’s context id, as returned by
context_id()
§text
the message to add to the statusbar
§Returns
a message id that can be used with
remove().
Sourcefn remove_all(&self, context_id: u32)
fn remove_all(&self, context_id: u32)
Forces the removal of all messages from a statusbar’s
stack with the exact context_id.
§context_id
a context identifier
Sourcefn connect_text_popped<F: Fn(&Self, u32, &str) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_text_popped<F: Fn(&Self, u32, &str) + 'static>( &self, f: F, ) -> SignalHandlerId
Sourcefn connect_text_pushed<F: Fn(&Self, u32, &str) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_text_pushed<F: Fn(&Self, u32, &str) + 'static>( &self, f: F, ) -> SignalHandlerId
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".