pub trait ToplevelExt: 'static {
Show 37 methods
fn begin_move(
&self,
device: &impl IsA<Device>,
button: i32,
x: f64,
y: f64,
timestamp: u32
);
fn begin_resize(
&self,
edge: SurfaceEdge,
device: Option<&impl IsA<Device>>,
button: i32,
x: f64,
y: f64,
timestamp: u32
);
fn focus(&self, timestamp: u32);
fn state(&self) -> ToplevelState;
fn inhibit_system_shortcuts(&self, event: Option<impl AsRef<Event>>);
fn lower(&self) -> bool;
fn minimize(&self) -> bool;
fn present(&self, layout: &ToplevelLayout);
fn restore_system_shortcuts(&self);
fn set_decorated(&self, decorated: bool);
fn set_deletable(&self, deletable: bool);
fn set_icon_list(&self, surfaces: &[Texture]);
fn set_modal(&self, modal: bool);
fn set_startup_id(&self, startup_id: &str);
fn set_title(&self, title: &str);
fn set_transient_for(&self, parent: &impl IsA<Surface>);
fn show_window_menu(&self, event: impl AsRef<Event>) -> bool;
fn supports_edge_constraints(&self) -> bool;
fn is_decorated(&self) -> bool;
fn is_deletable(&self) -> bool;
fn fullscreen_mode(&self) -> FullscreenMode;
fn set_fullscreen_mode(&self, fullscreen_mode: FullscreenMode);
fn is_modal(&self) -> bool;
fn is_shortcuts_inhibited(&self) -> bool;
fn startup_id(&self) -> Option<GString>;
fn title(&self) -> Option<GString>;
fn transient_for(&self) -> Option<Surface>;
fn connect_decorated_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_deletable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_fullscreen_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_icon_list_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_modal_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_shortcuts_inhibited_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_startup_id_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_state_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_title_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_transient_for_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}