pub struct OffscreenWindow { /* private fields */ }Expand description
GtkOffscreenWindow is strictly intended to be used for obtaining
snapshots of widgets that are not part of a normal widget hierarchy.
Since OffscreenWindow is a toplevel widget you cannot obtain
snapshots of a full window with it since you cannot pack a toplevel
widget in another toplevel.
The idea is to take a widget and manually set the state of it,
add it to a GtkOffscreenWindow and then retrieve the snapshot
as a cairo::Surface or gdk_pixbuf::Pixbuf.
GtkOffscreenWindow derives from Window only as an implementation
detail. Applications should not use any API specific to Window
to operate on this object. It should be treated as a Bin that
has no parent widget.
When contained offscreen widgets are redrawn, GtkOffscreenWindow
will emit a damage-event signal.
§Implements
OffscreenWindowExt, GtkWindowExt, BinExt, ContainerExt, WidgetExt, glib::ObjectExt, BuildableExt, [GtkWindowExtManual][trait@crate::prelude::GtkWindowExtManual], ContainerExtManual, WidgetExtManual, BuildableExtManual
Implementations§
Source§impl OffscreenWindow
impl OffscreenWindow
pub const NONE: Option<&'static OffscreenWindow> = None
Sourcepub fn new() -> OffscreenWindow
pub fn new() -> OffscreenWindow
Sourcepub fn builder() -> OffscreenWindowBuilder
pub fn builder() -> OffscreenWindowBuilder
Creates a new builder-pattern struct instance to construct OffscreenWindow objects.
This method returns an instance of OffscreenWindowBuilder which can be used to create OffscreenWindow objects.
Trait Implementations§
Source§impl Clone for OffscreenWindow
impl Clone for OffscreenWindow
Source§impl Debug for OffscreenWindow
impl Debug for OffscreenWindow
Source§impl Default for OffscreenWindow
impl Default for OffscreenWindow
Source§impl Display for OffscreenWindow
impl Display for OffscreenWindow
impl Eq for OffscreenWindow
Source§impl HasParamSpec for OffscreenWindow
impl HasParamSpec for OffscreenWindow
type ParamSpec = ParamSpecObject
Source§type SetValue = OffscreenWindow
type SetValue = OffscreenWindow
type BuilderFn = fn(&str) -> ParamSpecObjectBuilder<'_, OffscreenWindow>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for OffscreenWindow
impl Hash for OffscreenWindow
impl IsA<Bin> for OffscreenWindow
impl IsA<Buildable> for OffscreenWindow
impl IsA<Container> for OffscreenWindow
impl IsA<Widget> for OffscreenWindow
impl IsA<Window> for OffscreenWindow
Source§impl Ord for OffscreenWindow
impl Ord for OffscreenWindow
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl ParentClassIs for OffscreenWindow
impl ParentClassIs for OffscreenWindow
Source§impl<OT: ObjectType> PartialEq<OT> for OffscreenWindow
impl<OT: ObjectType> PartialEq<OT> for OffscreenWindow
Source§impl<OT: ObjectType> PartialOrd<OT> for OffscreenWindow
impl<OT: ObjectType> PartialOrd<OT> for OffscreenWindow
Source§impl StaticType for OffscreenWindow
impl StaticType for OffscreenWindow
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Auto Trait Implementations§
impl !Send for OffscreenWindow
impl !Sync for OffscreenWindow
impl Freeze for OffscreenWindow
impl RefUnwindSafe for OffscreenWindow
impl Unpin for OffscreenWindow
impl UnsafeUnpin for OffscreenWindow
impl UnwindSafe for OffscreenWindow
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
Source§impl<O> BuildableExt for O
impl<O> BuildableExt for O
Source§fn add_child(
&self,
builder: &impl IsA<Builder>,
child: &impl IsA<Object>,
type_: Option<&str>,
)
fn add_child( &self, builder: &impl IsA<Builder>, child: &impl IsA<Object>, type_: Option<&str>, )
self. type_ is an optional string
describing how the child should be added. Read moreSource§fn parser_finished(&self, builder: &impl IsA<Builder>)
fn parser_finished(&self, builder: &impl IsA<Builder>)
gtk_builder_add_from_file() or BuilderExtManual::add_from_string()
is called on a builder. Read moreSource§impl<O> BuildableExtManual for O
impl<O> BuildableExtManual for O
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>,
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>,
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>,
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>,
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,
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,
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,
T unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&T unconditionally. Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<O> ContainerExt for O
impl<O> ContainerExt for O
Source§fn add(&self, widget: &impl IsA<Widget>)
fn add(&self, widget: &impl IsA<Widget>)
widget to self. Typically used for simple containers
such as Window, Frame, or Button; for more complicated
layout containers such as Box or Grid, this function will
pick default packing parameters that may not be correct. So
consider functions such as BoxExt::pack_start() and
GridExt::attach() as an alternative to add() in
those cases. A widget may be added to only one container at a time;
you can’t place the same widget inside two different containers. Read morefn check_resize(&self)
Source§fn child_notify(&self, child: &impl IsA<Widget>, child_property: &str)
fn child_notify(&self, child: &impl IsA<Widget>, child_property: &str)
child-notify signal for the
[child property][child-properties]
child_property on the child. Read moreSource§fn child_notify_by_pspec(
&self,
child: &impl IsA<Widget>,
pspec: impl AsRef<ParamSpec>,
)
fn child_notify_by_pspec( &self, child: &impl IsA<Widget>, pspec: impl AsRef<ParamSpec>, )
child-notify signal for the
[child property][child-properties] specified by
pspec on the child. Read moreSource§fn child_type(&self) -> Type
fn child_type(&self) -> Type
Source§fn forall<P: FnMut(&Widget)>(&self, callback: P)
fn forall<P: FnMut(&Widget)>(&self, callback: P)
callback on each direct child of self, including
children that are considered “internal” (implementation details
of the container). “Internal” children generally weren’t added
by the user of the container, but were added by the container
implementation itself. Read moreSource§fn border_width(&self) -> u32
fn border_width(&self) -> u32
set_border_width(). Read moreSource§fn focus_child(&self) -> Option<Widget>
fn focus_child(&self) -> Option<Widget>
self. This is not the
currently focused widget. That can be obtained by calling
GtkWindowExt::focused_widget(). Read moreSource§fn focus_hadjustment(&self) -> Option<Adjustment>
fn focus_hadjustment(&self) -> Option<Adjustment>
Source§fn focus_vadjustment(&self) -> Option<Adjustment>
fn focus_vadjustment(&self) -> Option<Adjustment>
set_focus_vadjustment(). Read moreSource§fn path_for_child(&self, child: &impl IsA<Widget>) -> Option<WidgetPath>
fn path_for_child(&self, child: &impl IsA<Widget>) -> Option<WidgetPath>
child. Read moreSource§fn propagate_draw(&self, child: &impl IsA<Widget>, cr: &Context)
fn propagate_draw(&self, child: &impl IsA<Widget>, cr: &Context)
draw calls to all children that don’t have their
own GdkWindows. This function provides a convenient way of doing this.
A container, when it receives a call to its draw function,
calls propagate_draw() once for each child, passing in
the cr the container received. Read moreSource§fn remove(&self, widget: &impl IsA<Widget>)
fn remove(&self, widget: &impl IsA<Widget>)
widget from self. widget must be inside self.
Note that self will own a reference to widget, and that this
may be the last reference held; so removing a widget from its
container can destroy that widget. If you want to use widget
again, you need to add a reference to it before removing it from
a container, using g_object_ref(). If you don’t want to use widget
again it’s usually more efficient to simply destroy it directly
using gtk_widget_destroy() since this will remove it from the
container and help break any circular reference count cycles. Read moreSource§fn set_border_width(&self, border_width: u32)
fn set_border_width(&self, border_width: u32)
Source§fn set_focus_chain(&self, focusable_widgets: &[Widget])
fn set_focus_chain(&self, focusable_widgets: &[Widget])
Since 3.24
Source§fn set_focus_hadjustment(&self, adjustment: &impl IsA<Adjustment>)
fn set_focus_hadjustment(&self, adjustment: &impl IsA<Adjustment>)
ScrolledWindowExt::hadjustment() for a typical way of obtaining
the adjustment and set_focus_vadjustment() for setting
the vertical adjustment. Read moreSource§fn set_focus_vadjustment(&self, adjustment: &impl IsA<Adjustment>)
fn set_focus_vadjustment(&self, adjustment: &impl IsA<Adjustment>)
ScrolledWindowExt::vadjustment() for a typical way of obtaining
the adjustment and set_focus_hadjustment() for setting
the horizontal adjustment. Read moreSource§fn unset_focus_chain(&self)
fn unset_focus_chain(&self)
Since 3.24
set_focus_chain(). Read morefn 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 O
impl<O> ContainerExtManual for O
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>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
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>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
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>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
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>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
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>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
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>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
impl<'a, T, C, E> FromValueOptional<'a> for Twhere
T: FromValue<'a, Checker = C>,
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>,
E: Error + Send + 'static,
Source§impl<O> GtkWindowExt for O
impl<O> GtkWindowExt for O
Source§fn activate_default(&self) -> bool
fn activate_default(&self) -> bool
WidgetExt::set_receives_default()), in which case the
focused widget is activated. Read moreSource§fn activate_focus(&self) -> bool
fn activate_focus(&self) -> bool
Source§fn activate_key(&self, event: &EventKey) -> bool
fn activate_key(&self, event: &EventKey) -> bool
Source§fn add_accel_group(&self, accel_group: &impl IsA<AccelGroup>)
fn add_accel_group(&self, accel_group: &impl IsA<AccelGroup>)
accel_group with self, such that calling
accel_groups_activate() on self will activate accelerators
in accel_group. Read moreSource§fn add_mnemonic(&self, keyval: u32, target: &impl IsA<Widget>)
fn add_mnemonic(&self, keyval: u32, target: &impl IsA<Widget>)
Source§fn begin_move_drag(&self, button: i32, root_x: i32, root_y: i32, timestamp: u32)
fn begin_move_drag(&self, button: i32, root_x: i32, root_y: i32, timestamp: u32)
Source§fn begin_resize_drag(
&self,
edge: WindowEdge,
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, )
Source§fn close(&self)
fn close(&self)
Source§fn deiconify(&self)
fn deiconify(&self)
self. Note
that you shouldn’t assume the window is definitely deiconified
afterward, because other entities (e.g. the user or
[window manager][gtk-X11-arch])) could iconify it
again before your code which assumes deiconification gets to run. Read moreSource§fn fullscreen(&self)
fn fullscreen(&self)
self in the fullscreen state. Note that you
shouldn’t assume the window is definitely full screen afterward,
because other entities (e.g. the user or
[window manager][gtk-X11-arch]) could unfullscreen it
again, and not all window managers honor requests to fullscreen
windows. But normally the window will end up fullscreen. Just
don’t write code that crashes if not. Read moreSource§fn fullscreen_on_monitor(&self, screen: &Screen, monitor: i32)
fn fullscreen_on_monitor(&self, screen: &Screen, monitor: i32)
self in the fullscreen state. Note that you shouldn’t assume
the window is definitely full screen afterward. Read moreSource§fn accepts_focus(&self) -> bool
fn accepts_focus(&self) -> bool
set_accept_focus(). Read moreSource§fn application(&self) -> Option<Application>
fn application(&self) -> Option<Application>
Application associated with the window (if any). Read moreSource§fn attached_to(&self) -> Option<Widget>
fn attached_to(&self) -> Option<Widget>
set_attached_to(). Read moreSource§fn is_decorated(&self) -> bool
fn is_decorated(&self) -> bool
set_decorated(). Read moreSource§fn default_size(&self) -> (i32, i32)
fn default_size(&self) -> (i32, i32)
Source§fn default_widget(&self) -> Option<Widget>
fn default_widget(&self) -> Option<Widget>
Source§fn is_deletable(&self) -> bool
fn is_deletable(&self) -> bool
set_deletable(). Read moreSource§fn must_destroy_with_parent(&self) -> bool
fn must_destroy_with_parent(&self) -> bool
Source§fn focused_widget(&self) -> Option<Widget>
fn focused_widget(&self) -> Option<Widget>
Source§fn gets_focus_on_map(&self) -> bool
fn gets_focus_on_map(&self) -> bool
set_focus_on_map(). Read moreSource§fn gets_focus_visible(&self) -> bool
fn gets_focus_visible(&self) -> bool
focus-visible property. Read moreSource§fn group(&self) -> Option<WindowGroup>
fn group(&self) -> Option<WindowGroup>
Source§fn hides_titlebar_when_maximized(&self) -> bool
fn hides_titlebar_when_maximized(&self) -> bool
Source§fn icon(&self) -> Option<Pixbuf>
fn icon(&self) -> Option<Pixbuf>
set_icon() (or if you’ve
called set_icon_list(), gets the first icon in
the icon list). Read moreSource§fn icon_list(&self) -> Vec<Pixbuf>
fn icon_list(&self) -> Vec<Pixbuf>
set_icon_list().
The list is copied, but the reference count on each
member won’t be incremented. Read moreSource§fn icon_name(&self) -> Option<GString>
fn icon_name(&self) -> Option<GString>
set_icon_name(). Read moreSource§fn mnemonic_modifier(&self) -> ModifierType
fn mnemonic_modifier(&self) -> ModifierType
set_mnemonic_modifier(). Read moreSource§fn is_mnemonics_visible(&self) -> bool
fn is_mnemonics_visible(&self) -> bool
mnemonics-visible property. Read moreSource§fn is_resizable(&self) -> bool
fn is_resizable(&self) -> bool
set_resizable(). Read moreSource§fn role(&self) -> Option<GString>
fn role(&self) -> Option<GString>
set_role() for
further explanation. Read moreSource§fn skips_pager_hint(&self) -> bool
fn skips_pager_hint(&self) -> bool
set_skip_pager_hint(). Read moreSource§fn skips_taskbar_hint(&self) -> bool
fn skips_taskbar_hint(&self) -> bool
set_skip_taskbar_hint() Read moreSource§fn title(&self) -> Option<GString>
fn title(&self) -> Option<GString>
set_title(). Read moreSource§fn titlebar(&self) -> Option<Widget>
fn titlebar(&self) -> Option<Widget>
set_titlebar(). Read moreSource§fn transient_for(&self) -> Option<Window>
fn transient_for(&self) -> Option<Window>
set_transient_for(). Read moreSource§fn type_hint(&self) -> WindowTypeHint
fn type_hint(&self) -> WindowTypeHint
set_type_hint(). Read moreSource§fn is_urgency_hint(&self) -> bool
fn is_urgency_hint(&self) -> bool
set_urgency_hint() Read moreSource§fn window_type(&self) -> WindowType
fn window_type(&self) -> WindowType
WindowType. Read moreSource§fn has_toplevel_focus(&self) -> bool
fn has_toplevel_focus(&self) -> bool
is_active(),
but for embedded windows, like Plug, the results will differ. Read moreSource§fn iconify(&self)
fn iconify(&self)
self. Note that
you shouldn’t assume the window is definitely iconified afterward,
because other entities (e.g. the user or
[window manager][gtk-X11-arch]) could deiconify it
again, or there may not be a window manager in which case
iconification isn’t possible, etc. But normally the window will end
up iconified. Just don’t write code that crashes if not. Read moreSource§fn is_active(&self) -> bool
fn is_active(&self) -> bool
true if the window is active toplevel
itself, but also if it is, say, a Plug embedded in the active toplevel.
You might use this function if you wanted to draw a widget
differently in an active window from a widget in an inactive window.
See has_toplevel_focus() Read moreSource§fn is_maximized(&self) -> bool
fn is_maximized(&self) -> bool
self. Read moreSource§fn maximize(&self)
fn maximize(&self)
self, so that it becomes full-screen. Note that
you shouldn’t assume the window is definitely maximized afterward,
because other entities (e.g. the user or
[window manager][gtk-X11-arch]) could unmaximize it
again, and not all window managers support maximization. But
normally the window will end up maximized. Just don’t write code
that crashes if not. Read moreSource§fn mnemonic_activate(&self, keyval: u32, modifier: ModifierType) -> bool
fn mnemonic_activate(&self, keyval: u32, modifier: ModifierType) -> bool
fn move_(&self, x: i32, y: i32)
Source§fn present(&self)
fn present(&self)
Source§fn present_with_time(&self, timestamp: u32)
fn present_with_time(&self, timestamp: u32)
Source§fn propagate_key_event(&self, event: &EventKey) -> bool
fn propagate_key_event(&self, event: &EventKey) -> bool
event.
This is normally called by the default ::key_press_event and
::key_release_event handlers for toplevel windows,
however in some cases it may be useful to call this directly when
overriding the standard key handling for a toplevel window. Read moreSource§fn remove_accel_group(&self, accel_group: &impl IsA<AccelGroup>)
fn remove_accel_group(&self, accel_group: &impl IsA<AccelGroup>)
add_accel_group(). Read moreSource§fn remove_mnemonic(&self, keyval: u32, target: &impl IsA<Widget>)
fn remove_mnemonic(&self, keyval: u32, target: &impl IsA<Widget>)
Source§fn resize(&self, width: i32, height: i32)
fn resize(&self, width: i32, height: i32)
WidgetExt::set_size_request() to set the window’s
request to a smaller value. Read moreSource§fn set_accept_focus(&self, setting: bool)
fn set_accept_focus(&self, setting: bool)
Source§fn set_application(&self, application: Option<&impl IsA<Application>>)
fn set_application(&self, application: Option<&impl IsA<Application>>)
Application associated with the window. Read moreSource§fn set_attached_to(&self, attach_widget: Option<&impl IsA<Widget>>)
fn set_attached_to(&self, attach_widget: Option<&impl IsA<Widget>>)
self as attached to attach_widget. This creates a logical binding
between the window and the widget it belongs to, which is used by GTK+ to
propagate information such as styling or accessibility to self as if it
was a children of attach_widget. Read moreSource§fn set_decorated(&self, setting: bool)
fn set_decorated(&self, setting: bool)
false
using this function, GTK+ will do its best to convince the window
manager not to decorate the window. Depending on the system, this
function may not have any effect when called on a window that is
already visible, so you should call it before calling WidgetExt::show(). Read moreSource§fn set_default(&self, default_widget: Option<&impl IsA<Widget>>)
fn set_default(&self, default_widget: Option<&impl IsA<Widget>>)
Window. When setting (rather
than unsetting) the default widget it’s generally easier to call
WidgetExt::grab_default() on the widget. Before making a widget
the default widget, you must call WidgetExt::set_can_default() on
the widget you’d like to make the default. Read moreSource§fn set_default_size(&self, width: i32, height: i32)
fn set_default_size(&self, width: i32, height: i32)
set_geometry_hints() can
be used to set these explicitly), the default size will be clamped
to the nearest permitted size. Read moreSource§fn set_deletable(&self, setting: bool)
fn set_deletable(&self, setting: bool)
false
using this function, GTK+ will do its best to convince the window
manager not to show a close button. Depending on the system, this
function may not have any effect when called on a window that is
already visible, so you should call it before calling WidgetExt::show(). Read moreSource§fn set_destroy_with_parent(&self, setting: bool)
fn set_destroy_with_parent(&self, setting: bool)
Source§fn set_focus(&self, focus: Option<&impl IsA<Widget>>)
fn set_focus(&self, focus: Option<&impl IsA<Widget>>)
focus is not the current focus widget, and is focusable, sets
it as the focus widget for the window. If focus is None, unsets
the focus widget for this window. To set the focus to a particular
widget in the toplevel, it is usually more convenient to use
WidgetExt::grab_focus() instead of this function. Read moreSource§fn set_focus_on_map(&self, setting: bool)
fn set_focus_on_map(&self, setting: bool)
Source§fn set_focus_visible(&self, setting: bool)
fn set_focus_visible(&self, setting: bool)
focus-visible property. Read moreSource§fn set_geometry_hints(
&self,
geometry_widget: Option<&impl IsA<Widget>>,
geometry: Option<&Geometry>,
geom_mask: WindowHints,
)
fn set_geometry_hints( &self, geometry_widget: Option<&impl IsA<Widget>>, geometry: Option<&Geometry>, geom_mask: WindowHints, )
gdk::Geometry struct. Read moreSource§fn set_gravity(&self, gravity: Gravity)
fn set_gravity(&self, gravity: Gravity)
move_(). See move_() and gdk::Gravity for
more details. Read moreSource§fn set_has_user_ref_count(&self, setting: bool)
fn set_has_user_ref_count(&self, setting: bool)
gtk_widget_destroy() is called. Read moreSource§fn set_hide_titlebar_when_maximized(&self, setting: bool)
fn set_hide_titlebar_when_maximized(&self, setting: bool)
setting is true, then self will request that it’s titlebar
should be hidden when maximized.
This is useful for windows that don’t convey any information other
than the application name in the titlebar, to put the available
screen space to better use. If the underlying window system does not
support the request, the setting will not have any effect. Read moreSource§fn set_icon(&self, icon: Option<&Pixbuf>)
fn set_icon(&self, icon: Option<&Pixbuf>)
Window. This icon is used when
the window is minimized (also known as iconified). Some window
managers or desktop environments may also place it in the window
frame, or display it in other contexts. On others, the icon is not
used at all, so your mileage may vary. Read moreSource§fn set_icon_list(&self, list: &[Pixbuf])
fn set_icon_list(&self, list: &[Pixbuf])
Window. The icon is used when
the window is minimized (also known as iconified). Some window
managers or desktop environments may also place it in the window
frame, or display it in other contexts. On others, the icon is not
used at all, so your mileage may vary. Read moreSource§fn set_icon_name(&self, name: Option<&str>)
fn set_icon_name(&self, name: Option<&str>)
Source§fn set_keep_above(&self, setting: bool)
fn set_keep_above(&self, setting: bool)
self above, so that it stays on top. Note that
you shouldn’t assume the window is definitely above afterward,
because other entities (e.g. the user or
[window manager][gtk-X11-arch]) could not keep it above,
and not all window managers support keeping windows above. But
normally the window will end kept above. Just don’t write code
that crashes if not. Read moreSource§fn set_keep_below(&self, setting: bool)
fn set_keep_below(&self, setting: bool)
self below, so that it stays in bottom. Note that
you shouldn’t assume the window is definitely below afterward,
because other entities (e.g. the user or
[window manager][gtk-X11-arch]) could not keep it below,
and not all window managers support putting windows below. But
normally the window will be kept below. Just don’t write code
that crashes if not. Read moreSource§fn set_mnemonic_modifier(&self, modifier: ModifierType)
fn set_mnemonic_modifier(&self, modifier: ModifierType)
Source§fn set_mnemonics_visible(&self, setting: bool)
fn set_mnemonics_visible(&self, setting: bool)
mnemonics-visible property. Read moreSource§fn set_modal(&self, modal: bool)
fn set_modal(&self, modal: bool)
set_transient_for() to make the dialog transient for the
parent; most [window managers][gtk-X11-arch]
will then disallow lowering the dialog below the parent. Read moreSource§fn set_position(&self, position: WindowPosition)
fn set_position(&self, position: WindowPosition)
WindowPosition::CenterAlways, this will also cause
the window to be repositioned to satisfy the new constraint. Read moreSource§fn set_resizable(&self, resizable: bool)
fn set_resizable(&self, resizable: bool)
Source§fn set_role(&self, role: &str)
fn set_role(&self, role: &str)
Source§fn set_screen(&self, screen: &Screen)
fn set_screen(&self, screen: &Screen)
gdk::Screen where the self is displayed; if
the window is already mapped, it will be unmapped, and
then remapped on the new screen. Read moreSource§fn set_skip_pager_hint(&self, setting: bool)
fn set_skip_pager_hint(&self, setting: bool)
Source§fn set_skip_taskbar_hint(&self, setting: bool)
fn set_skip_taskbar_hint(&self, setting: bool)
Source§fn set_startup_id(&self, startup_id: &str)
fn set_startup_id(&self, startup_id: &str)
present() or any equivalent
function generating a window map event. Read moreSource§fn set_title(&self, title: &str)
fn set_title(&self, title: &str)
Window. The title of a window will be
displayed in its title bar; on the X Window System, the title bar
is rendered by the [window manager][gtk-X11-arch],
so exactly how the title appears to users may vary
according to a user’s exact configuration. The title should help a
user distinguish this window from other windows they may have
open. A good title might include the application name and current
document filename, for example. Read moreSource§fn set_titlebar(&self, titlebar: Option<&impl IsA<Widget>>)
fn set_titlebar(&self, titlebar: Option<&impl IsA<Widget>>)
self. Read moreSource§fn set_transient_for(&self, parent: Option<&impl IsA<Window>>)
fn set_transient_for(&self, parent: Option<&impl IsA<Window>>)
gtk_dialog_new_with_buttons() and other convenience
functions in GTK+ will sometimes call
set_transient_for() on your behalf. Read moreSource§fn set_type_hint(&self, hint: WindowTypeHint)
fn set_type_hint(&self, hint: WindowTypeHint)
Source§fn set_urgency_hint(&self, setting: bool)
fn set_urgency_hint(&self, setting: bool)
Source§fn stick(&self)
fn stick(&self)
self, which means that it will appear on all user
desktops. Note that you shouldn’t assume the window is definitely
stuck afterward, because other entities (e.g. the user or
[window manager][gtk-X11-arch] could unstick it
again, and some window managers do not support sticking
windows. But normally the window will end up stuck. Just don’t
write code that crashes if not. Read moreSource§fn unfullscreen(&self)
fn unfullscreen(&self)
self. Note that you
shouldn’t assume the window is definitely not full screen
afterward, because other entities (e.g. the user or
[window manager][gtk-X11-arch]) could fullscreen it
again, and not all window managers honor requests to unfullscreen
windows. But normally the window will end up restored to its normal
state. Just don’t write code that crashes if not. Read moreSource§fn unmaximize(&self)
fn unmaximize(&self)
self. Note that you shouldn’t assume the
window is definitely unmaximized afterward, because other entities
(e.g. the user or [window manager][gtk-X11-arch])
could maximize it again, and not all window
managers honor requests to unmaximize. But normally the window will
end up unmaximized. Just don’t write code that crashes if not. Read moreSource§fn unstick(&self)
fn unstick(&self)
self, which means that it will appear on only
one of the user’s desktops. Note that you shouldn’t assume the
window is definitely unstuck afterward, because other entities
(e.g. the user or [window manager][gtk-X11-arch]) could
stick it again. But normally the window will
end up unstuck. Just don’t write code that crashes if not. Read morefn 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)
Source§fn connect_activate_default<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_activate_default<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
window.fn emit_activate_default(&self)
Source§fn connect_activate_focus<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_activate_focus<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
window.fn emit_activate_focus(&self)
Source§fn connect_enable_debugging<F: Fn(&Self, bool) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_enable_debugging<F: Fn(&Self, bool) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
toggle is true, interactive debugging is toggled
on or off, when it is false, the debugger will be pointed at the
widget under the pointer. Read morefn emit_enable_debugging(&self, toggle: bool) -> bool
Source§fn connect_keys_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_keys_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
window changes.Source§fn connect_set_focus<F: Fn(&Self, Option<&Widget>) + '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 T
impl<T> IntoClosureReturnValue for T
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>)
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)
impl<Super, Sub> MayDowncastTo<Sub> for Super
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,
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>
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,
T. Read moreSource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
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)])
Source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
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,
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
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>
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>
ParamSpec of the property property_name of this object.Source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
ParamSpec of the properties of this object.Source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
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,
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,
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,
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,
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,
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,
key. Read moreSource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
Source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
Source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
Source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
Source§fn connect<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
signal_name on this object. Read moreSource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
signal_id on this object. Read moreSource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
signal_name on this object. Read moreSource§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
signal_id on this object. Read moreSource§unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
unsafe fn connect_unsafe<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
signal_name on this object. Read moreSource§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
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
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
signal_id on this object. Read moreSource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
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,
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>
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,
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>
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,
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>
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,
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>
Source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
Source§fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify signal of the object. Read moreSource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify signal of the object. Read moreSource§unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F,
) -> SignalHandlerId
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F, ) -> SignalHandlerId
notify signal of the object. Read moreSource§fn notify(&self, property_name: &str)
fn notify(&self, property_name: &str)
Source§fn notify_by_pspec(&self, pspec: &ParamSpec)
fn notify_by_pspec(&self, pspec: &ParamSpec)
Source§fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
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,
Source§fn bind_property<'a, 'f, 't, O>(
&'a self,
source_property: &'a str,
target: &'a O,
target_property: &'a str,
) -> BindingBuilder<'a, 'f, 't>where
O: ObjectType,
fn bind_property<'a, 'f, 't, O>(
&'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)
Source§impl<O> OffscreenWindowExt for Owhere
O: IsA<OffscreenWindow>,
impl<O> OffscreenWindowExt for Owhere
O: IsA<OffscreenWindow>,
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()
Source§impl<T> TransparentType for Twhere
T: TransparentPtrType,
impl<T> TransparentType for Twhere
T: TransparentPtrType,
type GlibType = <T as GlibPtrDefault>::GlibType
Source§impl<T> TryFromClosureReturnValue for Twhere
T: for<'a> FromValue<'a> + StaticType + 'static,
impl<T> TryFromClosureReturnValue for Twhere
T: for<'a> FromValue<'a> + StaticType + 'static,
Source§impl<O> WidgetExt for O
impl<O> WidgetExt for O
Source§fn add_accelerator(
&self,
accel_signal: &str,
accel_group: &impl IsA<AccelGroup>,
accel_key: u32,
accel_mods: ModifierType,
accel_flags: AccelFlags,
)
fn add_accelerator( &self, accel_signal: &str, accel_group: &impl IsA<AccelGroup>, accel_key: u32, accel_mods: ModifierType, accel_flags: AccelFlags, )
self in accel_group that causes
accel_signal to be emitted if the accelerator is activated.
The accel_group needs to be added to the widget’s toplevel via
GtkWindowExt::add_accel_group(), and the signal must be of type G_SIGNAL_ACTION.
Accelerators added through this function are not user changeable during
runtime. If you want to support accelerators that can be changed by the
user, use gtk_accel_map_add_entry() and set_accel_path() or
GtkMenuItemExt::set_accel_path() instead. Read moreSource§fn add_device_events(&self, device: &Device, events: EventMask)
fn add_device_events(&self, device: &Device, events: EventMask)
events to the event mask for
self. See set_device_events() for details. Read moreSource§fn add_mnemonic_label(&self, label: &impl IsA<Widget>)
fn add_mnemonic_label(&self, label: &impl IsA<Widget>)
list_mnemonic_labels()). Note the
list of mnemonic labels for the widget is cleared when the
widget is destroyed, so the caller must make sure to update
its internal state at this point as well, by using a connection
to the destroy signal or a weak notifier. Read moreSource§fn can_activate_accel(&self, signal_id: u32) -> bool
fn can_activate_accel(&self, signal_id: u32) -> bool
signal_id can currently be activated.
This is done by emitting the can-activate-accel
signal on self; if the signal isn’t overridden by a
handler or in a derived widget, then the default check is
that the widget must be sensitive, and the widget and all
its ancestors mapped. Read moreSource§fn child_focus(&self, direction: DirectionType) -> bool
fn child_focus(&self, direction: DirectionType) -> bool
grab_focus() to move the focus
to a particular widget, and ContainerExt::set_focus_chain() to
change the focus tab order. So you may want to investigate those
functions instead. Read moreSource§fn child_notify(&self, child_property: &str)
fn child_notify(&self, child_property: &str)
child-notify signal for the
[child property][child-properties] child_property
on self. Read moreSource§fn compute_expand(&self, orientation: Orientation) -> bool
fn compute_expand(&self, orientation: Orientation) -> bool
hexpands() or vexpands(). Read moreSource§fn create_pango_context(&self) -> Context
fn create_pango_context(&self) -> Context
pango::Context with the appropriate font map,
font options, font description, and base direction for drawing
text for this widget. See also pango_context(). Read moreSource§fn create_pango_layout(&self, text: Option<&str>) -> Layout
fn create_pango_layout(&self, text: Option<&str>) -> Layout
pango::Layout with the appropriate font map,
font description, and base direction for drawing text for
this widget. Read moreSource§fn device_is_shadowed(&self, device: &Device) -> bool
fn device_is_shadowed(&self, device: &Device) -> bool
true if device has been shadowed by a GTK+
device grab on another widget, so it would stop sending
events to self. This may be used in the
grab-notify signal to check for specific
devices. See device_grab_add(). Read moreSource§fn drag_begin_with_coordinates(
&self,
targets: &TargetList,
actions: DragAction,
button: i32,
event: Option<&Event>,
x: i32,
y: i32,
) -> Option<DragContext>
fn drag_begin_with_coordinates( &self, targets: &TargetList, actions: DragAction, button: i32, event: Option<&Event>, x: i32, y: i32, ) -> Option<DragContext>
WidgetExtManual::drag_source_set() is used. Read moreSource§fn drag_check_threshold(
&self,
start_x: i32,
start_y: i32,
current_x: i32,
current_y: i32,
) -> bool
fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32, ) -> bool
start_x, start_y) and ending
at (current_x, current_y) has passed the GTK+ drag threshold, and thus
should trigger the beginning of a drag-and-drop operation. Read moreSource§fn drag_dest_add_image_targets(&self)
fn drag_dest_add_image_targets(&self)
SelectionData to
the target list of the drag destination. The targets
are added with info = 0. If you need another value,
use TargetList::add_image_targets() and
drag_dest_set_target_list().Source§fn drag_dest_add_text_targets(&self)
fn drag_dest_add_text_targets(&self)
SelectionData to
the target list of the drag destination. The targets
are added with info = 0. If you need another value,
use TargetList::add_text_targets() and
drag_dest_set_target_list().Source§fn drag_dest_add_uri_targets(&self)
fn drag_dest_add_uri_targets(&self)
SelectionData to
the target list of the drag destination. The targets
are added with info = 0. If you need another value,
use TargetList::add_uri_targets() and
drag_dest_set_target_list().Source§fn drag_dest_find_target(
&self,
context: &DragContext,
target_list: Option<&TargetList>,
) -> Option<Atom>
fn drag_dest_find_target( &self, context: &DragContext, target_list: Option<&TargetList>, ) -> Option<Atom>
context and the
dest_target_list, returning the first matching target, otherwise
returning GDK_NONE. dest_target_list should usually be the return
value from drag_dest_get_target_list(), but some widgets may
have different valid targets for different parts of the widget; in
that case, they will have to implement a drag_motion handler that
passes the correct target list to this function. Read moreSource§fn drag_dest_get_target_list(&self) -> Option<TargetList>
fn drag_dest_get_target_list(&self) -> Option<TargetList>
Source§fn drag_dest_get_track_motion(&self) -> bool
fn drag_dest_get_track_motion(&self) -> bool
drag-motion signals. Read moreSource§fn drag_dest_set_target_list(&self, target_list: Option<&TargetList>)
fn drag_dest_set_target_list(&self, target_list: Option<&TargetList>)
WidgetExtManual::drag_dest_set(). Read moreSource§fn drag_dest_set_track_motion(&self, track_motion: bool)
fn drag_dest_set_track_motion(&self, track_motion: bool)
drag-motion and
drag-leave events regardless of the targets and the
DestDefaults::MOTION flag. Read moreSource§fn drag_dest_unset(&self)
fn drag_dest_unset(&self)
WidgetExtManual::drag_dest_set(). The widget will no longer receive
notification of drags.Source§fn drag_get_data(&self, context: &DragContext, target: &Atom, time_: u32)
fn drag_get_data(&self, context: &DragContext, target: &Atom, time_: u32)
drag-data-received signal. Failure of the retrieval
is indicated by the length field of the selection_data
signal parameter being negative. However, when drag_get_data()
is called implicitely because the DestDefaults::DROP was set,
then the widget will not receive notification of failed
drops. Read moreSource§fn drag_highlight(&self)
fn drag_highlight(&self)
drag_unhighlight().
GTK+ calls this automatically if DestDefaults::HIGHLIGHT is set.Source§fn drag_source_add_image_targets(&self)
fn drag_source_add_image_targets(&self)
SelectionData to
the target list of the drag source. The targets
are added with info = 0. If you need another value,
use TargetList::add_image_targets() and
drag_source_set_target_list().Source§fn drag_source_add_text_targets(&self)
fn drag_source_add_text_targets(&self)
SelectionData to
the target list of the drag source. The targets
are added with info = 0. If you need another value,
use TargetList::add_text_targets() and
drag_source_set_target_list().Source§fn drag_source_add_uri_targets(&self)
fn drag_source_add_uri_targets(&self)
SelectionData to
the target list of the drag source. The targets
are added with info = 0. If you need another value,
use TargetList::add_uri_targets() and
drag_source_set_target_list().Source§fn drag_source_get_target_list(&self) -> Option<TargetList>
fn drag_source_get_target_list(&self) -> Option<TargetList>
Source§fn drag_source_set_icon_gicon(&self, icon: &impl IsA<Icon>)
fn drag_source_set_icon_gicon(&self, icon: &impl IsA<Icon>)
Source§fn drag_source_set_icon_name(&self, icon_name: &str)
fn drag_source_set_icon_name(&self, icon_name: &str)
Source§fn drag_source_set_icon_pixbuf(&self, pixbuf: &Pixbuf)
fn drag_source_set_icon_pixbuf(&self, pixbuf: &Pixbuf)
gdk_pixbuf::Pixbuf. GTK+ retains a reference for pixbuf and will
release it when it is no longer needed. Read moreSource§fn drag_source_set_target_list(&self, target_list: Option<&TargetList>)
fn drag_source_set_target_list(&self, target_list: Option<&TargetList>)
WidgetExtManual::drag_source_set(). Read moreSource§fn drag_source_unset(&self)
fn drag_source_unset(&self)
WidgetExtManual::drag_source_set().Source§fn drag_unhighlight(&self)
fn drag_unhighlight(&self)
drag_highlight() from
a widget.Source§fn draw(&self, cr: &Context)
fn draw(&self, cr: &Context)
self to cr. The top left corner of the widget will be
drawn to the currently set origin point of cr. Read moreSource§fn error_bell(&self)
fn error_bell(&self)
gtk-error-bell setting is true, it calls
Window::beep(), otherwise it does nothing. Read moreSource§fn event(&self, event: &Event) -> bool
fn event(&self, event: &Event) -> bool
main_do_event() so the event will behave as if
it were in the event queue. Don’t synthesize expose events; instead,
use Window::invalidate_rect() to invalidate a region of the
window. Read moreSource§fn freeze_child_notify(&self)
fn freeze_child_notify(&self)
child-notify signals on self. The
signals are queued until thaw_child_notify() is called
on self. Read moreSource§fn accessible(&self) -> Option<Object>
fn accessible(&self) -> Option<Object>
Source§fn action_group(&self, prefix: &str) -> Option<ActionGroup>
fn action_group(&self, prefix: &str) -> Option<ActionGroup>
gio::ActionGroup that was registered using prefix. The resulting
gio::ActionGroup may have been registered to self or any Widget in its
ancestry. Read moreSource§fn allocated_baseline(&self) -> i32
fn allocated_baseline(&self) -> i32
self.
This function is intended to be used when implementing handlers
for the draw function, and when allocating child
widgets in size_allocate. Read moreSource§fn allocated_height(&self) -> i32
fn allocated_height(&self) -> i32
Source§fn allocated_size(&self) -> (Allocation, i32)
fn allocated_size(&self) -> (Allocation, i32)
Source§fn allocated_width(&self) -> i32
fn allocated_width(&self) -> i32
Source§fn allocation(&self) -> Allocation
fn allocation(&self) -> Allocation
Source§fn ancestor(&self, widget_type: Type) -> Option<Widget>
fn ancestor(&self, widget_type: Type) -> Option<Widget>
self with type widget_type. For example,
gtk_widget_get_ancestor (widget, GTK_TYPE_BOX) gets
the first Box that’s an ancestor of self. No reference will be
added to the returned widget; it should not be unreferenced. See note
about checking for a toplevel Window in the docs for
toplevel(). Read moreSource§fn is_app_paintable(&self) -> bool
fn is_app_paintable(&self) -> bool
Source§fn can_default(&self) -> bool
fn can_default(&self) -> bool
Source§fn is_child_visible(&self) -> bool
fn is_child_visible(&self) -> bool
set_child_visible().
If you feel a need to use this function, your code probably
needs reorganization. Read moreSource§fn clip(&self) -> Allocation
fn clip(&self) -> Allocation
Source§fn clipboard(&self, selection: &Atom) -> Clipboard
fn clipboard(&self, selection: &Atom) -> Clipboard
self. self must have a gdk::Display
associated with it, so must be attached to a toplevel
window. Read moreSource§fn device_is_enabled(&self, device: &Device) -> bool
fn device_is_enabled(&self, device: &Device) -> bool
Source§fn device_events(&self, device: &Device) -> EventMask
fn device_events(&self, device: &Device) -> EventMask
device operates on it. Read moreSource§fn direction(&self) -> TextDirection
fn direction(&self) -> TextDirection
set_direction(). Read moreSource§fn display(&self) -> Display
fn display(&self) -> Display
gdk::Display for the toplevel window associated with
this widget. This function can only be called after the widget
has been added to a widget hierarchy with a Window at the top. Read moreSource§fn is_double_buffered(&self) -> bool
fn is_double_buffered(&self) -> bool
Source§fn gets_focus_on_click(&self) -> bool
fn gets_focus_on_click(&self) -> bool
set_focus_on_click(). Read moreSource§fn font_map(&self) -> Option<FontMap>
fn font_map(&self) -> Option<FontMap>
set_font_map(). Read moreSource§fn font_options(&self) -> Option<FontOptions>
fn font_options(&self) -> Option<FontOptions>
cairo::FontOptions used for Pango rendering. When not set,
the defaults font options for the gdk::Screen will be used. Read moreSource§fn frame_clock(&self) -> Option<FrameClock>
fn frame_clock(&self) -> Option<FrameClock>
FrameClock::frame_time(), in order to get a time to use for
animating. For example you might record the start of the animation
with an initial value from FrameClock::frame_time(), and
then update the animation by calling
FrameClock::frame_time() again during each repaint. Read moreSource§fn has_tooltip(&self) -> bool
fn has_tooltip(&self) -> bool
has-tooltip for more information. Read moreSource§fn has_window(&self) -> bool
fn has_window(&self) -> bool
Source§fn is_hexpand_set(&self) -> bool
fn is_hexpand_set(&self) -> bool
set_hexpand() has been used to
explicitly set the expand flag on this widget. Read moreSource§fn margin_bottom(&self) -> i32
fn margin_bottom(&self) -> i32
margin-bottom property. Read moreSource§fn margin_end(&self) -> i32
fn margin_end(&self) -> i32
margin-end property. Read moreSource§fn margin_start(&self) -> i32
fn margin_start(&self) -> i32
margin-start property. Read moreSource§fn margin_top(&self) -> i32
fn margin_top(&self) -> i32
margin-top property. Read moreSource§fn modifier_mask(&self, intent: ModifierIntent) -> ModifierType
fn modifier_mask(&self, intent: ModifierIntent) -> ModifierType
self’s windowing system backend
uses for a particular purpose. Read moreSource§fn widget_name(&self) -> GString
fn widget_name(&self) -> GString
set_widget_name() for the
significance of widget names. Read moreSource§fn is_no_show_all(&self) -> bool
fn is_no_show_all(&self) -> bool
no-show-all property,
which determines whether calls to show_all()
will affect this widget. Read moreSource§fn opacity(&self) -> f64
fn opacity(&self) -> f64
set_opacity(). Read moreSource§fn pango_context(&self) -> Context
fn pango_context(&self) -> Context
pango::Context with the appropriate font map, font description,
and base direction for this widget. Unlike the context returned
by create_pango_context(), this context is owned by
the widget (it can be used until the screen for the widget changes
or the widget is removed from its toplevel), and will be updated to
match any changes to the widget’s attributes. This can be tracked
by using the screen-changed signal on the widget. Read moreSource§fn parent_window(&self) -> Option<Window>
fn parent_window(&self) -> Option<Window>
Source§fn path(&self) -> WidgetPath
fn path(&self) -> WidgetPath
WidgetPath representing self, if the widget
is not connected to a toplevel widget, a partial path will be
created. Read moreSource§fn preferred_height(&self) -> (i32, i32)
fn preferred_height(&self) -> (i32, i32)
Source§fn preferred_height_and_baseline_for_width(
&self,
width: i32,
) -> (i32, i32, i32, i32)
fn preferred_height_and_baseline_for_width( &self, width: i32, ) -> (i32, i32, i32, i32)
width, or the default height if width is -1. The baselines may be -1 which means
that no baseline is requested for this widget. Read moreSource§fn preferred_height_for_width(&self, width: i32) -> (i32, i32)
fn preferred_height_for_width(&self, width: i32) -> (i32, i32)
width. Read moreSource§fn preferred_size(&self) -> (Requisition, Requisition)
fn preferred_size(&self) -> (Requisition, Requisition)
Source§fn preferred_width(&self) -> (i32, i32)
fn preferred_width(&self) -> (i32, i32)
Source§fn preferred_width_for_height(&self, height: i32) -> (i32, i32)
fn preferred_width_for_height(&self, height: i32) -> (i32, i32)
height. Read moreSource§fn is_realized(&self) -> bool
fn is_realized(&self) -> bool
self is realized. Read moreSource§fn receives_default(&self) -> bool
fn receives_default(&self) -> bool
self is always treated as the default widget
within its toplevel when it has the focus, even if another widget
is the default. Read moreSource§fn request_mode(&self) -> SizeRequestMode
fn request_mode(&self) -> SizeRequestMode
Source§fn scale_factor(&self) -> i32
fn scale_factor(&self) -> i32
Source§fn screen(&self) -> Option<Screen>
fn screen(&self) -> Option<Screen>
gdk::Screen from the toplevel window associated with
this widget. This function can only be called after the widget
has been added to a widget hierarchy with a Window
at the top. Read moreSource§fn get_sensitive(&self) -> bool
fn get_sensitive(&self) -> bool
set_sensitive()). Read moreSource§fn settings(&self) -> Option<Settings>
fn settings(&self) -> Option<Settings>
Source§fn size_request(&self) -> (i32, i32)
fn size_request(&self) -> (i32, i32)
set_size_request(). A value of -1 stored in width or
height indicates that that dimension has not been set explicitly
and the natural requisition of the widget will be used instead. See
set_size_request(). To get the size a widget will
actually request, call preferred_size() instead of
this function. Read moreSource§fn state_flags(&self) -> StateFlags
fn state_flags(&self) -> StateFlags
StateFlags::INSENSITIVE state will be
returned, that is, also based on parent insensitivity, even if
self itself is sensitive. Read moreSource§fn style_context(&self) -> StyleContext
fn style_context(&self) -> StyleContext
self. The returned object is
guaranteed to be the same for the lifetime of self. Read moreSource§fn supports_multidevice(&self) -> bool
fn supports_multidevice(&self) -> bool
true if self is multiple pointer aware. See
set_support_multidevice() for more information. Read moreSource§fn tooltip_markup(&self) -> Option<GString>
fn tooltip_markup(&self) -> Option<GString>
self. Read moreSource§fn tooltip_text(&self) -> Option<GString>
fn tooltip_text(&self) -> Option<GString>
self. Read moreSource§fn tooltip_window(&self) -> Option<Window>
fn tooltip_window(&self) -> Option<Window>
Window of the current tooltip. This can be the
GtkWindow created by default, or the custom tooltip window set
using set_tooltip_window(). Read moreSource§fn toplevel(&self) -> Option<Widget>
fn toplevel(&self) -> Option<Widget>
self is a part of. If self has no parent widgets, it will be
returned as the topmost widget. No reference will be added to the
returned widget; it should not be unreferenced. Read moreSource§fn valign_with_baseline(&self) -> Align
fn valign_with_baseline(&self) -> Align
Source§fn vexpands(&self) -> bool
fn vexpands(&self) -> bool
Source§fn is_vexpand_set(&self) -> bool
fn is_vexpand_set(&self) -> bool
set_vexpand() has been used to
explicitly set the expand flag on this widget. Read moreSource§fn get_visible(&self) -> bool
fn get_visible(&self) -> bool
is_visible() instead. Read moreSource§fn visual(&self) -> Option<Visual>
fn visual(&self) -> Option<Visual>
self. Read moreSource§fn grab_default(&self)
fn grab_default(&self)
self to become the default widget. self must be able to be
a default widget; typically you would ensure this yourself
by calling set_can_default() with a true value.
The default widget is activated when
the user presses Enter in a window. Default widgets must be
activatable, that is, activate() should affect them. Note
that Entry widgets require the “activates-default” property
set to true before they activate the default widget when Enter
is pressed and the Entry is focused.Source§fn grab_focus(&self)
fn grab_focus(&self)
Source§fn grab_remove(&self)
fn grab_remove(&self)
Source§fn has_default(&self) -> bool
fn has_default(&self) -> bool
self is the current default widget within its
toplevel. See set_can_default(). Read moreSource§fn has_focus(&self) -> bool
fn has_focus(&self) -> bool
is_focus() for the difference between having the global
input focus, and only having the focus within a toplevel. Read moreSource§fn has_grab(&self) -> bool
fn has_grab(&self) -> bool
Source§fn has_screen(&self) -> bool
fn has_screen(&self) -> bool
gdk::Screen is associated with
this widget. All toplevel widgets have an associated
screen, and all widgets added into a hierarchy with a toplevel
window at the top. Read moreSource§fn has_visible_focus(&self) -> bool
fn has_visible_focus(&self) -> bool
self. See GtkWindowExt::gets_focus_visible() for more information
about focus indication. Read moreSource§fn hide(&self)
fn hide(&self)
show(), causing the widget to be
hidden (invisible to the user).Source§fn in_destruction(&self) -> bool
fn in_destruction(&self) -> bool
Source§fn init_template(&self)
fn init_template(&self)
gtk_widget_class_set_template() Read moreSource§fn input_shape_combine_region(&self, region: Option<&Region>)
fn input_shape_combine_region(&self, region: Option<&Region>)
Window::input_shape_combine_region() for more information. Read moreSource§fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>)
fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>)
group into self. Children of self that implement
Actionable can then be associated with actions in group by
setting their “action-name” to
prefix.action-name. Read moreSource§fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool
fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool
self is somewhere inside ancestor, possibly with
intermediate containers. Read moreSource§fn is_drawable(&self) -> bool
fn is_drawable(&self) -> bool
self can be drawn to. A widget can be drawn
to if it is mapped and visible. Read moreSource§fn is_sensitive(&self) -> bool
fn is_sensitive(&self) -> bool
Source§fn is_toplevel(&self) -> bool
fn is_toplevel(&self) -> bool
self is a toplevel widget. Read moreSource§fn is_visible(&self) -> bool
fn is_visible(&self) -> bool
keynav-failed signal on the widget and its return
value should be interpreted in a way similar to the return value of
child_focus(): Read moreSource§fn list_accel_closures(&self) -> Vec<Closure>
fn list_accel_closures(&self) -> Vec<Closure>
self for accelerator group connections
with AccelGroupExtManual::connect_accel_group_by_path() or AccelGroupExtManual::connect_accel_group().
The closures can be used to monitor accelerator changes on self,
by connecting to the AccelGroup signal of the
AccelGroup of a closure which can be found out with
AccelGroup::from_accel_closure(). Read moreSource§fn list_action_prefixes(&self) -> Vec<GString>
fn list_action_prefixes(&self) -> Vec<GString>
None-terminated array of strings containing the prefixes of
gio::ActionGroup’s available to self. Read moreSource§fn list_mnemonic_labels(&self) -> Vec<Widget>
fn list_mnemonic_labels(&self) -> Vec<Widget>
LabelExt::set_mnemonic_widget()). Read moreSource§fn map(&self)
fn map(&self)
Source§fn mnemonic_activate(&self, group_cycling: bool) -> bool
fn mnemonic_activate(&self, group_cycling: bool) -> bool
mnemonic-activate signal. Read moreSource§fn queue_allocate(&self)
fn queue_allocate(&self)
Source§fn queue_compute_expand(&self)
fn queue_compute_expand(&self)
self as needing to recompute its expand flags. Call
this function when setting legacy expand child properties
on the child of a container. Read moreSource§fn queue_draw(&self)
fn queue_draw(&self)
queue_draw_area() for the
entire area of a widget.Source§fn queue_draw_area(&self, x: i32, y: i32, width: i32, height: i32)
fn queue_draw_area(&self, x: i32, y: i32, width: i32, height: i32)
queue_draw_region() on
the region created from the given coordinates. Read moreSource§fn queue_draw_region(&self, region: &Region)
fn queue_draw_region(&self, region: &Region)
self defined by region by calling
Window::invalidate_region() on the widget’s window and all its
child windows. Once the main loop becomes idle (after the current
batch of events has been processed, roughly), the window will
receive expose events for the union of all regions that have been
invalidated. Read moreSource§fn queue_resize(&self)
fn queue_resize(&self)
Label, Label
queues a resize to ensure there’s enough space for the new text. Read moreSource§fn queue_resize_no_redraw(&self)
fn queue_resize_no_redraw(&self)
queue_resize(),
except that the widget is not invalidated.Source§fn realize(&self)
fn realize(&self)
self->window will be created when a widget
is realized. Normally realization happens implicitly; if you show
a widget and all its parent containers, then the widget will be
realized and mapped automatically. Read moreSource§fn register_window(&self, window: &Window)
fn register_window(&self, window: &Window)
gdk::Window with the widget and sets it up so that
the widget receives events for it. Call unregister_window()
when destroying the window. Read moreSource§fn remove_accelerator(
&self,
accel_group: &impl IsA<AccelGroup>,
accel_key: u32,
accel_mods: ModifierType,
) -> bool
fn remove_accelerator( &self, accel_group: &impl IsA<AccelGroup>, accel_key: u32, accel_mods: ModifierType, ) -> bool
Source§fn remove_mnemonic_label(&self, label: &impl IsA<Widget>)
fn remove_mnemonic_label(&self, label: &impl IsA<Widget>)
list_mnemonic_labels()). The widget
must have previously been added to the list with
add_mnemonic_label(). Read moreSource§fn reset_style(&self)
fn reset_style(&self)
self and all descendants
by updating its widget path. GtkContainers may want
to use this on a child when reordering it in a way that a different
style might apply to it. See also ContainerExt::path_for_child().Source§fn send_focus_change(&self, event: &Event) -> bool
fn send_focus_change(&self, event: &Event) -> bool
Source§fn set_accel_path(
&self,
accel_path: Option<&str>,
accel_group: Option<&impl IsA<AccelGroup>>,
)
fn set_accel_path( &self, accel_path: Option<&str>, accel_group: Option<&impl IsA<AccelGroup>>, )
accel_group, and an accelerator path,
accel_path, sets up an accelerator in accel_group so whenever the
key binding that is defined for accel_path is pressed, self
will be activated. This removes any accelerators (for any
accelerator group) installed by previous calls to
set_accel_path(). Associating accelerators with
paths allows them to be modified by the user and the modifications
to be saved for future use. (See gtk_accel_map_save().) Read moreSource§fn set_allocation(&self, allocation: &Allocation)
fn set_allocation(&self, allocation: &Allocation)
Source§fn set_app_paintable(&self, app_paintable: bool)
fn set_app_paintable(&self, app_paintable: bool)
Source§fn set_can_default(&self, can_default: bool)
fn set_can_default(&self, can_default: bool)
self can be a default widget. See
grab_default() for details about the meaning of
“default”. Read moreSource§fn set_can_focus(&self, can_focus: bool)
fn set_can_focus(&self, can_focus: bool)
self can own the input focus. See
grab_focus() for actually setting the input focus on a
widget. Read moreSource§fn set_child_visible(&self, is_visible: bool)
fn set_child_visible(&self, is_visible: bool)
Source§fn set_clip(&self, clip: &Allocation)
fn set_clip(&self, clip: &Allocation)
set_allocation() (or after chaining up
to the parent class), because that function resets the clip. Read moreSource§fn set_device_enabled(&self, device: &Device, enabled: bool)
fn set_device_enabled(&self, device: &Device, enabled: bool)
Source§fn set_device_events(&self, device: &Device, events: EventMask)
fn set_device_events(&self, device: &Device, events: EventMask)
gdk::EventMask) for a widget. The event
mask determines which events a widget will receive from device. Keep
in mind that different widgets have different default event masks, and by
changing the event mask you may disrupt a widget’s functionality,
so be careful. This function must be called while a widget is
unrealized. Consider add_device_events() for widgets that are
already realized, or if you want to preserve the existing event
mask. This function can’t be used with windowless widgets (which return
false from has_window());
to get events on those widgets, place them inside a EventBox
and receive events on the event box. Read moreSource§fn set_direction(&self, dir: TextDirection)
fn set_direction(&self, dir: TextDirection)
Source§fn set_focus_on_click(&self, focus_on_click: bool)
fn set_focus_on_click(&self, focus_on_click: bool)
Source§fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>)
fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>)
Source§fn set_font_options(&self, options: Option<&FontOptions>)
fn set_font_options(&self, options: Option<&FontOptions>)
cairo::FontOptions used for Pango rendering in this widget.
When not set, the default font options for the gdk::Screen will be used. Read moreSource§fn set_halign(&self, align: Align)
fn set_halign(&self, align: Align)
Source§fn set_has_tooltip(&self, has_tooltip: bool)
fn set_has_tooltip(&self, has_tooltip: bool)
self to has_tooltip. See
has-tooltip for more information. Read moreSource§fn set_has_window(&self, has_window: bool)
fn set_has_window(&self, has_window: bool)
self has a gdk::Window of its own. Note that
all realized widgets have a non-None “window” pointer
(window() never returns a None window when a widget
is realized), but for many of them it’s actually the gdk::Window of
one of its parent widgets. Widgets that do not create a window for
themselves in realize must announce this by
calling this function with has_window = false. Read moreSource§fn set_hexpand(&self, expand: bool)
fn set_hexpand(&self, expand: bool)
Source§fn set_hexpand_set(&self, set: bool)
fn set_hexpand_set(&self, set: bool)
hexpands()) will
be used. Read moreSource§fn set_mapped(&self, mapped: bool)
fn set_mapped(&self, mapped: bool)
Source§fn set_margin_bottom(&self, margin: i32)
fn set_margin_bottom(&self, margin: i32)
Source§fn set_margin_end(&self, margin: i32)
fn set_margin_end(&self, margin: i32)
Source§fn set_margin_start(&self, margin: i32)
fn set_margin_start(&self, margin: i32)
Source§fn set_margin_top(&self, margin: i32)
fn set_margin_top(&self, margin: i32)
Source§fn set_widget_name(&self, name: &str)
fn set_widget_name(&self, name: &str)
StyleContext). Read moreSource§fn set_no_show_all(&self, no_show_all: bool)
fn set_no_show_all(&self, no_show_all: bool)
no-show-all property, which determines whether
calls to show_all() will affect this widget. Read moreSource§fn set_opacity(&self, opacity: f64)
fn set_opacity(&self, opacity: f64)
self to be rendered partially transparent,
with opacity 0 being fully transparent and 1 fully opaque. (Opacity values
are clamped to the [0,1] range.).
This works on both toplevel widget, and child widgets, although there
are some limitations: Read moreSource§fn set_parent(&self, parent: &impl IsA<Widget>)
fn set_parent(&self, parent: &impl IsA<Widget>)
Container.
Sets the container as the parent of self, and takes care of
some details such as updating the state and style of the child
to reflect its new location. The opposite function is
unparent(). Read moreSource§fn set_parent_window(&self, parent_window: &Window)
fn set_parent_window(&self, parent_window: &Window)
self. Read moreSource§fn set_realized(&self, realized: bool)
fn set_realized(&self, realized: bool)
GdkWindows for the self have been created
and registered. Read moreSource§fn set_receives_default(&self, receives_default: bool)
fn set_receives_default(&self, receives_default: bool)
self will be treated as the default widget
within its toplevel when it has the focus, even if another widget
is the default. Read moreSource§fn set_redraw_on_allocate(&self, redraw_on_allocate: bool)
fn set_redraw_on_allocate(&self, redraw_on_allocate: bool)
true and
the entire widget is redrawn on every size change. If your widget
leaves the upper left unchanged when made bigger, turning this
setting off will improve performance. Read moreSource§fn set_sensitive(&self, sensitive: bool)
fn set_sensitive(&self, sensitive: bool)
Source§fn set_size_request(&self, width: i32, height: i32)
fn set_size_request(&self, width: i32, height: i32)
width by height. You can use this
function to force a widget to be larger than it normally would be. Read moreSource§fn set_state_flags(&self, flags: StateFlags, clear: bool)
fn set_state_flags(&self, flags: StateFlags, clear: bool)
Source§fn set_support_multidevice(&self, support_multidevice: bool)
fn set_support_multidevice(&self, support_multidevice: bool)
true,
self will start receiving multiple, per device enter/leave events. Note
that if custom GdkWindows are created in realize,
Window::set_support_multidevice() will have to be called manually on them. Read moreSource§fn set_tooltip_markup(&self, markup: Option<&str>)
fn set_tooltip_markup(&self, markup: Option<&str>)
markup as the contents of the tooltip, which is marked up with
the [Pango text markup language][PangoMarkupFormat]. Read moreSource§fn set_tooltip_text(&self, text: Option<&str>)
fn set_tooltip_text(&self, text: Option<&str>)
text as the contents of the tooltip. This function will take
care of setting has-tooltip to true and of the default
handler for the query-tooltip signal. Read moreSource§fn set_valign(&self, align: Align)
fn set_valign(&self, align: Align)
Source§fn set_vexpand(&self, expand: bool)
fn set_vexpand(&self, expand: bool)
Source§fn set_vexpand_set(&self, set: bool)
fn set_vexpand_set(&self, set: bool)
vexpands()) will
be used. Read moreSource§fn set_visible(&self, visible: bool)
fn set_visible(&self, visible: bool)
self. Note that setting this to
true doesn’t mean the widget is actually viewable, see
get_visible(). Read moreSource§fn set_visual(&self, visual: Option<&Visual>)
fn set_visual(&self, visual: Option<&Visual>)
GdkWindows. The visual must be on the same gdk::Screen as
returned by screen(), so handling the
screen-changed signal is necessary. Read moreSource§fn set_window(&self, window: Window)
fn set_window(&self, window: Window)
realize implementation. The window passed is
usually either new window created with gdk::Window::new(), or the
window of its parent widget as returned by
parent_window(). Read moreSource§fn shape_combine_region(&self, region: Option<&Region>)
fn shape_combine_region(&self, region: Option<&Region>)
Window::shape_combine_region()
for more information. Read moreSource§fn show(&self)
fn show(&self)
show_all() on the
container, instead of individually showing the widgets. Read moreSource§fn show_all(&self)
fn show_all(&self)
Source§fn show_now(&self)
fn show_now(&self)
Window that has not yet been shown), enter the main
loop and wait for the window to actually be mapped. Be careful;
because the main loop is running, anything can happen during
this function.Source§fn size_allocate(&self, allocation: &Allocation)
fn size_allocate(&self, allocation: &Allocation)
Source§fn size_allocate_with_baseline(
&self,
allocation: &mut Allocation,
baseline: i32,
)
fn size_allocate_with_baseline( &self, allocation: &mut Allocation, baseline: i32, )
Source§fn style_get_property(&self, property_name: &str) -> Value
fn style_get_property(&self, property_name: &str) -> Value
self. Read moreSource§fn thaw_child_notify(&self)
fn thaw_child_notify(&self)
freeze_child_notify().
This causes all queued child-notify signals on self to be
emitted.Source§fn translate_coordinates(
&self,
dest_widget: &impl IsA<Widget>,
src_x: i32,
src_y: i32,
) -> Option<(i32, i32)>
fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: i32, src_y: i32, ) -> Option<(i32, i32)>
self’s allocation to coordinates
relative to dest_widget’s allocations. In order to perform this
operation, both widgets must be realized, and must share a common
toplevel. Read moreSource§fn trigger_tooltip_query(&self)
fn trigger_tooltip_query(&self)
self
is located. See Tooltip::trigger_tooltip_query() for more
information.Source§fn unmap(&self)
fn unmap(&self)
Source§fn unparent(&self)
fn unparent(&self)
Container, to dissociate a child from the container.Source§fn unrealize(&self)
fn unrealize(&self)
self->window).Source§fn unregister_window(&self, window: &Window)
fn unregister_window(&self, window: &Window)
gdk::Window from the widget that was previously set up with
register_window(). You need to call this when the window is
no longer used by the widget, such as when you destroy it. Read moreSource§fn unset_state_flags(&self, flags: StateFlags)
fn unset_state_flags(&self, flags: StateFlags)
set_state_flags(). Read morefn is_composite_child(&self) -> bool
Source§fn set_expand(&self, expand: bool)
fn set_expand(&self, expand: bool)
fn set_has_default(&self, has_default: bool)
fn set_has_focus(&self, has_focus: bool)
fn height_request(&self) -> i32
fn set_height_request(&self, height_request: i32)
fn set_is_focus(&self, is_focus: bool)
Source§fn margin(&self) -> i32
fn margin(&self) -> i32
Source§fn set_margin(&self, margin: i32)
fn set_margin(&self, margin: i32)
fn width_request(&self) -> i32
fn set_width_request(&self, width_request: i32)
fn connect_accel_closures_changed<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_can_activate_accel<F: Fn(&Self, u32) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_can_activate_accel<F: Fn(&Self, u32) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_child_notify<F: Fn(&Self, &ParamSpec) + 'static>(
&self,
detail: Option<&str>,
f: F,
) -> SignalHandlerId
fn connect_child_notify<F: Fn(&Self, &ParamSpec) + 'static>( &self, detail: Option<&str>, f: F, ) -> SignalHandlerId
Source§fn connect_configure_event<F: Fn(&Self, &EventConfigure) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_configure_event<F: Fn(&Self, &EventConfigure) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window has changed. Read moreSource§fn connect_damage_event<F: Fn(&Self, &EventExpose) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_damage_event<F: Fn(&Self, &EventExpose) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
widget gets drawn into.
The region/area members of the event shows what area of the redirected
drawable was drawn into. Read moreSource§fn connect_delete_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_delete_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
WidgetExtManual::hide_on_delete() to
this signal will cause the window to be hidden instead, so that
it can later be shown again without reconstructing it. Read moreSource§fn connect_destroy<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_destroy<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Source§fn connect_destroy_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_destroy_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::Window is destroyed.
You rarely get this signal, because most widgets disconnect themselves
from their window before they destroy it, so no widget owns the
window at destroy time. Read moreSource§fn connect_direction_changed<F: Fn(&Self, TextDirection) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_direction_changed<F: Fn(&Self, TextDirection) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_drag_begin<F: Fn(&Self, &DragContext) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_begin<F: Fn(&Self, &DragContext) + 'static>( &self, f: F, ) -> SignalHandlerId
drag_source_set_icon_pixbuf(). Read moreSource§fn connect_drag_data_delete<F: Fn(&Self, &DragContext) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_data_delete<F: Fn(&Self, &DragContext) + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::DragAction::MOVE is successfully completed. The signal
handler is responsible for deleting the data that has been dropped. What
“delete” means depends on the context of the drag operation. Read moreSource§fn connect_drag_data_get<F: Fn(&Self, &DragContext, &SelectionData, u32, u32) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_data_get<F: Fn(&Self, &DragContext, &SelectionData, u32, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
data with the data in the format which
is indicated by info. See SelectionData::set() and
SelectionData::set_text(). Read moreSource§fn connect_drag_data_received<F: Fn(&Self, &DragContext, i32, i32, &SelectionData, u32, u32) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_data_received<F: Fn(&Self, &DragContext, i32, i32, &SelectionData, u32, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
gdk_drag_status() and not finish the drag.
If the data was received in response to a drag-drop signal
(and this is the last target to be received), the handler for this
signal is expected to process the received data and then call
gtk_drag_finish(), setting the success parameter depending on
whether the data was processed successfully. Read moreSource§fn connect_drag_drop<F: Fn(&Self, &DragContext, i32, i32, u32) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_drop<F: Fn(&Self, &DragContext, i32, i32, u32) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
false and no further processing is necessary.
Otherwise, the handler returns true. In this case, the handler must
ensure that gtk_drag_finish() is called to let the source know that
the drop is done. The call to gtk_drag_finish() can be done either
directly or in a drag-data-received handler which gets
triggered by calling drag_get_data() to receive the data for one
or more of the supported targets. Read moreSource§fn connect_drag_end<F: Fn(&Self, &DragContext) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_end<F: Fn(&Self, &DragContext) + 'static>( &self, f: F, ) -> SignalHandlerId
drag-begin. Read moreSource§fn connect_drag_failed<F: Fn(&Self, &DragContext, DragResult) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_failed<F: Fn(&Self, &DragContext, DragResult) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
true is the failure has
been already handled (not showing the default “drag operation failed”
animation), otherwise it returns false. Read moreSource§fn connect_drag_leave<F: Fn(&Self, &DragContext, u32) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_leave<F: Fn(&Self, &DragContext, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
drag-motion, e.g. undo highlighting
with drag_unhighlight(). Read moreSource§fn connect_drag_motion<F: Fn(&Self, &DragContext, i32, i32, u32) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_motion<F: Fn(&Self, &DragContext, i32, i32, u32) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
false and no further processing
is necessary. Otherwise, the handler returns true. In this case, the
handler is responsible for providing the necessary information for
displaying feedback to the user, by calling gdk_drag_status(). Read moreSource§fn connect_draw<F: Fn(&Self, &Context) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_draw<F: Fn(&Self, &Context) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s top left corner must be painted at the origin of
the passed in context and be sized to the values returned by
allocated_width() and
allocated_height(). Read moreSource§fn connect_enter_notify_event<F: Fn(&Self, &EventCrossing) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_enter_notify_event<F: Fn(&Self, &EventCrossing) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
key-press-event) and finally a generic
event-after signal. Read moreSource§fn connect_event_after<F: Fn(&Self, &Event) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_event_after<F: Fn(&Self, &Event) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_focus<F: Fn(&Self, DirectionType) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_focus<F: Fn(&Self, DirectionType) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_focus_in_event<F: Fn(&Self, &EventFocus) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_focus_in_event<F: Fn(&Self, &EventFocus) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_focus_out_event<F: Fn(&Self, &EventFocus) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_focus_out_event<F: Fn(&Self, &EventFocus) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_grab_broken_event<F: Fn(&Self, &EventGrabBroken) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_grab_broken_event<F: Fn(&Self, &EventGrabBroken) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget gets broken. Read morefn connect_grab_focus<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn emit_grab_focus(&self)
Source§fn connect_grab_notify<F: Fn(&Self, bool) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_grab_notify<F: Fn(&Self, bool) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_hide<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_hide<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is hidden, for example with
hide().Source§fn connect_hierarchy_changed<F: Fn(&Self, Option<&Widget>) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_hierarchy_changed<F: Fn(&Self, Option<&Widget>) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_key_press_event<F: Fn(&Self, &EventKey) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_key_press_event<F: Fn(&Self, &EventKey) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_key_release_event<F: Fn(&Self, &EventKey) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_key_release_event<F: Fn(&Self, &EventKey) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
keynav_failed() for details. Read moreSource§fn connect_leave_notify_event<F: Fn(&Self, &EventCrossing) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_leave_notify_event<F: Fn(&Self, &EventCrossing) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_map<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_map<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is going to be mapped, that is
when the widget is visible (which is controlled with
set_visible()) and all its parents up to the toplevel widget
are also visible. Once the map has occurred, map-event will
be emitted. Read moreSource§fn connect_mnemonic_activate<F: Fn(&Self, bool) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_mnemonic_activate<F: Fn(&Self, bool) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_motion_notify_event<F: Fn(&Self, &EventMotion) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_motion_notify_event<F: Fn(&Self, &EventMotion) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::Window. Read morefn connect_move_focus<F: Fn(&Self, DirectionType) + 'static>( &self, f: F, ) -> SignalHandlerId
fn emit_move_focus(&self, direction: DirectionType)
Source§fn connect_parent_set<F: Fn(&Self, Option<&Widget>) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_parent_set<F: Fn(&Self, Option<&Widget>) + 'static>( &self, f: F, ) -> SignalHandlerId
Entry widget creates
a menu with clipboard commands. See the
[Popup Menu Migration Checklist][checklist-popup-menu]
for an example of how to use this signal. Read moreSource§fn connect_property_notify_event<F: Fn(&Self, &EventProperty) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_property_notify_event<F: Fn(&Self, &EventProperty) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window has been changed or deleted. Read moreSource§fn connect_proximity_in_event<F: Fn(&Self, &EventProximity) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_proximity_in_event<F: Fn(&Self, &EventProximity) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::Window associated to the widget needs
to enable the gdk::EventMask::PROXIMITY_IN_MASK mask. Read moreSource§fn connect_proximity_out_event<F: Fn(&Self, &EventProximity) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_proximity_out_event<F: Fn(&Self, &EventProximity) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::Window associated to the widget needs
to enable the gdk::EventMask::PROXIMITY_OUT_MASK mask. Read moreSource§fn connect_query_tooltip<F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_query_tooltip<F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
has-tooltip is true and the hover timeout
has expired with the cursor hovering “above” widget; or emitted when widget got
focus in keyboard mode. Read moreSource§fn connect_realize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_realize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is associated with a
gdk::Window, which means that realize() has been called or the
widget has been mapped (that is, it is going to be drawn).Source§fn connect_screen_changed<F: Fn(&Self, Option<&Screen>) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_screen_changed<F: Fn(&Self, Option<&Screen>) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_scroll_event<F: Fn(&Self, &EventScroll) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_scroll_event<F: Fn(&Self, &EventScroll) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_selection_clear_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_selection_clear_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window has lost ownership of a selection. Read morefn connect_selection_get<F: Fn(&Self, &SelectionData, u32, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_selection_notify_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_selection_notify_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_selection_received<F: Fn(&Self, &SelectionData, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_selection_request_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_selection_request_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_show<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_show<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is shown, for example with
show().Source§fn connect_show_help<F: Fn(&Self, WidgetHelpType) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_show_help<F: Fn(&Self, WidgetHelpType) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
fn emit_show_help(&self, help_type: WidgetHelpType) -> bool
Source§fn connect_size_allocate<F: Fn(&Self, &Allocation) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_size_allocate<F: Fn(&Self, &Allocation) + 'static>( &self, f: F, ) -> SignalHandlerId
allocation Read moreSource§fn connect_state_flags_changed<F: Fn(&Self, StateFlags) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_state_flags_changed<F: Fn(&Self, StateFlags) + 'static>( &self, f: F, ) -> SignalHandlerId
state_flags(). Read moreSource§fn connect_style_updated<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_style_updated<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
changed signal is emitted on the widget’s associated
StyleContext as returned by style_context(). Read morefn connect_touch_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_unmap<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_unmap<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is going to be unmapped, which
means that either it or any of its parents up to the toplevel widget have
been set as hidden. Read moreSource§fn connect_unrealize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_unrealize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
gdk::Window associated with
widget is destroyed, which means that unrealize() has been
called or the widget has been unmapped (that is, it is going to be
hidden).Source§fn connect_window_state_event<F: Fn(&Self, &EventWindowState) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_window_state_event<F: Fn(&Self, &EventWindowState) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget changes. Read morefn connect_app_paintable_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_can_default_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_can_focus_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_composite_child_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_events_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_expand_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_focus_on_click_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_halign_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_has_default_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_has_focus_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_has_tooltip_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_height_request_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_hexpand_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_hexpand_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_is_focus_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_margin_bottom_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_margin_end_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_margin_start_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_margin_top_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_no_show_all_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_opacity_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_parent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_receives_default_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_scale_factor_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_sensitive_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_tooltip_markup_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_tooltip_text_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_valign_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_vexpand_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_vexpand_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_visible_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_width_request_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_window_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Source§impl<O> WidgetExtManual for O
impl<O> WidgetExtManual for O
Source§fn drag_dest_set(
&self,
flags: DestDefaults,
targets: &[TargetEntry],
actions: DragAction,
)
fn drag_dest_set( &self, flags: DestDefaults, targets: &[TargetEntry], actions: DragAction, )
Source§fn drag_source_set(
&self,
start_button_mask: ModifierType,
targets: &[TargetEntry],
actions: DragAction,
)
fn drag_source_set( &self, start_button_mask: ModifierType, targets: &[TargetEntry], actions: DragAction, )
Source§fn connect_map_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_map_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window is
mapped. A window is mapped when it becomes visible on the screen. Read moreSource§fn connect_unmap_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_unmap_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window is
unmapped. A window is unmapped when it becomes invisible on the screen. Read moreSource§fn add_tick_callback<P: Fn(&Self, &FrameClock) -> ControlFlow + 'static>(
&self,
callback: P,
) -> TickCallbackId
fn add_tick_callback<P: Fn(&Self, &FrameClock) -> ControlFlow + 'static>( &self, callback: P, ) -> TickCallbackId
Label),
then you will have to call WidgetExt::queue_resize() or
WidgetExt::queue_draw_area() yourself. Read moreSource§fn add_events(&self, events: EventMask)
fn add_events(&self, events: EventMask)
events to the event mask for
self. See WidgetExtManual::set_events() and the
[input handling overview][event-masks] for details. Read moreSource§fn events(&self) -> EventMask
fn events(&self) -> EventMask
gdk::EventMask) for the widget. These are the
events that the widget will receive. Read moreSource§fn set_events(&self, events: EventMask)
fn set_events(&self, events: EventMask)
gdk::EventMask) for a widget. The event
mask determines which events a widget will receive. Keep in mind
that different widgets have different default event masks, and by
changing the event mask you may disrupt a widget’s functionality,
so be careful. This function must be called while a widget is
unrealized. Consider WidgetExtManual::add_events() for widgets that are
already realized, or if you want to preserve the existing event
mask. This function can’t be used with widgets that have no window.
(See WidgetExt::has_window()). To get events on those widgets,
place them inside a EventBox and receive events on the event
box. Read moreSource§fn hide_on_delete(&self) -> Propagation
fn hide_on_delete(&self) -> Propagation
delete-event
signal on a Window. The function calls WidgetExt::hide() on its
argument, then returns true. If connected to ::delete-event, the
result is that clicking the close button for a window (on the
window frame, top right corner usually) will hide but not destroy
the window. By default, GTK+ destroys windows when ::delete-event
is received. Read more