libadwaita::prelude

Trait AdwDialogExt

Source
pub trait AdwDialogExt:
    IsA<Dialog>
    + Sealed
    + 'static {
Show 35 methods // Provided methods fn add_breakpoint(&self, breakpoint: Breakpoint) { ... } fn close(&self) -> bool { ... } fn force_close(&self) { ... } fn can_close(&self) -> bool { ... } fn child(&self) -> Option<Widget> { ... } fn content_height(&self) -> i32 { ... } fn content_width(&self) -> i32 { ... } fn current_breakpoint(&self) -> Option<Breakpoint> { ... } fn default_widget(&self) -> Option<Widget> { ... } fn focus(&self) -> Option<Widget> { ... } fn follows_content_size(&self) -> bool { ... } fn presentation_mode(&self) -> DialogPresentationMode { ... } fn title(&self) -> GString { ... } fn present(&self, parent: Option<&impl IsA<Widget>>) { ... } fn set_can_close(&self, can_close: bool) { ... } fn set_child(&self, child: Option<&impl IsA<Widget>>) { ... } fn set_content_height(&self, content_height: i32) { ... } fn set_content_width(&self, content_width: i32) { ... } fn set_default_widget(&self, default_widget: Option<&impl IsA<Widget>>) { ... } fn set_focus(&self, focus: Option<&impl IsA<Widget>>) { ... } fn set_follows_content_size(&self, follows_content_size: bool) { ... } fn set_presentation_mode(&self, presentation_mode: DialogPresentationMode) { ... } fn set_title(&self, title: &str) { ... } fn connect_close_attempt<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_closed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_can_close_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_child_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_content_height_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_content_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_current_breakpoint_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_default_widget_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_focus_widget_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_follows_content_size_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_presentation_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_title_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Available on crate feature v1_5 only.

Provided Methods§

Source

fn add_breakpoint(&self, breakpoint: Breakpoint)

Source

fn close(&self) -> bool

Source

fn force_close(&self)

Source

fn can_close(&self) -> bool

Source

fn child(&self) -> Option<Widget>

Source

fn content_height(&self) -> i32

Source

fn content_width(&self) -> i32

Source

fn current_breakpoint(&self) -> Option<Breakpoint>

Source

fn default_widget(&self) -> Option<Widget>

Source

fn focus(&self) -> Option<Widget>

Source

fn follows_content_size(&self) -> bool

Source

fn presentation_mode(&self) -> DialogPresentationMode

Source

fn title(&self) -> GString

Source

fn present(&self, parent: Option<&impl IsA<Widget>>)

Source

fn set_can_close(&self, can_close: bool)

Source

fn set_child(&self, child: Option<&impl IsA<Widget>>)

Source

fn set_content_height(&self, content_height: i32)

Source

fn set_content_width(&self, content_width: i32)

Source

fn set_default_widget(&self, default_widget: Option<&impl IsA<Widget>>)

Source

fn set_focus(&self, focus: Option<&impl IsA<Widget>>)

Source

fn set_follows_content_size(&self, follows_content_size: bool)

Source

fn set_presentation_mode(&self, presentation_mode: DialogPresentationMode)

Source

fn set_title(&self, title: &str)

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

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§