pub trait WindowExtUnix {
// Required methods
fn new_from_gtk_window<T: 'static>(
event_loop_window_target: &EventLoopWindowTarget<T>,
window: ApplicationWindow,
) -> Result<Window, OsError>;
fn gtk_window(&self) -> &ApplicationWindow;
fn default_vbox(&self) -> Option<&Box>;
fn set_skip_taskbar(&self, skip: bool) -> Result<(), ExternalError>;
fn set_badge_count(
&self,
count: Option<i64>,
desktop_filename: Option<String>,
);
}
Expand description
Additional methods on Window
that are specific to Unix.
Required Methods§
Sourcefn new_from_gtk_window<T: 'static>(
event_loop_window_target: &EventLoopWindowTarget<T>,
window: ApplicationWindow,
) -> Result<Window, OsError>
fn new_from_gtk_window<T: 'static>( event_loop_window_target: &EventLoopWindowTarget<T>, window: ApplicationWindow, ) -> Result<Window, OsError>
Create a new Tao window from an existing GTK window. Generally you should use
the non-Linux WindowBuilder
, this is for those who need lower level window access
and know what they’re doing.
Sourcefn gtk_window(&self) -> &ApplicationWindow
fn gtk_window(&self) -> &ApplicationWindow
Returns the gtk::ApplicatonWindow
from gtk crate that is used by this window.
Sourcefn default_vbox(&self) -> Option<&Box>
fn default_vbox(&self) -> Option<&Box>
Returns the vertical gtk::Box
that is added by default as the sole child of this window.
Returns None
if the default vertical gtk::Box
creation was disabled by WindowBuilderExtUnix::with_default_vbox
.
Sourcefn set_skip_taskbar(&self, skip: bool) -> Result<(), ExternalError>
fn set_skip_taskbar(&self, skip: bool) -> Result<(), ExternalError>
Whether to show the window icon in the taskbar or not.
fn set_badge_count(&self, count: Option<i64>, desktop_filename: Option<String>)
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.