Trait WindowExtUnix

Source
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§

Source

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.

Source

fn gtk_window(&self) -> &ApplicationWindow

Returns the gtk::ApplicatonWindow from gtk crate that is used by this window.

Source

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.

Source

fn set_skip_taskbar(&self, skip: bool) -> Result<(), ExternalError>

Whether to show the window icon in the taskbar or not.

Source

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.

Implementors§