Struct gtk::ColorChooserDialog
source · #[repr(transparent)]pub struct ColorChooserDialog { /* private fields */ }
Implementations§
source§impl ColorChooserDialog
impl ColorChooserDialog
pub const NONE: Option<&'static ColorChooserDialog> = None
pub fn new( title: Option<&str>, parent: Option<&impl IsA<Window>> ) -> ColorChooserDialog
sourcepub fn builder() -> ColorChooserDialogBuilder
pub fn builder() -> ColorChooserDialogBuilder
Creates a new builder-pattern struct instance to construct ColorChooserDialog
objects.
This method returns an instance of ColorChooserDialogBuilder
which can be used to create ColorChooserDialog
objects.
Trait Implementations§
source§impl Clone for ColorChooserDialog
impl Clone for ColorChooserDialog
source§impl Debug for ColorChooserDialog
impl Debug for ColorChooserDialog
source§impl Default for ColorChooserDialog
impl Default for ColorChooserDialog
source§impl Display for ColorChooserDialog
impl Display for ColorChooserDialog
source§impl HasParamSpec for ColorChooserDialog
impl HasParamSpec for ColorChooserDialog
type ParamSpec = ParamSpecObject
§type SetValue = ColorChooserDialog
type SetValue = ColorChooserDialog
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ColorChooserDialog>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for ColorChooserDialog
impl Hash for ColorChooserDialog
source§impl Ord for ColorChooserDialog
impl Ord for ColorChooserDialog
source§impl ParentClassIs for ColorChooserDialog
impl ParentClassIs for ColorChooserDialog
source§impl<OT: ObjectType> PartialEq<OT> for ColorChooserDialog
impl<OT: ObjectType> PartialEq<OT> for ColorChooserDialog
source§impl<OT: ObjectType> PartialOrd<OT> for ColorChooserDialog
impl<OT: ObjectType> PartialOrd<OT> for ColorChooserDialog
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for ColorChooserDialog
impl StaticType for ColorChooserDialog
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for ColorChooserDialog
impl IsA<Bin> for ColorChooserDialog
impl IsA<Buildable> for ColorChooserDialog
impl IsA<ColorChooser> for ColorChooserDialog
impl IsA<Container> for ColorChooserDialog
impl IsA<Dialog> for ColorChooserDialog
impl IsA<Widget> for ColorChooserDialog
impl IsA<Window> for ColorChooserDialog
Auto Trait Implementations§
impl RefUnwindSafe for ColorChooserDialog
impl !Send for ColorChooserDialog
impl !Sync for ColorChooserDialog
impl Unpin for ColorChooserDialog
impl UnwindSafe for ColorChooserDialog
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<O> BuildableExt for Owhere
O: IsA<Buildable>,
impl<O> BuildableExt for Owhere O: IsA<Buildable>,
fn add_child( &self, builder: &impl IsA<Builder>, child: &impl IsA<Object>, type_: Option<&str> )
fn construct_child( &self, builder: &impl IsA<Builder>, name: &str ) -> Option<Object>
fn internal_child( &self, builder: &impl IsA<Builder>, childname: &str ) -> Option<Object>
fn parser_finished(&self, builder: &impl IsA<Builder>)
fn set_buildable_property( &self, builder: &impl IsA<Builder>, name: &str, value: &Value )
source§impl<O> BuildableExtManual for Owhere
O: IsA<Buildable>,
impl<O> BuildableExtManual for Owhere O: IsA<Buildable>,
fn buildable_name(&self) -> Option<String>
fn set_buildable_name(&self, name: &str)
source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere T: ObjectType,
source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moresource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere T: ObjectType, Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moresource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast<T>(self) -> Result<T, Self>where T: ObjectType, Self: MayDowncastTo<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moresource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast_ref<T>(&self) -> Option<&T>where T: ObjectType, Self: MayDowncastTo<T>,
Tries to downcast to a reference of its subclass or interface implementor
T
. Read moresource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where T: ObjectType,
Tries to cast to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while upcast
will do many checks at compile-time already. downcast
will
perform the same checks at runtime as dynamic_cast
, but will also ensure some amount of
compile-time safety. Read moresource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where T: ObjectType,
Tries to cast to reference to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moresource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere T: ObjectType,
Casts to
T
unconditionally. Read moresource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere T: ObjectType,
Casts to
&T
unconditionally. Read moresource§impl<O> ColorChooserDialogExt for Owhere
O: IsA<ColorChooserDialog>,
impl<O> ColorChooserDialogExt for Owhere O: IsA<ColorChooserDialog>,
fn shows_editor(&self) -> bool
fn set_show_editor(&self, show_editor: bool)
fn connect_show_editor_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§impl<O> ColorChooserExt for Owhere
O: IsA<ColorChooser>,
impl<O> ColorChooserExt for Owhere O: IsA<ColorChooser>,
fn rgba(&self) -> RGBA
fn uses_alpha(&self) -> bool
fn set_rgba(&self, color: &RGBA)
fn set_use_alpha(&self, use_alpha: bool)
fn connect_color_activated<F: Fn(&Self, &RGBA) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_use_alpha_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§impl<O> ColorChooserExtManual for Owhere
O: IsA<ColorChooser>,
impl<O> ColorChooserExtManual for Owhere O: IsA<ColorChooser>,
fn add_palette( &self, orientation: Orientation, colors_per_line: i32, colors: &[RGBA] )
source§impl<O> ContainerExt for Owhere
O: IsA<Container>,
impl<O> ContainerExt for Owhere O: IsA<Container>,
fn add(&self, widget: &impl IsA<Widget>)
fn check_resize(&self)
fn child_notify(&self, child: &impl IsA<Widget>, child_property: &str)
fn child_notify_by_pspec( &self, child: &impl IsA<Widget>, pspec: impl AsRef<ParamSpec> )
fn child_type(&self) -> Type
fn forall<P: FnMut(&Widget)>(&self, callback: P)
fn foreach<P: FnMut(&Widget)>(&self, callback: P)
fn border_width(&self) -> u32
fn children(&self) -> Vec<Widget>
fn focus_child(&self) -> Option<Widget>
fn focus_hadjustment(&self) -> Option<Adjustment>
fn focus_vadjustment(&self) -> Option<Adjustment>
fn path_for_child(&self, child: &impl IsA<Widget>) -> Option<WidgetPath>
fn propagate_draw(&self, child: &impl IsA<Widget>, cr: &Context)
fn remove(&self, widget: &impl IsA<Widget>)
fn set_border_width(&self, border_width: u32)
fn set_focus_chain(&self, focusable_widgets: &[Widget])
fn set_focus_child(&self, child: Option<&impl IsA<Widget>>)
fn set_focus_hadjustment(&self, adjustment: &impl IsA<Adjustment>)
fn set_focus_vadjustment(&self, adjustment: &impl IsA<Adjustment>)
fn unset_focus_chain(&self)
fn set_child<P: IsA<Widget>>(&self, child: Option<&P>)
fn resize_mode(&self) -> ResizeMode
fn set_resize_mode(&self, resize_mode: ResizeMode)
fn connect_add<F: Fn(&Self, &Widget) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_check_resize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_remove<F: Fn(&Self, &Widget) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_set_focus_child<F: Fn(&Self, &Widget) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_border_width_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_child_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_resize_mode_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§impl<O> ContainerExtManual for Owhere
O: IsA<Container>,
impl<O> ContainerExtManual for Owhere O: IsA<Container>,
fn child_property_value( &self, child: &impl IsA<Widget>, property_name: &str ) -> Value
fn child_property<V: for<'b> FromValue<'b> + 'static>( &self, child: &impl IsA<Widget>, property_name: &str ) -> V
fn child_set_property( &self, child: &impl IsA<Widget>, property_name: &str, value: &dyn ToValue )
source§impl<O> DialogExt for Owhere
O: IsA<Dialog>,
impl<O> DialogExt for Owhere O: IsA<Dialog>,
fn add_action_widget(&self, child: &impl IsA<Widget>, response_id: ResponseType)
fn content_area(&self) -> Box
fn header_bar(&self) -> Option<HeaderBar>
fn response_for_widget(&self, widget: &impl IsA<Widget>) -> ResponseType
fn widget_for_response(&self, response_id: ResponseType) -> Option<Widget>
fn response(&self, response_id: ResponseType)
fn run(&self) -> ResponseType
fn set_default_response(&self, response_id: ResponseType)
fn set_response_sensitive(&self, response_id: ResponseType, setting: bool)
fn use_header_bar(&self) -> i32
fn connect_close<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn emit_close(&self)
fn connect_response<F: Fn(&Self, ResponseType) + 'static>( &self, f: F ) -> SignalHandlerId
source§impl<O> DialogExtManual for Owhere
O: IsA<Dialog> + IsA<Widget>,
impl<O> DialogExtManual for Owhere O: IsA<Dialog> + IsA<Widget>,
source§fn run_future<'a>(&'a self) -> Pin<Box<dyn Future<Output = ResponseType> + 'a>>
fn run_future<'a>(&'a self) -> Pin<Box<dyn Future<Output = ResponseType> + 'a>>
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<O> GtkWindowExt for Owhere
O: IsA<Window>,
impl<O> GtkWindowExt for Owhere O: IsA<Window>,
fn activate_default(&self) -> bool
fn activate_focus(&self) -> bool
fn activate_key(&self, event: &EventKey) -> bool
fn add_accel_group(&self, accel_group: &impl IsA<AccelGroup>)
fn add_mnemonic(&self, keyval: u32, target: &impl IsA<Widget>)
fn begin_move_drag(&self, button: i32, root_x: i32, root_y: i32, timestamp: u32)
fn begin_resize_drag( &self, edge: WindowEdge, button: i32, root_x: i32, root_y: i32, timestamp: u32 )
fn close(&self)
fn deiconify(&self)
fn fullscreen(&self)
fn fullscreen_on_monitor(&self, screen: &Screen, monitor: i32)
fn accepts_focus(&self) -> bool
fn application(&self) -> Option<Application>
fn attached_to(&self) -> Option<Widget>
fn is_decorated(&self) -> bool
fn default_size(&self) -> (i32, i32)
fn default_widget(&self) -> Option<Widget>
fn is_deletable(&self) -> bool
fn must_destroy_with_parent(&self) -> bool
fn focused_widget(&self) -> Option<Widget>
fn gets_focus_on_map(&self) -> bool
fn gets_focus_visible(&self) -> bool
fn gravity(&self) -> Gravity
fn group(&self) -> Option<WindowGroup>
fn hides_titlebar_when_maximized(&self) -> bool
fn icon(&self) -> Option<Pixbuf>
fn icon_list(&self) -> Vec<Pixbuf>
fn icon_name(&self) -> Option<GString>
fn mnemonic_modifier(&self) -> ModifierType
fn is_mnemonics_visible(&self) -> bool
fn is_modal(&self) -> bool
fn position(&self) -> (i32, i32)
fn is_resizable(&self) -> bool
fn role(&self) -> Option<GString>
fn screen(&self) -> Option<Screen>
fn size(&self) -> (i32, i32)
fn skips_pager_hint(&self) -> bool
fn skips_taskbar_hint(&self) -> bool
fn title(&self) -> Option<GString>
fn titlebar(&self) -> Option<Widget>
fn transient_for(&self) -> Option<Window>
fn type_hint(&self) -> WindowTypeHint
fn is_urgency_hint(&self) -> bool
fn window_type(&self) -> WindowType
fn has_group(&self) -> bool
fn has_toplevel_focus(&self) -> bool
fn iconify(&self)
fn is_active(&self) -> bool
fn is_maximized(&self) -> bool
fn maximize(&self)
fn mnemonic_activate(&self, keyval: u32, modifier: ModifierType) -> bool
fn move_(&self, x: i32, y: i32)
fn present(&self)
fn present_with_time(&self, timestamp: u32)
fn propagate_key_event(&self, event: &EventKey) -> bool
fn remove_accel_group(&self, accel_group: &impl IsA<AccelGroup>)
fn remove_mnemonic(&self, keyval: u32, target: &impl IsA<Widget>)
fn resize(&self, width: i32, height: i32)
fn set_accept_focus(&self, setting: bool)
fn set_application(&self, application: Option<&impl IsA<Application>>)
fn set_attached_to(&self, attach_widget: Option<&impl IsA<Widget>>)
fn set_decorated(&self, setting: bool)
fn set_default(&self, default_widget: Option<&impl IsA<Widget>>)
fn set_default_size(&self, width: i32, height: i32)
fn set_deletable(&self, setting: bool)
fn set_destroy_with_parent(&self, setting: bool)
fn set_focus(&self, focus: Option<&impl IsA<Widget>>)
fn set_focus_on_map(&self, setting: bool)
fn set_focus_visible(&self, setting: bool)
fn set_geometry_hints( &self, geometry_widget: Option<&impl IsA<Widget>>, geometry: Option<&Geometry>, geom_mask: WindowHints )
fn set_gravity(&self, gravity: Gravity)
fn set_has_user_ref_count(&self, setting: bool)
fn set_hide_titlebar_when_maximized(&self, setting: bool)
fn set_icon(&self, icon: Option<&Pixbuf>)
fn set_icon_from_file(&self, filename: impl AsRef<Path>) -> Result<(), Error>
fn set_icon_list(&self, list: &[Pixbuf])
fn set_icon_name(&self, name: Option<&str>)
fn set_keep_above(&self, setting: bool)
fn set_keep_below(&self, setting: bool)
fn set_mnemonic_modifier(&self, modifier: ModifierType)
fn set_mnemonics_visible(&self, setting: bool)
fn set_modal(&self, modal: bool)
fn set_position(&self, position: WindowPosition)
fn set_resizable(&self, resizable: bool)
fn set_role(&self, role: &str)
fn set_screen(&self, screen: &Screen)
fn set_skip_pager_hint(&self, setting: bool)
fn set_skip_taskbar_hint(&self, setting: bool)
fn set_startup_id(&self, startup_id: &str)
fn set_title(&self, title: &str)
fn set_titlebar(&self, titlebar: Option<&impl IsA<Widget>>)
fn set_transient_for(&self, parent: Option<&impl IsA<Window>>)
fn set_type_hint(&self, hint: WindowTypeHint)
fn set_urgency_hint(&self, setting: bool)
fn stick(&self)
fn unfullscreen(&self)
fn unmaximize(&self)
fn unstick(&self)
fn default_height(&self) -> i32
fn set_default_height(&self, default_height: i32)
fn default_width(&self) -> i32
fn set_default_width(&self, default_width: i32)
fn type_(&self) -> WindowType
fn window_position(&self) -> WindowPosition
fn set_window_position(&self, window_position: WindowPosition)
fn connect_activate_default<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn emit_activate_default(&self)
fn connect_activate_focus<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn emit_activate_focus(&self)
fn connect_enable_debugging<F: Fn(&Self, bool) -> bool + 'static>( &self, f: F ) -> SignalHandlerId
fn emit_enable_debugging(&self, toggle: bool) -> bool
fn connect_keys_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_set_focus<F: Fn(&Self, Option<&Widget>) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_accept_focus_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_application_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_attached_to_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_decorated_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_default_height_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_default_width_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_deletable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_destroy_with_parent_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_focus_on_map_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_focus_visible_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_gravity_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_has_toplevel_focus_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_hide_titlebar_when_maximized_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_icon_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_is_active_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_is_maximized_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_mnemonics_visible_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_modal_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_resizable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_role_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_screen_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_skip_pager_hint_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_skip_taskbar_hint_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_startup_id_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
fn connect_type_hint_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_urgency_hint_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_window_position_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere T: Into<Value>,
fn into_closure_return_value(self) -> Option<Value>
source§impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs,
fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>,
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>,
source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere T: ObjectType,
source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere U: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.source§fn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
Returns the
ObjectClass
of the object. Read moresource§fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass,
Returns the class of the object in the given type
T
. Read moresource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where U: IsInterface,
Returns the interface
T
of the object. Read moresource§fn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
source§fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
Sets multiple properties of the object at once. Read more
source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
Sets multiple properties of the object at once. Read more
source§fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
fn property<V>(&self, property_name: &str) -> Vwhere V: for<'b> FromValue<'b> + 'static,
Gets the property
property_name
of the object and cast it to the type V. Read moresource§fn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
Gets the property
property_name
of the object. Read moresource§fn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
Get the type of the property
property_name
of this object. Read moresource§fn find_property(&self, property_name: &str) -> Option<ParamSpec>
fn find_property(&self, property_name: &str) -> Option<ParamSpec>
Get the
ParamSpec
of the property property_name
of this object.source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
Return all
ParamSpec
of the properties of this object.source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
Freeze all property notifications until the return guard object is dropped. Read more
source§unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where QD: 'static,
Set arbitrary data on this object with the given
key
. Read moresource§unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where QD: 'static,
Return previously set arbitrary data of this object with the given
key
. Read moresource§unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where QD: 'static,
Retrieve previously set arbitrary data of this object with the given
key
. Read moresource§unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
unsafe fn set_data<QD>(&self, key: &str, value: QD)where QD: 'static,
Set arbitrary data on this object with the given
key
. Read moresource§unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where QD: 'static,
Return previously set arbitrary data of this object with the given
key
. Read moresource§unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where QD: 'static,
Retrieve previously set arbitrary data of this object with the given
key
. Read moresource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
Block a given signal handler. Read more
source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
Unblock a given signal handler.
source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
Stop emission of the currently emitted signal.
source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
Stop emission of the currently emitted signal by the (possibly detailed) signal name.
source§fn connect<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
Connect to the signal
signal_name
on this object. Read moresource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
Connect to the signal
signal_id
on this object. Read moresource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value> + 'static,
fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static,
Connect to the signal
signal_name
on this object. Read moresource§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value> + 'static,
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static,
Connect to the signal
signal_id
on this object. Read moresource§unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value>,
unsafe fn connect_unsafe<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>,
Connect to the signal
signal_name
on this object. Read moresource§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value>,
unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>,
Connect to the signal
signal_id
on this object. Read moresource§fn connect_closure(
&self,
signal_name: &str,
after: bool,
closure: RustClosure
) -> SignalHandlerId
fn connect_closure( &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId
Connect a closure to the signal
signal_name
on this object. Read moresource§fn connect_closure_id(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
closure: RustClosure
) -> SignalHandlerId
fn connect_closure_id( &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId
Connect a closure to the signal
signal_id
on this object. Read moresource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
Limits the lifetime of
closure
to the lifetime of the object. When
the object’s reference count drops to zero, the closure will be
invalidated. An invalidated closure will ignore any calls to
invoke_with_values
, or
invoke
when using Rust closures.source§fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue,
Emit signal by signal id. Read more
source§fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
Same as
Self::emit
but takes Value
for the arguments.source§fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue,
Emit signal by its name. Read more
source§fn emit_by_name_with_values(
&self,
signal_name: &str,
args: &[Value]
) -> Option<Value>
fn emit_by_name_with_values( &self, signal_name: &str, args: &[Value] ) -> Option<Value>
Emit signal by its name. Read more
source§fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name_with_details<R>( &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue,
Emit signal by its name with details. Read more
source§fn emit_by_name_with_details_and_values(
&self,
signal_name: &str,
details: Quark,
args: &[Value]
) -> Option<Value>
fn emit_by_name_with_details_and_values( &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<Value>
Emit signal by its name with details. Read more
source§fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_with_details<R>( &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue,
Emit signal by signal id with details. Read more
source§fn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value]
) -> Option<Value>
fn emit_with_details_and_values( &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<Value>
Emit signal by signal id with details. Read more
source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
Disconnect a previously connected signal handler.
source§fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere
F: Fn(&T, &ParamSpec) + Send + Sync + 'static,
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static,
Connect to the
notify
signal of the object. Read moresource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere
F: Fn(&T, &ParamSpec) + 'static,
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + 'static,
Connect to the
notify
signal of the object. Read moresource§unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerIdwhere
F: Fn(&T, &ParamSpec),
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec),
Connect to the
notify
signal of the object. Read moresource§fn notify(&self, property_name: &str)
fn notify(&self, property_name: &str)
Notify that the given property has changed its value. Read more
source§fn notify_by_pspec(&self, pspec: &ParamSpec)
fn notify_by_pspec(&self, pspec: &ParamSpec)
Notify that the given property has changed its value. Read more
source§fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + Send + 'static,
fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + Send + 'static,
Add a callback to be notified when the Object is disposed.
source§fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + 'static,
fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static,
Add a callback to be notified when the Object is disposed. Read more
source§fn bind_property<'f, 't, O, 'a>(
&'a self,
source_property: &'a str,
target: &'a O,
target_property: &'a str
) -> BindingBuilder<'a, 'f, 't>where
O: ObjectType,
fn bind_property<'f, 't, O, 'a>( &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType,
source§unsafe fn run_dispose(&self)
unsafe fn run_dispose(&self)
Runs the dispose mechanism of the object. Read more
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.