Trait gdk4::prelude::ToplevelExt

source ·
pub trait ToplevelExt: IsA<Toplevel> + Sealed + 'static {
Show 38 methods // Provided 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 titlebar_gesture(&self, gesture: TitlebarGesture) -> 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 { ... }
}

Provided Methods§

source

fn begin_move( &self, device: &impl IsA<Device>, button: i32, x: f64, y: f64, timestamp: u32 )

source

fn begin_resize( &self, edge: SurfaceEdge, device: Option<&impl IsA<Device>>, button: i32, x: f64, y: f64, timestamp: u32 )

source

fn focus(&self, timestamp: u32)

source

fn state(&self) -> ToplevelState

source

fn inhibit_system_shortcuts(&self, event: Option<impl AsRef<Event>>)

source

fn lower(&self) -> bool

source

fn minimize(&self) -> bool

source

fn present(&self, layout: &ToplevelLayout)

source

fn restore_system_shortcuts(&self)

source

fn set_decorated(&self, decorated: bool)

source

fn set_deletable(&self, deletable: bool)

source

fn set_icon_list(&self, surfaces: &[Texture])

source

fn set_modal(&self, modal: bool)

source

fn set_startup_id(&self, startup_id: &str)

source

fn set_title(&self, title: &str)

source

fn set_transient_for(&self, parent: &impl IsA<Surface>)

source

fn show_window_menu(&self, event: impl AsRef<Event>) -> bool

source

fn supports_edge_constraints(&self) -> bool

source

fn titlebar_gesture(&self, gesture: TitlebarGesture) -> bool

Available on crate feature v4_4 only.
source

fn is_decorated(&self) -> bool

source

fn is_deletable(&self) -> bool

source

fn fullscreen_mode(&self) -> FullscreenMode

source

fn set_fullscreen_mode(&self, fullscreen_mode: FullscreenMode)

source

fn is_modal(&self) -> bool

source

fn is_shortcuts_inhibited(&self) -> bool

source

fn startup_id(&self) -> Option<GString>

source

fn title(&self) -> Option<GString>

source

fn transient_for(&self) -> Option<Surface>

source

fn connect_decorated_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_deletable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_fullscreen_mode_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_icon_list_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_modal_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_shortcuts_inhibited_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_startup_id_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_state_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_transient_for_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§