Trait gdk4::prelude::SurfaceExt

source ·
pub trait SurfaceExt: 'static {
Show 32 methods // Required methods fn beep(&self); fn create_cairo_context(&self) -> CairoContext; fn create_gl_context(&self) -> Result<GLContext, Error>; fn create_vulkan_context(&self) -> Result<VulkanContext, Error>; fn destroy(&self); fn cursor(&self) -> Option<Cursor>; fn device_cursor(&self, device: &impl IsA<Device>) -> Option<Cursor>; fn device_position( &self, device: &impl IsA<Device> ) -> Option<(f64, f64, ModifierType)>; fn display(&self) -> Display; fn frame_clock(&self) -> FrameClock; fn height(&self) -> i32; fn is_mapped(&self) -> bool; fn scale_factor(&self) -> i32; fn width(&self) -> i32; fn hide(&self); fn is_destroyed(&self) -> bool; fn queue_render(&self); fn request_layout(&self); fn set_cursor(&self, cursor: Option<&Cursor>); fn set_device_cursor(&self, device: &impl IsA<Device>, cursor: &Cursor); fn set_input_region(&self, region: &Region); fn set_opaque_region(&self, region: Option<&Region>); fn connect_enter_monitor<F: Fn(&Self, &Monitor) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_event<F: Fn(&Self, &Event) -> bool + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_layout<F: Fn(&Self, i32, i32) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_leave_monitor<F: Fn(&Self, &Monitor) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_render<F: Fn(&Self, &Region) -> bool + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_cursor_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_height_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_mapped_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_scale_factor_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_width_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId;
}

Required Methods§

source

fn beep(&self)

source

fn create_cairo_context(&self) -> CairoContext

source

fn create_gl_context(&self) -> Result<GLContext, Error>

source

fn create_vulkan_context(&self) -> Result<VulkanContext, Error>

source

fn destroy(&self)

source

fn cursor(&self) -> Option<Cursor>

source

fn device_cursor(&self, device: &impl IsA<Device>) -> Option<Cursor>

source

fn device_position( &self, device: &impl IsA<Device> ) -> Option<(f64, f64, ModifierType)>

source

fn display(&self) -> Display

source

fn frame_clock(&self) -> FrameClock

source

fn height(&self) -> i32

source

fn is_mapped(&self) -> bool

source

fn scale_factor(&self) -> i32

source

fn width(&self) -> i32

source

fn hide(&self)

source

fn is_destroyed(&self) -> bool

source

fn queue_render(&self)

source

fn request_layout(&self)

source

fn set_cursor(&self, cursor: Option<&Cursor>)

source

fn set_device_cursor(&self, device: &impl IsA<Device>, cursor: &Cursor)

source

fn set_input_region(&self, region: &Region)

source

fn set_opaque_region(&self, region: Option<&Region>)

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

Implementors§