Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- activate
- addAccelerator
- addDeviceEvents
- addEvents
- addMnemonicLabel
- addTickCallback
- canActivateAccel
- childFocus
- childNotify
- classPath
- computeExpand
- createPangoContext
- createPangoLayout
- destroy
- destroyed
- deviceIsShadowed
- dragBegin
- dragBeginWithCoordinates
- dragCheckThreshold
- dragDestAddImageTargets
- dragDestAddTextTargets
- dragDestAddUriTargets
- dragDestFindTarget
- dragDestGetTargetList
- dragDestGetTrackMotion
- dragDestSet
- dragDestSetProxy
- dragDestSetTargetList
- dragDestSetTrackMotion
- dragDestUnset
- dragGetData
- dragHighlight
- dragSourceAddImageTargets
- dragSourceAddTextTargets
- dragSourceAddUriTargets
- dragSourceGetTargetList
- dragSourceSet
- dragSourceSetIconGicon
- dragSourceSetIconName
- dragSourceSetIconPixbuf
- dragSourceSetIconStock
- dragSourceSetTargetList
- dragSourceUnset
- dragUnhighlight
- draw
- ensureStyle
- errorBell
- event
- freezeChildNotify
- getAccessible
- getActionGroup
- getAllocatedBaseline
- getAllocatedHeight
- getAllocatedSize
- getAllocatedWidth
- getAllocation
- getAncestor
- getAppPaintable
- getCanDefault
- getCanFocus
- getChildRequisition
- getChildVisible
- getClip
- getClipboard
- getCompositeName
- getDefaultDirection
- getDefaultStyle
- getDeviceEnabled
- getDeviceEvents
- getDirection
- getDisplay
- getDoubleBuffered
- getEvents
- getFocusOnClick
- getFontMap
- getFontOptions
- getFrameClock
- getHalign
- getHasTooltip
- getHasWindow
- getHexpand
- getHexpandSet
- getMapped
- getMarginBottom
- getMarginEnd
- getMarginLeft
- getMarginRight
- getMarginStart
- getMarginTop
- getModifierMask
- getModifierStyle
- getName
- getNoShowAll
- getOpacity
- getPangoContext
- getParent
- getParentWindow
- getPath
- getPointer
- getPreferredHeight
- getPreferredHeightAndBaselineForWidth
- getPreferredHeightForWidth
- getPreferredSize
- getPreferredWidth
- getPreferredWidthForHeight
- getRealized
- getReceivesDefault
- getRequestMode
- getRequisition
- getRootWindow
- getScaleFactor
- getScreen
- getSensitive
- getSettings
- getSizeRequest
- getState
- getStateFlags
- getStyle
- getStyleContext
- getSupportMultidevice
- getTemplateChild
- getTooltipMarkup
- getTooltipText
- getTooltipWindow
- getToplevel
- getValign
- getValignWithBaseline
- getVexpand
- getVexpandSet
- getVisible
- getVisual
- getWindow
- grabAdd
- grabDefault
- grabFocus
- grabRemove
- hasDefault
- hasFocus
- hasGrab
- hasRcStyle
- hasScreen
- hasVisibleFocus
- hide
- hideOnDelete
- inDestruction
- initTemplate
- inputShapeCombineRegion
- insertActionGroup
- intersect
- isAncestor
- isComposited
- isDrawable
- isFocus
- isSensitive
- isToplevel
- isVisible
- keynavFailed
- listAccelClosures
- listActionPrefixes
- listMnemonicLabels
- map
- mnemonicActivate
- modifyBase
- modifyBg
- modifyCursor
- modifyFg
- modifyFont
- modifyStyle
- modifyText
- overrideBackgroundColor
- overrideColor
- overrideCursor
- overrideFont
- overrideSymbolicColor
- path
- popCompositeChild
- pushCompositeChild
- queueAllocate
- queueComputeExpand
- queueDraw
- queueDrawArea
- queueDrawRegion
- queueResize
- queueResizeNoRedraw
- realize
- regionIntersect
- registerWindow
- removeAccelerator
- removeMnemonicLabel
- removeTickCallback
- renderIcon
- renderIconPixbuf
- reparent
- resetRcStyles
- resetStyle
- sendExpose
- sendFocusChange
- setAccelPath
- setAllocation
- setAppPaintable
- setCanDefault
- setCanFocus
- setChildVisible
- setClip
- setCompositeName
- setDefaultDirection
- setDeviceEnabled
- setDeviceEvents
- setDirection
- setDoubleBuffered
- setEvents
- setFocusOnClick
- setFontMap
- setFontOptions
- setHalign
- setHasTooltip
- setHasWindow
- setHexpand
- setHexpandSet
- setMapped
- setMarginBottom
- setMarginEnd
- setMarginLeft
- setMarginRight
- setMarginStart
- setMarginTop
- setName
- setNoShowAll
- setOpacity
- setParent
- setParentWindow
- setRealized
- setReceivesDefault
- setRedrawOnAllocate
- setSensitive
- setSizeRequest
- setState
- setStateFlags
- setStyle
- setSupportMultidevice
- setTooltipMarkup
- setTooltipText
- setTooltipWindow
- setValign
- setVexpand
- setVexpandSet
- setVisible
- setVisual
- setWindow
- shapeCombineRegion
- show
- showAll
- showNow
- sizeAllocate
- sizeAllocateWithBaseline
- sizeRequest
- styleAttach
- styleGetProperty
- thawChildNotify
- translateCoordinates
- triggerTooltipQuery
- unmap
- unparent
- unrealize
- unregisterWindow
- unsetStateFlags
- Properties
- appPaintable
- canDefault
- canFocus
- compositeChild
- doubleBuffered
- events
- expand
- focusOnClick
- halign
- hasDefault
- hasFocus
- hasTooltip
- heightRequest
- hexpand
- hexpandSet
- isFocus
- margin
- marginBottom
- marginEnd
- marginLeft
- marginRight
- marginStart
- marginTop
- name
- noShowAll
- opacity
- parent
- receivesDefault
- scaleFactor
- sensitive
- style
- tooltipMarkup
- tooltipText
- valign
- vexpand
- vexpandSet
- visible
- widthRequest
- window
- Signals
- accelClosuresChanged
- buttonPressEvent
- buttonReleaseEvent
- canActivateAccel
- childNotify
- compositedChanged
- configureEvent
- damageEvent
- deleteEvent
- destroy
- destroyEvent
- directionChanged
- dragBegin
- dragDataDelete
- dragDataGet
- dragDataReceived
- dragDrop
- dragEnd
- dragFailed
- dragLeave
- dragMotion
- draw
- enterNotifyEvent
- event
- eventAfter
- focus
- focusInEvent
- focusOutEvent
- grabBrokenEvent
- grabFocus
- grabNotify
- hide
- hierarchyChanged
- keyPressEvent
- keyReleaseEvent
- keynavFailed
- leaveNotifyEvent
- map
- mapEvent
- mnemonicActivate
- motionNotifyEvent
- moveFocus
- parentSet
- popupMenu
- propertyNotifyEvent
- proximityInEvent
- proximityOutEvent
- queryTooltip
- realize
- screenChanged
- scrollEvent
- selectionClearEvent
- selectionGet
- selectionNotifyEvent
- selectionReceived
- selectionRequestEvent
- show
- showHelp
- sizeAllocate
- stateChanged
- stateFlagsChanged
- styleSet
- styleUpdated
- touchEvent
- unmap
- unmapEvent
- unrealize
- visibilityNotifyEvent
- windowStateEvent
GtkWidget is the base class all widgets in GTK+ derive from. It manages the widget lifecycle, states and style.
GTK+ uses a height-for-width (and width-for-height) geometry management system. Height-for-width means that a widget can change how much vertical space it needs, depending on the amount of horizontal space that it is given (and similar for width-for-height). The most common example is a label that reflows to fill up the available width, wraps to fewer lines, and therefore needs less height.
Height-for-width geometry management is implemented in GTK+ by way of five virtual methods:
WidgetClass
.get_request_mode
()WidgetClass
.get_preferred_width
()WidgetClass
.get_preferred_height
()WidgetClass
.get_preferred_height_for_width
()WidgetClass
.get_preferred_width_for_height
()WidgetClass
.get_preferred_height_and_baseline_for_width
()
There are some important things to keep in mind when implementing height-for-width and when using it in container implementations.
The geometry management system will query a widget hierarchy in
only one orientation at a time. When widgets are initially queried
for their minimum sizes it is generally done in two initial passes
in the SizeRequestMode
chosen by the toplevel.
For example, when queried in the normal
SizeRequestModeHeightForWidth
mode:
First, the default minimum and natural width for each widget
in the interface will be computed using widgetGetPreferredWidth
.
Because the preferred widths for each container depend on the preferred
widths of their children, this information propagates up the hierarchy,
and finally a minimum and natural width is determined for the entire
toplevel. Next, the toplevel will use the minimum width to query for the
minimum height contextual to that width using
widgetGetPreferredHeightForWidth
, which will also be a highly
recursive operation. The minimum height for the minimum width is normally
used to set the minimum size constraint on the toplevel
(unless windowSetGeometryHints
is explicitly used instead).
After the toplevel window has initially requested its size in both
dimensions it can go on to allocate itself a reasonable size (or a size
previously specified with windowSetDefaultSize
). During the
recursive allocation process it’s important to note that request cycles
will be recursively executed while container widgets allocate their children.
Each container widget, once allocated a size, will go on to first share the
space in one orientation among its children and then request each child's
height for its target allocated width or its width for allocated height,
depending. In this way a Widget
will typically be requested its size
a number of times before actually being allocated a size. The size a
widget is finally allocated can of course differ from the size it has
requested. For this reason, Widget
caches a small number of results
to avoid re-querying for the same sizes in one allocation cycle.
See [GtkContainer’s geometry management section][container-geometry-management] to learn more about how height-for-width allocations are performed by container widgets.
If a widget does move content around to intelligently use up the
allocated size then it must support the request in both
GtkSizeRequestModes
even if the widget in question only
trades sizes in a single orientation.
For instance, a Label
that does height-for-width word wrapping
will not expect to have WidgetClass
.get_preferred_height
() called
because that call is specific to a width-for-height request. In this
case the label must return the height required for its own minimum
possible width. By following this rule any widget that handles
height-for-width or width-for-height requests will always be allocated
at least enough space to fit its own content.
Here are some examples of how a SizeRequestModeHeightForWidth
widget
generally deals with width-for-height requests, for WidgetClass
.get_preferred_height
()
it will do:
C code
static void foo_widget_get_preferred_height (GtkWidget *widget, gint *min_height, gint *nat_height) { if (i_am_in_height_for_width_mode) { gint min_width, nat_width; GTK_WIDGET_GET_CLASS (widget)->get_preferred_width (widget, &min_width, &nat_width); GTK_WIDGET_GET_CLASS (widget)->get_preferred_height_for_width (widget, min_width, min_height, nat_height); } else { ... some widgets do both. For instance, if a GtkLabel is rotated to 90 degrees it will return the minimum and natural height for the rotated label here. } }
And in WidgetClass
.get_preferred_width_for_height
() it will simply return
the minimum and natural width:
C code
static void foo_widget_get_preferred_width_for_height (GtkWidget *widget, gint for_height, gint *min_width, gint *nat_width) { if (i_am_in_height_for_width_mode) { GTK_WIDGET_GET_CLASS (widget)->get_preferred_width (widget, min_width, nat_width); } else { ... again if a widget is sometimes operating in width-for-height mode (like a rotated GtkLabel) it can go ahead and do its real width for height calculation here. } }
Often a widget needs to get its own request during size request or allocation. For example, when computing height it may need to also compute width. Or when deciding how to use an allocation, the widget may need to know its natural size. In these cases, the widget should be careful to call its virtual methods directly, like this:
C code
GTK_WIDGET_GET_CLASS(widget)->get_preferred_width (widget, &min, &natural);
It will not work to use the wrapper functions, such as
widgetGetPreferredWidth
inside your own size request
implementation. These return a request adjusted by SizeGroup
and by the WidgetClass
.adjust_size_request
() virtual method. If a
widget used the wrappers inside its virtual method implementations,
then the adjustments (such as widget margins) would be applied
twice. GTK+ therefore does not allow this and will warn if you try
to do it.
Of course if you are getting the size request for
another widget, such as a child of a
container, you must use the wrapper APIs.
Otherwise, you would not properly consider widget margins,
SizeGroup
, and so forth.
Since 3.10 GTK+ also supports baseline vertical alignment of widgets. This
means that widgets are positioned such that the typographical baseline of
widgets in the same row are aligned. This happens if a widget supports baselines,
has a vertical alignment of AlignBaseline
, and is inside a container
that supports baselines and has a natural “row” that it aligns to the baseline,
or a baseline assigned to it by the grandparent.
Baseline alignment support for a widget is done by the WidgetClass
.get_preferred_height_and_baseline_for_width
()
virtual function. It allows you to report a baseline in combination with the
minimum and natural height. If there is no baseline you can return -1 to indicate
this. The default implementation of this virtual function calls into the
WidgetClass
.get_preferred_height
() and WidgetClass
.get_preferred_height_for_width
(),
so if baselines are not supported it doesn’t need to be implemented.
If a widget ends up baseline aligned it will be allocated all the space in the parent
as if it was AlignFill
, but the selected baseline can be found via widgetGetAllocatedBaseline
.
If this has a value other than -1 you need to align the widget such that the baseline
appears at the position.
Style Properties
Widget
introduces “style
properties” - these are basically object properties that are stored
not on the object, but in the style object associated to the widget. Style
properties are set in [resource files][gtk3-Resource-Files].
This mechanism is used for configuring such things as the location of the
scrollbar arrows through the theme, giving theme authors more control over the
look of applications without the need to write a theme engine in C.
Use widgetClassInstallStyleProperty
to install style properties for
a widget class, widgetClassFindStyleProperty
or
widgetClassListStyleProperties
to get information about existing
style properties and widgetStyleGetProperty
, gtk_widget_style_get()
or
gtk_widget_style_get_valist()
to obtain the value of a style property.
GtkWidget as GtkBuildable
The GtkWidget implementation of the GtkBuildable interface supports a custom <accelerator> element, which has attributes named ”key”, ”modifiers” and ”signal” and allows to specify accelerators.
An example of a UI definition fragment specifying an accelerator: > >class="GtkButton" > key="q" modifiers="GDK_CONTROL_MASK" signal="clicked"/ >/object
In addition to accelerators, GtkWidget also support a custom <accessible>
element, which supports actions and relations. Properties on the accessible
implementation of an object can be set by accessing the internal child
“accessible” of a Widget
.
An example of a UI definition fragment specifying an accessible: > >class="GtkButton" id="label1"/ > name="label"I am a Label for a Button/property >/object >class="GtkButton" id="button1" > accessibility > action_name="click" translatable="yes"Click the button./action > target="label1" type="labelled-by"/ > /accessibility > internal-child="accessible" > class="AtkObject" id="a11y-button1" > name="accessible-name"Clickable Button/property > /object > /child >/object
Finally, GtkWidget allows style information such as style classes to be associated with widgets, using the custom <style> element: > >class="GtkButton" id="button1" > style > name="my-special-button-class"/ > name="dark-button"/ > /style >/object
GtkWidget exposes some facilities to automate the procedure
of creating composite widgets using Builder
interface description
language.
To create composite widgets with Builder
XML, one must associate
the interface description with the widget class at class initialization
time using widgetClassSetTemplate
.
The interface description semantics expected in composite template descriptions
is slightly different from regular Builder
XML.
Unlike regular interface descriptions, widgetClassSetTemplate
will
expect a <template> tag as a direct child of the toplevel <interface>
tag. The <template> tag must specify the “class” attribute which must be
the type name of the widget. Optionally, the “parent” attribute may be
specified to specify the direct parent type of the widget type, this is
ignored by the GtkBuilder but required for Glade to introspect what kind
of properties and internal children exist for a given type when the actual
type does not exist.
The XML which is contained inside the <template> tag behaves as if it were
added to the <object> tag defining widget
itself. You may set properties
on widget
by inserting <property> tags into the <template> tag, and also
add <child> tags to add children and extend widget
in the normal way you
would with <object> tags.
Additionally, <object> tags can also be added before and after the initial <template> tag in the normal way, allowing one to define auxiliary objects which might be referenced by other widgets declared as children of the <template> tag.
An example of a GtkBuilder Template Definition: > >interface > class="FooWidget" parent="GtkBox" > name="orientation"GTK_ORIENTATION_HORIZONTAL/property > name="spacing"4/property > child > class="GtkButton" id="hello_button" > name="label"Hello World/property > name="clicked" handler="hello_button_clicked" object="FooWidget" swapped="yes"/ > /object > /child > child > class="GtkButton" id="goodbye_button" > name="label"Goodbye World/property > /object > /child > /template >/interface
Typically, you'll place the template fragment into a file that is
bundled with your project, using Resource
. In order to load the
template, you need to call widgetClassSetTemplateFromResource
from the class initialization of your Widget
type:
C code
static void foo_widget_class_init (FooWidgetClass *klass) { // ... gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/com/example/ui/foowidget.ui"); }
You will also need to call widgetInitTemplate
from the instance
initialization function:
C code
static void foo_widget_init (FooWidget *self) { // ... gtk_widget_init_template (GTK_WIDGET (self)); }
You can access widgets defined in the template using the
widgetGetTemplateChild
function, but you will typically declare
a pointer in the instance private data structure of your type using the same
name as the widget in the template definition, and call
gtk_widget_class_bind_template_child_private()
with that name, e.g.
C code
typedef struct { GtkWidget *hello_button; GtkWidget *goodbye_button; } FooWidgetPrivate; G_DEFINE_TYPE_WITH_PRIVATE (FooWidget, foo_widget, GTK_TYPE_BOX) static void foo_widget_class_init (FooWidgetClass *klass) { // ... gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/com/example/ui/foowidget.ui"); gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), FooWidget, hello_button); gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), FooWidget, goodbye_button); }
You can also use gtk_widget_class_bind_template_callback()
to connect a signal
callback defined in the template with a function visible in the scope of the
class, e.g.
C code
// the signal handler has the instance and user data swapped // because of the swapped="yes" attribute in the template XML static void hello_button_clicked (FooWidget *self, GtkButton *button) { g_print ("Hello, world!\n"); } static void foo_widget_class_init (FooWidgetClass *klass) { // ... gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/com/example/ui/foowidget.ui"); gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (klass), hello_button_clicked); }
- newtype Widget = Widget (ManagedPtr Widget)
- class GObject o => IsWidget o
- toWidget :: IsWidget o => o -> IO Widget
- noWidget :: Maybe Widget
- data WidgetActivateMethodInfo
- widgetActivate :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetAddAcceleratorMethodInfo
- widgetAddAccelerator :: (HasCallStack, MonadIO m, IsWidget a, IsAccelGroup b) => a -> Text -> b -> Word32 -> [ModifierType] -> [AccelFlags] -> m ()
- data WidgetAddDeviceEventsMethodInfo
- widgetAddDeviceEvents :: (HasCallStack, MonadIO m, IsWidget a, IsDevice b) => a -> b -> [EventMask] -> m ()
- data WidgetAddEventsMethodInfo
- widgetAddEvents :: (HasCallStack, MonadIO m, IsWidget a) => a -> Int32 -> m ()
- data WidgetAddMnemonicLabelMethodInfo
- widgetAddMnemonicLabel :: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) => a -> b -> m ()
- data WidgetAddTickCallbackMethodInfo
- widgetAddTickCallback :: (HasCallStack, MonadIO m, IsWidget a) => a -> TickCallback -> m Word32
- data WidgetCanActivateAccelMethodInfo
- widgetCanActivateAccel :: (HasCallStack, MonadIO m, IsWidget a) => a -> Word32 -> m Bool
- data WidgetChildFocusMethodInfo
- widgetChildFocus :: (HasCallStack, MonadIO m, IsWidget a) => a -> DirectionType -> m Bool
- data WidgetChildNotifyMethodInfo
- widgetChildNotify :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> m ()
- data WidgetClassPathMethodInfo
- widgetClassPath :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Word32, Text, Text)
- data WidgetComputeExpandMethodInfo
- widgetComputeExpand :: (HasCallStack, MonadIO m, IsWidget a) => a -> Orientation -> m Bool
- data WidgetCreatePangoContextMethodInfo
- widgetCreatePangoContext :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Context
- data WidgetCreatePangoLayoutMethodInfo
- widgetCreatePangoLayout :: (HasCallStack, MonadIO m, IsWidget a) => a -> Maybe Text -> m Layout
- data WidgetDestroyMethodInfo
- widgetDestroy :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetDestroyedMethodInfo
- widgetDestroyed :: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) => a -> b -> m Widget
- data WidgetDeviceIsShadowedMethodInfo
- widgetDeviceIsShadowed :: (HasCallStack, MonadIO m, IsWidget a, IsDevice b) => a -> b -> m Bool
- data WidgetDragBeginMethodInfo
- widgetDragBegin :: (HasCallStack, MonadIO m, IsWidget a) => a -> TargetList -> [DragAction] -> Int32 -> Maybe Event -> m DragContext
- data WidgetDragBeginWithCoordinatesMethodInfo
- widgetDragBeginWithCoordinates :: (HasCallStack, MonadIO m, IsWidget a) => a -> TargetList -> [DragAction] -> Int32 -> Maybe Event -> Int32 -> Int32 -> m DragContext
- data WidgetDragCheckThresholdMethodInfo
- widgetDragCheckThreshold :: (HasCallStack, MonadIO m, IsWidget a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> m Bool
- data WidgetDragDestAddImageTargetsMethodInfo
- widgetDragDestAddImageTargets :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetDragDestAddTextTargetsMethodInfo
- widgetDragDestAddTextTargets :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetDragDestAddUriTargetsMethodInfo
- widgetDragDestAddUriTargets :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetDragDestFindTargetMethodInfo
- widgetDragDestFindTarget :: (HasCallStack, MonadIO m, IsWidget a, IsDragContext b) => a -> b -> Maybe TargetList -> m Atom
- data WidgetDragDestGetTargetListMethodInfo
- widgetDragDestGetTargetList :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Maybe TargetList)
- data WidgetDragDestGetTrackMotionMethodInfo
- widgetDragDestGetTrackMotion :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetDragDestSetMethodInfo
- widgetDragDestSet :: (HasCallStack, MonadIO m, IsWidget a) => a -> [DestDefaults] -> Maybe [TargetEntry] -> [DragAction] -> m ()
- data WidgetDragDestSetProxyMethodInfo
- widgetDragDestSetProxy :: (HasCallStack, MonadIO m, IsWidget a, IsWindow b) => a -> b -> DragProtocol -> Bool -> m ()
- data WidgetDragDestSetTargetListMethodInfo
- widgetDragDestSetTargetList :: (HasCallStack, MonadIO m, IsWidget a) => a -> Maybe TargetList -> m ()
- data WidgetDragDestSetTrackMotionMethodInfo
- widgetDragDestSetTrackMotion :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetDragDestUnsetMethodInfo
- widgetDragDestUnset :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetDragGetDataMethodInfo
- widgetDragGetData :: (HasCallStack, MonadIO m, IsWidget a, IsDragContext b) => a -> b -> Atom -> Word32 -> m ()
- data WidgetDragHighlightMethodInfo
- widgetDragHighlight :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetDragSourceAddImageTargetsMethodInfo
- widgetDragSourceAddImageTargets :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetDragSourceAddTextTargetsMethodInfo
- widgetDragSourceAddTextTargets :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetDragSourceAddUriTargetsMethodInfo
- widgetDragSourceAddUriTargets :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetDragSourceGetTargetListMethodInfo
- widgetDragSourceGetTargetList :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Maybe TargetList)
- data WidgetDragSourceSetMethodInfo
- widgetDragSourceSet :: (HasCallStack, MonadIO m, IsWidget a) => a -> [ModifierType] -> Maybe [TargetEntry] -> [DragAction] -> m ()
- data WidgetDragSourceSetIconGiconMethodInfo
- widgetDragSourceSetIconGicon :: (HasCallStack, MonadIO m, IsWidget a, IsIcon b) => a -> b -> m ()
- data WidgetDragSourceSetIconNameMethodInfo
- widgetDragSourceSetIconName :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> m ()
- data WidgetDragSourceSetIconPixbufMethodInfo
- widgetDragSourceSetIconPixbuf :: (HasCallStack, MonadIO m, IsWidget a, IsPixbuf b) => a -> b -> m ()
- data WidgetDragSourceSetIconStockMethodInfo
- widgetDragSourceSetIconStock :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> m ()
- data WidgetDragSourceSetTargetListMethodInfo
- widgetDragSourceSetTargetList :: (HasCallStack, MonadIO m, IsWidget a) => a -> Maybe TargetList -> m ()
- data WidgetDragSourceUnsetMethodInfo
- widgetDragSourceUnset :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetDragUnhighlightMethodInfo
- widgetDragUnhighlight :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetDrawMethodInfo
- widgetDraw :: (HasCallStack, MonadIO m, IsWidget a) => a -> Context -> m ()
- data WidgetEnsureStyleMethodInfo
- widgetEnsureStyle :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetErrorBellMethodInfo
- widgetErrorBell :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetEventMethodInfo
- widgetEvent :: (HasCallStack, MonadIO m, IsWidget a) => a -> Event -> m Bool
- data WidgetFreezeChildNotifyMethodInfo
- widgetFreezeChildNotify :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetGetAccessibleMethodInfo
- widgetGetAccessible :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Object
- data WidgetGetActionGroupMethodInfo
- widgetGetActionGroup :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> m (Maybe ActionGroup)
- data WidgetGetAllocatedBaselineMethodInfo
- widgetGetAllocatedBaseline :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Int32
- data WidgetGetAllocatedHeightMethodInfo
- widgetGetAllocatedHeight :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Int32
- data WidgetGetAllocatedSizeMethodInfo
- widgetGetAllocatedSize :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Rectangle, Int32)
- data WidgetGetAllocatedWidthMethodInfo
- widgetGetAllocatedWidth :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Int32
- data WidgetGetAllocationMethodInfo
- widgetGetAllocation :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Rectangle
- data WidgetGetAncestorMethodInfo
- widgetGetAncestor :: (HasCallStack, MonadIO m, IsWidget a) => a -> GType -> m (Maybe Widget)
- data WidgetGetAppPaintableMethodInfo
- widgetGetAppPaintable :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetCanDefaultMethodInfo
- widgetGetCanDefault :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetCanFocusMethodInfo
- widgetGetCanFocus :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetChildRequisitionMethodInfo
- widgetGetChildRequisition :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Requisition
- data WidgetGetChildVisibleMethodInfo
- widgetGetChildVisible :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetClipMethodInfo
- widgetGetClip :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Rectangle
- data WidgetGetClipboardMethodInfo
- widgetGetClipboard :: (HasCallStack, MonadIO m, IsWidget a) => a -> Atom -> m Clipboard
- data WidgetGetCompositeNameMethodInfo
- widgetGetCompositeName :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Text
- widgetGetDefaultDirection :: (HasCallStack, MonadIO m) => m TextDirection
- widgetGetDefaultStyle :: (HasCallStack, MonadIO m) => m Style
- data WidgetGetDeviceEnabledMethodInfo
- widgetGetDeviceEnabled :: (HasCallStack, MonadIO m, IsWidget a, IsDevice b) => a -> b -> m Bool
- data WidgetGetDeviceEventsMethodInfo
- widgetGetDeviceEvents :: (HasCallStack, MonadIO m, IsWidget a, IsDevice b) => a -> b -> m [EventMask]
- data WidgetGetDirectionMethodInfo
- widgetGetDirection :: (HasCallStack, MonadIO m, IsWidget a) => a -> m TextDirection
- data WidgetGetDisplayMethodInfo
- widgetGetDisplay :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Display
- data WidgetGetDoubleBufferedMethodInfo
- widgetGetDoubleBuffered :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetEventsMethodInfo
- widgetGetEvents :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Int32
- data WidgetGetFocusOnClickMethodInfo
- widgetGetFocusOnClick :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetFontMapMethodInfo
- widgetGetFontMap :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Maybe FontMap)
- data WidgetGetFontOptionsMethodInfo
- widgetGetFontOptions :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Maybe FontOptions)
- data WidgetGetFrameClockMethodInfo
- widgetGetFrameClock :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Maybe FrameClock)
- data WidgetGetHalignMethodInfo
- widgetGetHalign :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Align
- data WidgetGetHasTooltipMethodInfo
- widgetGetHasTooltip :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetHasWindowMethodInfo
- widgetGetHasWindow :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetHexpandMethodInfo
- widgetGetHexpand :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetHexpandSetMethodInfo
- widgetGetHexpandSet :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetMappedMethodInfo
- widgetGetMapped :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetMarginBottomMethodInfo
- widgetGetMarginBottom :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Int32
- data WidgetGetMarginEndMethodInfo
- widgetGetMarginEnd :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Int32
- data WidgetGetMarginLeftMethodInfo
- widgetGetMarginLeft :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Int32
- data WidgetGetMarginRightMethodInfo
- widgetGetMarginRight :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Int32
- data WidgetGetMarginStartMethodInfo
- widgetGetMarginStart :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Int32
- data WidgetGetMarginTopMethodInfo
- widgetGetMarginTop :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Int32
- data WidgetGetModifierMaskMethodInfo
- widgetGetModifierMask :: (HasCallStack, MonadIO m, IsWidget a) => a -> ModifierIntent -> m [ModifierType]
- data WidgetGetModifierStyleMethodInfo
- widgetGetModifierStyle :: (HasCallStack, MonadIO m, IsWidget a) => a -> m RcStyle
- data WidgetGetNameMethodInfo
- widgetGetName :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Text
- data WidgetGetNoShowAllMethodInfo
- widgetGetNoShowAll :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetOpacityMethodInfo
- widgetGetOpacity :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Double
- data WidgetGetPangoContextMethodInfo
- widgetGetPangoContext :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Context
- data WidgetGetParentMethodInfo
- widgetGetParent :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Maybe Widget)
- data WidgetGetParentWindowMethodInfo
- widgetGetParentWindow :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Window
- data WidgetGetPathMethodInfo
- widgetGetPath :: (HasCallStack, MonadIO m, IsWidget a) => a -> m WidgetPath
- data WidgetGetPointerMethodInfo
- widgetGetPointer :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Int32, Int32)
- data WidgetGetPreferredHeightMethodInfo
- widgetGetPreferredHeight :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Int32, Int32)
- data WidgetGetPreferredHeightAndBaselineForWidthMethodInfo
- widgetGetPreferredHeightAndBaselineForWidth :: (HasCallStack, MonadIO m, IsWidget a) => a -> Int32 -> m (Int32, Int32, Int32, Int32)
- data WidgetGetPreferredHeightForWidthMethodInfo
- widgetGetPreferredHeightForWidth :: (HasCallStack, MonadIO m, IsWidget a) => a -> Int32 -> m (Int32, Int32)
- data WidgetGetPreferredSizeMethodInfo
- widgetGetPreferredSize :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Requisition, Requisition)
- data WidgetGetPreferredWidthMethodInfo
- widgetGetPreferredWidth :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Int32, Int32)
- data WidgetGetPreferredWidthForHeightMethodInfo
- widgetGetPreferredWidthForHeight :: (HasCallStack, MonadIO m, IsWidget a) => a -> Int32 -> m (Int32, Int32)
- data WidgetGetRealizedMethodInfo
- widgetGetRealized :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetReceivesDefaultMethodInfo
- widgetGetReceivesDefault :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetRequestModeMethodInfo
- widgetGetRequestMode :: (HasCallStack, MonadIO m, IsWidget a) => a -> m SizeRequestMode
- data WidgetGetRequisitionMethodInfo
- widgetGetRequisition :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Requisition
- data WidgetGetRootWindowMethodInfo
- widgetGetRootWindow :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Window
- data WidgetGetScaleFactorMethodInfo
- widgetGetScaleFactor :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Int32
- data WidgetGetScreenMethodInfo
- widgetGetScreen :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Screen
- data WidgetGetSensitiveMethodInfo
- widgetGetSensitive :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetSettingsMethodInfo
- widgetGetSettings :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Settings
- data WidgetGetSizeRequestMethodInfo
- widgetGetSizeRequest :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Int32, Int32)
- data WidgetGetStateMethodInfo
- widgetGetState :: (HasCallStack, MonadIO m, IsWidget a) => a -> m StateType
- data WidgetGetStateFlagsMethodInfo
- widgetGetStateFlags :: (HasCallStack, MonadIO m, IsWidget a) => a -> m [StateFlags]
- data WidgetGetStyleMethodInfo
- widgetGetStyle :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Style
- data WidgetGetStyleContextMethodInfo
- widgetGetStyleContext :: (HasCallStack, MonadIO m, IsWidget a) => a -> m StyleContext
- data WidgetGetSupportMultideviceMethodInfo
- widgetGetSupportMultidevice :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetTemplateChildMethodInfo
- widgetGetTemplateChild :: (HasCallStack, MonadIO m, IsWidget a) => a -> GType -> Text -> m Object
- data WidgetGetTooltipMarkupMethodInfo
- widgetGetTooltipMarkup :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Maybe Text)
- data WidgetGetTooltipTextMethodInfo
- widgetGetTooltipText :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Maybe Text)
- data WidgetGetTooltipWindowMethodInfo
- widgetGetTooltipWindow :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Window
- data WidgetGetToplevelMethodInfo
- widgetGetToplevel :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Widget
- data WidgetGetValignMethodInfo
- widgetGetValign :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Align
- data WidgetGetValignWithBaselineMethodInfo
- widgetGetValignWithBaseline :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Align
- data WidgetGetVexpandMethodInfo
- widgetGetVexpand :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetVexpandSetMethodInfo
- widgetGetVexpandSet :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetVisibleMethodInfo
- widgetGetVisible :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetGetVisualMethodInfo
- widgetGetVisual :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Visual
- data WidgetGetWindowMethodInfo
- widgetGetWindow :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Maybe Window)
- data WidgetGrabAddMethodInfo
- widgetGrabAdd :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetGrabDefaultMethodInfo
- widgetGrabDefault :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetGrabFocusMethodInfo
- widgetGrabFocus :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetGrabRemoveMethodInfo
- widgetGrabRemove :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetHasDefaultMethodInfo
- widgetHasDefault :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetHasFocusMethodInfo
- widgetHasFocus :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetHasGrabMethodInfo
- widgetHasGrab :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetHasRcStyleMethodInfo
- widgetHasRcStyle :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetHasScreenMethodInfo
- widgetHasScreen :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetHasVisibleFocusMethodInfo
- widgetHasVisibleFocus :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetHideMethodInfo
- widgetHide :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetHideOnDeleteMethodInfo
- widgetHideOnDelete :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetInDestructionMethodInfo
- widgetInDestruction :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetInitTemplateMethodInfo
- widgetInitTemplate :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetInputShapeCombineRegionMethodInfo
- widgetInputShapeCombineRegion :: (HasCallStack, MonadIO m, IsWidget a) => a -> Maybe Region -> m ()
- data WidgetInsertActionGroupMethodInfo
- widgetInsertActionGroup :: (HasCallStack, MonadIO m, IsWidget a, IsActionGroup b) => a -> Text -> Maybe b -> m ()
- data WidgetIntersectMethodInfo
- widgetIntersect :: (HasCallStack, MonadIO m, IsWidget a) => a -> Rectangle -> m (Bool, Rectangle)
- data WidgetIsAncestorMethodInfo
- widgetIsAncestor :: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) => a -> b -> m Bool
- data WidgetIsCompositedMethodInfo
- widgetIsComposited :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetIsDrawableMethodInfo
- widgetIsDrawable :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetIsFocusMethodInfo
- widgetIsFocus :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetIsSensitiveMethodInfo
- widgetIsSensitive :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetIsToplevelMethodInfo
- widgetIsToplevel :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetIsVisibleMethodInfo
- widgetIsVisible :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- data WidgetKeynavFailedMethodInfo
- widgetKeynavFailed :: (HasCallStack, MonadIO m, IsWidget a) => a -> DirectionType -> m Bool
- data WidgetListAccelClosuresMethodInfo
- widgetListAccelClosures :: (HasCallStack, MonadIO m, IsWidget a) => a -> m [Closure]
- data WidgetListActionPrefixesMethodInfo
- widgetListActionPrefixes :: (HasCallStack, MonadIO m, IsWidget a) => a -> m [Text]
- data WidgetListMnemonicLabelsMethodInfo
- widgetListMnemonicLabels :: (HasCallStack, MonadIO m, IsWidget a) => a -> m [Widget]
- data WidgetMapMethodInfo
- widgetMap :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetMnemonicActivateMethodInfo
- widgetMnemonicActivate :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m Bool
- data WidgetModifyBaseMethodInfo
- widgetModifyBase :: (HasCallStack, MonadIO m, IsWidget a) => a -> StateType -> Maybe Color -> m ()
- data WidgetModifyBgMethodInfo
- widgetModifyBg :: (HasCallStack, MonadIO m, IsWidget a) => a -> StateType -> Maybe Color -> m ()
- data WidgetModifyCursorMethodInfo
- widgetModifyCursor :: (HasCallStack, MonadIO m, IsWidget a) => a -> Maybe Color -> Maybe Color -> m ()
- data WidgetModifyFgMethodInfo
- widgetModifyFg :: (HasCallStack, MonadIO m, IsWidget a) => a -> StateType -> Maybe Color -> m ()
- data WidgetModifyFontMethodInfo
- widgetModifyFont :: (HasCallStack, MonadIO m, IsWidget a) => a -> Maybe FontDescription -> m ()
- data WidgetModifyStyleMethodInfo
- widgetModifyStyle :: (HasCallStack, MonadIO m, IsWidget a, IsRcStyle b) => a -> b -> m ()
- data WidgetModifyTextMethodInfo
- widgetModifyText :: (HasCallStack, MonadIO m, IsWidget a) => a -> StateType -> Maybe Color -> m ()
- data WidgetOverrideBackgroundColorMethodInfo
- widgetOverrideBackgroundColor :: (HasCallStack, MonadIO m, IsWidget a) => a -> [StateFlags] -> Maybe RGBA -> m ()
- data WidgetOverrideColorMethodInfo
- widgetOverrideColor :: (HasCallStack, MonadIO m, IsWidget a) => a -> [StateFlags] -> Maybe RGBA -> m ()
- data WidgetOverrideCursorMethodInfo
- widgetOverrideCursor :: (HasCallStack, MonadIO m, IsWidget a) => a -> Maybe RGBA -> Maybe RGBA -> m ()
- data WidgetOverrideFontMethodInfo
- widgetOverrideFont :: (HasCallStack, MonadIO m, IsWidget a) => a -> Maybe FontDescription -> m ()
- data WidgetOverrideSymbolicColorMethodInfo
- widgetOverrideSymbolicColor :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> Maybe RGBA -> m ()
- data WidgetPathMethodInfo
- widgetPath :: (HasCallStack, MonadIO m, IsWidget a) => a -> m (Word32, Text, Text)
- widgetPopCompositeChild :: (HasCallStack, MonadIO m) => m ()
- widgetPushCompositeChild :: (HasCallStack, MonadIO m) => m ()
- data WidgetQueueAllocateMethodInfo
- widgetQueueAllocate :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetQueueComputeExpandMethodInfo
- widgetQueueComputeExpand :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetQueueDrawMethodInfo
- widgetQueueDraw :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetQueueDrawAreaMethodInfo
- widgetQueueDrawArea :: (HasCallStack, MonadIO m, IsWidget a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> m ()
- data WidgetQueueDrawRegionMethodInfo
- widgetQueueDrawRegion :: (HasCallStack, MonadIO m, IsWidget a) => a -> Region -> m ()
- data WidgetQueueResizeMethodInfo
- widgetQueueResize :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetQueueResizeNoRedrawMethodInfo
- widgetQueueResizeNoRedraw :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetRealizeMethodInfo
- widgetRealize :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetRegionIntersectMethodInfo
- widgetRegionIntersect :: (HasCallStack, MonadIO m, IsWidget a) => a -> Region -> m Region
- data WidgetRegisterWindowMethodInfo
- widgetRegisterWindow :: (HasCallStack, MonadIO m, IsWidget a, IsWindow b) => a -> b -> m ()
- data WidgetRemoveAcceleratorMethodInfo
- widgetRemoveAccelerator :: (HasCallStack, MonadIO m, IsWidget a, IsAccelGroup b) => a -> b -> Word32 -> [ModifierType] -> m Bool
- data WidgetRemoveMnemonicLabelMethodInfo
- widgetRemoveMnemonicLabel :: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) => a -> b -> m ()
- data WidgetRemoveTickCallbackMethodInfo
- widgetRemoveTickCallback :: (HasCallStack, MonadIO m, IsWidget a) => a -> Word32 -> m ()
- data WidgetRenderIconMethodInfo
- widgetRenderIcon :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> Int32 -> Maybe Text -> m (Maybe Pixbuf)
- data WidgetRenderIconPixbufMethodInfo
- widgetRenderIconPixbuf :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> Int32 -> m (Maybe Pixbuf)
- data WidgetReparentMethodInfo
- widgetReparent :: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) => a -> b -> m ()
- data WidgetResetRcStylesMethodInfo
- widgetResetRcStyles :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetResetStyleMethodInfo
- widgetResetStyle :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetSendExposeMethodInfo
- widgetSendExpose :: (HasCallStack, MonadIO m, IsWidget a) => a -> Event -> m Int32
- data WidgetSendFocusChangeMethodInfo
- widgetSendFocusChange :: (HasCallStack, MonadIO m, IsWidget a) => a -> Event -> m Bool
- data WidgetSetAccelPathMethodInfo
- widgetSetAccelPath :: (HasCallStack, MonadIO m, IsWidget a, IsAccelGroup b) => a -> Maybe Text -> Maybe b -> m ()
- data WidgetSetAllocationMethodInfo
- widgetSetAllocation :: (HasCallStack, MonadIO m, IsWidget a) => a -> Rectangle -> m ()
- data WidgetSetAppPaintableMethodInfo
- widgetSetAppPaintable :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetCanDefaultMethodInfo
- widgetSetCanDefault :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetCanFocusMethodInfo
- widgetSetCanFocus :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetChildVisibleMethodInfo
- widgetSetChildVisible :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetClipMethodInfo
- widgetSetClip :: (HasCallStack, MonadIO m, IsWidget a) => a -> Rectangle -> m ()
- data WidgetSetCompositeNameMethodInfo
- widgetSetCompositeName :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> m ()
- widgetSetDefaultDirection :: (HasCallStack, MonadIO m) => TextDirection -> m ()
- data WidgetSetDeviceEnabledMethodInfo
- widgetSetDeviceEnabled :: (HasCallStack, MonadIO m, IsWidget a, IsDevice b) => a -> b -> Bool -> m ()
- data WidgetSetDeviceEventsMethodInfo
- widgetSetDeviceEvents :: (HasCallStack, MonadIO m, IsWidget a, IsDevice b) => a -> b -> [EventMask] -> m ()
- data WidgetSetDirectionMethodInfo
- widgetSetDirection :: (HasCallStack, MonadIO m, IsWidget a) => a -> TextDirection -> m ()
- data WidgetSetDoubleBufferedMethodInfo
- widgetSetDoubleBuffered :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetEventsMethodInfo
- widgetSetEvents :: (HasCallStack, MonadIO m, IsWidget a) => a -> Int32 -> m ()
- data WidgetSetFocusOnClickMethodInfo
- widgetSetFocusOnClick :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetFontMapMethodInfo
- widgetSetFontMap :: (HasCallStack, MonadIO m, IsWidget a, IsFontMap b) => a -> Maybe b -> m ()
- data WidgetSetFontOptionsMethodInfo
- widgetSetFontOptions :: (HasCallStack, MonadIO m, IsWidget a) => a -> Maybe FontOptions -> m ()
- data WidgetSetHalignMethodInfo
- widgetSetHalign :: (HasCallStack, MonadIO m, IsWidget a) => a -> Align -> m ()
- data WidgetSetHasTooltipMethodInfo
- widgetSetHasTooltip :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetHasWindowMethodInfo
- widgetSetHasWindow :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetHexpandMethodInfo
- widgetSetHexpand :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetHexpandSetMethodInfo
- widgetSetHexpandSet :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetMappedMethodInfo
- widgetSetMapped :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetMarginBottomMethodInfo
- widgetSetMarginBottom :: (HasCallStack, MonadIO m, IsWidget a) => a -> Int32 -> m ()
- data WidgetSetMarginEndMethodInfo
- widgetSetMarginEnd :: (HasCallStack, MonadIO m, IsWidget a) => a -> Int32 -> m ()
- data WidgetSetMarginLeftMethodInfo
- widgetSetMarginLeft :: (HasCallStack, MonadIO m, IsWidget a) => a -> Int32 -> m ()
- data WidgetSetMarginRightMethodInfo
- widgetSetMarginRight :: (HasCallStack, MonadIO m, IsWidget a) => a -> Int32 -> m ()
- data WidgetSetMarginStartMethodInfo
- widgetSetMarginStart :: (HasCallStack, MonadIO m, IsWidget a) => a -> Int32 -> m ()
- data WidgetSetMarginTopMethodInfo
- widgetSetMarginTop :: (HasCallStack, MonadIO m, IsWidget a) => a -> Int32 -> m ()
- data WidgetSetNameMethodInfo
- widgetSetName :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> m ()
- data WidgetSetNoShowAllMethodInfo
- widgetSetNoShowAll :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetOpacityMethodInfo
- widgetSetOpacity :: (HasCallStack, MonadIO m, IsWidget a) => a -> Double -> m ()
- data WidgetSetParentMethodInfo
- widgetSetParent :: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) => a -> b -> m ()
- data WidgetSetParentWindowMethodInfo
- widgetSetParentWindow :: (HasCallStack, MonadIO m, IsWidget a, IsWindow b) => a -> b -> m ()
- data WidgetSetRealizedMethodInfo
- widgetSetRealized :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetReceivesDefaultMethodInfo
- widgetSetReceivesDefault :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetRedrawOnAllocateMethodInfo
- widgetSetRedrawOnAllocate :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetSensitiveMethodInfo
- widgetSetSensitive :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetSizeRequestMethodInfo
- widgetSetSizeRequest :: (HasCallStack, MonadIO m, IsWidget a) => a -> Int32 -> Int32 -> m ()
- data WidgetSetStateMethodInfo
- widgetSetState :: (HasCallStack, MonadIO m, IsWidget a) => a -> StateType -> m ()
- data WidgetSetStateFlagsMethodInfo
- widgetSetStateFlags :: (HasCallStack, MonadIO m, IsWidget a) => a -> [StateFlags] -> Bool -> m ()
- data WidgetSetStyleMethodInfo
- widgetSetStyle :: (HasCallStack, MonadIO m, IsWidget a, IsStyle b) => a -> Maybe b -> m ()
- data WidgetSetSupportMultideviceMethodInfo
- widgetSetSupportMultidevice :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetTooltipMarkupMethodInfo
- widgetSetTooltipMarkup :: (HasCallStack, MonadIO m, IsWidget a) => a -> Maybe Text -> m ()
- data WidgetSetTooltipTextMethodInfo
- widgetSetTooltipText :: (HasCallStack, MonadIO m, IsWidget a) => a -> Maybe Text -> m ()
- data WidgetSetTooltipWindowMethodInfo
- widgetSetTooltipWindow :: (HasCallStack, MonadIO m, IsWidget a, IsWindow b) => a -> Maybe b -> m ()
- data WidgetSetValignMethodInfo
- widgetSetValign :: (HasCallStack, MonadIO m, IsWidget a) => a -> Align -> m ()
- data WidgetSetVexpandMethodInfo
- widgetSetVexpand :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetVexpandSetMethodInfo
- widgetSetVexpandSet :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetVisibleMethodInfo
- widgetSetVisible :: (HasCallStack, MonadIO m, IsWidget a) => a -> Bool -> m ()
- data WidgetSetVisualMethodInfo
- widgetSetVisual :: (HasCallStack, MonadIO m, IsWidget a, IsVisual b) => a -> Maybe b -> m ()
- data WidgetSetWindowMethodInfo
- widgetSetWindow :: (HasCallStack, MonadIO m, IsWidget a, IsWindow b) => a -> b -> m ()
- data WidgetShapeCombineRegionMethodInfo
- widgetShapeCombineRegion :: (HasCallStack, MonadIO m, IsWidget a) => a -> Maybe Region -> m ()
- data WidgetShowMethodInfo
- widgetShow :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetShowAllMethodInfo
- widgetShowAll :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetShowNowMethodInfo
- widgetShowNow :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetSizeAllocateMethodInfo
- widgetSizeAllocate :: (HasCallStack, MonadIO m, IsWidget a) => a -> Rectangle -> m ()
- data WidgetSizeAllocateWithBaselineMethodInfo
- widgetSizeAllocateWithBaseline :: (HasCallStack, MonadIO m, IsWidget a) => a -> Rectangle -> Int32 -> m ()
- data WidgetSizeRequestMethodInfo
- widgetSizeRequest :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Requisition
- data WidgetStyleAttachMethodInfo
- widgetStyleAttach :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetStyleGetPropertyMethodInfo
- widgetStyleGetProperty :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> GValue -> m ()
- data WidgetThawChildNotifyMethodInfo
- widgetThawChildNotify :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetTranslateCoordinatesMethodInfo
- widgetTranslateCoordinates :: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) => a -> b -> Int32 -> Int32 -> m (Bool, Int32, Int32)
- data WidgetTriggerTooltipQueryMethodInfo
- widgetTriggerTooltipQuery :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetUnmapMethodInfo
- widgetUnmap :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetUnparentMethodInfo
- widgetUnparent :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetUnrealizeMethodInfo
- widgetUnrealize :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- data WidgetUnregisterWindowMethodInfo
- widgetUnregisterWindow :: (HasCallStack, MonadIO m, IsWidget a, IsWindow b) => a -> b -> m ()
- data WidgetUnsetStateFlagsMethodInfo
- widgetUnsetStateFlags :: (HasCallStack, MonadIO m, IsWidget a) => a -> [StateFlags] -> m ()
- data WidgetAppPaintablePropertyInfo
- constructWidgetAppPaintable :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetAppPaintable :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetAppPaintable :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetAppPaintable :: AttrLabelProxy "appPaintable"
- data WidgetCanDefaultPropertyInfo
- constructWidgetCanDefault :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetCanDefault :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetCanDefault :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetCanDefault :: AttrLabelProxy "canDefault"
- data WidgetCanFocusPropertyInfo
- constructWidgetCanFocus :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetCanFocus :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetCanFocus :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetCanFocus :: AttrLabelProxy "canFocus"
- data WidgetCompositeChildPropertyInfo
- getWidgetCompositeChild :: (MonadIO m, IsWidget o) => o -> m Bool
- widgetCompositeChild :: AttrLabelProxy "compositeChild"
- data WidgetDoubleBufferedPropertyInfo
- constructWidgetDoubleBuffered :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetDoubleBuffered :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetDoubleBuffered :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetDoubleBuffered :: AttrLabelProxy "doubleBuffered"
- data WidgetEventsPropertyInfo
- constructWidgetEvents :: IsWidget o => [EventMask] -> IO (GValueConstruct o)
- getWidgetEvents :: (MonadIO m, IsWidget o) => o -> m [EventMask]
- setWidgetEvents :: (MonadIO m, IsWidget o) => o -> [EventMask] -> m ()
- widgetEvents :: AttrLabelProxy "events"
- data WidgetExpandPropertyInfo
- constructWidgetExpand :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetExpand :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetExpand :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetExpand :: AttrLabelProxy "expand"
- data WidgetFocusOnClickPropertyInfo
- constructWidgetFocusOnClick :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetFocusOnClick :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetFocusOnClick :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetFocusOnClick :: AttrLabelProxy "focusOnClick"
- data WidgetHalignPropertyInfo
- constructWidgetHalign :: IsWidget o => Align -> IO (GValueConstruct o)
- getWidgetHalign :: (MonadIO m, IsWidget o) => o -> m Align
- setWidgetHalign :: (MonadIO m, IsWidget o) => o -> Align -> m ()
- widgetHalign :: AttrLabelProxy "halign"
- data WidgetHasDefaultPropertyInfo
- constructWidgetHasDefault :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetHasDefault :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetHasDefault :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- data WidgetHasFocusPropertyInfo
- constructWidgetHasFocus :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetHasFocus :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetHasFocus :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- data WidgetHasTooltipPropertyInfo
- constructWidgetHasTooltip :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetHasTooltip :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetHasTooltip :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetHasTooltip :: AttrLabelProxy "hasTooltip"
- data WidgetHeightRequestPropertyInfo
- constructWidgetHeightRequest :: IsWidget o => Int32 -> IO (GValueConstruct o)
- getWidgetHeightRequest :: (MonadIO m, IsWidget o) => o -> m Int32
- setWidgetHeightRequest :: (MonadIO m, IsWidget o) => o -> Int32 -> m ()
- widgetHeightRequest :: AttrLabelProxy "heightRequest"
- data WidgetHexpandPropertyInfo
- constructWidgetHexpand :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetHexpand :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetHexpand :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetHexpand :: AttrLabelProxy "hexpand"
- data WidgetHexpandSetPropertyInfo
- constructWidgetHexpandSet :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetHexpandSet :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetHexpandSet :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetHexpandSet :: AttrLabelProxy "hexpandSet"
- data WidgetIsFocusPropertyInfo
- constructWidgetIsFocus :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetIsFocus :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetIsFocus :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- data WidgetMarginPropertyInfo
- constructWidgetMargin :: IsWidget o => Int32 -> IO (GValueConstruct o)
- getWidgetMargin :: (MonadIO m, IsWidget o) => o -> m Int32
- setWidgetMargin :: (MonadIO m, IsWidget o) => o -> Int32 -> m ()
- widgetMargin :: AttrLabelProxy "margin"
- data WidgetMarginBottomPropertyInfo
- constructWidgetMarginBottom :: IsWidget o => Int32 -> IO (GValueConstruct o)
- getWidgetMarginBottom :: (MonadIO m, IsWidget o) => o -> m Int32
- setWidgetMarginBottom :: (MonadIO m, IsWidget o) => o -> Int32 -> m ()
- widgetMarginBottom :: AttrLabelProxy "marginBottom"
- data WidgetMarginEndPropertyInfo
- constructWidgetMarginEnd :: IsWidget o => Int32 -> IO (GValueConstruct o)
- getWidgetMarginEnd :: (MonadIO m, IsWidget o) => o -> m Int32
- setWidgetMarginEnd :: (MonadIO m, IsWidget o) => o -> Int32 -> m ()
- widgetMarginEnd :: AttrLabelProxy "marginEnd"
- data WidgetMarginLeftPropertyInfo
- constructWidgetMarginLeft :: IsWidget o => Int32 -> IO (GValueConstruct o)
- getWidgetMarginLeft :: (MonadIO m, IsWidget o) => o -> m Int32
- setWidgetMarginLeft :: (MonadIO m, IsWidget o) => o -> Int32 -> m ()
- widgetMarginLeft :: AttrLabelProxy "marginLeft"
- data WidgetMarginRightPropertyInfo
- constructWidgetMarginRight :: IsWidget o => Int32 -> IO (GValueConstruct o)
- getWidgetMarginRight :: (MonadIO m, IsWidget o) => o -> m Int32
- setWidgetMarginRight :: (MonadIO m, IsWidget o) => o -> Int32 -> m ()
- widgetMarginRight :: AttrLabelProxy "marginRight"
- data WidgetMarginStartPropertyInfo
- constructWidgetMarginStart :: IsWidget o => Int32 -> IO (GValueConstruct o)
- getWidgetMarginStart :: (MonadIO m, IsWidget o) => o -> m Int32
- setWidgetMarginStart :: (MonadIO m, IsWidget o) => o -> Int32 -> m ()
- widgetMarginStart :: AttrLabelProxy "marginStart"
- data WidgetMarginTopPropertyInfo
- constructWidgetMarginTop :: IsWidget o => Int32 -> IO (GValueConstruct o)
- getWidgetMarginTop :: (MonadIO m, IsWidget o) => o -> m Int32
- setWidgetMarginTop :: (MonadIO m, IsWidget o) => o -> Int32 -> m ()
- widgetMarginTop :: AttrLabelProxy "marginTop"
- data WidgetNamePropertyInfo
- constructWidgetName :: IsWidget o => Text -> IO (GValueConstruct o)
- getWidgetName :: (MonadIO m, IsWidget o) => o -> m Text
- setWidgetName :: (MonadIO m, IsWidget o) => o -> Text -> m ()
- widgetName :: AttrLabelProxy "name"
- data WidgetNoShowAllPropertyInfo
- constructWidgetNoShowAll :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetNoShowAll :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetNoShowAll :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetNoShowAll :: AttrLabelProxy "noShowAll"
- data WidgetOpacityPropertyInfo
- constructWidgetOpacity :: IsWidget o => Double -> IO (GValueConstruct o)
- getWidgetOpacity :: (MonadIO m, IsWidget o) => o -> m Double
- setWidgetOpacity :: (MonadIO m, IsWidget o) => o -> Double -> m ()
- widgetOpacity :: AttrLabelProxy "opacity"
- data WidgetParentPropertyInfo
- clearWidgetParent :: (MonadIO m, IsWidget o) => o -> m ()
- constructWidgetParent :: (IsWidget o, IsContainer a) => a -> IO (GValueConstruct o)
- getWidgetParent :: (MonadIO m, IsWidget o) => o -> m (Maybe Container)
- setWidgetParent :: (MonadIO m, IsWidget o, IsContainer a) => o -> a -> m ()
- widgetParent :: AttrLabelProxy "parent"
- data WidgetReceivesDefaultPropertyInfo
- constructWidgetReceivesDefault :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetReceivesDefault :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetReceivesDefault :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetReceivesDefault :: AttrLabelProxy "receivesDefault"
- data WidgetScaleFactorPropertyInfo
- getWidgetScaleFactor :: (MonadIO m, IsWidget o) => o -> m Int32
- widgetScaleFactor :: AttrLabelProxy "scaleFactor"
- data WidgetSensitivePropertyInfo
- constructWidgetSensitive :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetSensitive :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetSensitive :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetSensitive :: AttrLabelProxy "sensitive"
- data WidgetStylePropertyInfo
- clearWidgetStyle :: (MonadIO m, IsWidget o) => o -> m ()
- constructWidgetStyle :: (IsWidget o, IsStyle a) => a -> IO (GValueConstruct o)
- getWidgetStyle :: (MonadIO m, IsWidget o) => o -> m Style
- setWidgetStyle :: (MonadIO m, IsWidget o, IsStyle a) => o -> a -> m ()
- widgetStyle :: AttrLabelProxy "style"
- data WidgetTooltipMarkupPropertyInfo
- clearWidgetTooltipMarkup :: (MonadIO m, IsWidget o) => o -> m ()
- constructWidgetTooltipMarkup :: IsWidget o => Text -> IO (GValueConstruct o)
- getWidgetTooltipMarkup :: (MonadIO m, IsWidget o) => o -> m (Maybe Text)
- setWidgetTooltipMarkup :: (MonadIO m, IsWidget o) => o -> Text -> m ()
- widgetTooltipMarkup :: AttrLabelProxy "tooltipMarkup"
- data WidgetTooltipTextPropertyInfo
- clearWidgetTooltipText :: (MonadIO m, IsWidget o) => o -> m ()
- constructWidgetTooltipText :: IsWidget o => Text -> IO (GValueConstruct o)
- getWidgetTooltipText :: (MonadIO m, IsWidget o) => o -> m (Maybe Text)
- setWidgetTooltipText :: (MonadIO m, IsWidget o) => o -> Text -> m ()
- widgetTooltipText :: AttrLabelProxy "tooltipText"
- data WidgetValignPropertyInfo
- constructWidgetValign :: IsWidget o => Align -> IO (GValueConstruct o)
- getWidgetValign :: (MonadIO m, IsWidget o) => o -> m Align
- setWidgetValign :: (MonadIO m, IsWidget o) => o -> Align -> m ()
- widgetValign :: AttrLabelProxy "valign"
- data WidgetVexpandPropertyInfo
- constructWidgetVexpand :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetVexpand :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetVexpand :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetVexpand :: AttrLabelProxy "vexpand"
- data WidgetVexpandSetPropertyInfo
- constructWidgetVexpandSet :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetVexpandSet :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetVexpandSet :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetVexpandSet :: AttrLabelProxy "vexpandSet"
- data WidgetVisiblePropertyInfo
- constructWidgetVisible :: IsWidget o => Bool -> IO (GValueConstruct o)
- getWidgetVisible :: (MonadIO m, IsWidget o) => o -> m Bool
- setWidgetVisible :: (MonadIO m, IsWidget o) => o -> Bool -> m ()
- widgetVisible :: AttrLabelProxy "visible"
- data WidgetWidthRequestPropertyInfo
- constructWidgetWidthRequest :: IsWidget o => Int32 -> IO (GValueConstruct o)
- getWidgetWidthRequest :: (MonadIO m, IsWidget o) => o -> m Int32
- setWidgetWidthRequest :: (MonadIO m, IsWidget o) => o -> Int32 -> m ()
- widgetWidthRequest :: AttrLabelProxy "widthRequest"
- data WidgetWindowPropertyInfo
- getWidgetWindow :: (MonadIO m, IsWidget o) => o -> m (Maybe Window)
- widgetWindow :: AttrLabelProxy "window"
- type C_WidgetAccelClosuresChangedCallback = Ptr () -> Ptr () -> IO ()
- type WidgetAccelClosuresChangedCallback = IO ()
- data WidgetAccelClosuresChangedSignalInfo
- afterWidgetAccelClosuresChanged :: (GObject a, MonadIO m) => a -> WidgetAccelClosuresChangedCallback -> m SignalHandlerId
- genClosure_WidgetAccelClosuresChanged :: WidgetAccelClosuresChangedCallback -> IO Closure
- mk_WidgetAccelClosuresChangedCallback :: C_WidgetAccelClosuresChangedCallback -> IO (FunPtr C_WidgetAccelClosuresChangedCallback)
- noWidgetAccelClosuresChangedCallback :: Maybe WidgetAccelClosuresChangedCallback
- onWidgetAccelClosuresChanged :: (GObject a, MonadIO m) => a -> WidgetAccelClosuresChangedCallback -> m SignalHandlerId
- wrap_WidgetAccelClosuresChangedCallback :: WidgetAccelClosuresChangedCallback -> Ptr () -> Ptr () -> IO ()
- type C_WidgetButtonPressEventCallback = Ptr () -> Ptr EventButton -> Ptr () -> IO CInt
- type WidgetButtonPressEventCallback = EventButton -> IO Bool
- data WidgetButtonPressEventSignalInfo
- afterWidgetButtonPressEvent :: (GObject a, MonadIO m) => a -> WidgetButtonPressEventCallback -> m SignalHandlerId
- genClosure_WidgetButtonPressEvent :: WidgetButtonPressEventCallback -> IO Closure
- mk_WidgetButtonPressEventCallback :: C_WidgetButtonPressEventCallback -> IO (FunPtr C_WidgetButtonPressEventCallback)
- noWidgetButtonPressEventCallback :: Maybe WidgetButtonPressEventCallback
- onWidgetButtonPressEvent :: (GObject a, MonadIO m) => a -> WidgetButtonPressEventCallback -> m SignalHandlerId
- wrap_WidgetButtonPressEventCallback :: WidgetButtonPressEventCallback -> Ptr () -> Ptr EventButton -> Ptr () -> IO CInt
- type C_WidgetButtonReleaseEventCallback = Ptr () -> Ptr EventButton -> Ptr () -> IO CInt
- type WidgetButtonReleaseEventCallback = EventButton -> IO Bool
- data WidgetButtonReleaseEventSignalInfo
- afterWidgetButtonReleaseEvent :: (GObject a, MonadIO m) => a -> WidgetButtonReleaseEventCallback -> m SignalHandlerId
- genClosure_WidgetButtonReleaseEvent :: WidgetButtonReleaseEventCallback -> IO Closure
- mk_WidgetButtonReleaseEventCallback :: C_WidgetButtonReleaseEventCallback -> IO (FunPtr C_WidgetButtonReleaseEventCallback)
- noWidgetButtonReleaseEventCallback :: Maybe WidgetButtonReleaseEventCallback
- onWidgetButtonReleaseEvent :: (GObject a, MonadIO m) => a -> WidgetButtonReleaseEventCallback -> m SignalHandlerId
- wrap_WidgetButtonReleaseEventCallback :: WidgetButtonReleaseEventCallback -> Ptr () -> Ptr EventButton -> Ptr () -> IO CInt
- type C_WidgetCanActivateAccelCallback = Ptr () -> Word32 -> Ptr () -> IO CInt
- type WidgetCanActivateAccelCallback = Word32 -> IO Bool
- data WidgetCanActivateAccelSignalInfo
- afterWidgetCanActivateAccel :: (GObject a, MonadIO m) => a -> WidgetCanActivateAccelCallback -> m SignalHandlerId
- genClosure_WidgetCanActivateAccel :: WidgetCanActivateAccelCallback -> IO Closure
- mk_WidgetCanActivateAccelCallback :: C_WidgetCanActivateAccelCallback -> IO (FunPtr C_WidgetCanActivateAccelCallback)
- noWidgetCanActivateAccelCallback :: Maybe WidgetCanActivateAccelCallback
- onWidgetCanActivateAccel :: (GObject a, MonadIO m) => a -> WidgetCanActivateAccelCallback -> m SignalHandlerId
- wrap_WidgetCanActivateAccelCallback :: WidgetCanActivateAccelCallback -> Ptr () -> Word32 -> Ptr () -> IO CInt
- type C_WidgetChildNotifyCallback = Ptr () -> Ptr GParamSpec -> Ptr () -> IO ()
- type WidgetChildNotifyCallback = GParamSpec -> IO ()
- data WidgetChildNotifySignalInfo
- afterWidgetChildNotify :: (GObject a, MonadIO m) => a -> WidgetChildNotifyCallback -> m SignalHandlerId
- genClosure_WidgetChildNotify :: WidgetChildNotifyCallback -> IO Closure
- mk_WidgetChildNotifyCallback :: C_WidgetChildNotifyCallback -> IO (FunPtr C_WidgetChildNotifyCallback)
- noWidgetChildNotifyCallback :: Maybe WidgetChildNotifyCallback
- onWidgetChildNotify :: (GObject a, MonadIO m) => a -> WidgetChildNotifyCallback -> m SignalHandlerId
- wrap_WidgetChildNotifyCallback :: WidgetChildNotifyCallback -> Ptr () -> Ptr GParamSpec -> Ptr () -> IO ()
- type C_WidgetCompositedChangedCallback = Ptr () -> Ptr () -> IO ()
- type WidgetCompositedChangedCallback = IO ()
- data WidgetCompositedChangedSignalInfo
- afterWidgetCompositedChanged :: (GObject a, MonadIO m) => a -> WidgetCompositedChangedCallback -> m SignalHandlerId
- genClosure_WidgetCompositedChanged :: WidgetCompositedChangedCallback -> IO Closure
- mk_WidgetCompositedChangedCallback :: C_WidgetCompositedChangedCallback -> IO (FunPtr C_WidgetCompositedChangedCallback)
- noWidgetCompositedChangedCallback :: Maybe WidgetCompositedChangedCallback
- onWidgetCompositedChanged :: (GObject a, MonadIO m) => a -> WidgetCompositedChangedCallback -> m SignalHandlerId
- wrap_WidgetCompositedChangedCallback :: WidgetCompositedChangedCallback -> Ptr () -> Ptr () -> IO ()
- type C_WidgetConfigureEventCallback = Ptr () -> Ptr EventConfigure -> Ptr () -> IO CInt
- type WidgetConfigureEventCallback = EventConfigure -> IO Bool
- data WidgetConfigureEventSignalInfo
- afterWidgetConfigureEvent :: (GObject a, MonadIO m) => a -> WidgetConfigureEventCallback -> m SignalHandlerId
- genClosure_WidgetConfigureEvent :: WidgetConfigureEventCallback -> IO Closure
- mk_WidgetConfigureEventCallback :: C_WidgetConfigureEventCallback -> IO (FunPtr C_WidgetConfigureEventCallback)
- noWidgetConfigureEventCallback :: Maybe WidgetConfigureEventCallback
- onWidgetConfigureEvent :: (GObject a, MonadIO m) => a -> WidgetConfigureEventCallback -> m SignalHandlerId
- wrap_WidgetConfigureEventCallback :: WidgetConfigureEventCallback -> Ptr () -> Ptr EventConfigure -> Ptr () -> IO CInt
- type C_WidgetDamageEventCallback = Ptr () -> Ptr EventExpose -> Ptr () -> IO CInt
- type WidgetDamageEventCallback = EventExpose -> IO Bool
- data WidgetDamageEventSignalInfo
- afterWidgetDamageEvent :: (GObject a, MonadIO m) => a -> WidgetDamageEventCallback -> m SignalHandlerId
- genClosure_WidgetDamageEvent :: WidgetDamageEventCallback -> IO Closure
- mk_WidgetDamageEventCallback :: C_WidgetDamageEventCallback -> IO (FunPtr C_WidgetDamageEventCallback)
- noWidgetDamageEventCallback :: Maybe WidgetDamageEventCallback
- onWidgetDamageEvent :: (GObject a, MonadIO m) => a -> WidgetDamageEventCallback -> m SignalHandlerId
- wrap_WidgetDamageEventCallback :: WidgetDamageEventCallback -> Ptr () -> Ptr EventExpose -> Ptr () -> IO CInt
- type C_WidgetDeleteEventCallback = Ptr () -> Ptr Event -> Ptr () -> IO CInt
- type WidgetDeleteEventCallback = Event -> IO Bool
- data WidgetDeleteEventSignalInfo
- afterWidgetDeleteEvent :: (GObject a, MonadIO m) => a -> WidgetDeleteEventCallback -> m SignalHandlerId
- genClosure_WidgetDeleteEvent :: WidgetDeleteEventCallback -> IO Closure
- mk_WidgetDeleteEventCallback :: C_WidgetDeleteEventCallback -> IO (FunPtr C_WidgetDeleteEventCallback)
- noWidgetDeleteEventCallback :: Maybe WidgetDeleteEventCallback
- onWidgetDeleteEvent :: (GObject a, MonadIO m) => a -> WidgetDeleteEventCallback -> m SignalHandlerId
- wrap_WidgetDeleteEventCallback :: WidgetDeleteEventCallback -> Ptr () -> Ptr Event -> Ptr () -> IO CInt
- type C_WidgetDestroyCallback = Ptr () -> Ptr () -> IO ()
- type WidgetDestroyCallback = IO ()
- data WidgetDestroySignalInfo
- afterWidgetDestroy :: (GObject a, MonadIO m) => a -> WidgetDestroyCallback -> m SignalHandlerId
- genClosure_WidgetDestroy :: WidgetDestroyCallback -> IO Closure
- mk_WidgetDestroyCallback :: C_WidgetDestroyCallback -> IO (FunPtr C_WidgetDestroyCallback)
- noWidgetDestroyCallback :: Maybe WidgetDestroyCallback
- onWidgetDestroy :: (GObject a, MonadIO m) => a -> WidgetDestroyCallback -> m SignalHandlerId
- wrap_WidgetDestroyCallback :: WidgetDestroyCallback -> Ptr () -> Ptr () -> IO ()
- type C_WidgetDestroyEventCallback = Ptr () -> Ptr Event -> Ptr () -> IO CInt
- type WidgetDestroyEventCallback = Event -> IO Bool
- data WidgetDestroyEventSignalInfo
- afterWidgetDestroyEvent :: (GObject a, MonadIO m) => a -> WidgetDestroyEventCallback -> m SignalHandlerId
- genClosure_WidgetDestroyEvent :: WidgetDestroyEventCallback -> IO Closure
- mk_WidgetDestroyEventCallback :: C_WidgetDestroyEventCallback -> IO (FunPtr C_WidgetDestroyEventCallback)
- noWidgetDestroyEventCallback :: Maybe WidgetDestroyEventCallback
- onWidgetDestroyEvent :: (GObject a, MonadIO m) => a -> WidgetDestroyEventCallback -> m SignalHandlerId
- wrap_WidgetDestroyEventCallback :: WidgetDestroyEventCallback -> Ptr () -> Ptr Event -> Ptr () -> IO CInt
- type C_WidgetDirectionChangedCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type WidgetDirectionChangedCallback = TextDirection -> IO ()
- data WidgetDirectionChangedSignalInfo
- afterWidgetDirectionChanged :: (GObject a, MonadIO m) => a -> WidgetDirectionChangedCallback -> m SignalHandlerId
- genClosure_WidgetDirectionChanged :: WidgetDirectionChangedCallback -> IO Closure
- mk_WidgetDirectionChangedCallback :: C_WidgetDirectionChangedCallback -> IO (FunPtr C_WidgetDirectionChangedCallback)
- noWidgetDirectionChangedCallback :: Maybe WidgetDirectionChangedCallback
- onWidgetDirectionChanged :: (GObject a, MonadIO m) => a -> WidgetDirectionChangedCallback -> m SignalHandlerId
- wrap_WidgetDirectionChangedCallback :: WidgetDirectionChangedCallback -> Ptr () -> CUInt -> Ptr () -> IO ()
- type C_WidgetDragBeginCallback = Ptr () -> Ptr DragContext -> Ptr () -> IO ()
- type WidgetDragBeginCallback = DragContext -> IO ()
- data WidgetDragBeginSignalInfo
- afterWidgetDragBegin :: (GObject a, MonadIO m) => a -> WidgetDragBeginCallback -> m SignalHandlerId
- genClosure_WidgetDragBegin :: WidgetDragBeginCallback -> IO Closure
- mk_WidgetDragBeginCallback :: C_WidgetDragBeginCallback -> IO (FunPtr C_WidgetDragBeginCallback)
- noWidgetDragBeginCallback :: Maybe WidgetDragBeginCallback
- onWidgetDragBegin :: (GObject a, MonadIO m) => a -> WidgetDragBeginCallback -> m SignalHandlerId
- wrap_WidgetDragBeginCallback :: WidgetDragBeginCallback -> Ptr () -> Ptr DragContext -> Ptr () -> IO ()
- type C_WidgetDragDataDeleteCallback = Ptr () -> Ptr DragContext -> Ptr () -> IO ()
- type WidgetDragDataDeleteCallback = DragContext -> IO ()
- data WidgetDragDataDeleteSignalInfo
- afterWidgetDragDataDelete :: (GObject a, MonadIO m) => a -> WidgetDragDataDeleteCallback -> m SignalHandlerId
- genClosure_WidgetDragDataDelete :: WidgetDragDataDeleteCallback -> IO Closure
- mk_WidgetDragDataDeleteCallback :: C_WidgetDragDataDeleteCallback -> IO (FunPtr C_WidgetDragDataDeleteCallback)
- noWidgetDragDataDeleteCallback :: Maybe WidgetDragDataDeleteCallback
- onWidgetDragDataDelete :: (GObject a, MonadIO m) => a -> WidgetDragDataDeleteCallback -> m SignalHandlerId
- wrap_WidgetDragDataDeleteCallback :: WidgetDragDataDeleteCallback -> Ptr () -> Ptr DragContext -> Ptr () -> IO ()
- type C_WidgetDragDataGetCallback = Ptr () -> Ptr DragContext -> Ptr SelectionData -> Word32 -> Word32 -> Ptr () -> IO ()
- type WidgetDragDataGetCallback = DragContext -> SelectionData -> Word32 -> Word32 -> IO ()
- data WidgetDragDataGetSignalInfo
- afterWidgetDragDataGet :: (GObject a, MonadIO m) => a -> WidgetDragDataGetCallback -> m SignalHandlerId
- genClosure_WidgetDragDataGet :: WidgetDragDataGetCallback -> IO Closure
- mk_WidgetDragDataGetCallback :: C_WidgetDragDataGetCallback -> IO (FunPtr C_WidgetDragDataGetCallback)
- noWidgetDragDataGetCallback :: Maybe WidgetDragDataGetCallback
- onWidgetDragDataGet :: (GObject a, MonadIO m) => a -> WidgetDragDataGetCallback -> m SignalHandlerId
- wrap_WidgetDragDataGetCallback :: WidgetDragDataGetCallback -> Ptr () -> Ptr DragContext -> Ptr SelectionData -> Word32 -> Word32 -> Ptr () -> IO ()
- type C_WidgetDragDataReceivedCallback = Ptr () -> Ptr DragContext -> Int32 -> Int32 -> Ptr SelectionData -> Word32 -> Word32 -> Ptr () -> IO ()
- type WidgetDragDataReceivedCallback = DragContext -> Int32 -> Int32 -> SelectionData -> Word32 -> Word32 -> IO ()
- data WidgetDragDataReceivedSignalInfo
- afterWidgetDragDataReceived :: (GObject a, MonadIO m) => a -> WidgetDragDataReceivedCallback -> m SignalHandlerId
- genClosure_WidgetDragDataReceived :: WidgetDragDataReceivedCallback -> IO Closure
- mk_WidgetDragDataReceivedCallback :: C_WidgetDragDataReceivedCallback -> IO (FunPtr C_WidgetDragDataReceivedCallback)
- noWidgetDragDataReceivedCallback :: Maybe WidgetDragDataReceivedCallback
- onWidgetDragDataReceived :: (GObject a, MonadIO m) => a -> WidgetDragDataReceivedCallback -> m SignalHandlerId
- wrap_WidgetDragDataReceivedCallback :: WidgetDragDataReceivedCallback -> Ptr () -> Ptr DragContext -> Int32 -> Int32 -> Ptr SelectionData -> Word32 -> Word32 -> Ptr () -> IO ()
- type C_WidgetDragDropCallback = Ptr () -> Ptr DragContext -> Int32 -> Int32 -> Word32 -> Ptr () -> IO CInt
- type WidgetDragDropCallback = DragContext -> Int32 -> Int32 -> Word32 -> IO Bool
- data WidgetDragDropSignalInfo
- afterWidgetDragDrop :: (GObject a, MonadIO m) => a -> WidgetDragDropCallback -> m SignalHandlerId
- genClosure_WidgetDragDrop :: WidgetDragDropCallback -> IO Closure
- mk_WidgetDragDropCallback :: C_WidgetDragDropCallback -> IO (FunPtr C_WidgetDragDropCallback)
- noWidgetDragDropCallback :: Maybe WidgetDragDropCallback
- onWidgetDragDrop :: (GObject a, MonadIO m) => a -> WidgetDragDropCallback -> m SignalHandlerId
- wrap_WidgetDragDropCallback :: WidgetDragDropCallback -> Ptr () -> Ptr DragContext -> Int32 -> Int32 -> Word32 -> Ptr () -> IO CInt
- type C_WidgetDragEndCallback = Ptr () -> Ptr DragContext -> Ptr () -> IO ()
- type WidgetDragEndCallback = DragContext -> IO ()
- data WidgetDragEndSignalInfo
- afterWidgetDragEnd :: (GObject a, MonadIO m) => a -> WidgetDragEndCallback -> m SignalHandlerId
- genClosure_WidgetDragEnd :: WidgetDragEndCallback -> IO Closure
- mk_WidgetDragEndCallback :: C_WidgetDragEndCallback -> IO (FunPtr C_WidgetDragEndCallback)
- noWidgetDragEndCallback :: Maybe WidgetDragEndCallback
- onWidgetDragEnd :: (GObject a, MonadIO m) => a -> WidgetDragEndCallback -> m SignalHandlerId
- wrap_WidgetDragEndCallback :: WidgetDragEndCallback -> Ptr () -> Ptr DragContext -> Ptr () -> IO ()
- type C_WidgetDragFailedCallback = Ptr () -> Ptr DragContext -> CUInt -> Ptr () -> IO CInt
- type WidgetDragFailedCallback = DragContext -> DragResult -> IO Bool
- data WidgetDragFailedSignalInfo
- afterWidgetDragFailed :: (GObject a, MonadIO m) => a -> WidgetDragFailedCallback -> m SignalHandlerId
- genClosure_WidgetDragFailed :: WidgetDragFailedCallback -> IO Closure
- mk_WidgetDragFailedCallback :: C_WidgetDragFailedCallback -> IO (FunPtr C_WidgetDragFailedCallback)
- noWidgetDragFailedCallback :: Maybe WidgetDragFailedCallback
- onWidgetDragFailed :: (GObject a, MonadIO m) => a -> WidgetDragFailedCallback -> m SignalHandlerId
- wrap_WidgetDragFailedCallback :: WidgetDragFailedCallback -> Ptr () -> Ptr DragContext -> CUInt -> Ptr () -> IO CInt
- type C_WidgetDragLeaveCallback = Ptr () -> Ptr DragContext -> Word32 -> Ptr () -> IO ()
- type WidgetDragLeaveCallback = DragContext -> Word32 -> IO ()
- data WidgetDragLeaveSignalInfo
- afterWidgetDragLeave :: (GObject a, MonadIO m) => a -> WidgetDragLeaveCallback -> m SignalHandlerId
- genClosure_WidgetDragLeave :: WidgetDragLeaveCallback -> IO Closure
- mk_WidgetDragLeaveCallback :: C_WidgetDragLeaveCallback -> IO (FunPtr C_WidgetDragLeaveCallback)
- noWidgetDragLeaveCallback :: Maybe WidgetDragLeaveCallback
- onWidgetDragLeave :: (GObject a, MonadIO m) => a -> WidgetDragLeaveCallback -> m SignalHandlerId
- wrap_WidgetDragLeaveCallback :: WidgetDragLeaveCallback -> Ptr () -> Ptr DragContext -> Word32 -> Ptr () -> IO ()
- type C_WidgetDragMotionCallback = Ptr () -> Ptr DragContext -> Int32 -> Int32 -> Word32 -> Ptr () -> IO CInt
- type WidgetDragMotionCallback = DragContext -> Int32 -> Int32 -> Word32 -> IO Bool
- data WidgetDragMotionSignalInfo
- afterWidgetDragMotion :: (GObject a, MonadIO m) => a -> WidgetDragMotionCallback -> m SignalHandlerId
- genClosure_WidgetDragMotion :: WidgetDragMotionCallback -> IO Closure
- mk_WidgetDragMotionCallback :: C_WidgetDragMotionCallback -> IO (FunPtr C_WidgetDragMotionCallback)
- noWidgetDragMotionCallback :: Maybe WidgetDragMotionCallback
- onWidgetDragMotion :: (GObject a, MonadIO m) => a -> WidgetDragMotionCallback -> m SignalHandlerId
- wrap_WidgetDragMotionCallback :: WidgetDragMotionCallback -> Ptr () -> Ptr DragContext -> Int32 -> Int32 -> Word32 -> Ptr () -> IO CInt
- type C_WidgetDrawCallback = Ptr () -> Ptr Context -> Ptr () -> IO CInt
- type WidgetDrawCallback = Context -> IO Bool
- data WidgetDrawSignalInfo
- afterWidgetDraw :: (GObject a, MonadIO m) => a -> WidgetDrawCallback -> m SignalHandlerId
- genClosure_WidgetDraw :: WidgetDrawCallback -> IO Closure
- mk_WidgetDrawCallback :: C_WidgetDrawCallback -> IO (FunPtr C_WidgetDrawCallback)
- noWidgetDrawCallback :: Maybe WidgetDrawCallback
- onWidgetDraw :: (GObject a, MonadIO m) => a -> WidgetDrawCallback -> m SignalHandlerId
- wrap_WidgetDrawCallback :: WidgetDrawCallback -> Ptr () -> Ptr Context -> Ptr () -> IO CInt
- type C_WidgetEnterNotifyEventCallback = Ptr () -> Ptr EventCrossing -> Ptr () -> IO CInt
- type WidgetEnterNotifyEventCallback = EventCrossing -> IO Bool
- data WidgetEnterNotifyEventSignalInfo
- afterWidgetEnterNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetEnterNotifyEventCallback -> m SignalHandlerId
- genClosure_WidgetEnterNotifyEvent :: WidgetEnterNotifyEventCallback -> IO Closure
- mk_WidgetEnterNotifyEventCallback :: C_WidgetEnterNotifyEventCallback -> IO (FunPtr C_WidgetEnterNotifyEventCallback)
- noWidgetEnterNotifyEventCallback :: Maybe WidgetEnterNotifyEventCallback
- onWidgetEnterNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetEnterNotifyEventCallback -> m SignalHandlerId
- wrap_WidgetEnterNotifyEventCallback :: WidgetEnterNotifyEventCallback -> Ptr () -> Ptr EventCrossing -> Ptr () -> IO CInt
- type C_WidgetEventCallback = Ptr () -> Ptr Event -> Ptr () -> IO CInt
- type WidgetEventCallback = Event -> IO Bool
- data WidgetEventSignalInfo
- afterWidgetEvent :: (GObject a, MonadIO m) => a -> WidgetEventCallback -> m SignalHandlerId
- genClosure_WidgetEvent :: WidgetEventCallback -> IO Closure
- mk_WidgetEventCallback :: C_WidgetEventCallback -> IO (FunPtr C_WidgetEventCallback)
- noWidgetEventCallback :: Maybe WidgetEventCallback
- onWidgetEvent :: (GObject a, MonadIO m) => a -> WidgetEventCallback -> m SignalHandlerId
- wrap_WidgetEventCallback :: WidgetEventCallback -> Ptr () -> Ptr Event -> Ptr () -> IO CInt
- type C_WidgetEventAfterCallback = Ptr () -> Ptr Event -> Ptr () -> IO ()
- type WidgetEventAfterCallback = Event -> IO ()
- data WidgetEventAfterSignalInfo
- afterWidgetEventAfter :: (GObject a, MonadIO m) => a -> WidgetEventAfterCallback -> m SignalHandlerId
- genClosure_WidgetEventAfter :: WidgetEventAfterCallback -> IO Closure
- mk_WidgetEventAfterCallback :: C_WidgetEventAfterCallback -> IO (FunPtr C_WidgetEventAfterCallback)
- noWidgetEventAfterCallback :: Maybe WidgetEventAfterCallback
- onWidgetEventAfter :: (GObject a, MonadIO m) => a -> WidgetEventAfterCallback -> m SignalHandlerId
- wrap_WidgetEventAfterCallback :: WidgetEventAfterCallback -> Ptr () -> Ptr Event -> Ptr () -> IO ()
- type C_WidgetFocusCallback = Ptr () -> CUInt -> Ptr () -> IO CInt
- type WidgetFocusCallback = DirectionType -> IO Bool
- data WidgetFocusSignalInfo
- afterWidgetFocus :: (GObject a, MonadIO m) => a -> WidgetFocusCallback -> m SignalHandlerId
- genClosure_WidgetFocus :: WidgetFocusCallback -> IO Closure
- mk_WidgetFocusCallback :: C_WidgetFocusCallback -> IO (FunPtr C_WidgetFocusCallback)
- noWidgetFocusCallback :: Maybe WidgetFocusCallback
- onWidgetFocus :: (GObject a, MonadIO m) => a -> WidgetFocusCallback -> m SignalHandlerId
- wrap_WidgetFocusCallback :: WidgetFocusCallback -> Ptr () -> CUInt -> Ptr () -> IO CInt
- type C_WidgetFocusInEventCallback = Ptr () -> Ptr EventFocus -> Ptr () -> IO CInt
- type WidgetFocusInEventCallback = EventFocus -> IO Bool
- data WidgetFocusInEventSignalInfo
- afterWidgetFocusInEvent :: (GObject a, MonadIO m) => a -> WidgetFocusInEventCallback -> m SignalHandlerId
- genClosure_WidgetFocusInEvent :: WidgetFocusInEventCallback -> IO Closure
- mk_WidgetFocusInEventCallback :: C_WidgetFocusInEventCallback -> IO (FunPtr C_WidgetFocusInEventCallback)
- noWidgetFocusInEventCallback :: Maybe WidgetFocusInEventCallback
- onWidgetFocusInEvent :: (GObject a, MonadIO m) => a -> WidgetFocusInEventCallback -> m SignalHandlerId
- wrap_WidgetFocusInEventCallback :: WidgetFocusInEventCallback -> Ptr () -> Ptr EventFocus -> Ptr () -> IO CInt
- type C_WidgetFocusOutEventCallback = Ptr () -> Ptr EventFocus -> Ptr () -> IO CInt
- type WidgetFocusOutEventCallback = EventFocus -> IO Bool
- data WidgetFocusOutEventSignalInfo
- afterWidgetFocusOutEvent :: (GObject a, MonadIO m) => a -> WidgetFocusOutEventCallback -> m SignalHandlerId
- genClosure_WidgetFocusOutEvent :: WidgetFocusOutEventCallback -> IO Closure
- mk_WidgetFocusOutEventCallback :: C_WidgetFocusOutEventCallback -> IO (FunPtr C_WidgetFocusOutEventCallback)
- noWidgetFocusOutEventCallback :: Maybe WidgetFocusOutEventCallback
- onWidgetFocusOutEvent :: (GObject a, MonadIO m) => a -> WidgetFocusOutEventCallback -> m SignalHandlerId
- wrap_WidgetFocusOutEventCallback :: WidgetFocusOutEventCallback -> Ptr () -> Ptr EventFocus -> Ptr () -> IO CInt
- type C_WidgetGrabBrokenEventCallback = Ptr () -> Ptr EventGrabBroken -> Ptr () -> IO CInt
- type WidgetGrabBrokenEventCallback = EventGrabBroken -> IO Bool
- data WidgetGrabBrokenEventSignalInfo
- afterWidgetGrabBrokenEvent :: (GObject a, MonadIO m) => a -> WidgetGrabBrokenEventCallback -> m SignalHandlerId
- genClosure_WidgetGrabBrokenEvent :: WidgetGrabBrokenEventCallback -> IO Closure
- mk_WidgetGrabBrokenEventCallback :: C_WidgetGrabBrokenEventCallback -> IO (FunPtr C_WidgetGrabBrokenEventCallback)
- noWidgetGrabBrokenEventCallback :: Maybe WidgetGrabBrokenEventCallback
- onWidgetGrabBrokenEvent :: (GObject a, MonadIO m) => a -> WidgetGrabBrokenEventCallback -> m SignalHandlerId
- wrap_WidgetGrabBrokenEventCallback :: WidgetGrabBrokenEventCallback -> Ptr () -> Ptr EventGrabBroken -> Ptr () -> IO CInt
- type C_WidgetGrabFocusCallback = Ptr () -> Ptr () -> IO ()
- type WidgetGrabFocusCallback = IO ()
- data WidgetGrabFocusSignalInfo
- afterWidgetGrabFocus :: (GObject a, MonadIO m) => a -> WidgetGrabFocusCallback -> m SignalHandlerId
- genClosure_WidgetGrabFocus :: WidgetGrabFocusCallback -> IO Closure
- mk_WidgetGrabFocusCallback :: C_WidgetGrabFocusCallback -> IO (FunPtr C_WidgetGrabFocusCallback)
- noWidgetGrabFocusCallback :: Maybe WidgetGrabFocusCallback
- onWidgetGrabFocus :: (GObject a, MonadIO m) => a -> WidgetGrabFocusCallback -> m SignalHandlerId
- wrap_WidgetGrabFocusCallback :: WidgetGrabFocusCallback -> Ptr () -> Ptr () -> IO ()
- type C_WidgetGrabNotifyCallback = Ptr () -> CInt -> Ptr () -> IO ()
- type WidgetGrabNotifyCallback = Bool -> IO ()
- data WidgetGrabNotifySignalInfo
- afterWidgetGrabNotify :: (GObject a, MonadIO m) => a -> WidgetGrabNotifyCallback -> m SignalHandlerId
- genClosure_WidgetGrabNotify :: WidgetGrabNotifyCallback -> IO Closure
- mk_WidgetGrabNotifyCallback :: C_WidgetGrabNotifyCallback -> IO (FunPtr C_WidgetGrabNotifyCallback)
- noWidgetGrabNotifyCallback :: Maybe WidgetGrabNotifyCallback
- onWidgetGrabNotify :: (GObject a, MonadIO m) => a -> WidgetGrabNotifyCallback -> m SignalHandlerId
- wrap_WidgetGrabNotifyCallback :: WidgetGrabNotifyCallback -> Ptr () -> CInt -> Ptr () -> IO ()
- type C_WidgetHideCallback = Ptr () -> Ptr () -> IO ()
- type WidgetHideCallback = IO ()
- data WidgetHideSignalInfo
- afterWidgetHide :: (GObject a, MonadIO m) => a -> WidgetHideCallback -> m SignalHandlerId
- genClosure_WidgetHide :: WidgetHideCallback -> IO Closure
- mk_WidgetHideCallback :: C_WidgetHideCallback -> IO (FunPtr C_WidgetHideCallback)
- noWidgetHideCallback :: Maybe WidgetHideCallback
- onWidgetHide :: (GObject a, MonadIO m) => a -> WidgetHideCallback -> m SignalHandlerId
- wrap_WidgetHideCallback :: WidgetHideCallback -> Ptr () -> Ptr () -> IO ()
- type C_WidgetHierarchyChangedCallback = Ptr () -> Ptr Widget -> Ptr () -> IO ()
- type WidgetHierarchyChangedCallback = Maybe Widget -> IO ()
- data WidgetHierarchyChangedSignalInfo
- afterWidgetHierarchyChanged :: (GObject a, MonadIO m) => a -> WidgetHierarchyChangedCallback -> m SignalHandlerId
- genClosure_WidgetHierarchyChanged :: WidgetHierarchyChangedCallback -> IO Closure
- mk_WidgetHierarchyChangedCallback :: C_WidgetHierarchyChangedCallback -> IO (FunPtr C_WidgetHierarchyChangedCallback)
- noWidgetHierarchyChangedCallback :: Maybe WidgetHierarchyChangedCallback
- onWidgetHierarchyChanged :: (GObject a, MonadIO m) => a -> WidgetHierarchyChangedCallback -> m SignalHandlerId
- wrap_WidgetHierarchyChangedCallback :: WidgetHierarchyChangedCallback -> Ptr () -> Ptr Widget -> Ptr () -> IO ()
- type C_WidgetKeyPressEventCallback = Ptr () -> Ptr EventKey -> Ptr () -> IO CInt
- type WidgetKeyPressEventCallback = EventKey -> IO Bool
- data WidgetKeyPressEventSignalInfo
- afterWidgetKeyPressEvent :: (GObject a, MonadIO m) => a -> WidgetKeyPressEventCallback -> m SignalHandlerId
- genClosure_WidgetKeyPressEvent :: WidgetKeyPressEventCallback -> IO Closure
- mk_WidgetKeyPressEventCallback :: C_WidgetKeyPressEventCallback -> IO (FunPtr C_WidgetKeyPressEventCallback)
- noWidgetKeyPressEventCallback :: Maybe WidgetKeyPressEventCallback
- onWidgetKeyPressEvent :: (GObject a, MonadIO m) => a -> WidgetKeyPressEventCallback -> m SignalHandlerId
- wrap_WidgetKeyPressEventCallback :: WidgetKeyPressEventCallback -> Ptr () -> Ptr EventKey -> Ptr () -> IO CInt
- type C_WidgetKeyReleaseEventCallback = Ptr () -> Ptr EventKey -> Ptr () -> IO CInt
- type WidgetKeyReleaseEventCallback = EventKey -> IO Bool
- data WidgetKeyReleaseEventSignalInfo
- afterWidgetKeyReleaseEvent :: (GObject a, MonadIO m) => a -> WidgetKeyReleaseEventCallback -> m SignalHandlerId
- genClosure_WidgetKeyReleaseEvent :: WidgetKeyReleaseEventCallback -> IO Closure
- mk_WidgetKeyReleaseEventCallback :: C_WidgetKeyReleaseEventCallback -> IO (FunPtr C_WidgetKeyReleaseEventCallback)
- noWidgetKeyReleaseEventCallback :: Maybe WidgetKeyReleaseEventCallback
- onWidgetKeyReleaseEvent :: (GObject a, MonadIO m) => a -> WidgetKeyReleaseEventCallback -> m SignalHandlerId
- wrap_WidgetKeyReleaseEventCallback :: WidgetKeyReleaseEventCallback -> Ptr () -> Ptr EventKey -> Ptr () -> IO CInt
- type C_WidgetKeynavFailedCallback = Ptr () -> CUInt -> Ptr () -> IO CInt
- type WidgetKeynavFailedCallback = DirectionType -> IO Bool
- data WidgetKeynavFailedSignalInfo
- afterWidgetKeynavFailed :: (GObject a, MonadIO m) => a -> WidgetKeynavFailedCallback -> m SignalHandlerId
- genClosure_WidgetKeynavFailed :: WidgetKeynavFailedCallback -> IO Closure
- mk_WidgetKeynavFailedCallback :: C_WidgetKeynavFailedCallback -> IO (FunPtr C_WidgetKeynavFailedCallback)
- noWidgetKeynavFailedCallback :: Maybe WidgetKeynavFailedCallback
- onWidgetKeynavFailed :: (GObject a, MonadIO m) => a -> WidgetKeynavFailedCallback -> m SignalHandlerId
- wrap_WidgetKeynavFailedCallback :: WidgetKeynavFailedCallback -> Ptr () -> CUInt -> Ptr () -> IO CInt
- type C_WidgetLeaveNotifyEventCallback = Ptr () -> Ptr EventCrossing -> Ptr () -> IO CInt
- type WidgetLeaveNotifyEventCallback = EventCrossing -> IO Bool
- data WidgetLeaveNotifyEventSignalInfo
- afterWidgetLeaveNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetLeaveNotifyEventCallback -> m SignalHandlerId
- genClosure_WidgetLeaveNotifyEvent :: WidgetLeaveNotifyEventCallback -> IO Closure
- mk_WidgetLeaveNotifyEventCallback :: C_WidgetLeaveNotifyEventCallback -> IO (FunPtr C_WidgetLeaveNotifyEventCallback)
- noWidgetLeaveNotifyEventCallback :: Maybe WidgetLeaveNotifyEventCallback
- onWidgetLeaveNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetLeaveNotifyEventCallback -> m SignalHandlerId
- wrap_WidgetLeaveNotifyEventCallback :: WidgetLeaveNotifyEventCallback -> Ptr () -> Ptr EventCrossing -> Ptr () -> IO CInt
- type C_WidgetMapCallback = Ptr () -> Ptr () -> IO ()
- type WidgetMapCallback = IO ()
- data WidgetMapSignalInfo
- afterWidgetMap :: (GObject a, MonadIO m) => a -> WidgetMapCallback -> m SignalHandlerId
- genClosure_WidgetMap :: WidgetMapCallback -> IO Closure
- mk_WidgetMapCallback :: C_WidgetMapCallback -> IO (FunPtr C_WidgetMapCallback)
- noWidgetMapCallback :: Maybe WidgetMapCallback
- onWidgetMap :: (GObject a, MonadIO m) => a -> WidgetMapCallback -> m SignalHandlerId
- wrap_WidgetMapCallback :: WidgetMapCallback -> Ptr () -> Ptr () -> IO ()
- type C_WidgetMapEventCallback = Ptr () -> Ptr EventAny -> Ptr () -> IO CInt
- type WidgetMapEventCallback = EventAny -> IO Bool
- data WidgetMapEventSignalInfo
- afterWidgetMapEvent :: (GObject a, MonadIO m) => a -> WidgetMapEventCallback -> m SignalHandlerId
- genClosure_WidgetMapEvent :: WidgetMapEventCallback -> IO Closure
- mk_WidgetMapEventCallback :: C_WidgetMapEventCallback -> IO (FunPtr C_WidgetMapEventCallback)
- noWidgetMapEventCallback :: Maybe WidgetMapEventCallback
- onWidgetMapEvent :: (GObject a, MonadIO m) => a -> WidgetMapEventCallback -> m SignalHandlerId
- wrap_WidgetMapEventCallback :: WidgetMapEventCallback -> Ptr () -> Ptr EventAny -> Ptr () -> IO CInt
- type C_WidgetMnemonicActivateCallback = Ptr () -> CInt -> Ptr () -> IO CInt
- type WidgetMnemonicActivateCallback = Bool -> IO Bool
- data WidgetMnemonicActivateSignalInfo
- afterWidgetMnemonicActivate :: (GObject a, MonadIO m) => a -> WidgetMnemonicActivateCallback -> m SignalHandlerId
- genClosure_WidgetMnemonicActivate :: WidgetMnemonicActivateCallback -> IO Closure
- mk_WidgetMnemonicActivateCallback :: C_WidgetMnemonicActivateCallback -> IO (FunPtr C_WidgetMnemonicActivateCallback)
- noWidgetMnemonicActivateCallback :: Maybe WidgetMnemonicActivateCallback
- onWidgetMnemonicActivate :: (GObject a, MonadIO m) => a -> WidgetMnemonicActivateCallback -> m SignalHandlerId
- wrap_WidgetMnemonicActivateCallback :: WidgetMnemonicActivateCallback -> Ptr () -> CInt -> Ptr () -> IO CInt
- type C_WidgetMotionNotifyEventCallback = Ptr () -> Ptr EventMotion -> Ptr () -> IO CInt
- type WidgetMotionNotifyEventCallback = EventMotion -> IO Bool
- data WidgetMotionNotifyEventSignalInfo
- afterWidgetMotionNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetMotionNotifyEventCallback -> m SignalHandlerId
- genClosure_WidgetMotionNotifyEvent :: WidgetMotionNotifyEventCallback -> IO Closure
- mk_WidgetMotionNotifyEventCallback :: C_WidgetMotionNotifyEventCallback -> IO (FunPtr C_WidgetMotionNotifyEventCallback)
- noWidgetMotionNotifyEventCallback :: Maybe WidgetMotionNotifyEventCallback
- onWidgetMotionNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetMotionNotifyEventCallback -> m SignalHandlerId
- wrap_WidgetMotionNotifyEventCallback :: WidgetMotionNotifyEventCallback -> Ptr () -> Ptr EventMotion -> Ptr () -> IO CInt
- type C_WidgetMoveFocusCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type WidgetMoveFocusCallback = DirectionType -> IO ()
- data WidgetMoveFocusSignalInfo
- afterWidgetMoveFocus :: (GObject a, MonadIO m) => a -> WidgetMoveFocusCallback -> m SignalHandlerId
- genClosure_WidgetMoveFocus :: WidgetMoveFocusCallback -> IO Closure
- mk_WidgetMoveFocusCallback :: C_WidgetMoveFocusCallback -> IO (FunPtr C_WidgetMoveFocusCallback)
- noWidgetMoveFocusCallback :: Maybe WidgetMoveFocusCallback
- onWidgetMoveFocus :: (GObject a, MonadIO m) => a -> WidgetMoveFocusCallback -> m SignalHandlerId
- wrap_WidgetMoveFocusCallback :: WidgetMoveFocusCallback -> Ptr () -> CUInt -> Ptr () -> IO ()
- type C_WidgetParentSetCallback = Ptr () -> Ptr Widget -> Ptr () -> IO ()
- type WidgetParentSetCallback = Maybe Widget -> IO ()
- data WidgetParentSetSignalInfo
- afterWidgetParentSet :: (GObject a, MonadIO m) => a -> WidgetParentSetCallback -> m SignalHandlerId
- genClosure_WidgetParentSet :: WidgetParentSetCallback -> IO Closure
- mk_WidgetParentSetCallback :: C_WidgetParentSetCallback -> IO (FunPtr C_WidgetParentSetCallback)
- noWidgetParentSetCallback :: Maybe WidgetParentSetCallback
- onWidgetParentSet :: (GObject a, MonadIO m) => a -> WidgetParentSetCallback -> m SignalHandlerId
- wrap_WidgetParentSetCallback :: WidgetParentSetCallback -> Ptr () -> Ptr Widget -> Ptr () -> IO ()
- type C_WidgetPopupMenuCallback = Ptr () -> Ptr () -> IO CInt
- type WidgetPopupMenuCallback = IO Bool
- data WidgetPopupMenuSignalInfo
- afterWidgetPopupMenu :: (GObject a, MonadIO m) => a -> WidgetPopupMenuCallback -> m SignalHandlerId
- genClosure_WidgetPopupMenu :: WidgetPopupMenuCallback -> IO Closure
- mk_WidgetPopupMenuCallback :: C_WidgetPopupMenuCallback -> IO (FunPtr C_WidgetPopupMenuCallback)
- noWidgetPopupMenuCallback :: Maybe WidgetPopupMenuCallback
- onWidgetPopupMenu :: (GObject a, MonadIO m) => a -> WidgetPopupMenuCallback -> m SignalHandlerId
- wrap_WidgetPopupMenuCallback :: WidgetPopupMenuCallback -> Ptr () -> Ptr () -> IO CInt
- type C_WidgetPropertyNotifyEventCallback = Ptr () -> Ptr EventProperty -> Ptr () -> IO CInt
- type WidgetPropertyNotifyEventCallback = EventProperty -> IO Bool
- data WidgetPropertyNotifyEventSignalInfo
- afterWidgetPropertyNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetPropertyNotifyEventCallback -> m SignalHandlerId
- genClosure_WidgetPropertyNotifyEvent :: WidgetPropertyNotifyEventCallback -> IO Closure
- mk_WidgetPropertyNotifyEventCallback :: C_WidgetPropertyNotifyEventCallback -> IO (FunPtr C_WidgetPropertyNotifyEventCallback)
- noWidgetPropertyNotifyEventCallback :: Maybe WidgetPropertyNotifyEventCallback
- onWidgetPropertyNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetPropertyNotifyEventCallback -> m SignalHandlerId
- wrap_WidgetPropertyNotifyEventCallback :: WidgetPropertyNotifyEventCallback -> Ptr () -> Ptr EventProperty -> Ptr () -> IO CInt
- type C_WidgetProximityInEventCallback = Ptr () -> Ptr EventProximity -> Ptr () -> IO CInt
- type WidgetProximityInEventCallback = EventProximity -> IO Bool
- data WidgetProximityInEventSignalInfo
- afterWidgetProximityInEvent :: (GObject a, MonadIO m) => a -> WidgetProximityInEventCallback -> m SignalHandlerId
- genClosure_WidgetProximityInEvent :: WidgetProximityInEventCallback -> IO Closure
- mk_WidgetProximityInEventCallback :: C_WidgetProximityInEventCallback -> IO (FunPtr C_WidgetProximityInEventCallback)
- noWidgetProximityInEventCallback :: Maybe WidgetProximityInEventCallback
- onWidgetProximityInEvent :: (GObject a, MonadIO m) => a -> WidgetProximityInEventCallback -> m SignalHandlerId
- wrap_WidgetProximityInEventCallback :: WidgetProximityInEventCallback -> Ptr () -> Ptr EventProximity -> Ptr () -> IO CInt
- type C_WidgetProximityOutEventCallback = Ptr () -> Ptr EventProximity -> Ptr () -> IO CInt
- type WidgetProximityOutEventCallback = EventProximity -> IO Bool
- data WidgetProximityOutEventSignalInfo
- afterWidgetProximityOutEvent :: (GObject a, MonadIO m) => a -> WidgetProximityOutEventCallback -> m SignalHandlerId
- genClosure_WidgetProximityOutEvent :: WidgetProximityOutEventCallback -> IO Closure
- mk_WidgetProximityOutEventCallback :: C_WidgetProximityOutEventCallback -> IO (FunPtr C_WidgetProximityOutEventCallback)
- noWidgetProximityOutEventCallback :: Maybe WidgetProximityOutEventCallback
- onWidgetProximityOutEvent :: (GObject a, MonadIO m) => a -> WidgetProximityOutEventCallback -> m SignalHandlerId
- wrap_WidgetProximityOutEventCallback :: WidgetProximityOutEventCallback -> Ptr () -> Ptr EventProximity -> Ptr () -> IO CInt
- type C_WidgetQueryTooltipCallback = Ptr () -> Int32 -> Int32 -> CInt -> Ptr Tooltip -> Ptr () -> IO CInt
- type WidgetQueryTooltipCallback = Int32 -> Int32 -> Bool -> Tooltip -> IO Bool
- data WidgetQueryTooltipSignalInfo
- afterWidgetQueryTooltip :: (GObject a, MonadIO m) => a -> WidgetQueryTooltipCallback -> m SignalHandlerId
- genClosure_WidgetQueryTooltip :: WidgetQueryTooltipCallback -> IO Closure
- mk_WidgetQueryTooltipCallback :: C_WidgetQueryTooltipCallback -> IO (FunPtr C_WidgetQueryTooltipCallback)
- noWidgetQueryTooltipCallback :: Maybe WidgetQueryTooltipCallback
- onWidgetQueryTooltip :: (GObject a, MonadIO m) => a -> WidgetQueryTooltipCallback -> m SignalHandlerId
- wrap_WidgetQueryTooltipCallback :: WidgetQueryTooltipCallback -> Ptr () -> Int32 -> Int32 -> CInt -> Ptr Tooltip -> Ptr () -> IO CInt
- type C_WidgetRealizeCallback = Ptr () -> Ptr () -> IO ()
- type WidgetRealizeCallback = IO ()
- data WidgetRealizeSignalInfo
- afterWidgetRealize :: (GObject a, MonadIO m) => a -> WidgetRealizeCallback -> m SignalHandlerId
- genClosure_WidgetRealize :: WidgetRealizeCallback -> IO Closure
- mk_WidgetRealizeCallback :: C_WidgetRealizeCallback -> IO (FunPtr C_WidgetRealizeCallback)
- noWidgetRealizeCallback :: Maybe WidgetRealizeCallback
- onWidgetRealize :: (GObject a, MonadIO m) => a -> WidgetRealizeCallback -> m SignalHandlerId
- wrap_WidgetRealizeCallback :: WidgetRealizeCallback -> Ptr () -> Ptr () -> IO ()
- type C_WidgetScreenChangedCallback = Ptr () -> Ptr Screen -> Ptr () -> IO ()
- type WidgetScreenChangedCallback = Maybe Screen -> IO ()
- data WidgetScreenChangedSignalInfo
- afterWidgetScreenChanged :: (GObject a, MonadIO m) => a -> WidgetScreenChangedCallback -> m SignalHandlerId
- genClosure_WidgetScreenChanged :: WidgetScreenChangedCallback -> IO Closure
- mk_WidgetScreenChangedCallback :: C_WidgetScreenChangedCallback -> IO (FunPtr C_WidgetScreenChangedCallback)
- noWidgetScreenChangedCallback :: Maybe WidgetScreenChangedCallback
- onWidgetScreenChanged :: (GObject a, MonadIO m) => a -> WidgetScreenChangedCallback -> m SignalHandlerId
- wrap_WidgetScreenChangedCallback :: WidgetScreenChangedCallback -> Ptr () -> Ptr Screen -> Ptr () -> IO ()
- type C_WidgetScrollEventCallback = Ptr () -> Ptr EventScroll -> Ptr () -> IO CInt
- type WidgetScrollEventCallback = EventScroll -> IO Bool
- data WidgetScrollEventSignalInfo
- afterWidgetScrollEvent :: (GObject a, MonadIO m) => a -> WidgetScrollEventCallback -> m SignalHandlerId
- genClosure_WidgetScrollEvent :: WidgetScrollEventCallback -> IO Closure
- mk_WidgetScrollEventCallback :: C_WidgetScrollEventCallback -> IO (FunPtr C_WidgetScrollEventCallback)
- noWidgetScrollEventCallback :: Maybe WidgetScrollEventCallback
- onWidgetScrollEvent :: (GObject a, MonadIO m) => a -> WidgetScrollEventCallback -> m SignalHandlerId
- wrap_WidgetScrollEventCallback :: WidgetScrollEventCallback -> Ptr () -> Ptr EventScroll -> Ptr () -> IO CInt
- type C_WidgetSelectionClearEventCallback = Ptr () -> Ptr EventSelection -> Ptr () -> IO CInt
- type WidgetSelectionClearEventCallback = EventSelection -> IO Bool
- data WidgetSelectionClearEventSignalInfo
- afterWidgetSelectionClearEvent :: (GObject a, MonadIO m) => a -> WidgetSelectionClearEventCallback -> m SignalHandlerId
- genClosure_WidgetSelectionClearEvent :: WidgetSelectionClearEventCallback -> IO Closure
- mk_WidgetSelectionClearEventCallback :: C_WidgetSelectionClearEventCallback -> IO (FunPtr C_WidgetSelectionClearEventCallback)
- noWidgetSelectionClearEventCallback :: Maybe WidgetSelectionClearEventCallback
- onWidgetSelectionClearEvent :: (GObject a, MonadIO m) => a -> WidgetSelectionClearEventCallback -> m SignalHandlerId
- wrap_WidgetSelectionClearEventCallback :: WidgetSelectionClearEventCallback -> Ptr () -> Ptr EventSelection -> Ptr () -> IO CInt
- type C_WidgetSelectionGetCallback = Ptr () -> Ptr SelectionData -> Word32 -> Word32 -> Ptr () -> IO ()
- type WidgetSelectionGetCallback = SelectionData -> Word32 -> Word32 -> IO ()
- data WidgetSelectionGetSignalInfo
- afterWidgetSelectionGet :: (GObject a, MonadIO m) => a -> WidgetSelectionGetCallback -> m SignalHandlerId
- genClosure_WidgetSelectionGet :: WidgetSelectionGetCallback -> IO Closure
- mk_WidgetSelectionGetCallback :: C_WidgetSelectionGetCallback -> IO (FunPtr C_WidgetSelectionGetCallback)
- noWidgetSelectionGetCallback :: Maybe WidgetSelectionGetCallback
- onWidgetSelectionGet :: (GObject a, MonadIO m) => a -> WidgetSelectionGetCallback -> m SignalHandlerId
- wrap_WidgetSelectionGetCallback :: WidgetSelectionGetCallback -> Ptr () -> Ptr SelectionData -> Word32 -> Word32 -> Ptr () -> IO ()
- type C_WidgetSelectionNotifyEventCallback = Ptr () -> Ptr EventSelection -> Ptr () -> IO CInt
- type WidgetSelectionNotifyEventCallback = EventSelection -> IO Bool
- data WidgetSelectionNotifyEventSignalInfo
- afterWidgetSelectionNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetSelectionNotifyEventCallback -> m SignalHandlerId
- genClosure_WidgetSelectionNotifyEvent :: WidgetSelectionNotifyEventCallback -> IO Closure
- mk_WidgetSelectionNotifyEventCallback :: C_WidgetSelectionNotifyEventCallback -> IO (FunPtr C_WidgetSelectionNotifyEventCallback)
- noWidgetSelectionNotifyEventCallback :: Maybe WidgetSelectionNotifyEventCallback
- onWidgetSelectionNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetSelectionNotifyEventCallback -> m SignalHandlerId
- wrap_WidgetSelectionNotifyEventCallback :: WidgetSelectionNotifyEventCallback -> Ptr () -> Ptr EventSelection -> Ptr () -> IO CInt
- type C_WidgetSelectionReceivedCallback = Ptr () -> Ptr SelectionData -> Word32 -> Ptr () -> IO ()
- type WidgetSelectionReceivedCallback = SelectionData -> Word32 -> IO ()
- data WidgetSelectionReceivedSignalInfo
- afterWidgetSelectionReceived :: (GObject a, MonadIO m) => a -> WidgetSelectionReceivedCallback -> m SignalHandlerId
- genClosure_WidgetSelectionReceived :: WidgetSelectionReceivedCallback -> IO Closure
- mk_WidgetSelectionReceivedCallback :: C_WidgetSelectionReceivedCallback -> IO (FunPtr C_WidgetSelectionReceivedCallback)
- noWidgetSelectionReceivedCallback :: Maybe WidgetSelectionReceivedCallback
- onWidgetSelectionReceived :: (GObject a, MonadIO m) => a -> WidgetSelectionReceivedCallback -> m SignalHandlerId
- wrap_WidgetSelectionReceivedCallback :: WidgetSelectionReceivedCallback -> Ptr () -> Ptr SelectionData -> Word32 -> Ptr () -> IO ()
- type C_WidgetSelectionRequestEventCallback = Ptr () -> Ptr EventSelection -> Ptr () -> IO CInt
- type WidgetSelectionRequestEventCallback = EventSelection -> IO Bool
- data WidgetSelectionRequestEventSignalInfo
- afterWidgetSelectionRequestEvent :: (GObject a, MonadIO m) => a -> WidgetSelectionRequestEventCallback -> m SignalHandlerId
- genClosure_WidgetSelectionRequestEvent :: WidgetSelectionRequestEventCallback -> IO Closure
- mk_WidgetSelectionRequestEventCallback :: C_WidgetSelectionRequestEventCallback -> IO (FunPtr C_WidgetSelectionRequestEventCallback)
- noWidgetSelectionRequestEventCallback :: Maybe WidgetSelectionRequestEventCallback
- onWidgetSelectionRequestEvent :: (GObject a, MonadIO m) => a -> WidgetSelectionRequestEventCallback -> m SignalHandlerId
- wrap_WidgetSelectionRequestEventCallback :: WidgetSelectionRequestEventCallback -> Ptr () -> Ptr EventSelection -> Ptr () -> IO CInt
- type C_WidgetShowCallback = Ptr () -> Ptr () -> IO ()
- type WidgetShowCallback = IO ()
- data WidgetShowSignalInfo
- afterWidgetShow :: (GObject a, MonadIO m) => a -> WidgetShowCallback -> m SignalHandlerId
- genClosure_WidgetShow :: WidgetShowCallback -> IO Closure
- mk_WidgetShowCallback :: C_WidgetShowCallback -> IO (FunPtr C_WidgetShowCallback)
- noWidgetShowCallback :: Maybe WidgetShowCallback
- onWidgetShow :: (GObject a, MonadIO m) => a -> WidgetShowCallback -> m SignalHandlerId
- wrap_WidgetShowCallback :: WidgetShowCallback -> Ptr () -> Ptr () -> IO ()
- type C_WidgetShowHelpCallback = Ptr () -> CUInt -> Ptr () -> IO CInt
- type WidgetShowHelpCallback = WidgetHelpType -> IO Bool
- data WidgetShowHelpSignalInfo
- afterWidgetShowHelp :: (GObject a, MonadIO m) => a -> WidgetShowHelpCallback -> m SignalHandlerId
- genClosure_WidgetShowHelp :: WidgetShowHelpCallback -> IO Closure
- mk_WidgetShowHelpCallback :: C_WidgetShowHelpCallback -> IO (FunPtr C_WidgetShowHelpCallback)
- noWidgetShowHelpCallback :: Maybe WidgetShowHelpCallback
- onWidgetShowHelp :: (GObject a, MonadIO m) => a -> WidgetShowHelpCallback -> m SignalHandlerId
- wrap_WidgetShowHelpCallback :: WidgetShowHelpCallback -> Ptr () -> CUInt -> Ptr () -> IO CInt
- type C_WidgetSizeAllocateCallback = Ptr () -> Ptr Rectangle -> Ptr () -> IO ()
- type WidgetSizeAllocateCallback = Rectangle -> IO ()
- data WidgetSizeAllocateSignalInfo
- afterWidgetSizeAllocate :: (GObject a, MonadIO m) => a -> WidgetSizeAllocateCallback -> m SignalHandlerId
- genClosure_WidgetSizeAllocate :: WidgetSizeAllocateCallback -> IO Closure
- mk_WidgetSizeAllocateCallback :: C_WidgetSizeAllocateCallback -> IO (FunPtr C_WidgetSizeAllocateCallback)
- noWidgetSizeAllocateCallback :: Maybe WidgetSizeAllocateCallback
- onWidgetSizeAllocate :: (GObject a, MonadIO m) => a -> WidgetSizeAllocateCallback -> m SignalHandlerId
- wrap_WidgetSizeAllocateCallback :: WidgetSizeAllocateCallback -> Ptr () -> Ptr Rectangle -> Ptr () -> IO ()
- type C_WidgetStateChangedCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type WidgetStateChangedCallback = StateType -> IO ()
- data WidgetStateChangedSignalInfo
- afterWidgetStateChanged :: (GObject a, MonadIO m) => a -> WidgetStateChangedCallback -> m SignalHandlerId
- genClosure_WidgetStateChanged :: WidgetStateChangedCallback -> IO Closure
- mk_WidgetStateChangedCallback :: C_WidgetStateChangedCallback -> IO (FunPtr C_WidgetStateChangedCallback)
- noWidgetStateChangedCallback :: Maybe WidgetStateChangedCallback
- onWidgetStateChanged :: (GObject a, MonadIO m) => a -> WidgetStateChangedCallback -> m SignalHandlerId
- wrap_WidgetStateChangedCallback :: WidgetStateChangedCallback -> Ptr () -> CUInt -> Ptr () -> IO ()
- type C_WidgetStateFlagsChangedCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type WidgetStateFlagsChangedCallback = [StateFlags] -> IO ()
- data WidgetStateFlagsChangedSignalInfo
- afterWidgetStateFlagsChanged :: (GObject a, MonadIO m) => a -> WidgetStateFlagsChangedCallback -> m SignalHandlerId
- genClosure_WidgetStateFlagsChanged :: WidgetStateFlagsChangedCallback -> IO Closure
- mk_WidgetStateFlagsChangedCallback :: C_WidgetStateFlagsChangedCallback -> IO (FunPtr C_WidgetStateFlagsChangedCallback)
- noWidgetStateFlagsChangedCallback :: Maybe WidgetStateFlagsChangedCallback
- onWidgetStateFlagsChanged :: (GObject a, MonadIO m) => a -> WidgetStateFlagsChangedCallback -> m SignalHandlerId
- wrap_WidgetStateFlagsChangedCallback :: WidgetStateFlagsChangedCallback -> Ptr () -> CUInt -> Ptr () -> IO ()
- type C_WidgetStyleSetCallback = Ptr () -> Ptr Style -> Ptr () -> IO ()
- type WidgetStyleSetCallback = Maybe Style -> IO ()
- data WidgetStyleSetSignalInfo
- afterWidgetStyleSet :: (GObject a, MonadIO m) => a -> WidgetStyleSetCallback -> m SignalHandlerId
- genClosure_WidgetStyleSet :: WidgetStyleSetCallback -> IO Closure
- mk_WidgetStyleSetCallback :: C_WidgetStyleSetCallback -> IO (FunPtr C_WidgetStyleSetCallback)
- noWidgetStyleSetCallback :: Maybe WidgetStyleSetCallback
- onWidgetStyleSet :: (GObject a, MonadIO m) => a -> WidgetStyleSetCallback -> m SignalHandlerId
- wrap_WidgetStyleSetCallback :: WidgetStyleSetCallback -> Ptr () -> Ptr Style -> Ptr () -> IO ()
- type C_WidgetStyleUpdatedCallback = Ptr () -> Ptr () -> IO ()
- type WidgetStyleUpdatedCallback = IO ()
- data WidgetStyleUpdatedSignalInfo
- afterWidgetStyleUpdated :: (GObject a, MonadIO m) => a -> WidgetStyleUpdatedCallback -> m SignalHandlerId
- genClosure_WidgetStyleUpdated :: WidgetStyleUpdatedCallback -> IO Closure
- mk_WidgetStyleUpdatedCallback :: C_WidgetStyleUpdatedCallback -> IO (FunPtr C_WidgetStyleUpdatedCallback)
- noWidgetStyleUpdatedCallback :: Maybe WidgetStyleUpdatedCallback
- onWidgetStyleUpdated :: (GObject a, MonadIO m) => a -> WidgetStyleUpdatedCallback -> m SignalHandlerId
- wrap_WidgetStyleUpdatedCallback :: WidgetStyleUpdatedCallback -> Ptr () -> Ptr () -> IO ()
- type C_WidgetTouchEventCallback = Ptr () -> Ptr Event -> Ptr () -> IO CInt
- type WidgetTouchEventCallback = Event -> IO Bool
- data WidgetTouchEventSignalInfo
- afterWidgetTouchEvent :: (GObject a, MonadIO m) => a -> WidgetTouchEventCallback -> m SignalHandlerId
- genClosure_WidgetTouchEvent :: WidgetTouchEventCallback -> IO Closure
- mk_WidgetTouchEventCallback :: C_WidgetTouchEventCallback -> IO (FunPtr C_WidgetTouchEventCallback)
- noWidgetTouchEventCallback :: Maybe WidgetTouchEventCallback
- onWidgetTouchEvent :: (GObject a, MonadIO m) => a -> WidgetTouchEventCallback -> m SignalHandlerId
- wrap_WidgetTouchEventCallback :: WidgetTouchEventCallback -> Ptr () -> Ptr Event -> Ptr () -> IO CInt
- type C_WidgetUnmapCallback = Ptr () -> Ptr () -> IO ()
- type WidgetUnmapCallback = IO ()
- data WidgetUnmapSignalInfo
- afterWidgetUnmap :: (GObject a, MonadIO m) => a -> WidgetUnmapCallback -> m SignalHandlerId
- genClosure_WidgetUnmap :: WidgetUnmapCallback -> IO Closure
- mk_WidgetUnmapCallback :: C_WidgetUnmapCallback -> IO (FunPtr C_WidgetUnmapCallback)
- noWidgetUnmapCallback :: Maybe WidgetUnmapCallback
- onWidgetUnmap :: (GObject a, MonadIO m) => a -> WidgetUnmapCallback -> m SignalHandlerId
- wrap_WidgetUnmapCallback :: WidgetUnmapCallback -> Ptr () -> Ptr () -> IO ()
- type C_WidgetUnmapEventCallback = Ptr () -> Ptr EventAny -> Ptr () -> IO CInt
- type WidgetUnmapEventCallback = EventAny -> IO Bool
- data WidgetUnmapEventSignalInfo
- afterWidgetUnmapEvent :: (GObject a, MonadIO m) => a -> WidgetUnmapEventCallback -> m SignalHandlerId
- genClosure_WidgetUnmapEvent :: WidgetUnmapEventCallback -> IO Closure
- mk_WidgetUnmapEventCallback :: C_WidgetUnmapEventCallback -> IO (FunPtr C_WidgetUnmapEventCallback)
- noWidgetUnmapEventCallback :: Maybe WidgetUnmapEventCallback
- onWidgetUnmapEvent :: (GObject a, MonadIO m) => a -> WidgetUnmapEventCallback -> m SignalHandlerId
- wrap_WidgetUnmapEventCallback :: WidgetUnmapEventCallback -> Ptr () -> Ptr EventAny -> Ptr () -> IO CInt
- type C_WidgetUnrealizeCallback = Ptr () -> Ptr () -> IO ()
- type WidgetUnrealizeCallback = IO ()
- data WidgetUnrealizeSignalInfo
- afterWidgetUnrealize :: (GObject a, MonadIO m) => a -> WidgetUnrealizeCallback -> m SignalHandlerId
- genClosure_WidgetUnrealize :: WidgetUnrealizeCallback -> IO Closure
- mk_WidgetUnrealizeCallback :: C_WidgetUnrealizeCallback -> IO (FunPtr C_WidgetUnrealizeCallback)
- noWidgetUnrealizeCallback :: Maybe WidgetUnrealizeCallback
- onWidgetUnrealize :: (GObject a, MonadIO m) => a -> WidgetUnrealizeCallback -> m SignalHandlerId
- wrap_WidgetUnrealizeCallback :: WidgetUnrealizeCallback -> Ptr () -> Ptr () -> IO ()
- type C_WidgetVisibilityNotifyEventCallback = Ptr () -> Ptr EventVisibility -> Ptr () -> IO CInt
- type WidgetVisibilityNotifyEventCallback = EventVisibility -> IO Bool
- data WidgetVisibilityNotifyEventSignalInfo
- afterWidgetVisibilityNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetVisibilityNotifyEventCallback -> m SignalHandlerId
- genClosure_WidgetVisibilityNotifyEvent :: WidgetVisibilityNotifyEventCallback -> IO Closure
- mk_WidgetVisibilityNotifyEventCallback :: C_WidgetVisibilityNotifyEventCallback -> IO (FunPtr C_WidgetVisibilityNotifyEventCallback)
- noWidgetVisibilityNotifyEventCallback :: Maybe WidgetVisibilityNotifyEventCallback
- onWidgetVisibilityNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetVisibilityNotifyEventCallback -> m SignalHandlerId
- wrap_WidgetVisibilityNotifyEventCallback :: WidgetVisibilityNotifyEventCallback -> Ptr () -> Ptr EventVisibility -> Ptr () -> IO CInt
- type C_WidgetWindowStateEventCallback = Ptr () -> Ptr EventWindowState -> Ptr () -> IO CInt
- type WidgetWindowStateEventCallback = EventWindowState -> IO Bool
- data WidgetWindowStateEventSignalInfo
- afterWidgetWindowStateEvent :: (GObject a, MonadIO m) => a -> WidgetWindowStateEventCallback -> m SignalHandlerId
- genClosure_WidgetWindowStateEvent :: WidgetWindowStateEventCallback -> IO Closure
- mk_WidgetWindowStateEventCallback :: C_WidgetWindowStateEventCallback -> IO (FunPtr C_WidgetWindowStateEventCallback)
- noWidgetWindowStateEventCallback :: Maybe WidgetWindowStateEventCallback
- onWidgetWindowStateEvent :: (GObject a, MonadIO m) => a -> WidgetWindowStateEventCallback -> m SignalHandlerId
- wrap_WidgetWindowStateEventCallback :: WidgetWindowStateEventCallback -> Ptr () -> Ptr EventWindowState -> Ptr () -> IO CInt
Exported types
GObject Widget Source # | |
IsImplementorIface Widget Source # | |
IsObject Widget Source # | |
IsWidget Widget Source # | |
IsBuildable Widget Source # | |
((~) * info (ResolveWidgetMethod t Widget), MethodInfo * info Widget p) => IsLabel t (Widget -> p) Source # | |
((~) * info (ResolveWidgetMethod t Widget), MethodInfo * info Widget p) => IsLabelProxy t (Widget -> p) Source # | |
HasAttributeList * Widget Source # | |
type AttributeList Widget Source # | |
type SignalList Widget Source # | |
class GObject o => IsWidget o Source #
Methods
activate
data WidgetActivateMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetActivateMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
For widgets that can be “activated” (buttons, menu items, etc.)
this function activates them. Activation is what happens when you
press Enter on a widget during key navigation. If widget
isn't
activatable, the function returns False
.
addAccelerator
data WidgetAddAcceleratorMethodInfo Source #
((~) * signature (Text -> b -> Word32 -> [ModifierType] -> [AccelFlags] -> m ()), MonadIO m, IsWidget a, IsAccelGroup b) => MethodInfo * WidgetAddAcceleratorMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a, IsAccelGroup b) | |
=> a |
|
-> Text |
|
-> b |
|
-> Word32 |
|
-> [ModifierType] |
|
-> [AccelFlags] |
|
-> m () |
Installs an accelerator for this widget
in accelGroup
that causes
accelSignal
to be emitted if the accelerator is activated.
The accelGroup
needs to be added to the widget’s toplevel via
windowAddAccelGroup
, and the signal must be of type SignalFlagsAction
.
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 accelMapAddEntry
and widgetSetAccelPath
or
menuItemSetAccelPath
instead.
addDeviceEvents
data WidgetAddDeviceEventsMethodInfo Source #
((~) * signature (b -> [EventMask] -> m ()), MonadIO m, IsWidget a, IsDevice b) => MethodInfo * WidgetAddDeviceEventsMethodInfo a signature Source # | |
widgetAddDeviceEvents Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsDevice b) | |
=> a |
|
-> b |
|
-> [EventMask] |
|
-> m () |
Adds the device events in the bitfield events
to the event mask for
widget
. See widgetSetDeviceEvents
for details.
Since: 3.0
addEvents
data WidgetAddEventsMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetAddEventsMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Int32 |
|
-> m () |
Adds the events in the bitfield events
to the event mask for
widget
. See widgetSetEvents
and the
[input handling overview][event-masks] for details.
addMnemonicLabel
data WidgetAddMnemonicLabelMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsWidget a, IsWidget b) => MethodInfo * WidgetAddMnemonicLabelMethodInfo a signature Source # | |
widgetAddMnemonicLabel Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) | |
=> a |
|
-> b |
|
-> m () |
Adds a widget to the list of mnemonic labels for
this widget. (See widgetListMnemonicLabels
). 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 Widget
::destroy
signal or a weak notifier.
Since: 2.4
addTickCallback
data WidgetAddTickCallbackMethodInfo Source #
((~) * signature (TickCallback -> m Word32), MonadIO m, IsWidget a) => MethodInfo * WidgetAddTickCallbackMethodInfo a signature Source # | |
widgetAddTickCallback Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> TickCallback |
|
-> m Word32 | Returns: an id for the connection of this callback. Remove the callback
by passing it to |
Queues an animation frame update and adds a callback to be called
before each frame. Until the tick callback is removed, it will be
called frequently (usually at the frame rate of the output device
or as quickly as the application can be repainted, whichever is
slower). For this reason, is most suitable for handling graphics
that change every frame or every few frames. The tick callback does
not automatically imply a relayout or repaint. If you want a
repaint or relayout, and aren’t changing widget properties that
would trigger that (for example, changing the text of a Label
),
then you will have to call widgetQueueResize
or
widgetQueueDrawArea
yourself.
frameClockGetFrameTime
should generally be used for timing
continuous animations and
frameTimingsGetPredictedPresentationTime
if you are
trying to display isolated frames at particular times.
This is a more convenient alternative to connecting directly to the
FrameClock
::update
signal of FrameClock
, since you don't
have to worry about when a FrameClock
is assigned to a widget.
Since: 3.8
canActivateAccel
data WidgetCanActivateAccelMethodInfo Source #
((~) * signature (Word32 -> m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetCanActivateAccelMethodInfo a signature Source # | |
widgetCanActivateAccel Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Word32 |
|
-> m Bool | Returns: |
Determines whether an accelerator that activates the signal
identified by signalId
can currently be activated.
This is done by emitting the Widget
::can-activate-accel
signal on widget
; 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.
Since: 2.4
childFocus
data WidgetChildFocusMethodInfo Source #
((~) * signature (DirectionType -> m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetChildFocusMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> DirectionType |
|
-> m Bool | Returns: |
This function is used by custom widget implementations; if you're
writing an app, you’d use widgetGrabFocus
to move the focus
to a particular widget, and containerSetFocusChain
to
change the focus tab order. So you may want to investigate those
functions instead.
widgetChildFocus
is called by containers as the user moves
around the window using keyboard shortcuts. direction
indicates
what kind of motion is taking place (up, down, left, right, tab
forward, tab backward). widgetChildFocus
emits the
Widget
::focus
signal; widgets override the default handler
for this signal in order to implement appropriate focus behavior.
The default ::focus handler for a widget should return True
if
moving in direction
left the focus on a focusable location inside
that widget, and False
if moving in direction
moved the focus
outside the widget. If returning True
, widgets normally
call widgetGrabFocus
to place the focus accordingly;
if returning False
, they don’t modify the current focus location.
childNotify
data WidgetChildNotifyMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetChildNotifyMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Text |
|
-> m () |
Emits a Widget
::child-notify
signal for the
[child property][child-properties] childProperty
on widget
.
This is the analogue of objectNotify
for child properties.
Also see containerChildNotify
.
classPath
Deprecated: (Since version 3.0)Use widgetGetPath
instead
Same as widgetPath
, but always uses the name of a widget’s type,
never uses a custom name set with widgetSetName
.
computeExpand
data WidgetComputeExpandMethodInfo Source #
((~) * signature (Orientation -> m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetComputeExpandMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Orientation |
|
-> m Bool | Returns: whether widget tree rooted here should be expanded |
Computes whether a container should give this widget extra space
when possible. Containers should check this, rather than
looking at widgetGetHexpand
or widgetGetVexpand
.
This function already checks whether the widget is visible, so visibility does not need to be checked separately. Non-visible widgets are not expanded.
The computed expand value uses either the expand setting explicitly set on the widget itself, or, if none has been explicitly set, the widget may expand if some of its children do.
createPangoContext
data WidgetCreatePangoContextMethodInfo Source #
((~) * signature (m Context), MonadIO m, IsWidget a) => MethodInfo * WidgetCreatePangoContextMethodInfo a signature Source # | |
widgetCreatePangoContext Source #
Creates a new Context
with the appropriate font map,
font options, font description, and base direction for drawing
text for this widget. See also widgetGetPangoContext
.
createPangoLayout
widgetCreatePangoLayout Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Maybe Text |
|
-> m Layout | Returns: the new |
Creates a new Layout
with the appropriate font map,
font description, and base direction for drawing text for
this widget.
If you keep a Layout
created in this way around, you need
to re-create it when the widget Context
is replaced.
This can be tracked by using the Widget
::screen-changed
signal
on the widget.
destroy
data WidgetDestroyMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDestroyMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Destroys a widget.
When a widget is destroyed all references it holds on other objects will be released:
- if the widget is inside a container, it will be removed from its parent
- if the widget is a container, all its children will be destroyed, recursively
- if the widget is a top level, it will be removed from the list of top level widgets that GTK+ maintains internally
It's expected that all references held on the widget will also
be released; you should connect to the Widget
::destroy
signal
if you hold a reference to widget
and you wish to remove it when
this function is called. It is not necessary to do so if you are
implementing a Container
, as you'll be able to use the
ContainerClass
.remove
() virtual function for that.
It's important to notice that widgetDestroy
will only cause
the widget
to be finalized if no additional references, acquired
using objectRef
, are held on it. In case additional references
are in place, the widget
will be in an "inert" state after calling
this function; widget
will still point to valid memory, allowing you
to release the references you hold, but you may not query the widget's
own state.
You should typically call this function on top level widgets, and rarely on child widgets.
See also: containerRemove
destroyed
data WidgetDestroyedMethodInfo Source #
((~) * signature (b -> m Widget), MonadIO m, IsWidget a, IsWidget b) => MethodInfo * WidgetDestroyedMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) | |
=> a |
|
-> b |
|
-> m Widget |
This function sets *widgetPointer
to Nothing
if widgetPointer
!=
Nothing
. It’s intended to be used as a callback connected to the
“destroy” signal of a widget. You connect widgetDestroyed
as a signal handler, and pass the address of your widget variable
as user data. Then when the widget is destroyed, the variable will
be set to Nothing
. Useful for example to avoid multiple copies
of the same dialog.
deviceIsShadowed
data WidgetDeviceIsShadowedMethodInfo Source #
((~) * signature (b -> m Bool), MonadIO m, IsWidget a, IsDevice b) => MethodInfo * WidgetDeviceIsShadowedMethodInfo a signature Source # | |
widgetDeviceIsShadowed Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsDevice b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: |
Returns True
if device
has been shadowed by a GTK+
device grab on another widget, so it would stop sending
events to widget
. This may be used in the
Widget
::grab-notify
signal to check for specific
devices. See deviceGrabAdd
.
Since: 3.0
dragBegin
data WidgetDragBeginMethodInfo Source #
((~) * signature (TargetList -> [DragAction] -> Int32 -> Maybe Event -> m DragContext), MonadIO m, IsWidget a) => MethodInfo * WidgetDragBeginMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> TargetList |
|
-> [DragAction] |
|
-> Int32 |
|
-> Maybe Event |
|
-> m DragContext | Returns: the context for this drag |
Deprecated: (Since version 3.10)Use widgetDragBeginWithCoordinates
instead
This function is equivalent to widgetDragBeginWithCoordinates
,
passing -1, -1 as coordinates.
dragBeginWithCoordinates
data WidgetDragBeginWithCoordinatesMethodInfo Source #
((~) * signature (TargetList -> [DragAction] -> Int32 -> Maybe Event -> Int32 -> Int32 -> m DragContext), MonadIO m, IsWidget a) => MethodInfo * WidgetDragBeginWithCoordinatesMethodInfo a signature Source # | |
widgetDragBeginWithCoordinates Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> TargetList |
|
-> [DragAction] |
|
-> Int32 |
|
-> Maybe Event |
|
-> Int32 |
|
-> Int32 |
|
-> m DragContext | Returns: the context for this drag |
Initiates a drag on the source side. The function only needs to be used
when the application is starting drags itself, and is not needed when
widgetDragSourceSet
is used.
The event
is used to retrieve the timestamp that will be used internally to
grab the pointer. If event
is Nothing
, then CURRENT_TIME
will be used.
However, you should try to pass a real event in all cases, since that can be
used to get information about the drag.
Generally there are three cases when you want to start a drag by hand by calling this function:
- During a
Widget
::button-press-event
handler, if you want to start a drag immediately when the user presses the mouse button. Pass theevent
that you have in yourWidget
::button-press-event
handler. - During a
Widget
::motion-notify-event
handler, if you want to start a drag when the mouse moves past a certain threshold distance after a button-press. Pass theevent
that you have in yourWidget
::motion-notify-event
handler. - During a timeout handler, if you want to start a drag after the mouse
button is held down for some time. Try to save the last event that you got
from the mouse, using
eventCopy
, and pass it to this function (remember to free the event witheventFree
when you are done). If you can really not pass a real event, passNULL
instead.
Since: 3.10
dragCheckThreshold
widgetDragCheckThreshold Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m Bool | Returns: |
Checks to see if a mouse drag starting at (startX
, startY
) and ending
at (currentX
, currentY
) has passed the GTK+ drag threshold, and thus
should trigger the beginning of a drag-and-drop operation.
dragDestAddImageTargets
data WidgetDragDestAddImageTargetsMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragDestAddImageTargetsMethodInfo a signature Source # | |
widgetDragDestAddImageTargets Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Add the image targets supported by SelectionData
to
the target list of the drag destination. The targets
are added with info
= 0. If you need another value,
use targetListAddImageTargets
and
widgetDragDestSetTargetList
.
Since: 2.6
dragDestAddTextTargets
data WidgetDragDestAddTextTargetsMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragDestAddTextTargetsMethodInfo a signature Source # | |
widgetDragDestAddTextTargets Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Add the text targets supported by SelectionData
to
the target list of the drag destination. The targets
are added with info
= 0. If you need another value,
use targetListAddTextTargets
and
widgetDragDestSetTargetList
.
Since: 2.6
dragDestAddUriTargets
data WidgetDragDestAddUriTargetsMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragDestAddUriTargetsMethodInfo a signature Source # | |
widgetDragDestAddUriTargets Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Add the URI targets supported by SelectionData
to
the target list of the drag destination. The targets
are added with info
= 0. If you need another value,
use targetListAddUriTargets
and
widgetDragDestSetTargetList
.
Since: 2.6
dragDestFindTarget
data WidgetDragDestFindTargetMethodInfo Source #
((~) * signature (b -> Maybe TargetList -> m Atom), MonadIO m, IsWidget a, IsDragContext b) => MethodInfo * WidgetDragDestFindTargetMethodInfo a signature Source # | |
widgetDragDestFindTarget Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsDragContext b) | |
=> a |
|
-> b |
|
-> Maybe TargetList |
|
-> m Atom | Returns: first target that the source offers
and the dest can accept, or |
Looks for a match between the supported targets of context
and the
destTargetList
, returning the first matching target, otherwise
returning GDK_NONE
. destTargetList
should usually be the return
value from widgetDragDestGetTargetList
, 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.
dragDestGetTargetList
data WidgetDragDestGetTargetListMethodInfo Source #
((~) * signature (m (Maybe TargetList)), MonadIO m, IsWidget a) => MethodInfo * WidgetDragDestGetTargetListMethodInfo a signature Source # | |
widgetDragDestGetTargetList Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m (Maybe TargetList) | Returns: the |
Returns the list of targets this widget can accept from drag-and-drop.
dragDestGetTrackMotion
data WidgetDragDestGetTrackMotionMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetDragDestGetTrackMotionMethodInfo a signature Source # | |
widgetDragDestGetTrackMotion Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether the widget has been configured to always
emit Widget
::drag-motion
signals.
Since: 2.10
dragDestSet
data WidgetDragDestSetMethodInfo Source #
((~) * signature ([DestDefaults] -> Maybe [TargetEntry] -> [DragAction] -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragDestSetMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> [DestDefaults] |
|
-> Maybe [TargetEntry] |
|
-> [DragAction] |
|
-> m () |
Sets a widget as a potential drop destination, and adds default behaviors.
The default behaviors listed in flags
have an effect similar
to installing default handlers for the widget’s drag-and-drop signals
(Widget
::drag-motion
, Widget
::drag-drop
, ...). They all exist
for convenience. When passing GTK_DEST_DEFAULT_ALL
for instance it is
sufficient to connect to the widget’s Widget
::drag-data-received
signal to get primitive, but consistent drag-and-drop support.
Things become more complicated when you try to preview the dragged data,
as described in the documentation for Widget
::drag-motion
. The default
behaviors described by flags
make some assumptions, that can conflict
with your own signal handlers. For instance GTK_DEST_DEFAULT_DROP
causes
invokations of dragStatus
in the context of Widget
::drag-motion
,
and invokations of dragFinish
in Widget
::drag-data-received
.
Especially the later is dramatic, when your own Widget
::drag-motion
handler calls widgetDragGetData
to inspect the dragged data.
There’s no way to set a default action here, you can use the
Widget
::drag-motion
callback for that. Here’s an example which selects
the action to use depending on whether the control key is pressed or not:
C code
static void drag_motion (GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint time) { GdkModifierType mask; gdk_window_get_pointer (gtk_widget_get_window (widget), NULL, NULL, &mask); if (mask & GDK_CONTROL_MASK) gdk_drag_status (context, GDK_ACTION_COPY, time); else gdk_drag_status (context, GDK_ACTION_MOVE, time); }
dragDestSetProxy
data WidgetDragDestSetProxyMethodInfo Source #
((~) * signature (b -> DragProtocol -> Bool -> m ()), MonadIO m, IsWidget a, IsWindow b) => MethodInfo * WidgetDragDestSetProxyMethodInfo a signature Source # | |
widgetDragDestSetProxy Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsWindow b) | |
=> a |
|
-> b |
|
-> DragProtocol |
|
-> Bool |
|
-> m () |
Deprecated: (Since version 3.22)
Sets this widget as a proxy for drops to another window.
dragDestSetTargetList
data WidgetDragDestSetTargetListMethodInfo Source #
((~) * signature (Maybe TargetList -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragDestSetTargetListMethodInfo a signature Source # | |
widgetDragDestSetTargetList Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Maybe TargetList |
|
-> m () |
Sets the target types that this widget can accept from drag-and-drop.
The widget must first be made into a drag destination with
widgetDragDestSet
.
dragDestSetTrackMotion
data WidgetDragDestSetTrackMotionMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragDestSetTrackMotionMethodInfo a signature Source # | |
widgetDragDestSetTrackMotion Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Tells the widget to emit Widget
::drag-motion
and
Widget
::drag-leave
events regardless of the targets and the
DestDefaultsMotion
flag.
This may be used when a widget wants to do generic actions regardless of the targets that the source offers.
Since: 2.10
dragDestUnset
data WidgetDragDestUnsetMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragDestUnsetMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Clears information about a drop destination set with
widgetDragDestSet
. The widget will no longer receive
notification of drags.
dragGetData
data WidgetDragGetDataMethodInfo Source #
((~) * signature (b -> Atom -> Word32 -> m ()), MonadIO m, IsWidget a, IsDragContext b) => MethodInfo * WidgetDragGetDataMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a, IsDragContext b) | |
=> a |
|
-> b |
|
-> Atom |
|
-> Word32 |
|
-> m () |
Gets the data associated with a drag. When the data
is received or the retrieval fails, GTK+ will emit a
Widget
::drag-data-received
signal. Failure of the retrieval
is indicated by the length field of the selectionData
signal parameter being negative. However, when widgetDragGetData
is called implicitely because the DestDefaultsDrop
was set,
then the widget will not receive notification of failed
drops.
dragHighlight
data WidgetDragHighlightMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragHighlightMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Highlights a widget as a currently hovered drop target.
To end the highlight, call widgetDragUnhighlight
.
GTK+ calls this automatically if DestDefaultsHighlight
is set.
dragSourceAddImageTargets
data WidgetDragSourceAddImageTargetsMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragSourceAddImageTargetsMethodInfo a signature Source # | |
widgetDragSourceAddImageTargets Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Add the writable image targets supported by SelectionData
to
the target list of the drag source. The targets
are added with info
= 0. If you need another value,
use targetListAddImageTargets
and
widgetDragSourceSetTargetList
.
Since: 2.6
dragSourceAddTextTargets
data WidgetDragSourceAddTextTargetsMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragSourceAddTextTargetsMethodInfo a signature Source # | |
widgetDragSourceAddTextTargets Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Add the text targets supported by SelectionData
to
the target list of the drag source. The targets
are added with info
= 0. If you need another value,
use targetListAddTextTargets
and
widgetDragSourceSetTargetList
.
Since: 2.6
dragSourceAddUriTargets
data WidgetDragSourceAddUriTargetsMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragSourceAddUriTargetsMethodInfo a signature Source # | |
widgetDragSourceAddUriTargets Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Add the URI targets supported by SelectionData
to
the target list of the drag source. The targets
are added with info
= 0. If you need another value,
use targetListAddUriTargets
and
widgetDragSourceSetTargetList
.
Since: 2.6
dragSourceGetTargetList
data WidgetDragSourceGetTargetListMethodInfo Source #
((~) * signature (m (Maybe TargetList)), MonadIO m, IsWidget a) => MethodInfo * WidgetDragSourceGetTargetListMethodInfo a signature Source # | |
widgetDragSourceGetTargetList Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m (Maybe TargetList) | Returns: the |
Gets the list of targets this widget can provide for drag-and-drop.
Since: 2.4
dragSourceSet
data WidgetDragSourceSetMethodInfo Source #
((~) * signature ([ModifierType] -> Maybe [TargetEntry] -> [DragAction] -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragSourceSetMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> [ModifierType] |
|
-> Maybe [TargetEntry] |
|
-> [DragAction] |
|
-> m () |
Sets up a widget so that GTK+ will start a drag operation when the user clicks and drags on the widget. The widget must have a window.
dragSourceSetIconGicon
data WidgetDragSourceSetIconGiconMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsWidget a, IsIcon b) => MethodInfo * WidgetDragSourceSetIconGiconMethodInfo a signature Source # | |
widgetDragSourceSetIconGicon Source #
Sets the icon that will be used for drags from a particular source
to icon
. See the docs for IconTheme
for more details.
Since: 3.2
dragSourceSetIconName
data WidgetDragSourceSetIconNameMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragSourceSetIconNameMethodInfo a signature Source # | |
widgetDragSourceSetIconName Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the icon that will be used for drags from a particular source
to a themed icon. See the docs for IconTheme
for more details.
Since: 2.8
dragSourceSetIconPixbuf
data WidgetDragSourceSetIconPixbufMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsWidget a, IsPixbuf b) => MethodInfo * WidgetDragSourceSetIconPixbufMethodInfo a signature Source # | |
widgetDragSourceSetIconPixbuf Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsPixbuf b) | |
=> a |
|
-> b |
|
-> m () |
Sets the icon that will be used for drags from a particular widget
from a Pixbuf
. GTK+ retains a reference for pixbuf
and will
release it when it is no longer needed.
dragSourceSetIconStock
data WidgetDragSourceSetIconStockMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragSourceSetIconStockMethodInfo a signature Source # | |
widgetDragSourceSetIconStock Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Text |
|
-> m () |
Deprecated: (Since version 3.10)Use widgetDragSourceSetIconName
instead.
Sets the icon that will be used for drags from a particular source to a stock icon.
dragSourceSetTargetList
data WidgetDragSourceSetTargetListMethodInfo Source #
((~) * signature (Maybe TargetList -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragSourceSetTargetListMethodInfo a signature Source # | |
widgetDragSourceSetTargetList Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Maybe TargetList |
|
-> m () |
Changes the target types that this widget offers for drag-and-drop.
The widget must first be made into a drag source with
widgetDragSourceSet
.
Since: 2.4
dragSourceUnset
data WidgetDragSourceUnsetMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragSourceUnsetMethodInfo a signature Source # | |
widgetDragSourceUnset Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Undoes the effects of widgetDragSourceSet
.
dragUnhighlight
data WidgetDragUnhighlightMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDragUnhighlightMethodInfo a signature Source # | |
widgetDragUnhighlight Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Removes a highlight set by widgetDragHighlight
from
a widget.
draw
data WidgetDrawMethodInfo Source #
((~) * signature (Context -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetDrawMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Context |
|
-> m () |
Draws widget
to cr
. The top left corner of the widget will be
drawn to the currently set origin point of cr
.
You should pass a cairo context as cr
argument that is in an
original state. Otherwise the resulting drawing is undefined. For
example changing the operator using cairo_set_operator()
or the
line width using cairo_set_line_width()
might have unwanted side
effects.
You may however change the context’s transform matrix - like with
cairo_scale()
, cairo_translate()
or cairo_set_matrix()
and clip
region with cairo_clip()
prior to calling this function. Also, it
is fine to modify the context with cairo_save()
and
cairo_push_group()
prior to calling this function.
Note that special-purpose widgets may contain special code for
rendering to the screen and might appear differently on screen
and when rendered using widgetDraw
.
Since: 3.0
ensureStyle
data WidgetEnsureStyleMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetEnsureStyleMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Deprecated: (Since version 3.0)Use StyleContext
instead
Ensures that widget
has a style (widget
->style).
Not a very useful function; most of the time, if you want the style, the widget is realized, and realized widgets are guaranteed to have a style already.
errorBell
data WidgetErrorBellMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetErrorBellMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Notifies the user about an input-related error on this widget.
If the Settings
:gtk-error-bell
setting is True
, it calls
windowBeep
, otherwise it does nothing.
Note that the effect of windowBeep
can be configured in many
ways, depending on the windowing backend and the desktop environment
or window manager that is used.
Since: 2.12
event
data WidgetEventMethodInfo Source #
((~) * signature (Event -> m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetEventMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Event |
|
-> m Bool | Returns: return from the event signal emission ( |
Rarely-used function. This function is used to emit
the event signals on a widget (those signals should never
be emitted without using this function to do so).
If you want to synthesize an event though, don’t use this function;
instead, use mainDoEvent
so the event will behave as if
it were in the event queue. Don’t synthesize expose events; instead,
use windowInvalidateRect
to invalidate a region of the
window.
freezeChildNotify
data WidgetFreezeChildNotifyMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetFreezeChildNotifyMethodInfo a signature Source # | |
widgetFreezeChildNotify Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Stops emission of Widget
::child-notify
signals on widget
. The
signals are queued until widgetThawChildNotify
is called
on widget
.
This is the analogue of objectFreezeNotify
for child properties.
getAccessible
data WidgetGetAccessibleMethodInfo Source #
((~) * signature (m Object), MonadIO m, IsWidget a) => MethodInfo * WidgetGetAccessibleMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Object | Returns: the |
Returns the accessible object that describes the widget to an assistive technology.
If accessibility support is not available, this Object
instance may be a no-op. Likewise, if no class-specific Object
implementation is available for the widget instance in question,
it will inherit an Object
implementation from the first ancestor
class for which such an implementation is defined.
The documentation of the ATK library contains more information about accessible objects and their uses.
getActionGroup
data WidgetGetActionGroupMethodInfo Source #
((~) * signature (Text -> m (Maybe ActionGroup)), MonadIO m, IsWidget a) => MethodInfo * WidgetGetActionGroupMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Text |
|
-> m (Maybe ActionGroup) | Returns: A |
Retrieves the ActionGroup
that was registered using prefix
. The resulting
ActionGroup
may have been registered to widget
or any Widget
in its
ancestry.
If no action group was found matching prefix
, then Nothing
is returned.
Since: 3.16
getAllocatedBaseline
data WidgetGetAllocatedBaselineMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsWidget a) => MethodInfo * WidgetGetAllocatedBaselineMethodInfo a signature Source # | |
widgetGetAllocatedBaseline Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Int32 | Returns: the baseline of the |
getAllocatedHeight
data WidgetGetAllocatedHeightMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsWidget a) => MethodInfo * WidgetGetAllocatedHeightMethodInfo a signature Source # | |
widgetGetAllocatedHeight Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Int32 | Returns: the height of the |
Returns the height that has currently been allocated to widget
.
This function is intended to be used when implementing handlers
for the Widget
::draw
function.
getAllocatedSize
data WidgetGetAllocatedSizeMethodInfo Source #
((~) * signature (m (Rectangle, Int32)), MonadIO m, IsWidget a) => MethodInfo * WidgetGetAllocatedSizeMethodInfo a signature Source # | |
widgetGetAllocatedSize Source #
Retrieves the widget’s allocated size.
This function returns the last values passed to
widgetSizeAllocateWithBaseline
. The value differs from
the size returned in widgetGetAllocation
in that functions
like widgetSetHalign
can adjust the allocation, but not
the value returned by this function.
If a widget is not visible, its allocated size is 0.
Since: 3.20
getAllocatedWidth
data WidgetGetAllocatedWidthMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsWidget a) => MethodInfo * WidgetGetAllocatedWidthMethodInfo a signature Source # | |
widgetGetAllocatedWidth Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Int32 | Returns: the width of the |
Returns the width that has currently been allocated to widget
.
This function is intended to be used when implementing handlers
for the Widget
::draw
function.
getAllocation
data WidgetGetAllocationMethodInfo Source #
((~) * signature (m Rectangle), MonadIO m, IsWidget a) => MethodInfo * WidgetGetAllocationMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Rectangle |
Retrieves the widget’s allocation.
Note, when implementing a Container
: a widget’s allocation will
be its “adjusted” allocation, that is, the widget’s parent
container typically calls widgetSizeAllocate
with an
allocation, and that allocation is then adjusted (to handle margin
and alignment for example) before assignment to the widget.
widgetGetAllocation
returns the adjusted allocation that
was actually assigned to the widget. The adjusted allocation is
guaranteed to be completely contained within the
widgetSizeAllocate
allocation, however. So a Container
is guaranteed that its children stay inside the assigned bounds,
but not that they have exactly the bounds the container assigned.
There is no way to get the original allocation assigned by
widgetSizeAllocate
, since it isn’t stored; if a container
implementation needs that information it will have to track it itself.
Since: 2.18
getAncestor
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> GType |
|
-> m (Maybe Widget) | Returns: the ancestor widget, or |
Gets the first ancestor of widget
with type widgetType
. For example,
gtk_widget_get_ancestor (widget, GTK_TYPE_BOX)
gets
the first Box
that’s an ancestor of widget
. 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
widgetGetToplevel
.
Note that unlike widgetIsAncestor
, widgetGetAncestor
considers widget
to be an ancestor of itself.
getAppPaintable
data WidgetGetAppPaintableMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetAppPaintableMethodInfo a signature Source # | |
widgetGetAppPaintable Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Determines whether the application intends to draw on the widget in
an Widget
::draw
handler.
Since: 2.18
getCanDefault
data WidgetGetCanDefaultMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetCanDefaultMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Determines whether widget
can be a default widget. See
widgetSetCanDefault
.
Since: 2.18
getCanFocus
data WidgetGetCanFocusMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetCanFocusMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Determines whether widget
can own the input focus. See
widgetSetCanFocus
.
Since: 2.18
getChildRequisition
data WidgetGetChildRequisitionMethodInfo Source #
((~) * signature (m Requisition), MonadIO m, IsWidget a) => MethodInfo * WidgetGetChildRequisitionMethodInfo a signature Source # | |
widgetGetChildRequisition Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Requisition |
Deprecated: (Since version 3.0)Use widgetGetPreferredSize
instead.
This function is only for use in widget implementations. Obtains
widget
->requisition, unless someone has forced a particular
geometry on the widget (e.g. with widgetSetSizeRequest
),
in which case it returns that geometry instead of the widget's
requisition.
This function differs from widgetSizeRequest
in that
it retrieves the last size request value from widget
->requisition,
while widgetSizeRequest
actually calls the "size_request" method
on widget
to compute the size request and fill in widget
->requisition,
and only then returns widget
->requisition.
Because this function does not call the “size_request” method, it
can only be used when you know that widget
->requisition is
up-to-date, that is, widgetSizeRequest
has been called
since the last time a resize was queued. In general, only container
implementations have this information; applications should use
widgetSizeRequest
.
getChildVisible
data WidgetGetChildVisibleMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetChildVisibleMethodInfo a signature Source # | |
widgetGetChildVisible Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Gets the value set with widgetSetChildVisible
.
If you feel a need to use this function, your code probably
needs reorganization.
This function is only useful for container implementations and never should be called by an application.
getClip
data WidgetGetClipMethodInfo Source #
((~) * signature (m Rectangle), MonadIO m, IsWidget a) => MethodInfo * WidgetGetClipMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Rectangle |
Retrieves the widget’s clip area.
The clip area is the area in which all of widget
's drawing will
happen. Other toolkits call it the bounding box.
Historically, in GTK+ the clip area has been equal to the allocation
retrieved via widgetGetAllocation
.
Since: 3.14
getClipboard
data WidgetGetClipboardMethodInfo Source #
((~) * signature (Atom -> m Clipboard), MonadIO m, IsWidget a) => MethodInfo * WidgetGetClipboardMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Atom |
|
-> m Clipboard | Returns: the appropriate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent for all time. |
Returns the clipboard object for the given selection to
be used with widget
. widget
must have a Display
associated with it, so must be attached to a toplevel
window.
Since: 2.2
getCompositeName
data WidgetGetCompositeNameMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsWidget a) => MethodInfo * WidgetGetCompositeNameMethodInfo a signature Source # | |
widgetGetCompositeName Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Text | Returns: the composite name of |
Deprecated: (Since version 3.10)Use widgetClassSetTemplate
, or don’t use this API at all.
Obtains the composite name of a widget.
getDefaultDirection
widgetGetDefaultDirection Source #
:: (HasCallStack, MonadIO m) | |
=> m TextDirection | Returns: the current default direction. |
Obtains the current default reading direction. See
widgetSetDefaultDirection
.
getDefaultStyle
widgetGetDefaultStyle Source #
:: (HasCallStack, MonadIO m) | |
=> m Style | Returns: the default style. This |
Deprecated: (Since version 3.0)Use StyleContext
instead, and cssProviderGetDefault
to obtain a StyleProvider
with the default widget style information.
Returns the default style used by all widgets initially.
getDeviceEnabled
data WidgetGetDeviceEnabledMethodInfo Source #
((~) * signature (b -> m Bool), MonadIO m, IsWidget a, IsDevice b) => MethodInfo * WidgetGetDeviceEnabledMethodInfo a signature Source # | |
widgetGetDeviceEnabled Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsDevice b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: |
Returns whether device
can interact with widget
and its
children. See widgetSetDeviceEnabled
.
Since: 3.0
getDeviceEvents
data WidgetGetDeviceEventsMethodInfo Source #
((~) * signature (b -> m [EventMask]), MonadIO m, IsWidget a, IsDevice b) => MethodInfo * WidgetGetDeviceEventsMethodInfo a signature Source # | |
widgetGetDeviceEvents Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsDevice b) | |
=> a |
|
-> b |
|
-> m [EventMask] | Returns: device event mask for |
Returns the events mask for the widget corresponding to an specific device. These
are the events that the widget will receive when device
operates on it.
Since: 3.0
getDirection
data WidgetGetDirectionMethodInfo Source #
((~) * signature (m TextDirection), MonadIO m, IsWidget a) => MethodInfo * WidgetGetDirectionMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m TextDirection | Returns: the reading direction for the widget. |
Gets the reading direction for a particular widget. See
widgetSetDirection
.
getDisplay
data WidgetGetDisplayMethodInfo Source #
((~) * signature (m Display), MonadIO m, IsWidget a) => MethodInfo * WidgetGetDisplayMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Display | Returns: the |
Get the 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.
In general, you should only create display specific resources when a widget has been realized, and you should free those resources when the widget is unrealized.
Since: 2.2
getDoubleBuffered
data WidgetGetDoubleBufferedMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetDoubleBufferedMethodInfo a signature Source # | |
getEvents
data WidgetGetEventsMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsWidget a) => MethodInfo * WidgetGetEventsMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Int32 | Returns: event mask for |
Returns the event mask (see EventMask
) for the widget. These are the
events that the widget will receive.
Note: Internally, the widget event mask will be the logical OR of the event
mask set through widgetSetEvents
or widgetAddEvents
, and the
event mask necessary to cater for every EventController
created for the
widget.
getFocusOnClick
data WidgetGetFocusOnClickMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetFocusOnClickMethodInfo a signature Source # | |
widgetGetFocusOnClick Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether the widget should grab focus when it is clicked with the mouse.
See widgetSetFocusOnClick
.
Since: 3.20
getFontMap
data WidgetGetFontMapMethodInfo Source #
((~) * signature (m (Maybe FontMap)), MonadIO m, IsWidget a) => MethodInfo * WidgetGetFontMapMethodInfo a signature Source # | |
Gets the font map that has been set with widgetSetFontMap
.
Since: 3.18
getFontOptions
data WidgetGetFontOptionsMethodInfo Source #
((~) * signature (m (Maybe FontOptions)), MonadIO m, IsWidget a) => MethodInfo * WidgetGetFontOptionsMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m (Maybe FontOptions) | Returns: the |
Returns the FontOptions
used for Pango rendering. When not set,
the defaults font options for the Screen
will be used.
Since: 3.18
getFrameClock
data WidgetGetFrameClockMethodInfo Source #
((~) * signature (m (Maybe FrameClock)), MonadIO m, IsWidget a) => MethodInfo * WidgetGetFrameClockMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m (Maybe FrameClock) | Returns: a |
Obtains the frame clock for a widget. The frame clock is a global
“ticker” that can be used to drive animations and repaints. The
most common reason to get the frame clock is to call
frameClockGetFrameTime
, 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 frameClockGetFrameTime
, and
then update the animation by calling
frameClockGetFrameTime
again during each repaint.
frameClockRequestPhase
will result in a new frame on the
clock, but won’t necessarily repaint any widgets. To repaint a
widget, you have to use widgetQueueDraw
which invalidates
the widget (thus scheduling it to receive a draw on the next
frame). widgetQueueDraw
will also end up requesting a frame
on the appropriate frame clock.
A widget’s frame clock will not change while the widget is mapped. Reparenting a widget (which implies a temporary unmap) can change the widget’s frame clock.
Unrealized widgets do not have a frame clock.
Since: 3.8
getHalign
data WidgetGetHalignMethodInfo Source #
((~) * signature (m Align), MonadIO m, IsWidget a) => MethodInfo * WidgetGetHalignMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Align | Returns: the horizontal alignment of |
Gets the value of the Widget
:halign
property.
For backwards compatibility reasons this method will never return
AlignBaseline
, but instead it will convert it to
AlignFill
. Baselines are not supported for horizontal
alignment.
getHasTooltip
data WidgetGetHasTooltipMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetHasTooltipMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: current value of has-tooltip on |
Returns the current value of the has-tooltip property. See
Widget
:has-tooltip
for more information.
Since: 2.12
getHasWindow
data WidgetGetHasWindowMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetHasWindowMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool |
Determines whether widget
has a Window
of its own. See
widgetSetHasWindow
.
Since: 2.18
getHexpand
data WidgetGetHexpandMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetHexpandMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: whether hexpand flag is set |
Gets whether the widget would like any available extra horizontal
space. When a user resizes a Window
, widgets with expand=TRUE
generally receive the extra space. For example, a list or
scrollable area or document in your window would often be set to
expand.
Containers should use widgetComputeExpand
rather than
this function, to see whether a widget, or any of its children,
has the expand flag set. If any child of a widget wants to
expand, the parent may ask to expand also.
This function only looks at the widget’s own hexpand flag, rather than computing whether the entire widget tree rooted at this widget wants to expand.
getHexpandSet
data WidgetGetHexpandSetMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetHexpandSetMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: whether hexpand has been explicitly set |
Gets whether widgetSetHexpand
has been used to
explicitly set the expand flag on this widget.
If hexpand is set, then it overrides any computed expand value based on child widgets. If hexpand is not set, then the expand value depends on whether any children of the widget would like to expand.
There are few reasons to use this function, but it’s here for completeness and consistency.
getMapped
data WidgetGetMappedMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetMappedMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool |
Whether the widget is mapped.
Since: 2.20
getMarginBottom
data WidgetGetMarginBottomMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsWidget a) => MethodInfo * WidgetGetMarginBottomMethodInfo a signature Source # | |
widgetGetMarginBottom Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Int32 | Returns: The bottom margin of |
Gets the value of the Widget
:margin-bottom
property.
Since: 3.0
getMarginEnd
data WidgetGetMarginEndMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsWidget a) => MethodInfo * WidgetGetMarginEndMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Int32 | Returns: The end margin of |
Gets the value of the Widget
:margin-end
property.
Since: 3.12
getMarginLeft
data WidgetGetMarginLeftMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsWidget a) => MethodInfo * WidgetGetMarginLeftMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Int32 | Returns: The left margin of |
Deprecated: (Since version 3.12)Use widgetGetMarginStart
instead.
Gets the value of the Widget
:margin-left
property.
Since: 3.0
getMarginRight
data WidgetGetMarginRightMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsWidget a) => MethodInfo * WidgetGetMarginRightMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Int32 | Returns: The right margin of |
Deprecated: (Since version 3.12)Use widgetGetMarginEnd
instead.
Gets the value of the Widget
:margin-right
property.
Since: 3.0
getMarginStart
data WidgetGetMarginStartMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsWidget a) => MethodInfo * WidgetGetMarginStartMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Int32 | Returns: The start margin of |
Gets the value of the Widget
:margin-start
property.
Since: 3.12
getMarginTop
data WidgetGetMarginTopMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsWidget a) => MethodInfo * WidgetGetMarginTopMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Int32 | Returns: The top margin of |
Gets the value of the Widget
:margin-top
property.
Since: 3.0
getModifierMask
data WidgetGetModifierMaskMethodInfo Source #
((~) * signature (ModifierIntent -> m [ModifierType]), MonadIO m, IsWidget a) => MethodInfo * WidgetGetModifierMaskMethodInfo a signature Source # | |
widgetGetModifierMask Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> ModifierIntent |
|
-> m [ModifierType] | Returns: the modifier mask used for |
Returns the modifier mask the widget
’s windowing system backend
uses for a particular purpose.
Since: 3.4
getModifierStyle
data WidgetGetModifierStyleMethodInfo Source #
((~) * signature (m RcStyle), MonadIO m, IsWidget a) => MethodInfo * WidgetGetModifierStyleMethodInfo a signature Source # | |
widgetGetModifierStyle Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m RcStyle | Returns: the modifier style for the widget.
This rc style is owned by the widget. If you want to keep a
pointer to value this around, you must add a refcount using
|
Deprecated: (Since version 3.0)Use StyleContext
with a custom StyleProvider
instead
Returns the current modifier style for the widget. (As set by
widgetModifyStyle
.) If no style has previously set, a new
RcStyle
will be created with all values unset, and set as the
modifier style for the widget. If you make changes to this rc
style, you must call widgetModifyStyle
, passing in the
returned rc style, to make sure that your changes take effect.
Caution: passing the style back to widgetModifyStyle
will
normally end up destroying it, because widgetModifyStyle
copies
the passed-in style and sets the copy as the new modifier style,
thus dropping any reference to the old modifier style. Add a reference
to the modifier style if you want to keep it alive.
getName
data WidgetGetNameMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsWidget a) => MethodInfo * WidgetGetNameMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Text | Returns: name of the widget. This string is owned by GTK+ and should not be modified or freed |
Retrieves the name of a widget. See widgetSetName
for the
significance of widget names.
getNoShowAll
data WidgetGetNoShowAllMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetNoShowAllMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: the current value of the “no-show-all” property. |
Returns the current value of the Widget
:no-show-all
property,
which determines whether calls to widgetShowAll
will affect this widget.
Since: 2.4
getOpacity
data WidgetGetOpacityMethodInfo Source #
((~) * signature (m Double), MonadIO m, IsWidget a) => MethodInfo * WidgetGetOpacityMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Double | Returns: the requested opacity for this widget. |
Fetches the requested opacity for this widget.
See widgetSetOpacity
.
Since: 3.8
getPangoContext
data WidgetGetPangoContextMethodInfo Source #
((~) * signature (m Context), MonadIO m, IsWidget a) => MethodInfo * WidgetGetPangoContextMethodInfo a signature Source # | |
widgetGetPangoContext Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Context | Returns: the |
Gets a Context
with the appropriate font map, font description,
and base direction for this widget. Unlike the context returned
by widgetCreatePangoContext
, 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 Widget
::screen-changed
signal on the widget.
getParent
data WidgetGetParentMethodInfo Source #
((~) * signature (m (Maybe Widget)), MonadIO m, IsWidget a) => MethodInfo * WidgetGetParentMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m (Maybe Widget) | Returns: the parent container of |
Returns the parent container of widget
.
getParentWindow
data WidgetGetParentWindowMethodInfo Source #
((~) * signature (m Window), MonadIO m, IsWidget a) => MethodInfo * WidgetGetParentWindowMethodInfo a signature Source # | |
widgetGetParentWindow Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Window | Returns: the parent window of |
Gets widget
’s parent window.
getPath
data WidgetGetPathMethodInfo Source #
((~) * signature (m WidgetPath), MonadIO m, IsWidget a) => MethodInfo * WidgetGetPathMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m WidgetPath | Returns: The |
Returns the WidgetPath
representing widget
, if the widget
is not connected to a toplevel widget, a partial path will be
created.
getPointer
data WidgetGetPointerMethodInfo Source #
((~) * signature (m (Int32, Int32)), MonadIO m, IsWidget a) => MethodInfo * WidgetGetPointerMethodInfo a signature Source # | |
Deprecated: (Since version 3.4)Use windowGetDevicePosition
instead.
Obtains the location of the mouse pointer in widget coordinates.
Widget coordinates are a bit odd; for historical reasons, they are
defined as widget
->window coordinates for widgets that return True
for
widgetGetHasWindow
; and are relative to widget
->allocation.x,
widget
->allocation.y otherwise.
getPreferredHeight
data WidgetGetPreferredHeightMethodInfo Source #
((~) * signature (m (Int32, Int32)), MonadIO m, IsWidget a) => MethodInfo * WidgetGetPreferredHeightMethodInfo a signature Source # | |
widgetGetPreferredHeight Source #
Retrieves a widget’s initial minimum and natural height.
This call is specific to width-for-height requests.
The returned request will be modified by the
GtkWidgetClass::adjust_size_request virtual method and by any
GtkSizeGroups
that have been applied. That is, the returned request
is the one that should be used for layout, not necessarily the one
returned by the widget itself.
Since: 3.0
getPreferredHeightAndBaselineForWidth
widgetGetPreferredHeightAndBaselineForWidth Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Int32 |
|
-> m (Int32, Int32, Int32, Int32) |
Retrieves a widget’s minimum and natural height and the corresponding baselines if it would be given
the specified width
, or the default height if width
is -1. The baselines may be -1 which means
that no baseline is requested for this widget.
The returned request will be modified by the
GtkWidgetClass::adjust_size_request and GtkWidgetClass::adjust_baseline_request virtual methods
and by any GtkSizeGroups
that have been applied. That is, the returned request
is the one that should be used for layout, not necessarily the one
returned by the widget itself.
Since: 3.10
getPreferredHeightForWidth
widgetGetPreferredHeightForWidth Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Int32 |
|
-> m (Int32, Int32) |
Retrieves a widget’s minimum and natural height if it would be given
the specified width
.
The returned request will be modified by the
GtkWidgetClass::adjust_size_request virtual method and by any
GtkSizeGroups
that have been applied. That is, the returned request
is the one that should be used for layout, not necessarily the one
returned by the widget itself.
Since: 3.0
getPreferredSize
data WidgetGetPreferredSizeMethodInfo Source #
((~) * signature (m (Requisition, Requisition)), MonadIO m, IsWidget a) => MethodInfo * WidgetGetPreferredSizeMethodInfo a signature Source # | |
widgetGetPreferredSize Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m (Requisition, Requisition) |
Retrieves the minimum and natural size of a widget, taking into account the widget’s preference for height-for-width management.
This is used to retrieve a suitable size by container widgets which do not impose any restrictions on the child placement. It can be used to deduce toplevel window and menu sizes as well as child widgets in free-form containers such as GtkLayout.
Handle with care. Note that the natural height of a height-for-width widget will generally be a smaller size than the minimum height, since the required height for the natural width is generally smaller than the required height for the minimum width.
Use widgetGetPreferredHeightAndBaselineForWidth
if you want to support
baseline alignment.
Since: 3.0
getPreferredWidth
data WidgetGetPreferredWidthMethodInfo Source #
((~) * signature (m (Int32, Int32)), MonadIO m, IsWidget a) => MethodInfo * WidgetGetPreferredWidthMethodInfo a signature Source # | |
widgetGetPreferredWidth Source #
Retrieves a widget’s initial minimum and natural width.
This call is specific to height-for-width requests.
The returned request will be modified by the
GtkWidgetClass::adjust_size_request virtual method and by any
GtkSizeGroups
that have been applied. That is, the returned request
is the one that should be used for layout, not necessarily the one
returned by the widget itself.
Since: 3.0
getPreferredWidthForHeight
widgetGetPreferredWidthForHeight Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Int32 |
|
-> m (Int32, Int32) |
Retrieves a widget’s minimum and natural width if it would be given
the specified height
.
The returned request will be modified by the
GtkWidgetClass::adjust_size_request virtual method and by any
GtkSizeGroups
that have been applied. That is, the returned request
is the one that should be used for layout, not necessarily the one
returned by the widget itself.
Since: 3.0
getRealized
data WidgetGetRealizedMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetRealizedMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool |
Determines whether widget
is realized.
Since: 2.20
getReceivesDefault
data WidgetGetReceivesDefaultMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetReceivesDefaultMethodInfo a signature Source # | |
widgetGetReceivesDefault Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Determines whether widget
is always treated as the default widget
within its toplevel when it has the focus, even if another widget
is the default.
Since: 2.18
getRequestMode
data WidgetGetRequestModeMethodInfo Source #
((~) * signature (m SizeRequestMode), MonadIO m, IsWidget a) => MethodInfo * WidgetGetRequestModeMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m SizeRequestMode | Returns: The |
Gets whether the widget prefers a height-for-width layout or a width-for-height layout.
Bin
widgets generally propagate the preference of
their child, container widgets need to request something either in
context of their children or in context of their allocation
capabilities.
Since: 3.0
getRequisition
data WidgetGetRequisitionMethodInfo Source #
((~) * signature (m Requisition), MonadIO m, IsWidget a) => MethodInfo * WidgetGetRequisitionMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Requisition |
Deprecated: (Since version 3.0)The Requisition
cache on the widget wasremoved, If you need to cache sizes across requests and allocations,add an explicit cache to the widget in question instead.
Retrieves the widget’s requisition.
This function should only be used by widget implementations in
order to figure whether the widget’s requisition has actually
changed after some internal state change (so that they can call
widgetQueueResize
instead of widgetQueueDraw
).
Normally, widgetSizeRequest
should be used.
Since: 2.20
getRootWindow
data WidgetGetRootWindowMethodInfo Source #
((~) * signature (m Window), MonadIO m, IsWidget a) => MethodInfo * WidgetGetRootWindowMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Window | Returns: the |
Deprecated: (Since version 3.12)Use screenGetRootWindow
instead
Get the root window where this widget is located. This function can
only be called after the widget has been added to a widget
hierarchy with Window
at the top.
The root window is useful for such purposes as creating a popup
Window
associated with the window. In general, you should only
create display specific resources when a widget has been realized,
and you should free those resources when the widget is unrealized.
Since: 2.2
getScaleFactor
data WidgetGetScaleFactorMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsWidget a) => MethodInfo * WidgetGetScaleFactorMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Int32 | Returns: the scale factor for |
Retrieves the internal scale factor that maps from window coordinates to the actual device pixels. On traditional systems this is 1, on high density outputs, it can be a higher value (typically 2).
See windowGetScaleFactor
.
Since: 3.10
getScreen
data WidgetGetScreenMethodInfo Source #
((~) * signature (m Screen), MonadIO m, IsWidget a) => MethodInfo * WidgetGetScreenMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Screen | Returns: the |
Get the 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.
In general, you should only create screen specific resources when a widget has been realized, and you should free those resources when the widget is unrealized.
Since: 2.2
getSensitive
data WidgetGetSensitiveMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetSensitiveMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Returns the widget’s sensitivity (in the sense of returning
the value that has been set using widgetSetSensitive
).
The effective sensitivity of a widget is however determined by both its
own and its parent widget’s sensitivity. See widgetIsSensitive
.
Since: 2.18
getSettings
data WidgetGetSettingsMethodInfo Source #
((~) * signature (m Settings), MonadIO m, IsWidget a) => MethodInfo * WidgetGetSettingsMethodInfo a signature Source # | |
getSizeRequest
data WidgetGetSizeRequestMethodInfo Source #
((~) * signature (m (Int32, Int32)), MonadIO m, IsWidget a) => MethodInfo * WidgetGetSizeRequestMethodInfo a signature Source # | |
Gets the size request that was explicitly set for the widget using
widgetSetSizeRequest
. 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
widgetSetSizeRequest
. To get the size a widget will
actually request, call widgetGetPreferredSize
instead of
this function.
getState
data WidgetGetStateMethodInfo Source #
((~) * signature (m StateType), MonadIO m, IsWidget a) => MethodInfo * WidgetGetStateMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m StateType | Returns: the state of |
Deprecated: (Since version 3.0)Use widgetGetStateFlags
instead.
Returns the widget’s state. See widgetSetState
.
Since: 2.18
getStateFlags
data WidgetGetStateFlagsMethodInfo Source #
((~) * signature (m [StateFlags]), MonadIO m, IsWidget a) => MethodInfo * WidgetGetStateFlagsMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m [StateFlags] | Returns: The state flags for widget |
Returns the widget state as a flag set. It is worth mentioning
that the effective StateFlagsInsensitive
state will be
returned, that is, also based on parent insensitivity, even if
widget
itself is sensitive.
Also note that if you are looking for a way to obtain the
StateFlags
to pass to a StyleContext
method, you
should look at styleContextGetState
.
Since: 3.0
getStyle
data WidgetGetStyleMethodInfo Source #
((~) * signature (m Style), MonadIO m, IsWidget a) => MethodInfo * WidgetGetStyleMethodInfo a signature Source # | |
Deprecated: (Since version 3.0)Use StyleContext
instead
Simply an accessor function that returns widget
->style.
getStyleContext
data WidgetGetStyleContextMethodInfo Source #
((~) * signature (m StyleContext), MonadIO m, IsWidget a) => MethodInfo * WidgetGetStyleContextMethodInfo a signature Source # | |
widgetGetStyleContext Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m StyleContext | Returns: a |
Returns the style context associated to widget
. The returned object is
guaranteed to be the same for the lifetime of widget
.
getSupportMultidevice
data WidgetGetSupportMultideviceMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetSupportMultideviceMethodInfo a signature Source # | |
widgetGetSupportMultidevice Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Returns True
if widget
is multiple pointer aware. See
widgetSetSupportMultidevice
for more information.
getTemplateChild
widgetGetTemplateChild Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> GType |
|
-> Text |
|
-> m Object | Returns: The object built in the template XML with the id |
Fetch an object build from the template XML for widgetType
in this widget
instance.
This will only report children which were previously declared with
widgetClassBindTemplateChildFull
or one of its
variants.
This function is only meant to be called for code which is private to the widgetType
which
declared the child and is meant for language bindings which cannot easily make use
of the GObject structure offsets.
getTooltipMarkup
data WidgetGetTooltipMarkupMethodInfo Source #
((~) * signature (m (Maybe Text)), MonadIO m, IsWidget a) => MethodInfo * WidgetGetTooltipMarkupMethodInfo a signature Source # | |
widgetGetTooltipMarkup Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m (Maybe Text) | Returns: the tooltip text, or |
Gets the contents of the tooltip for widget
.
Since: 2.12
getTooltipText
data WidgetGetTooltipTextMethodInfo Source #
((~) * signature (m (Maybe Text)), MonadIO m, IsWidget a) => MethodInfo * WidgetGetTooltipTextMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m (Maybe Text) | Returns: the tooltip text, or |
Gets the contents of the tooltip for widget
.
Since: 2.12
getTooltipWindow
data WidgetGetTooltipWindowMethodInfo Source #
((~) * signature (m Window), MonadIO m, IsWidget a) => MethodInfo * WidgetGetTooltipWindowMethodInfo a signature Source # | |
widgetGetTooltipWindow Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Window | Returns: The |
Returns the Window
of the current tooltip. This can be the
GtkWindow created by default, or the custom tooltip window set
using widgetSetTooltipWindow
.
Since: 2.12
getToplevel
data WidgetGetToplevelMethodInfo Source #
((~) * signature (m Widget), MonadIO m, IsWidget a) => MethodInfo * WidgetGetToplevelMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Widget | Returns: the topmost ancestor of |
This function returns the topmost widget in the container hierarchy
widget
is a part of. If widget
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.
Note the difference in behavior vs. widgetGetAncestor
;
gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
would return
Nothing
if widget
wasn’t inside a toplevel window, and if the
window was inside a Window
-derived widget which was in turn
inside the toplevel Window
. While the second case may
seem unlikely, it actually happens when a Plug
is embedded
inside a Socket
within the same application.
To reliably find the toplevel Window
, use
widgetGetToplevel
and call widgetIsToplevel
on the result.
C code
GtkWidget *toplevel = gtk_widget_get_toplevel (widget); if (gtk_widget_is_toplevel (toplevel)) { // Perform action on toplevel. }
getValign
data WidgetGetValignMethodInfo Source #
((~) * signature (m Align), MonadIO m, IsWidget a) => MethodInfo * WidgetGetValignMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Align | Returns: the vertical alignment of |
Gets the value of the Widget
:valign
property.
For backwards compatibility reasons this method will never return
AlignBaseline
, but instead it will convert it to
AlignFill
. If your widget want to support baseline aligned
children it must use widgetGetValignWithBaseline
, or
g_object_get (widget, "valign", &value, NULL)
, which will
also report the true value.
getValignWithBaseline
data WidgetGetValignWithBaselineMethodInfo Source #
((~) * signature (m Align), MonadIO m, IsWidget a) => MethodInfo * WidgetGetValignWithBaselineMethodInfo a signature Source # | |
widgetGetValignWithBaseline Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Align | Returns: the vertical alignment of |
Gets the value of the Widget
:valign
property, including
AlignBaseline
.
Since: 3.10
getVexpand
data WidgetGetVexpandMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetVexpandMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: whether vexpand flag is set |
Gets whether the widget would like any available extra vertical space.
See widgetGetHexpand
for more detail.
getVexpandSet
data WidgetGetVexpandSetMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetVexpandSetMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: whether vexpand has been explicitly set |
Gets whether widgetSetVexpand
has been used to
explicitly set the expand flag on this widget.
See widgetGetHexpandSet
for more detail.
getVisible
data WidgetGetVisibleMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetGetVisibleMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Determines whether the widget is visible. If you want to
take into account whether the widget’s parent is also marked as
visible, use widgetIsVisible
instead.
This function does not check if the widget is obscured in any way.
See widgetSetVisible
.
Since: 2.18
getVisual
data WidgetGetVisualMethodInfo Source #
((~) * signature (m Visual), MonadIO m, IsWidget a) => MethodInfo * WidgetGetVisualMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Visual | Returns: the visual for |
Gets the visual that will be used to render widget
.
getWindow
data WidgetGetWindowMethodInfo Source #
((~) * signature (m (Maybe Window)), MonadIO m, IsWidget a) => MethodInfo * WidgetGetWindowMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m (Maybe Window) | Returns: |
Returns the widget’s window if it is realized, Nothing
otherwise
Since: 2.14
grabAdd
data WidgetGrabAddMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetGrabAddMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Makes widget
the current grabbed widget.
This means that interaction with other widgets in the same application is blocked and mouse as well as keyboard events are delivered to this widget.
If widget
is not sensitive, it is not set as the current
grabbed widget and this function does nothing.
grabDefault
data WidgetGrabDefaultMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetGrabDefaultMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Causes widget
to become the default widget. widget
must be able to be
a default widget; typically you would ensure this yourself
by calling widgetSetCanDefault
with a True
value.
The default widget is activated when
the user presses Enter in a window. Default widgets must be
activatable, that is, widgetActivate
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.
grabFocus
data WidgetGrabFocusMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetGrabFocusMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Causes widget
to have the keyboard focus for the Window
it's
inside. widget
must be a focusable widget, such as a Entry
;
something like Frame
won’t work.
More precisely, it must have the GTK_CAN_FOCUS
flag set. Use
widgetSetCanFocus
to modify that flag.
The widget also needs to be realized and mapped. This is indicated by the related signals. Grabbing the focus immediately after creating the widget will likely fail and cause critical warnings.
grabRemove
data WidgetGrabRemoveMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetGrabRemoveMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Removes the grab from the given widget.
You have to pair calls to widgetGrabAdd
and widgetGrabRemove
.
If widget
does not have the grab, this function does nothing.
hasDefault
data WidgetHasDefaultMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetHasDefaultMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Determines whether widget
is the current default widget within its
toplevel. See widgetSetCanDefault
.
Since: 2.18
hasFocus
data WidgetHasFocusMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetHasFocusMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Determines if the widget has the global input focus. See
widgetIsFocus
for the difference between having the global
input focus, and only having the focus within a toplevel.
Since: 2.18
hasGrab
data WidgetHasGrabMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetHasGrabMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Determines whether the widget is currently grabbing events, so it is the only widget receiving input events (keyboard and mouse).
See also widgetGrabAdd
.
Since: 2.18
hasRcStyle
data WidgetHasRcStyleMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetHasRcStyleMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Deprecated: (Since version 3.0)Use StyleContext
instead
Determines if the widget style has been looked up through the rc mechanism.
Since: 2.20
hasScreen
data WidgetHasScreenMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetHasScreenMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Checks whether there is a 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.
Since: 2.2
hasVisibleFocus
data WidgetHasVisibleFocusMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetHasVisibleFocusMethodInfo a signature Source # | |
widgetHasVisibleFocus Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Determines if the widget should show a visible indication that
it has the global input focus. This is a convenience function for
use in ::draw handlers that takes into account whether focus
indication should currently be shown in the toplevel window of
widget
. See windowGetFocusVisible
for more information
about focus indication.
To find out if the widget has the global input focus, use
widgetHasFocus
.
Since: 3.2
hide
data WidgetHideMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetHideMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Reverses the effects of widgetShow
, causing the widget to be
hidden (invisible to the user).
hideOnDelete
data WidgetHideOnDeleteMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetHideOnDeleteMethodInfo a signature Source # | |
Utility function; intended to be connected to the Widget
::delete-event
signal on a Window
. The function calls widgetHide
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.
inDestruction
data WidgetInDestructionMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetInDestructionMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether the widget is currently being destroyed. This information can sometimes be used to avoid doing unnecessary work.
initTemplate
data WidgetInitTemplateMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetInitTemplateMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Creates and initializes child widgets defined in templates. This
function must be called in the instance initializer for any
class which assigned itself a template using widgetClassSetTemplate
It is important to call this function in the instance initializer
of a Widget
subclass and not in Object
.constructed
() or
Object
.constructor
() for two reasons.
One reason is that generally derived widgets will assume that parent class composite widgets have been created in their instance initializers.
Another reason is that when calling g_object_new()
on a widget with
composite templates, it’s important to build the composite widgets
before the construct properties are set. Properties passed to g_object_new()
should take precedence over properties set in the private template XML.
Since: 3.10
inputShapeCombineRegion
data WidgetInputShapeCombineRegionMethodInfo Source #
((~) * signature (Maybe Region -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetInputShapeCombineRegionMethodInfo a signature Source # | |
widgetInputShapeCombineRegion Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Maybe Region |
|
-> m () |
Sets an input shape for this widget’s GDK window. This allows for
windows which react to mouse click in a nonrectangular region, see
windowInputShapeCombineRegion
for more information.
Since: 3.0
insertActionGroup
data WidgetInsertActionGroupMethodInfo Source #
((~) * signature (Text -> Maybe b -> m ()), MonadIO m, IsWidget a, IsActionGroup b) => MethodInfo * WidgetInsertActionGroupMethodInfo a signature Source # | |
widgetInsertActionGroup Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsActionGroup b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> m () |
Inserts group
into widget
. Children of widget
that implement
Actionable
can then be associated with actions in group
by
setting their “action-name” to
prefix
.action-name
.
If group
is Nothing
, a previously inserted group for name
is removed
from widget
.
Since: 3.6
intersect
isAncestor
data WidgetIsAncestorMethodInfo Source #
((~) * signature (b -> m Bool), MonadIO m, IsWidget a, IsWidget b) => MethodInfo * WidgetIsAncestorMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: |
Determines whether widget
is somewhere inside ancestor
, possibly with
intermediate containers.
isComposited
data WidgetIsCompositedMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetIsCompositedMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Deprecated: (Since version 3.22)Use screenIsComposited
instead.
Whether widget
can rely on having its alpha channel
drawn correctly. On X11 this function returns whether a
compositing manager is running for widget
’s screen.
Please note that the semantics of this call will change
in the future if used on a widget that has a composited
window in its hierarchy (as set by windowSetComposited
).
Since: 2.10
isDrawable
data WidgetIsDrawableMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetIsDrawableMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool |
Determines whether widget
can be drawn to. A widget can be drawn
to if it is mapped and visible.
Since: 2.18
isFocus
data WidgetIsFocusMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetIsFocusMethodInfo a signature Source # | |
isSensitive
data WidgetIsSensitiveMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetIsSensitiveMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Returns the widget’s effective sensitivity, which means it is sensitive itself and also its parent widget is sensitive
Since: 2.18
isToplevel
data WidgetIsToplevelMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetIsToplevelMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool |
isVisible
data WidgetIsVisibleMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetIsVisibleMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: |
Determines whether the widget and all its parents are marked as visible.
This function does not check if the widget is obscured in any way.
See also widgetGetVisible
and widgetSetVisible
Since: 3.8
keynavFailed
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> DirectionType |
|
-> m Bool | Returns: |
This function should be called whenever keyboard navigation within
a single widget hits a boundary. The function emits the
Widget
::keynav-failed
signal on the widget and its return
value should be interpreted in a way similar to the return value of
widgetChildFocus
:
When True
is returned, stay in the widget, the failed keyboard
navigation is OK and/or there is nowhere we can/should move the
focus to.
When False
is returned, the caller should continue with keyboard
navigation outside the widget, e.g. by calling
widgetChildFocus
on the widget’s toplevel.
The default ::keynav-failed handler returns True
for
DirectionTypeTabForward
and DirectionTypeTabBackward
. For the other
values of DirectionType
it returns False
.
Whenever the default handler returns True
, it also calls
widgetErrorBell
to notify the user of the failed keyboard
navigation.
A use case for providing an own implementation of ::keynav-failed
(either by connecting to it or by overriding it) would be a row of
Entry
widgets where the user should be able to navigate the
entire row with the cursor keys, as e.g. known from user interfaces
that require entering license keys.
Since: 2.12
listAccelClosures
data WidgetListAccelClosuresMethodInfo Source #
((~) * signature (m [Closure]), MonadIO m, IsWidget a) => MethodInfo * WidgetListAccelClosuresMethodInfo a signature Source # | |
widgetListAccelClosures Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m [Closure] | Returns:
a newly allocated |
Lists the closures used by widget
for accelerator group connections
with accelGroupConnectByPath
or accelGroupConnect
.
The closures can be used to monitor accelerator changes on widget
,
by connecting to the gtkAccelGroup
::accel-changed signal of the
AccelGroup
of a closure which can be found out with
accelGroupFromAccelClosure
.
listActionPrefixes
data WidgetListActionPrefixesMethodInfo Source #
((~) * signature (m [Text]), MonadIO m, IsWidget a) => MethodInfo * WidgetListActionPrefixesMethodInfo a signature Source # | |
widgetListActionPrefixes Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m [Text] | Returns: a |
Retrieves a Nothing
-terminated array of strings containing the prefixes of
'GI.Gio.Interfaces.ActionGroup.ActionGroup'\'s available to widget
.
Since: 3.16
listMnemonicLabels
data WidgetListMnemonicLabelsMethodInfo Source #
((~) * signature (m [Widget]), MonadIO m, IsWidget a) => MethodInfo * WidgetListMnemonicLabelsMethodInfo a signature Source # | |
widgetListMnemonicLabels Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m [Widget] | Returns: the list of
mnemonic labels; free this list
with |
Returns a newly allocated list of the widgets, normally labels, for
which this widget is the target of a mnemonic (see for example,
labelSetMnemonicWidget
).
The widgets in the list are not individually referenced. If you
want to iterate through the list and perform actions involving
callbacks that might destroy the widgets, you
must call g_list_foreach (result,
(GFunc)g_object_ref, NULL)
first, and then unref all the
widgets afterwards.
Since: 2.4
map
data WidgetMapMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetMapMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
This function is only for use in widget implementations. Causes a widget to be mapped if it isn’t already.
mnemonicActivate
data WidgetMnemonicActivateMethodInfo Source #
((~) * signature (Bool -> m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetMnemonicActivateMethodInfo a signature Source # | |
modifyBase
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> StateType |
|
-> Maybe Color |
|
-> m () |
Deprecated: (Since version 3.0)Use widgetOverrideBackgroundColor
instead
Sets the base color for a widget in a particular state.
All other style values are left untouched. The base color
is the background color used along with the text color
(see widgetModifyText
) for widgets such as Entry
and TextView
. See also widgetModifyStyle
.
Note that “no window” widgets (which have the @/GTK_NO_WINDOW/@ flag set) draw on their parent container’s window and thus may not draw any background themselves. This is the case for e.g. 'GI.Gtk.Objects.Label.Label'. To modify the background of such widgets, you have to set the base color on their parent; if you want to set the background of a rectangular area around a label, try placing the label in a 'GI.Gtk.Objects.EventBox.EventBox' widget and setting the base color on that.
modifyBg
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> StateType |
|
-> Maybe Color |
|
-> m () |
Deprecated: (Since version 3.0)Use widgetOverrideBackgroundColor
instead
Sets the background color for a widget in a particular state.
All other style values are left untouched.
See also widgetModifyStyle
.
Note that “no window” widgets (which have the @/GTK_NO_WINDOW/@ flag set) draw on their parent container’s window and thus may not draw any background themselves. This is the case for e.g. 'GI.Gtk.Objects.Label.Label'. To modify the background of such widgets, you have to set the background color on their parent; if you want to set the background of a rectangular area around a label, try placing the label in a 'GI.Gtk.Objects.EventBox.EventBox' widget and setting the background color on that.
modifyCursor
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Maybe Color |
|
-> Maybe Color |
|
-> m () |
Deprecated: (Since version 3.0)Use widgetOverrideCursor
instead.
Sets the cursor color to use in a widget, overriding the Widget
cursor-color and secondary-cursor-color
style properties.
All other style values are left untouched.
See also widgetModifyStyle
.
Since: 2.12
modifyFg
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> StateType |
|
-> Maybe Color |
|
-> m () |
Deprecated: (Since version 3.0)Use widgetOverrideColor
instead
Sets the foreground color for a widget in a particular state.
All other style values are left untouched.
See also widgetModifyStyle
.
modifyFont
data WidgetModifyFontMethodInfo Source #
((~) * signature (Maybe FontDescription -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetModifyFontMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Maybe FontDescription |
|
-> m () |
Deprecated: (Since version 3.0)Use widgetOverrideFont
instead
Sets the font to use for a widget.
All other style values are left untouched.
See also widgetModifyStyle
.
modifyStyle
data WidgetModifyStyleMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsWidget a, IsRcStyle b) => MethodInfo * WidgetModifyStyleMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a, IsRcStyle b) | |
=> a |
|
-> b |
|
-> m () |
Deprecated: (Since version 3.0)Use StyleContext
with a custom StyleProvider
instead
Modifies style values on the widget.
Modifications made using this technique take precedence over
style values set via an RC file, however, they will be overridden
if a style is explicitly set on the widget using widgetSetStyle
.
The RcStyle
-struct is designed so each field can either be
set or unset, so it is possible, using this function, to modify some
style values and leave the others unchanged.
Note that modifications made with this function are not cumulative
with previous calls to widgetModifyStyle
or with such
functions as widgetModifyFg
. If you wish to retain
previous values, you must first call widgetGetModifierStyle
,
make your modifications to the returned style, then call
widgetModifyStyle
with that style. On the other hand,
if you first call widgetModifyStyle
, subsequent calls
to such functions widgetModifyFg
will have a cumulative
effect with the initial modifications.
modifyText
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> StateType |
|
-> Maybe Color |
|
-> m () |
Deprecated: (Since version 3.0)Use widgetOverrideColor
instead
Sets the text color for a widget in a particular state.
All other style values are left untouched.
The text color is the foreground color used along with the
base color (see widgetModifyBase
) for widgets such
as Entry
and TextView
.
See also widgetModifyStyle
.
overrideBackgroundColor
data WidgetOverrideBackgroundColorMethodInfo Source #
((~) * signature ([StateFlags] -> Maybe RGBA -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetOverrideBackgroundColorMethodInfo a signature Source # | |
widgetOverrideBackgroundColor Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> [StateFlags] |
|
-> Maybe RGBA |
|
-> m () |
Deprecated: (Since version 3.16)This function is not useful in the context of CSS-based rendering. If you wish to change the way a widget renders its background you should use a custom CSS style, through an application-specific StyleProvider
and a CSS style class. You can also override the default drawing of a widget through the Widget
::draw
signal, and use Cairo to draw a specific color, regardless of the CSS style.
Sets the background color to use for a widget.
All other style values are left untouched.
See widgetOverrideColor
.
Since: 3.0
overrideColor
data WidgetOverrideColorMethodInfo Source #
((~) * signature ([StateFlags] -> Maybe RGBA -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetOverrideColorMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> [StateFlags] |
|
-> Maybe RGBA |
|
-> m () |
Deprecated: (Since version 3.16)Use a custom style provider and style classes instead
Sets the color to use for a widget.
All other style values are left untouched.
This function does not act recursively. Setting the color of a
container does not affect its children. Note that some widgets that
you may not think of as containers, for instance GtkButtons
,
are actually containers.
This API is mostly meant as a quick way for applications to
change a widget appearance. If you are developing a widgets
library and intend this change to be themeable, it is better
done by setting meaningful CSS classes in your
widget/container implementation through styleContextAddClass
.
This way, your widget library can install a CssProvider
with the STYLE_PROVIDER_PRIORITY_FALLBACK
priority in order
to provide a default styling for those widgets that need so, and
this theming may fully overridden by the user’s theme.
Note that for complex widgets this may bring in undesired
results (such as uniform background color everywhere), in
these cases it is better to fully style such widgets through a
CssProvider
with the STYLE_PROVIDER_PRIORITY_APPLICATION
priority.
Since: 3.0
overrideCursor
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Maybe RGBA |
|
-> Maybe RGBA |
|
-> m () |
Deprecated: (Since version 3.16)This function is not useful in the context of CSS-based rendering. If you wish to change the color used to render the primary and secondary cursors you should use a custom CSS style, through an application-specific StyleProvider
and a CSS style class.
Sets the cursor color to use in a widget, overriding the
cursor-color and secondary-cursor-color
style properties. All other style values are left untouched.
See also widgetModifyStyle
.
Note that the underlying properties have the Color
type,
so the alpha value in primary
and secondary
will be ignored.
Since: 3.0
overrideFont
data WidgetOverrideFontMethodInfo Source #
((~) * signature (Maybe FontDescription -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetOverrideFontMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Maybe FontDescription |
|
-> m () |
Deprecated: (Since version 3.16)This function is not useful in the context of CSS-based rendering. If you wish to change the font a widget uses to render its text you should use a custom CSS style, through an application-specific StyleProvider
and a CSS style class.
Sets the font to use for a widget. All other style values are
left untouched. See widgetOverrideColor
.
Since: 3.0
overrideSymbolicColor
widgetOverrideSymbolicColor Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Text |
|
-> Maybe RGBA |
|
-> m () |
Deprecated: (Since version 3.16)This function is not useful in the context of CSS-based rendering. If you wish to change the color used to render symbolic icons you should use a custom CSS style, through an application-specific StyleProvider
and a CSS style class.
Sets a symbolic color for a widget.
All other style values are left untouched.
See widgetOverrideColor
for overriding the foreground
or background color.
Since: 3.0
path
data WidgetPathMethodInfo Source #
Deprecated: (Since version 3.0)Use widgetGetPath
instead
Obtains the full path to widget
. The path is simply the name of a
widget and all its parents in the container hierarchy, separated by
periods. The name of a widget comes from
widgetGetName
. Paths are used to apply styles to a widget
in gtkrc configuration files. Widget names are the type of the
widget by default (e.g. “GtkButton”) or can be set to an
application-specific value with widgetSetName
. By setting
the name of a widget, you allow users or theme authors to apply
styles to that specific widget in their gtkrc
file. pathReversedP
fills in the path in reverse order,
i.e. starting with widget
’s name instead of starting with the name
of widget
’s outermost ancestor.
popCompositeChild
widgetPopCompositeChild :: (HasCallStack, MonadIO m) => m () Source #
Deprecated: (Since version 3.10)Use widgetClassSetTemplate
, or don’t use this API at all.
Cancels the effect of a previous call to widgetPushCompositeChild
.
pushCompositeChild
widgetPushCompositeChild :: (HasCallStack, MonadIO m) => m () Source #
Deprecated: (Since version 3.10)This API never really worked well and was mostly unused, nowwe have a more complete mechanism for composite children, see widgetClassSetTemplate
.
Makes all newly-created widgets as composite children until
the corresponding widgetPopCompositeChild
call.
A composite child is a child that’s an implementation detail of the
container it’s inside and should not be visible to people using the
container. Composite children aren’t treated differently by GTK+ (but
see containerForeach
vs. containerForall
), but e.g. GUI
builders might want to treat them in a different way.
queueAllocate
data WidgetQueueAllocateMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetQueueAllocateMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
This function is only for use in widget implementations.
Flags the widget for a rerun of the GtkWidgetClass::size_allocate
function. Use this function instead of widgetQueueResize
when the widget
's size request didn't change but it wants to
reposition its contents.
An example user of this function is widgetSetHalign
.
Since: 3.20
queueComputeExpand
data WidgetQueueComputeExpandMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetQueueComputeExpandMethodInfo a signature Source # | |
widgetQueueComputeExpand Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Mark widget
as needing to recompute its expand flags. Call
this function when setting legacy expand child properties
on the child of a container.
See widgetComputeExpand
.
queueDraw
data WidgetQueueDrawMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetQueueDrawMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Equivalent to calling widgetQueueDrawArea
for the
entire area of a widget.
queueDrawArea
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Convenience function that calls widgetQueueDrawRegion
on
the region created from the given coordinates.
The region here is specified in widget coordinates.
Widget coordinates are a bit odd; for historical reasons, they are
defined as widget
->window coordinates for widgets that return True
for
widgetGetHasWindow
, and are relative to widget
->allocation.x,
widget
->allocation.y otherwise.
width
or height
may be 0, in this case this function does
nothing. Negative values for width
and height
are not allowed.
queueDrawRegion
data WidgetQueueDrawRegionMethodInfo Source #
((~) * signature (Region -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetQueueDrawRegionMethodInfo a signature Source # | |
widgetQueueDrawRegion Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Region |
|
-> m () |
Invalidates the area of widget
defined by region
by calling
windowInvalidateRegion
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.
Normally you would only use this function in widget
implementations. You might also use it to schedule a redraw of a
DrawingArea
or some portion thereof.
Since: 3.0
queueResize
data WidgetQueueResizeMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetQueueResizeMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
This function is only for use in widget implementations.
Flags a widget to have its size renegotiated; should
be called when a widget for some reason has a new size request.
For example, when you change the text in a Label
, Label
queues a resize to ensure there’s enough space for the new text.
Note that you cannot call widgetQueueResize
on a widget
from inside its implementation of the GtkWidgetClass::size_allocate
virtual method. Calls to widgetQueueResize
from inside
GtkWidgetClass::size_allocate will be silently ignored.
queueResizeNoRedraw
data WidgetQueueResizeNoRedrawMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetQueueResizeNoRedrawMethodInfo a signature Source # | |
widgetQueueResizeNoRedraw Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
This function works like widgetQueueResize
,
except that the widget is not invalidated.
Since: 2.4
realize
data WidgetRealizeMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetRealizeMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Creates the GDK (windowing system) resources associated with a
widget. For example, widget
->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.
Realizing a widget requires all
the widget’s parent widgets to be realized; calling
widgetRealize
realizes the widget’s parents in addition to
widget
itself. If a widget is not yet inside a toplevel window
when you realize it, bad things will happen.
This function is primarily used in widget implementations, and
isn’t very useful otherwise. Many times when you think you might
need it, a better approach is to connect to a signal that will be
called after the widget is realized automatically, such as
Widget
::draw
. Or simply g_signal_connect () to the
Widget
::realize
signal.
regionIntersect
data WidgetRegionIntersectMethodInfo Source #
((~) * signature (Region -> m Region), MonadIO m, IsWidget a) => MethodInfo * WidgetRegionIntersectMethodInfo a signature Source # | |
widgetRegionIntersect Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Region |
|
-> m Region | Returns: A newly allocated region holding the intersection of |
Deprecated: (Since version 3.14)Use widgetGetAllocation
and cairo_region_intersect_rectangle()
to get the same behavior.
Computes the intersection of a widget
’s area and region
, returning
the intersection. The result may be empty, use cairo_region_is_empty()
to
check.
registerWindow
data WidgetRegisterWindowMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsWidget a, IsWindow b) => MethodInfo * WidgetRegisterWindowMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a, IsWindow b) | |
=> a |
|
-> b |
|
-> m () |
Registers a Window
with the widget and sets it up so that
the widget receives events for it. Call widgetUnregisterWindow
when destroying the window.
Before 3.8 you needed to call windowSetUserData
directly to set
this up. This is now deprecated and you should use widgetRegisterWindow
instead. Old code will keep working as is, although some new features like
transparency might not work perfectly.
Since: 3.8
removeAccelerator
data WidgetRemoveAcceleratorMethodInfo Source #
((~) * signature (b -> Word32 -> [ModifierType] -> m Bool), MonadIO m, IsWidget a, IsAccelGroup b) => MethodInfo * WidgetRemoveAcceleratorMethodInfo a signature Source # | |
widgetRemoveAccelerator Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsAccelGroup b) | |
=> a |
|
-> b |
|
-> Word32 |
|
-> [ModifierType] |
|
-> m Bool | Returns: whether an accelerator was installed and could be removed |
Removes an accelerator from widget
, previously installed with
widgetAddAccelerator
.
removeMnemonicLabel
data WidgetRemoveMnemonicLabelMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsWidget a, IsWidget b) => MethodInfo * WidgetRemoveMnemonicLabelMethodInfo a signature Source # | |
widgetRemoveMnemonicLabel Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) | |
=> a |
|
-> b |
|
-> m () |
Removes a widget from the list of mnemonic labels for
this widget. (See widgetListMnemonicLabels
). The widget
must have previously been added to the list with
widgetAddMnemonicLabel
.
Since: 2.4
removeTickCallback
data WidgetRemoveTickCallbackMethodInfo Source #
((~) * signature (Word32 -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetRemoveTickCallbackMethodInfo a signature Source # | |
widgetRemoveTickCallback Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Word32 |
|
-> m () |
Removes a tick callback previously registered with
widgetAddTickCallback
.
Since: 3.8
renderIcon
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Maybe Text |
|
-> m (Maybe Pixbuf) | Returns: a new pixbuf, or |
Deprecated: (Since version 3.0)Use widgetRenderIconPixbuf
instead.
A convenience function that uses the theme settings for widget
to look up stockId
and render it to a pixbuf. stockId
should
be a stock icon ID such as STOCK_OPEN
or STOCK_OK
. size
should be a size such as GTK_ICON_SIZE_MENU
. detail
should be a
string that identifies the widget or code doing the rendering, so
that theme engines can special-case rendering for that widget or
code.
The pixels in the returned Pixbuf
are shared with the rest of
the application and should not be modified. The pixbuf should be
freed after use with objectUnref
.
renderIconPixbuf
widgetRenderIconPixbuf Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> m (Maybe Pixbuf) | Returns: a new pixbuf, or |
Deprecated: (Since version 3.10)Use iconThemeLoadIcon
instead.
A convenience function that uses the theme engine and style
settings for widget
to look up stockId
and render it to
a pixbuf. stockId
should be a stock icon ID such as
STOCK_OPEN
or STOCK_OK
. size
should be a size
such as GTK_ICON_SIZE_MENU
.
The pixels in the returned Pixbuf
are shared with the rest of
the application and should not be modified. The pixbuf should be freed
after use with objectUnref
.
Since: 3.0
reparent
data WidgetReparentMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsWidget a, IsWidget b) => MethodInfo * WidgetReparentMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) | |
=> a |
|
-> b |
|
-> m () |
Deprecated: (Since version 3.14)Use containerRemove
and containerAdd
.
Moves a widget from one Container
to another, handling reference
count issues to avoid destroying the widget.
resetRcStyles
data WidgetResetRcStylesMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetResetRcStylesMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Deprecated: (Since version 3.0)Use StyleContext
instead, and widgetResetStyle
Reset the styles of widget
and all descendents, so when
they are looked up again, they get the correct values
for the currently loaded RC file settings.
This function is not useful for applications.
resetStyle
data WidgetResetStyleMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetResetStyleMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Updates the style context of widget
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 containerGetPathForChild
.
Since: 3.0
sendExpose
data WidgetSendExposeMethodInfo Source #
((~) * signature (Event -> m Int32), MonadIO m, IsWidget a) => MethodInfo * WidgetSendExposeMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Event |
|
-> m Int32 | Returns: return from the event signal emission ( |
Deprecated: (Since version 3.22)Application and widget code should not handle expose events directly; invalidation should use the Widget
API, and drawing should only happen inside Widget
::draw
implementations
Very rarely-used function. This function is used to emit
an expose event on a widget. This function is not normally used
directly. The only time it is used is when propagating an expose
event to a windowless child widget (widgetGetHasWindow
is False
),
and that is normally done using containerPropagateDraw
.
If you want to force an area of a window to be redrawn,
use windowInvalidateRect
or windowInvalidateRegion
.
To cause the redraw to be done immediately, follow that call
with a call to windowProcessUpdates
.
sendFocusChange
data WidgetSendFocusChangeMethodInfo Source #
((~) * signature (Event -> m Bool), MonadIO m, IsWidget a) => MethodInfo * WidgetSendFocusChangeMethodInfo a signature Source # | |
widgetSendFocusChange Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Event |
|
-> m Bool | Returns: the return value from the event signal emission: |
Sends the focus change event
to widget
This function is not meant to be used by applications. The only time it
should be used is when it is necessary for a Widget
to assign focus
to a widget that is semantically owned by the first widget even though
it’s not a direct child - for instance, a search entry in a floating
window similar to the quick search in TreeView
.
An example of its usage is:
C code
GdkEvent *fevent = gdk_event_new (GDK_FOCUS_CHANGE); fevent->focus_change.type = GDK_FOCUS_CHANGE; fevent->focus_change.in = TRUE; fevent->focus_change.window = _gtk_widget_get_window (widget); if (fevent->focus_change.window != NULL) g_object_ref (fevent->focus_change.window); gtk_widget_send_focus_change (widget, fevent); gdk_event_free (event);
Since: 2.20
setAccelPath
data WidgetSetAccelPathMethodInfo Source #
((~) * signature (Maybe Text -> Maybe b -> m ()), MonadIO m, IsWidget a, IsAccelGroup b) => MethodInfo * WidgetSetAccelPathMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a, IsAccelGroup b) | |
=> a |
|
-> Maybe Text |
|
-> Maybe b |
|
-> m () |
Given an accelerator group, accelGroup
, and an accelerator path,
accelPath
, sets up an accelerator in accelGroup
so whenever the
key binding that is defined for accelPath
is pressed, widget
will be activated. This removes any accelerators (for any
accelerator group) installed by previous calls to
widgetSetAccelPath
. Associating accelerators with
paths allows them to be modified by the user and the modifications
to be saved for future use. (See accelMapSave
.)
This function is a low level function that would most likely
be used by a menu creation system like UIManager
. If you
use UIManager
, setting up accelerator paths will be done
automatically.
Even when you you aren’t using UIManager
, if you only want to
set up accelerators on menu items menuItemSetAccelPath
provides a somewhat more convenient interface.
Note that accelPath
string will be stored in a GQuark
. Therefore, if you
pass a static string, you can save some memory by interning it first with
internStaticString
.
setAllocation
data WidgetSetAllocationMethodInfo Source #
((~) * signature (Rectangle -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetAllocationMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Rectangle |
|
-> m () |
Sets the widget’s allocation. This should not be used directly, but from within a widget’s size_allocate method.
The allocation set should be the “adjusted” or actual
allocation. If you’re implementing a Container
, you want to use
widgetSizeAllocate
instead of widgetSetAllocation
.
The GtkWidgetClass::adjust_size_allocation virtual method adjusts the
allocation inside widgetSizeAllocate
to create an adjusted
allocation.
Since: 2.18
setAppPaintable
data WidgetSetAppPaintableMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetAppPaintableMethodInfo a signature Source # | |
widgetSetAppPaintable Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the application intends to draw on the widget in
an Widget
::draw
handler.
This is a hint to the widget and does not affect the behavior of
the GTK+ core; many widgets ignore this flag entirely. For widgets
that do pay attention to the flag, such as EventBox
and Window
,
the effect is to suppress default themed drawing of the widget's
background. (Children of the widget will still be drawn.) The application
is then entirely responsible for drawing the widget background.
Note that the background is still drawn when the widget is mapped.
setCanDefault
data WidgetSetCanDefaultMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetCanDefaultMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Specifies whether widget
can be a default widget. See
widgetGrabDefault
for details about the meaning of
“default”.
Since: 2.18
setCanFocus
data WidgetSetCanFocusMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetCanFocusMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Specifies whether widget
can own the input focus. See
widgetGrabFocus
for actually setting the input focus on a
widget.
Since: 2.18
setChildVisible
data WidgetSetChildVisibleMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetChildVisibleMethodInfo a signature Source # | |
widgetSetChildVisible Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether widget
should be mapped along with its when its parent
is mapped and widget
has been shown with widgetShow
.
The child visibility can be set for widget before it is added to
a container with widgetSetParent
, to avoid mapping
children unnecessary before immediately unmapping them. However
it will be reset to its default state of True
when the widget
is removed from a container.
Note that changing the child visibility of a widget does not queue a resize on the widget. Most of the time, the size of a widget is computed from all visible children, whether or not they are mapped. If this is not the case, the container can queue a resize itself.
This function is only useful for container implementations and never should be called by an application.
setClip
data WidgetSetClipMethodInfo Source #
((~) * signature (Rectangle -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetClipMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Rectangle |
|
-> m () |
Sets the widget’s clip. This must not be used directly,
but from within a widget’s size_allocate method.
It must be called after widgetSetAllocation
(or after chaining up
to the parent class), because that function resets the clip.
The clip set should be the area that widget
draws on. If widget
is a
Container
, the area must contain all children's clips.
If this function is not called by widget
during a ::size-allocate handler,
the clip will be set to widget
's allocation.
Since: 3.14
setCompositeName
data WidgetSetCompositeNameMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetCompositeNameMethodInfo a signature Source # | |
widgetSetCompositeName Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Text |
|
-> m () |
Deprecated: (Since version 3.10)Use widgetClassSetTemplate
, or don’t use this API at all.
Sets a widgets composite name. The widget must be
a composite child of its parent; see widgetPushCompositeChild
.
setDefaultDirection
widgetSetDefaultDirection Source #
:: (HasCallStack, MonadIO m) | |
=> TextDirection |
|
-> m () |
Sets the default reading direction for widgets where the
direction has not been explicitly set by widgetSetDirection
.
setDeviceEnabled
data WidgetSetDeviceEnabledMethodInfo Source #
((~) * signature (b -> Bool -> m ()), MonadIO m, IsWidget a, IsDevice b) => MethodInfo * WidgetSetDeviceEnabledMethodInfo a signature Source # | |
widgetSetDeviceEnabled Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsDevice b) | |
=> a |
|
-> b |
|
-> Bool |
|
-> m () |
Enables or disables a Device
to interact with widget
and all its children.
It does so by descending through the Window
hierarchy
and enabling the same mask that is has for core events
(i.e. the one that windowGetEvents
returns).
Since: 3.0
setDeviceEvents
data WidgetSetDeviceEventsMethodInfo Source #
((~) * signature (b -> [EventMask] -> m ()), MonadIO m, IsWidget a, IsDevice b) => MethodInfo * WidgetSetDeviceEventsMethodInfo a signature Source # | |
widgetSetDeviceEvents Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsDevice b) | |
=> a |
|
-> b |
|
-> [EventMask] |
|
-> m () |
Sets the device event mask (see 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 widgetAddDeviceEvents
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 widgetGetHasWindow
);
to get events on those widgets, place them inside a EventBox
and receive events on the event box.
Since: 3.0
setDirection
data WidgetSetDirectionMethodInfo Source #
((~) * signature (TextDirection -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetDirectionMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> TextDirection |
|
-> m () |
Sets the reading direction on a particular widget. This direction controls the primary direction for widgets containing text, and also the direction in which the children of a container are packed. The ability to set the direction is present in order so that correct localization into languages with right-to-left reading directions can be done. Generally, applications will let the default reading direction present, except for containers where the containers are arranged in an order that is explicitly visual rather than logical (such as buttons for text justification).
If the direction is set to TextDirectionNone
, then the value
set by widgetSetDefaultDirection
will be used.
setDoubleBuffered
data WidgetSetDoubleBufferedMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetDoubleBufferedMethodInfo a signature Source # | |
widgetSetDoubleBuffered Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Deprecated: (Since version 3.14)This function does not work under non-X11 backends or withnon-native windows.It should not be used in newly written code.
Widgets are double buffered by default; you can use this function
to turn off the buffering. “Double buffered” simply means that
windowBeginDrawFrame
and windowEndDrawFrame
are called
automatically around expose events sent to the
widget. windowBeginDrawFrame
diverts all drawing to a widget's
window to an offscreen buffer, and windowEndDrawFrame
draws the
buffer to the screen. The result is that users see the window
update in one smooth step, and don’t see individual graphics
primitives being rendered.
In very simple terms, double buffered widgets don’t flicker, so you would only use this function to turn off double buffering if you had special needs and really knew what you were doing.
Note: if you turn off double-buffering, you have to handle
expose events, since even the clearing to the background color or
pixmap will not happen automatically (as it is done in
windowBeginDrawFrame
).
In 3.10 GTK and GDK have been restructured for translucent drawing. Since then expose events for double-buffered widgets are culled into a single event to the toplevel GDK window. If you now unset double buffering, you will cause a separate rendering pass for every widget. This will likely cause rendering problems - in particular related to stacking - and usually increases rendering times significantly.
setEvents
data WidgetSetEventsMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetEventsMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the event mask (see 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 widgetAddEvents
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 widgetGetHasWindow
). To get events on those widgets,
place them inside a EventBox
and receive events on the event
box.
setFocusOnClick
data WidgetSetFocusOnClickMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetFocusOnClickMethodInfo a signature Source # | |
widgetSetFocusOnClick Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the widget should grab focus when it is clicked with the mouse. Making mouse clicks not grab focus is useful in places like toolbars where you don’t want the keyboard focus removed from the main area of the application.
Since: 3.20
setFontMap
data WidgetSetFontMapMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsWidget a, IsFontMap b) => MethodInfo * WidgetSetFontMapMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a, IsFontMap b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the font map to use for Pango rendering. When not set, the widget will inherit the font map from its parent.
Since: 3.18
setFontOptions
data WidgetSetFontOptionsMethodInfo Source #
((~) * signature (Maybe FontOptions -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetFontOptionsMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Maybe FontOptions |
|
-> m () |
Sets the FontOptions
used for Pango rendering in this widget.
When not set, the default font options for the Screen
will be used.
Since: 3.18
setHalign
data WidgetSetHalignMethodInfo Source #
((~) * signature (Align -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetHalignMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Align |
|
-> m () |
Sets the horizontal alignment of widget
.
See the Widget
:halign
property.
setHasTooltip
data WidgetSetHasTooltipMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetHasTooltipMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the has-tooltip property on widget
to hasTooltip
. See
Widget
:has-tooltip
for more information.
Since: 2.12
setHasWindow
data WidgetSetHasWindowMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetHasWindowMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Specifies whether widget
has a Window
of its own. Note that
all realized widgets have a non-Nothing
“window” pointer
(widgetGetWindow
never returns a Nothing
window when a widget
is realized), but for many of them it’s actually the Window
of
one of its parent widgets. Widgets that do not create a window
for
themselves in Widget
::realize
must announce this by
calling this function with hasWindow
= False
.
This function should only be called by widget implementations,
and they should call it in their init()
function.
Since: 2.18
setHexpand
data WidgetSetHexpandMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetHexpandMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the widget would like any available extra horizontal
space. When a user resizes a Window
, widgets with expand=TRUE
generally receive the extra space. For example, a list or
scrollable area or document in your window would often be set to
expand.
Call this function to set the expand flag if you would like your widget to become larger horizontally when the window has extra room.
By default, widgets automatically expand if any of their children
want to expand. (To see if a widget will automatically expand given
its current children and state, call widgetComputeExpand
. A
container can decide how the expandability of children affects the
expansion of the container by overriding the compute_expand virtual
method on Widget
.).
Setting hexpand explicitly with this function will override the automatic expand behavior.
This function forces the widget to expand or not to expand,
regardless of children. The override occurs because
widgetSetHexpand
sets the hexpand-set property (see
widgetSetHexpandSet
) which causes the widget’s hexpand
value to be used, rather than looking at children and widget state.
setHexpandSet
data WidgetSetHexpandSetMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetHexpandSetMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the hexpand flag (see widgetGetHexpand
) will
be used.
The hexpand-set property will be set automatically when you call
widgetSetHexpand
to set hexpand, so the most likely
reason to use this function would be to unset an explicit expand
flag.
If hexpand is set, then it overrides any computed expand value based on child widgets. If hexpand is not set, then the expand value depends on whether any children of the widget would like to expand.
There are few reasons to use this function, but it’s here for completeness and consistency.
setMapped
data WidgetSetMappedMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetMappedMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Marks the widget as being realized.
This function should only ever be called in a derived widget's “map” or “unmap” implementation.
Since: 2.20
setMarginBottom
data WidgetSetMarginBottomMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetMarginBottomMethodInfo a signature Source # | |
widgetSetMarginBottom Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the bottom margin of widget
.
See the Widget
:margin-bottom
property.
Since: 3.0
setMarginEnd
data WidgetSetMarginEndMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetMarginEndMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the end margin of widget
.
See the Widget
:margin-end
property.
Since: 3.12
setMarginLeft
data WidgetSetMarginLeftMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetMarginLeftMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Int32 |
|
-> m () |
Deprecated: (Since version 3.12)Use widgetSetMarginStart
instead.
Sets the left margin of widget
.
See the Widget
:margin-left
property.
Since: 3.0
setMarginRight
data WidgetSetMarginRightMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetMarginRightMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Int32 |
|
-> m () |
Deprecated: (Since version 3.12)Use widgetSetMarginEnd
instead.
Sets the right margin of widget
.
See the Widget
:margin-right
property.
Since: 3.0
setMarginStart
data WidgetSetMarginStartMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetMarginStartMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the start margin of widget
.
See the Widget
:margin-start
property.
Since: 3.12
setMarginTop
data WidgetSetMarginTopMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetMarginTopMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the top margin of widget
.
See the Widget
:margin-top
property.
Since: 3.0
setName
data WidgetSetNameMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetNameMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Text |
|
-> m () |
Widgets can be named, which allows you to refer to them from a
CSS file. You can apply a style to widgets with a particular name
in the CSS file. See the documentation for the CSS syntax (on the
same page as the docs for StyleContext
).
Note that the CSS syntax has certain special characters to delimit and represent elements in a selector (period, #, >, *...), so using these will make your widget impossible to match by name. Any combination of alphanumeric symbols, dashes and underscores will suffice.
setNoShowAll
data WidgetSetNoShowAllMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetNoShowAllMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the Widget
:no-show-all
property, which determines whether
calls to widgetShowAll
will affect this widget.
This is mostly for use in constructing widget hierarchies with externally
controlled visibility, see UIManager
.
Since: 2.4
setOpacity
data WidgetSetOpacityMethodInfo Source #
((~) * signature (Double -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetOpacityMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Double |
|
-> m () |
Request the widget
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:
For toplevel widgets this depends on the capabilities of the windowing
system. On X11 this has any effect only on X screens with a compositing manager
running. See widgetIsComposited
. On Windows it should work
always, although setting a window’s opacity after the window has been
shown causes it to flicker once on Windows.
For child widgets it doesn’t work if any affected widget has a native window, or disables double buffering.
Since: 3.8
setParent
data WidgetSetParentMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsWidget a, IsWidget b) => MethodInfo * WidgetSetParentMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) | |
=> a |
|
-> b |
|
-> m () |
This function is useful only when implementing subclasses of
Container
.
Sets the container as the parent of widget
, 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
widgetUnparent
.
setParentWindow
data WidgetSetParentWindowMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsWidget a, IsWindow b) => MethodInfo * WidgetSetParentWindowMethodInfo a signature Source # | |
widgetSetParentWindow Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsWindow b) | |
=> a |
|
-> b |
|
-> m () |
setRealized
data WidgetSetRealizedMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetRealizedMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Marks the widget as being realized. This function must only be
called after all GdkWindows
for the widget
have been created
and registered.
This function should only ever be called in a derived widget's “realize” or “unrealize” implementation.
Since: 2.20
setReceivesDefault
data WidgetSetReceivesDefaultMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetReceivesDefaultMethodInfo a signature Source # | |
widgetSetReceivesDefault Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Specifies whether widget
will be treated as the default widget
within its toplevel when it has the focus, even if another widget
is the default.
See widgetGrabDefault
for details about the meaning of
“default”.
Since: 2.18
setRedrawOnAllocate
data WidgetSetRedrawOnAllocateMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetRedrawOnAllocateMethodInfo a signature Source # | |
widgetSetRedrawOnAllocate Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the entire widget is queued for drawing when its size
allocation changes. By default, this setting is 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.
Note that for widgets where widgetGetHasWindow
is False
setting this flag to False
turns off all allocation on resizing:
the widget will not even redraw if its position changes; this is to
allow containers that don’t draw anything to avoid excess
invalidations. If you set this flag on a widget with no window that
does draw on widget
->window, you are
responsible for invalidating both the old and new allocation of the
widget when the widget is moved and responsible for invalidating
regions newly when the widget increases size.
setSensitive
data WidgetSetSensitiveMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetSensitiveMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the sensitivity of a widget. A widget is sensitive if the user can interact with it. Insensitive widgets are “grayed out” and the user can’t interact with them. Insensitive widgets are known as “inactive”, “disabled”, or “ghosted” in some other toolkits.
setSizeRequest
data WidgetSetSizeRequestMethodInfo Source #
((~) * signature (Int32 -> Int32 -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetSizeRequestMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Sets the minimum size of a widget; that is, the widget’s size
request will be at least width
by height
. You can use this
function to force a widget to be larger than it normally would be.
In most cases, windowSetDefaultSize
is a better choice for
toplevel windows than this function; setting the default size will
still allow users to shrink the window. Setting the size request
will force them to leave the window at least as large as the size
request. When dealing with window sizes,
windowSetGeometryHints
can be a useful function as well.
Note the inherent danger of setting any fixed size - themes, translations into other languages, different fonts, and user action can all change the appropriate size for a given widget. So, it's basically impossible to hardcode a size that will always be correct.
The size request of a widget is the smallest size a widget can accept while still functioning well and drawing itself correctly. However in some strange cases a widget may be allocated less than its requested size, and in many cases a widget may be allocated more space than it requested.
If the size request in a given direction is -1 (unset), then the “natural” size request of the widget will be used instead.
The size request set here does not include any margin from the
Widget
properties margin-left, margin-right, margin-top, and
margin-bottom, but it does include pretty much all other padding
or border properties set by any subclass of Widget
.
setState
data WidgetSetStateMethodInfo Source #
((~) * signature (StateType -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetStateMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> StateType |
|
-> m () |
Deprecated: (Since version 3.0)Use widgetSetStateFlags
instead.
This function is for use in widget implementations. Sets the state
of a widget (insensitive, prelighted, etc.) Usually you should set
the state using wrapper functions such as widgetSetSensitive
.
setStateFlags
data WidgetSetStateFlagsMethodInfo Source #
((~) * signature ([StateFlags] -> Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetStateFlagsMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> [StateFlags] |
|
-> Bool |
|
-> m () |
This function is for use in widget implementations. Turns on flag values in the current widget state (insensitive, prelighted, etc.).
This function accepts the values StateFlagsDirLtr
and
StateFlagsDirRtl
but ignores them. If you want to set the widget's
direction, use widgetSetDirection
.
It is worth mentioning that any other state than StateFlagsInsensitive
,
will be propagated down to all non-internal children if widget
is a
Container
, while StateFlagsInsensitive
itself will be propagated
down to all Container
children by different means than turning on the
state flag down the hierarchy, both widgetGetStateFlags
and
widgetIsSensitive
will make use of these.
Since: 3.0
setStyle
data WidgetSetStyleMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsWidget a, IsStyle b) => MethodInfo * WidgetSetStyleMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a, IsStyle b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Deprecated: (Since version 3.0)Use StyleContext
instead
Used to set the Style
for a widget (widget
->style). Since
GTK 3, this function does nothing, the passed in style is ignored.
setSupportMultidevice
data WidgetSetSupportMultideviceMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetSupportMultideviceMethodInfo a signature Source # | |
widgetSetSupportMultidevice Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Enables or disables multiple pointer awareness. If this setting is True
,
widget
will start receiving multiple, per device enter/leave events. Note
that if custom GdkWindows
are created in Widget
::realize
,
windowSetSupportMultidevice
will have to be called manually on them.
Since: 3.0
setTooltipMarkup
data WidgetSetTooltipMarkupMethodInfo Source #
((~) * signature (Maybe Text -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetTooltipMarkupMethodInfo a signature Source # | |
widgetSetTooltipMarkup Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets markup
as the contents of the tooltip, which is marked up with
the [Pango text markup language][PangoMarkupFormat].
This function will take care of setting Widget
:has-tooltip
to True
and of the default handler for the Widget
::query-tooltip
signal.
See also the Widget
:tooltip-markup
property and
tooltipSetMarkup
.
Since: 2.12
setTooltipText
data WidgetSetTooltipTextMethodInfo Source #
((~) * signature (Maybe Text -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetTooltipTextMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets text
as the contents of the tooltip. This function will take
care of setting Widget
:has-tooltip
to True
and of the default
handler for the Widget
::query-tooltip
signal.
See also the Widget
:tooltip-text
property and tooltipSetText
.
Since: 2.12
setTooltipWindow
data WidgetSetTooltipWindowMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsWidget a, IsWindow b) => MethodInfo * WidgetSetTooltipWindowMethodInfo a signature Source # | |
widgetSetTooltipWindow Source #
Replaces the default, usually yellow, window used for displaying
tooltips with customWindow
. GTK+ will take care of showing and
hiding customWindow
at the right moment, to behave likewise as
the default tooltip window. If customWindow
is Nothing
, the default
tooltip window will be used.
If the custom window should have the default theming it needs to
have the name “gtk-tooltip”, see widgetSetName
.
Since: 2.12
setValign
data WidgetSetValignMethodInfo Source #
((~) * signature (Align -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetValignMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Align |
|
-> m () |
Sets the vertical alignment of widget
.
See the Widget
:valign
property.
setVexpand
data WidgetSetVexpandMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetVexpandMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the widget would like any available extra vertical space.
See widgetSetHexpand
for more detail.
setVexpandSet
data WidgetSetVexpandSetMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetVexpandSetMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the vexpand flag (see widgetGetVexpand
) will
be used.
See widgetSetHexpandSet
for more detail.
setVisible
data WidgetSetVisibleMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSetVisibleMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the visibility state of widget
. Note that setting this to
True
doesn’t mean the widget is actually viewable, see
widgetGetVisible
.
This function simply calls widgetShow
or widgetHide
but is nicer to use when the visibility of the widget depends on
some condition.
Since: 2.18
setVisual
data WidgetSetVisualMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsWidget a, IsVisual b) => MethodInfo * WidgetSetVisualMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a, IsVisual b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the visual that should be used for by widget and its children for
creating GdkWindows
. The visual must be on the same Screen
as
returned by widgetGetScreen
, so handling the
Widget
::screen-changed
signal is necessary.
Setting a new visual
will not cause widget
to recreate its windows,
so you should call this function before widget
is realized.
setWindow
data WidgetSetWindowMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsWidget a, IsWindow b) => MethodInfo * WidgetSetWindowMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a, IsWindow b) | |
=> a |
|
-> b |
|
-> m () |
Sets a widget’s window. This function should only be used in a
widget’s Widget
::realize
implementation. The window
passed is
usually either new window created with windowNew
, or the
window of its parent widget as returned by
widgetGetParentWindow
.
Widgets must indicate whether they will create their own Window
by calling widgetSetHasWindow
. This is usually done in the
widget’s init()
function.
Note that this function does not add any reference to window
.
Since: 2.18
shapeCombineRegion
data WidgetShapeCombineRegionMethodInfo Source #
((~) * signature (Maybe Region -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetShapeCombineRegionMethodInfo a signature Source # | |
widgetShapeCombineRegion Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Maybe Region |
|
-> m () |
Sets a shape for this widget’s GDK window. This allows for
transparent windows etc., see windowShapeCombineRegion
for more information.
Since: 3.0
show
data WidgetShowMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetShowMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Flags a widget to be displayed. Any widget that isn’t shown will
not appear on the screen. If you want to show all the widgets in a
container, it’s easier to call widgetShowAll
on the
container, instead of individually showing the widgets.
Remember that you have to show the containers containing a widget, in addition to the widget itself, before it will appear onscreen.
When a toplevel container is shown, it is immediately realized and mapped; other shown widgets are realized and mapped when their toplevel container is realized and mapped.
showAll
data WidgetShowAllMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetShowAllMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Recursively shows a widget, and any child widgets (if the widget is a container).
showNow
data WidgetShowNowMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetShowNowMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Shows a widget. If the widget is an unmapped toplevel widget
(i.e. a 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.
sizeAllocate
data WidgetSizeAllocateMethodInfo Source #
((~) * signature (Rectangle -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSizeAllocateMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Rectangle |
|
-> m () |
This function is only used by Container
subclasses, to assign a size
and position to their child widgets.
In this function, the allocation may be adjusted. It will be forced
to a 1x1 minimum size, and the adjust_size_allocation virtual
method on the child will be used to adjust the allocation. Standard
adjustments include removing the widget’s margins, and applying the
widget’s Widget
:halign
and Widget
:valign
properties.
For baseline support in containers you need to use widgetSizeAllocateWithBaseline
instead.
sizeAllocateWithBaseline
data WidgetSizeAllocateWithBaselineMethodInfo Source #
((~) * signature (Rectangle -> Int32 -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetSizeAllocateWithBaselineMethodInfo a signature Source # | |
widgetSizeAllocateWithBaseline Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Rectangle |
|
-> Int32 |
|
-> m () |
This function is only used by Container
subclasses, to assign a size,
position and (optionally) baseline to their child widgets.
In this function, the allocation and baseline may be adjusted. It
will be forced to a 1x1 minimum size, and the
adjust_size_allocation virtual and adjust_baseline_allocation
methods on the child will be used to adjust the allocation and
baseline. Standard adjustments include removing the widget's
margins, and applying the widget’s Widget
:halign
and
Widget
:valign
properties.
If the child widget does not have a valign of AlignBaseline
the
baseline argument is ignored and -1 is used instead.
Since: 3.10
sizeRequest
data WidgetSizeRequestMethodInfo Source #
((~) * signature (m Requisition), MonadIO m, IsWidget a) => MethodInfo * WidgetSizeRequestMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Requisition |
Deprecated: (Since version 3.0)Use widgetGetPreferredSize
instead.
This function is typically used when implementing a Container
subclass. Obtains the preferred size of a widget. The container
uses this information to arrange its child widgets and decide what
size allocations to give them with widgetSizeAllocate
.
You can also call this function from an application, with some caveats. Most notably, getting a size request requires the widget to be associated with a screen, because font information may be needed. Multihead-aware applications should keep this in mind.
Also remember that the size request is not necessarily the size a widget will actually be allocated.
styleAttach
data WidgetStyleAttachMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetStyleAttachMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Deprecated: (Since version 3.0)This step is unnecessary with StyleContext
.
This function attaches the widget’s Style
to the widget's
Window
. It is a replacement for
widget->style = gtk_style_attach (widget->style, widget->window);
and should only ever be called in a derived widget’s “realize”
implementation which does not chain up to its parent class'
“realize” implementation, because one of the parent classes
(finally Widget
) would attach the style itself.
Since: 2.20
styleGetProperty
data WidgetStyleGetPropertyMethodInfo Source #
((~) * signature (Text -> GValue -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetStyleGetPropertyMethodInfo a signature Source # | |
widgetStyleGetProperty Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Text |
|
-> GValue |
|
-> m () |
Gets the value of a style property of widget
.
thawChildNotify
data WidgetThawChildNotifyMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetThawChildNotifyMethodInfo a signature Source # | |
widgetThawChildNotify Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Reverts the effect of a previous call to widgetFreezeChildNotify
.
This causes all queued Widget
::child-notify
signals on widget
to be
emitted.
translateCoordinates
widgetTranslateCoordinates Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) | |
=> a |
|
-> b |
|
-> Int32 |
|
-> Int32 |
|
-> m (Bool, Int32, Int32) | Returns: |
Translate coordinates relative to srcWidget
’s allocation to coordinates
relative to destWidget
’s allocations. In order to perform this
operation, both widgets must be realized, and must share a common
toplevel.
triggerTooltipQuery
data WidgetTriggerTooltipQueryMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetTriggerTooltipQueryMethodInfo a signature Source # | |
widgetTriggerTooltipQuery Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
Triggers a tooltip query on the display where the toplevel of widget
is located. See tooltipTriggerTooltipQuery
for more
information.
Since: 2.12
unmap
data WidgetUnmapMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetUnmapMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
This function is only for use in widget implementations. Causes a widget to be unmapped if it’s currently mapped.
unparent
data WidgetUnparentMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetUnparentMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
This function is only for use in widget implementations.
Should be called by implementations of the remove method
on Container
, to dissociate a child from the container.
unrealize
data WidgetUnrealizeMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetUnrealizeMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m () |
This function is only useful in widget implementations.
Causes a widget to be unrealized (frees all GDK resources
associated with the widget, such as widget
->window).
unregisterWindow
data WidgetUnregisterWindowMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsWidget a, IsWindow b) => MethodInfo * WidgetUnregisterWindowMethodInfo a signature Source # | |
widgetUnregisterWindow Source #
:: (HasCallStack, MonadIO m, IsWidget a, IsWindow b) | |
=> a |
|
-> b |
|
-> m () |
Unregisters a Window
from the widget that was previously set up with
widgetRegisterWindow
. You need to call this when the window is
no longer used by the widget, such as when you destroy it.
Since: 3.8
unsetStateFlags
data WidgetUnsetStateFlagsMethodInfo Source #
((~) * signature ([StateFlags] -> m ()), MonadIO m, IsWidget a) => MethodInfo * WidgetUnsetStateFlagsMethodInfo a signature Source # | |
widgetUnsetStateFlags Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> [StateFlags] |
|
-> m () |
This function is for use in widget implementations. Turns off flag
values for the current widget state (insensitive, prelighted, etc.).
See widgetSetStateFlags
.
Since: 3.0
Properties
appPaintable
data WidgetAppPaintablePropertyInfo Source #
constructWidgetAppPaintable :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetAppPaintable :: AttrLabelProxy "appPaintable" Source #
canDefault
data WidgetCanDefaultPropertyInfo Source #
constructWidgetCanDefault :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetCanDefault :: AttrLabelProxy "canDefault" Source #
canFocus
data WidgetCanFocusPropertyInfo Source #
constructWidgetCanFocus :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetCanFocus :: AttrLabelProxy "canFocus" Source #
compositeChild
data WidgetCompositeChildPropertyInfo Source #
widgetCompositeChild :: AttrLabelProxy "compositeChild" Source #
doubleBuffered
data WidgetDoubleBufferedPropertyInfo Source #
constructWidgetDoubleBuffered :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetDoubleBuffered :: AttrLabelProxy "doubleBuffered" Source #
events
data WidgetEventsPropertyInfo Source #
constructWidgetEvents :: IsWidget o => [EventMask] -> IO (GValueConstruct o) Source #
widgetEvents :: AttrLabelProxy "events" Source #
expand
data WidgetExpandPropertyInfo Source #
constructWidgetExpand :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetExpand :: AttrLabelProxy "expand" Source #
focusOnClick
data WidgetFocusOnClickPropertyInfo Source #
constructWidgetFocusOnClick :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetFocusOnClick :: AttrLabelProxy "focusOnClick" Source #
halign
data WidgetHalignPropertyInfo Source #
constructWidgetHalign :: IsWidget o => Align -> IO (GValueConstruct o) Source #
widgetHalign :: AttrLabelProxy "halign" Source #
hasDefault
data WidgetHasDefaultPropertyInfo Source #
constructWidgetHasDefault :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
hasFocus
data WidgetHasFocusPropertyInfo Source #
constructWidgetHasFocus :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
hasTooltip
data WidgetHasTooltipPropertyInfo Source #
constructWidgetHasTooltip :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetHasTooltip :: AttrLabelProxy "hasTooltip" Source #
heightRequest
data WidgetHeightRequestPropertyInfo Source #
constructWidgetHeightRequest :: IsWidget o => Int32 -> IO (GValueConstruct o) Source #
widgetHeightRequest :: AttrLabelProxy "heightRequest" Source #
hexpand
data WidgetHexpandPropertyInfo Source #
constructWidgetHexpand :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetHexpand :: AttrLabelProxy "hexpand" Source #
hexpandSet
data WidgetHexpandSetPropertyInfo Source #
constructWidgetHexpandSet :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetHexpandSet :: AttrLabelProxy "hexpandSet" Source #
isFocus
data WidgetIsFocusPropertyInfo Source #
constructWidgetIsFocus :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
margin
data WidgetMarginPropertyInfo Source #
constructWidgetMargin :: IsWidget o => Int32 -> IO (GValueConstruct o) Source #
widgetMargin :: AttrLabelProxy "margin" Source #
marginBottom
data WidgetMarginBottomPropertyInfo Source #
constructWidgetMarginBottom :: IsWidget o => Int32 -> IO (GValueConstruct o) Source #
widgetMarginBottom :: AttrLabelProxy "marginBottom" Source #
marginEnd
data WidgetMarginEndPropertyInfo Source #
constructWidgetMarginEnd :: IsWidget o => Int32 -> IO (GValueConstruct o) Source #
widgetMarginEnd :: AttrLabelProxy "marginEnd" Source #
marginLeft
data WidgetMarginLeftPropertyInfo Source #
constructWidgetMarginLeft :: IsWidget o => Int32 -> IO (GValueConstruct o) Source #
widgetMarginLeft :: AttrLabelProxy "marginLeft" Source #
marginRight
data WidgetMarginRightPropertyInfo Source #
constructWidgetMarginRight :: IsWidget o => Int32 -> IO (GValueConstruct o) Source #
widgetMarginRight :: AttrLabelProxy "marginRight" Source #
marginStart
data WidgetMarginStartPropertyInfo Source #
constructWidgetMarginStart :: IsWidget o => Int32 -> IO (GValueConstruct o) Source #
widgetMarginStart :: AttrLabelProxy "marginStart" Source #
marginTop
data WidgetMarginTopPropertyInfo Source #
constructWidgetMarginTop :: IsWidget o => Int32 -> IO (GValueConstruct o) Source #
widgetMarginTop :: AttrLabelProxy "marginTop" Source #
name
data WidgetNamePropertyInfo Source #
constructWidgetName :: IsWidget o => Text -> IO (GValueConstruct o) Source #
widgetName :: AttrLabelProxy "name" Source #
noShowAll
data WidgetNoShowAllPropertyInfo Source #
constructWidgetNoShowAll :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetNoShowAll :: AttrLabelProxy "noShowAll" Source #
opacity
data WidgetOpacityPropertyInfo Source #
constructWidgetOpacity :: IsWidget o => Double -> IO (GValueConstruct o) Source #
widgetOpacity :: AttrLabelProxy "opacity" Source #
parent
data WidgetParentPropertyInfo Source #
clearWidgetParent :: (MonadIO m, IsWidget o) => o -> m () Source #
constructWidgetParent :: (IsWidget o, IsContainer a) => a -> IO (GValueConstruct o) Source #
setWidgetParent :: (MonadIO m, IsWidget o, IsContainer a) => o -> a -> m () Source #
widgetParent :: AttrLabelProxy "parent" Source #
receivesDefault
data WidgetReceivesDefaultPropertyInfo Source #
constructWidgetReceivesDefault :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetReceivesDefault :: AttrLabelProxy "receivesDefault" Source #
scaleFactor
data WidgetScaleFactorPropertyInfo Source #
widgetScaleFactor :: AttrLabelProxy "scaleFactor" Source #
sensitive
data WidgetSensitivePropertyInfo Source #
constructWidgetSensitive :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetSensitive :: AttrLabelProxy "sensitive" Source #
style
data WidgetStylePropertyInfo Source #
clearWidgetStyle :: (MonadIO m, IsWidget o) => o -> m () Source #
constructWidgetStyle :: (IsWidget o, IsStyle a) => a -> IO (GValueConstruct o) Source #
widgetStyle :: AttrLabelProxy "style" Source #
tooltipMarkup
data WidgetTooltipMarkupPropertyInfo Source #
clearWidgetTooltipMarkup :: (MonadIO m, IsWidget o) => o -> m () Source #
constructWidgetTooltipMarkup :: IsWidget o => Text -> IO (GValueConstruct o) Source #
widgetTooltipMarkup :: AttrLabelProxy "tooltipMarkup" Source #
tooltipText
data WidgetTooltipTextPropertyInfo Source #
clearWidgetTooltipText :: (MonadIO m, IsWidget o) => o -> m () Source #
constructWidgetTooltipText :: IsWidget o => Text -> IO (GValueConstruct o) Source #
widgetTooltipText :: AttrLabelProxy "tooltipText" Source #
valign
data WidgetValignPropertyInfo Source #
constructWidgetValign :: IsWidget o => Align -> IO (GValueConstruct o) Source #
widgetValign :: AttrLabelProxy "valign" Source #
vexpand
data WidgetVexpandPropertyInfo Source #
constructWidgetVexpand :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetVexpand :: AttrLabelProxy "vexpand" Source #
vexpandSet
data WidgetVexpandSetPropertyInfo Source #
constructWidgetVexpandSet :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetVexpandSet :: AttrLabelProxy "vexpandSet" Source #
visible
data WidgetVisiblePropertyInfo Source #
constructWidgetVisible :: IsWidget o => Bool -> IO (GValueConstruct o) Source #
widgetVisible :: AttrLabelProxy "visible" Source #
widthRequest
data WidgetWidthRequestPropertyInfo Source #
constructWidgetWidthRequest :: IsWidget o => Int32 -> IO (GValueConstruct o) Source #
widgetWidthRequest :: AttrLabelProxy "widthRequest" Source #
window
data WidgetWindowPropertyInfo Source #
widgetWindow :: AttrLabelProxy "window" Source #
Signals
accelClosuresChanged
type WidgetAccelClosuresChangedCallback = IO () Source #
afterWidgetAccelClosuresChanged :: (GObject a, MonadIO m) => a -> WidgetAccelClosuresChangedCallback -> m SignalHandlerId Source #
mk_WidgetAccelClosuresChangedCallback :: C_WidgetAccelClosuresChangedCallback -> IO (FunPtr C_WidgetAccelClosuresChangedCallback) Source #
onWidgetAccelClosuresChanged :: (GObject a, MonadIO m) => a -> WidgetAccelClosuresChangedCallback -> m SignalHandlerId Source #
wrap_WidgetAccelClosuresChangedCallback :: WidgetAccelClosuresChangedCallback -> Ptr () -> Ptr () -> IO () Source #
buttonPressEvent
type C_WidgetButtonPressEventCallback = Ptr () -> Ptr EventButton -> Ptr () -> IO CInt Source #
type WidgetButtonPressEventCallback = EventButton -> IO Bool Source #
afterWidgetButtonPressEvent :: (GObject a, MonadIO m) => a -> WidgetButtonPressEventCallback -> m SignalHandlerId Source #
mk_WidgetButtonPressEventCallback :: C_WidgetButtonPressEventCallback -> IO (FunPtr C_WidgetButtonPressEventCallback) Source #
onWidgetButtonPressEvent :: (GObject a, MonadIO m) => a -> WidgetButtonPressEventCallback -> m SignalHandlerId Source #
wrap_WidgetButtonPressEventCallback :: WidgetButtonPressEventCallback -> Ptr () -> Ptr EventButton -> Ptr () -> IO CInt Source #
buttonReleaseEvent
type C_WidgetButtonReleaseEventCallback = Ptr () -> Ptr EventButton -> Ptr () -> IO CInt Source #
type WidgetButtonReleaseEventCallback = EventButton -> IO Bool Source #
afterWidgetButtonReleaseEvent :: (GObject a, MonadIO m) => a -> WidgetButtonReleaseEventCallback -> m SignalHandlerId Source #
mk_WidgetButtonReleaseEventCallback :: C_WidgetButtonReleaseEventCallback -> IO (FunPtr C_WidgetButtonReleaseEventCallback) Source #
onWidgetButtonReleaseEvent :: (GObject a, MonadIO m) => a -> WidgetButtonReleaseEventCallback -> m SignalHandlerId Source #
wrap_WidgetButtonReleaseEventCallback :: WidgetButtonReleaseEventCallback -> Ptr () -> Ptr EventButton -> Ptr () -> IO CInt Source #
canActivateAccel
afterWidgetCanActivateAccel :: (GObject a, MonadIO m) => a -> WidgetCanActivateAccelCallback -> m SignalHandlerId Source #
mk_WidgetCanActivateAccelCallback :: C_WidgetCanActivateAccelCallback -> IO (FunPtr C_WidgetCanActivateAccelCallback) Source #
onWidgetCanActivateAccel :: (GObject a, MonadIO m) => a -> WidgetCanActivateAccelCallback -> m SignalHandlerId Source #
wrap_WidgetCanActivateAccelCallback :: WidgetCanActivateAccelCallback -> Ptr () -> Word32 -> Ptr () -> IO CInt Source #
childNotify
type C_WidgetChildNotifyCallback = Ptr () -> Ptr GParamSpec -> Ptr () -> IO () Source #
type WidgetChildNotifyCallback = GParamSpec -> IO () Source #
afterWidgetChildNotify :: (GObject a, MonadIO m) => a -> WidgetChildNotifyCallback -> m SignalHandlerId Source #
mk_WidgetChildNotifyCallback :: C_WidgetChildNotifyCallback -> IO (FunPtr C_WidgetChildNotifyCallback) Source #
onWidgetChildNotify :: (GObject a, MonadIO m) => a -> WidgetChildNotifyCallback -> m SignalHandlerId Source #
wrap_WidgetChildNotifyCallback :: WidgetChildNotifyCallback -> Ptr () -> Ptr GParamSpec -> Ptr () -> IO () Source #
compositedChanged
type WidgetCompositedChangedCallback = IO () Source #
Deprecated: (Since version 3.22)Use GdkScreen::composited-changed instead.
afterWidgetCompositedChanged :: (GObject a, MonadIO m) => a -> WidgetCompositedChangedCallback -> m SignalHandlerId Source #
mk_WidgetCompositedChangedCallback :: C_WidgetCompositedChangedCallback -> IO (FunPtr C_WidgetCompositedChangedCallback) Source #
onWidgetCompositedChanged :: (GObject a, MonadIO m) => a -> WidgetCompositedChangedCallback -> m SignalHandlerId Source #
wrap_WidgetCompositedChangedCallback :: WidgetCompositedChangedCallback -> Ptr () -> Ptr () -> IO () Source #
configureEvent
type C_WidgetConfigureEventCallback = Ptr () -> Ptr EventConfigure -> Ptr () -> IO CInt Source #
type WidgetConfigureEventCallback = EventConfigure -> IO Bool Source #
afterWidgetConfigureEvent :: (GObject a, MonadIO m) => a -> WidgetConfigureEventCallback -> m SignalHandlerId Source #
mk_WidgetConfigureEventCallback :: C_WidgetConfigureEventCallback -> IO (FunPtr C_WidgetConfigureEventCallback) Source #
onWidgetConfigureEvent :: (GObject a, MonadIO m) => a -> WidgetConfigureEventCallback -> m SignalHandlerId Source #
wrap_WidgetConfigureEventCallback :: WidgetConfigureEventCallback -> Ptr () -> Ptr EventConfigure -> Ptr () -> IO CInt Source #
damageEvent
type C_WidgetDamageEventCallback = Ptr () -> Ptr EventExpose -> Ptr () -> IO CInt Source #
type WidgetDamageEventCallback = EventExpose -> IO Bool Source #
afterWidgetDamageEvent :: (GObject a, MonadIO m) => a -> WidgetDamageEventCallback -> m SignalHandlerId Source #
mk_WidgetDamageEventCallback :: C_WidgetDamageEventCallback -> IO (FunPtr C_WidgetDamageEventCallback) Source #
onWidgetDamageEvent :: (GObject a, MonadIO m) => a -> WidgetDamageEventCallback -> m SignalHandlerId Source #
wrap_WidgetDamageEventCallback :: WidgetDamageEventCallback -> Ptr () -> Ptr EventExpose -> Ptr () -> IO CInt Source #
deleteEvent
afterWidgetDeleteEvent :: (GObject a, MonadIO m) => a -> WidgetDeleteEventCallback -> m SignalHandlerId Source #
mk_WidgetDeleteEventCallback :: C_WidgetDeleteEventCallback -> IO (FunPtr C_WidgetDeleteEventCallback) Source #
onWidgetDeleteEvent :: (GObject a, MonadIO m) => a -> WidgetDeleteEventCallback -> m SignalHandlerId Source #
wrap_WidgetDeleteEventCallback :: WidgetDeleteEventCallback -> Ptr () -> Ptr Event -> Ptr () -> IO CInt Source #
destroy
type WidgetDestroyCallback = IO () Source #
afterWidgetDestroy :: (GObject a, MonadIO m) => a -> WidgetDestroyCallback -> m SignalHandlerId Source #
onWidgetDestroy :: (GObject a, MonadIO m) => a -> WidgetDestroyCallback -> m SignalHandlerId Source #
wrap_WidgetDestroyCallback :: WidgetDestroyCallback -> Ptr () -> Ptr () -> IO () Source #
destroyEvent
afterWidgetDestroyEvent :: (GObject a, MonadIO m) => a -> WidgetDestroyEventCallback -> m SignalHandlerId Source #
mk_WidgetDestroyEventCallback :: C_WidgetDestroyEventCallback -> IO (FunPtr C_WidgetDestroyEventCallback) Source #
onWidgetDestroyEvent :: (GObject a, MonadIO m) => a -> WidgetDestroyEventCallback -> m SignalHandlerId Source #
wrap_WidgetDestroyEventCallback :: WidgetDestroyEventCallback -> Ptr () -> Ptr Event -> Ptr () -> IO CInt Source #
directionChanged
type WidgetDirectionChangedCallback = TextDirection -> IO () Source #
afterWidgetDirectionChanged :: (GObject a, MonadIO m) => a -> WidgetDirectionChangedCallback -> m SignalHandlerId Source #
mk_WidgetDirectionChangedCallback :: C_WidgetDirectionChangedCallback -> IO (FunPtr C_WidgetDirectionChangedCallback) Source #
onWidgetDirectionChanged :: (GObject a, MonadIO m) => a -> WidgetDirectionChangedCallback -> m SignalHandlerId Source #
wrap_WidgetDirectionChangedCallback :: WidgetDirectionChangedCallback -> Ptr () -> CUInt -> Ptr () -> IO () Source #
dragBegin
type C_WidgetDragBeginCallback = Ptr () -> Ptr DragContext -> Ptr () -> IO () Source #
type WidgetDragBeginCallback = DragContext -> IO () Source #
afterWidgetDragBegin :: (GObject a, MonadIO m) => a -> WidgetDragBeginCallback -> m SignalHandlerId Source #
mk_WidgetDragBeginCallback :: C_WidgetDragBeginCallback -> IO (FunPtr C_WidgetDragBeginCallback) Source #
onWidgetDragBegin :: (GObject a, MonadIO m) => a -> WidgetDragBeginCallback -> m SignalHandlerId Source #
wrap_WidgetDragBeginCallback :: WidgetDragBeginCallback -> Ptr () -> Ptr DragContext -> Ptr () -> IO () Source #
dragDataDelete
type C_WidgetDragDataDeleteCallback = Ptr () -> Ptr DragContext -> Ptr () -> IO () Source #
type WidgetDragDataDeleteCallback = DragContext -> IO () Source #
afterWidgetDragDataDelete :: (GObject a, MonadIO m) => a -> WidgetDragDataDeleteCallback -> m SignalHandlerId Source #
mk_WidgetDragDataDeleteCallback :: C_WidgetDragDataDeleteCallback -> IO (FunPtr C_WidgetDragDataDeleteCallback) Source #
onWidgetDragDataDelete :: (GObject a, MonadIO m) => a -> WidgetDragDataDeleteCallback -> m SignalHandlerId Source #
wrap_WidgetDragDataDeleteCallback :: WidgetDragDataDeleteCallback -> Ptr () -> Ptr DragContext -> Ptr () -> IO () Source #
dragDataGet
type C_WidgetDragDataGetCallback = Ptr () -> Ptr DragContext -> Ptr SelectionData -> Word32 -> Word32 -> Ptr () -> IO () Source #
type WidgetDragDataGetCallback = DragContext -> SelectionData -> Word32 -> Word32 -> IO () Source #
afterWidgetDragDataGet :: (GObject a, MonadIO m) => a -> WidgetDragDataGetCallback -> m SignalHandlerId Source #
mk_WidgetDragDataGetCallback :: C_WidgetDragDataGetCallback -> IO (FunPtr C_WidgetDragDataGetCallback) Source #
onWidgetDragDataGet :: (GObject a, MonadIO m) => a -> WidgetDragDataGetCallback -> m SignalHandlerId Source #
wrap_WidgetDragDataGetCallback :: WidgetDragDataGetCallback -> Ptr () -> Ptr DragContext -> Ptr SelectionData -> Word32 -> Word32 -> Ptr () -> IO () Source #
dragDataReceived
type C_WidgetDragDataReceivedCallback = Ptr () -> Ptr DragContext -> Int32 -> Int32 -> Ptr SelectionData -> Word32 -> Word32 -> Ptr () -> IO () Source #
type WidgetDragDataReceivedCallback = DragContext -> Int32 -> Int32 -> SelectionData -> Word32 -> Word32 -> IO () Source #
afterWidgetDragDataReceived :: (GObject a, MonadIO m) => a -> WidgetDragDataReceivedCallback -> m SignalHandlerId Source #
mk_WidgetDragDataReceivedCallback :: C_WidgetDragDataReceivedCallback -> IO (FunPtr C_WidgetDragDataReceivedCallback) Source #
onWidgetDragDataReceived :: (GObject a, MonadIO m) => a -> WidgetDragDataReceivedCallback -> m SignalHandlerId Source #
wrap_WidgetDragDataReceivedCallback :: WidgetDragDataReceivedCallback -> Ptr () -> Ptr DragContext -> Int32 -> Int32 -> Ptr SelectionData -> Word32 -> Word32 -> Ptr () -> IO () Source #
dragDrop
type C_WidgetDragDropCallback = Ptr () -> Ptr DragContext -> Int32 -> Int32 -> Word32 -> Ptr () -> IO CInt Source #
type WidgetDragDropCallback = DragContext -> Int32 -> Int32 -> Word32 -> IO Bool Source #
afterWidgetDragDrop :: (GObject a, MonadIO m) => a -> WidgetDragDropCallback -> m SignalHandlerId Source #
mk_WidgetDragDropCallback :: C_WidgetDragDropCallback -> IO (FunPtr C_WidgetDragDropCallback) Source #
onWidgetDragDrop :: (GObject a, MonadIO m) => a -> WidgetDragDropCallback -> m SignalHandlerId Source #
wrap_WidgetDragDropCallback :: WidgetDragDropCallback -> Ptr () -> Ptr DragContext -> Int32 -> Int32 -> Word32 -> Ptr () -> IO CInt Source #
dragEnd
type C_WidgetDragEndCallback = Ptr () -> Ptr DragContext -> Ptr () -> IO () Source #
type WidgetDragEndCallback = DragContext -> IO () Source #
afterWidgetDragEnd :: (GObject a, MonadIO m) => a -> WidgetDragEndCallback -> m SignalHandlerId Source #
onWidgetDragEnd :: (GObject a, MonadIO m) => a -> WidgetDragEndCallback -> m SignalHandlerId Source #
wrap_WidgetDragEndCallback :: WidgetDragEndCallback -> Ptr () -> Ptr DragContext -> Ptr () -> IO () Source #
dragFailed
type C_WidgetDragFailedCallback = Ptr () -> Ptr DragContext -> CUInt -> Ptr () -> IO CInt Source #
type WidgetDragFailedCallback = DragContext -> DragResult -> IO Bool Source #
afterWidgetDragFailed :: (GObject a, MonadIO m) => a -> WidgetDragFailedCallback -> m SignalHandlerId Source #
mk_WidgetDragFailedCallback :: C_WidgetDragFailedCallback -> IO (FunPtr C_WidgetDragFailedCallback) Source #
onWidgetDragFailed :: (GObject a, MonadIO m) => a -> WidgetDragFailedCallback -> m SignalHandlerId Source #
wrap_WidgetDragFailedCallback :: WidgetDragFailedCallback -> Ptr () -> Ptr DragContext -> CUInt -> Ptr () -> IO CInt Source #
dragLeave
type C_WidgetDragLeaveCallback = Ptr () -> Ptr DragContext -> Word32 -> Ptr () -> IO () Source #
type WidgetDragLeaveCallback = DragContext -> Word32 -> IO () Source #
afterWidgetDragLeave :: (GObject a, MonadIO m) => a -> WidgetDragLeaveCallback -> m SignalHandlerId Source #
mk_WidgetDragLeaveCallback :: C_WidgetDragLeaveCallback -> IO (FunPtr C_WidgetDragLeaveCallback) Source #
onWidgetDragLeave :: (GObject a, MonadIO m) => a -> WidgetDragLeaveCallback -> m SignalHandlerId Source #
wrap_WidgetDragLeaveCallback :: WidgetDragLeaveCallback -> Ptr () -> Ptr DragContext -> Word32 -> Ptr () -> IO () Source #
dragMotion
type C_WidgetDragMotionCallback = Ptr () -> Ptr DragContext -> Int32 -> Int32 -> Word32 -> Ptr () -> IO CInt Source #
type WidgetDragMotionCallback = DragContext -> Int32 -> Int32 -> Word32 -> IO Bool Source #
afterWidgetDragMotion :: (GObject a, MonadIO m) => a -> WidgetDragMotionCallback -> m SignalHandlerId Source #
mk_WidgetDragMotionCallback :: C_WidgetDragMotionCallback -> IO (FunPtr C_WidgetDragMotionCallback) Source #
onWidgetDragMotion :: (GObject a, MonadIO m) => a -> WidgetDragMotionCallback -> m SignalHandlerId Source #
wrap_WidgetDragMotionCallback :: WidgetDragMotionCallback -> Ptr () -> Ptr DragContext -> Int32 -> Int32 -> Word32 -> Ptr () -> IO CInt Source #
draw
data WidgetDrawSignalInfo Source #
afterWidgetDraw :: (GObject a, MonadIO m) => a -> WidgetDrawCallback -> m SignalHandlerId Source #
onWidgetDraw :: (GObject a, MonadIO m) => a -> WidgetDrawCallback -> m SignalHandlerId Source #
wrap_WidgetDrawCallback :: WidgetDrawCallback -> Ptr () -> Ptr Context -> Ptr () -> IO CInt Source #
enterNotifyEvent
type C_WidgetEnterNotifyEventCallback = Ptr () -> Ptr EventCrossing -> Ptr () -> IO CInt Source #
type WidgetEnterNotifyEventCallback = EventCrossing -> IO Bool Source #
afterWidgetEnterNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetEnterNotifyEventCallback -> m SignalHandlerId Source #
mk_WidgetEnterNotifyEventCallback :: C_WidgetEnterNotifyEventCallback -> IO (FunPtr C_WidgetEnterNotifyEventCallback) Source #
onWidgetEnterNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetEnterNotifyEventCallback -> m SignalHandlerId Source #
wrap_WidgetEnterNotifyEventCallback :: WidgetEnterNotifyEventCallback -> Ptr () -> Ptr EventCrossing -> Ptr () -> IO CInt Source #
event
data WidgetEventSignalInfo Source #
afterWidgetEvent :: (GObject a, MonadIO m) => a -> WidgetEventCallback -> m SignalHandlerId Source #
onWidgetEvent :: (GObject a, MonadIO m) => a -> WidgetEventCallback -> m SignalHandlerId Source #
wrap_WidgetEventCallback :: WidgetEventCallback -> Ptr () -> Ptr Event -> Ptr () -> IO CInt Source #
eventAfter
type WidgetEventAfterCallback = Event -> IO () Source #
afterWidgetEventAfter :: (GObject a, MonadIO m) => a -> WidgetEventAfterCallback -> m SignalHandlerId Source #
mk_WidgetEventAfterCallback :: C_WidgetEventAfterCallback -> IO (FunPtr C_WidgetEventAfterCallback) Source #
onWidgetEventAfter :: (GObject a, MonadIO m) => a -> WidgetEventAfterCallback -> m SignalHandlerId Source #
wrap_WidgetEventAfterCallback :: WidgetEventAfterCallback -> Ptr () -> Ptr Event -> Ptr () -> IO () Source #
focus
type WidgetFocusCallback = DirectionType -> IO Bool Source #
data WidgetFocusSignalInfo Source #
afterWidgetFocus :: (GObject a, MonadIO m) => a -> WidgetFocusCallback -> m SignalHandlerId Source #
onWidgetFocus :: (GObject a, MonadIO m) => a -> WidgetFocusCallback -> m SignalHandlerId Source #
wrap_WidgetFocusCallback :: WidgetFocusCallback -> Ptr () -> CUInt -> Ptr () -> IO CInt Source #
focusInEvent
type C_WidgetFocusInEventCallback = Ptr () -> Ptr EventFocus -> Ptr () -> IO CInt Source #
type WidgetFocusInEventCallback = EventFocus -> IO Bool Source #
afterWidgetFocusInEvent :: (GObject a, MonadIO m) => a -> WidgetFocusInEventCallback -> m SignalHandlerId Source #
mk_WidgetFocusInEventCallback :: C_WidgetFocusInEventCallback -> IO (FunPtr C_WidgetFocusInEventCallback) Source #
onWidgetFocusInEvent :: (GObject a, MonadIO m) => a -> WidgetFocusInEventCallback -> m SignalHandlerId Source #
wrap_WidgetFocusInEventCallback :: WidgetFocusInEventCallback -> Ptr () -> Ptr EventFocus -> Ptr () -> IO CInt Source #
focusOutEvent
type C_WidgetFocusOutEventCallback = Ptr () -> Ptr EventFocus -> Ptr () -> IO CInt Source #
type WidgetFocusOutEventCallback = EventFocus -> IO Bool Source #
afterWidgetFocusOutEvent :: (GObject a, MonadIO m) => a -> WidgetFocusOutEventCallback -> m SignalHandlerId Source #
mk_WidgetFocusOutEventCallback :: C_WidgetFocusOutEventCallback -> IO (FunPtr C_WidgetFocusOutEventCallback) Source #
onWidgetFocusOutEvent :: (GObject a, MonadIO m) => a -> WidgetFocusOutEventCallback -> m SignalHandlerId Source #
wrap_WidgetFocusOutEventCallback :: WidgetFocusOutEventCallback -> Ptr () -> Ptr EventFocus -> Ptr () -> IO CInt Source #
grabBrokenEvent
type C_WidgetGrabBrokenEventCallback = Ptr () -> Ptr EventGrabBroken -> Ptr () -> IO CInt Source #
type WidgetGrabBrokenEventCallback = EventGrabBroken -> IO Bool Source #
afterWidgetGrabBrokenEvent :: (GObject a, MonadIO m) => a -> WidgetGrabBrokenEventCallback -> m SignalHandlerId Source #
mk_WidgetGrabBrokenEventCallback :: C_WidgetGrabBrokenEventCallback -> IO (FunPtr C_WidgetGrabBrokenEventCallback) Source #
onWidgetGrabBrokenEvent :: (GObject a, MonadIO m) => a -> WidgetGrabBrokenEventCallback -> m SignalHandlerId Source #
wrap_WidgetGrabBrokenEventCallback :: WidgetGrabBrokenEventCallback -> Ptr () -> Ptr EventGrabBroken -> Ptr () -> IO CInt Source #
grabFocus
type WidgetGrabFocusCallback = IO () Source #
afterWidgetGrabFocus :: (GObject a, MonadIO m) => a -> WidgetGrabFocusCallback -> m SignalHandlerId Source #
mk_WidgetGrabFocusCallback :: C_WidgetGrabFocusCallback -> IO (FunPtr C_WidgetGrabFocusCallback) Source #
onWidgetGrabFocus :: (GObject a, MonadIO m) => a -> WidgetGrabFocusCallback -> m SignalHandlerId Source #
wrap_WidgetGrabFocusCallback :: WidgetGrabFocusCallback -> Ptr () -> Ptr () -> IO () Source #
grabNotify
type WidgetGrabNotifyCallback = Bool -> IO () Source #
afterWidgetGrabNotify :: (GObject a, MonadIO m) => a -> WidgetGrabNotifyCallback -> m SignalHandlerId Source #
mk_WidgetGrabNotifyCallback :: C_WidgetGrabNotifyCallback -> IO (FunPtr C_WidgetGrabNotifyCallback) Source #
onWidgetGrabNotify :: (GObject a, MonadIO m) => a -> WidgetGrabNotifyCallback -> m SignalHandlerId Source #
wrap_WidgetGrabNotifyCallback :: WidgetGrabNotifyCallback -> Ptr () -> CInt -> Ptr () -> IO () Source #
hide
type WidgetHideCallback = IO () Source #
data WidgetHideSignalInfo Source #
afterWidgetHide :: (GObject a, MonadIO m) => a -> WidgetHideCallback -> m SignalHandlerId Source #
onWidgetHide :: (GObject a, MonadIO m) => a -> WidgetHideCallback -> m SignalHandlerId Source #
wrap_WidgetHideCallback :: WidgetHideCallback -> Ptr () -> Ptr () -> IO () Source #
hierarchyChanged
afterWidgetHierarchyChanged :: (GObject a, MonadIO m) => a -> WidgetHierarchyChangedCallback -> m SignalHandlerId Source #
mk_WidgetHierarchyChangedCallback :: C_WidgetHierarchyChangedCallback -> IO (FunPtr C_WidgetHierarchyChangedCallback) Source #
onWidgetHierarchyChanged :: (GObject a, MonadIO m) => a -> WidgetHierarchyChangedCallback -> m SignalHandlerId Source #
wrap_WidgetHierarchyChangedCallback :: WidgetHierarchyChangedCallback -> Ptr () -> Ptr Widget -> Ptr () -> IO () Source #
keyPressEvent
afterWidgetKeyPressEvent :: (GObject a, MonadIO m) => a -> WidgetKeyPressEventCallback -> m SignalHandlerId Source #
mk_WidgetKeyPressEventCallback :: C_WidgetKeyPressEventCallback -> IO (FunPtr C_WidgetKeyPressEventCallback) Source #
onWidgetKeyPressEvent :: (GObject a, MonadIO m) => a -> WidgetKeyPressEventCallback -> m SignalHandlerId Source #
wrap_WidgetKeyPressEventCallback :: WidgetKeyPressEventCallback -> Ptr () -> Ptr EventKey -> Ptr () -> IO CInt Source #
keyReleaseEvent
afterWidgetKeyReleaseEvent :: (GObject a, MonadIO m) => a -> WidgetKeyReleaseEventCallback -> m SignalHandlerId Source #
mk_WidgetKeyReleaseEventCallback :: C_WidgetKeyReleaseEventCallback -> IO (FunPtr C_WidgetKeyReleaseEventCallback) Source #
onWidgetKeyReleaseEvent :: (GObject a, MonadIO m) => a -> WidgetKeyReleaseEventCallback -> m SignalHandlerId Source #
wrap_WidgetKeyReleaseEventCallback :: WidgetKeyReleaseEventCallback -> Ptr () -> Ptr EventKey -> Ptr () -> IO CInt Source #
keynavFailed
type WidgetKeynavFailedCallback = DirectionType -> IO Bool Source #
afterWidgetKeynavFailed :: (GObject a, MonadIO m) => a -> WidgetKeynavFailedCallback -> m SignalHandlerId Source #
mk_WidgetKeynavFailedCallback :: C_WidgetKeynavFailedCallback -> IO (FunPtr C_WidgetKeynavFailedCallback) Source #
onWidgetKeynavFailed :: (GObject a, MonadIO m) => a -> WidgetKeynavFailedCallback -> m SignalHandlerId Source #
wrap_WidgetKeynavFailedCallback :: WidgetKeynavFailedCallback -> Ptr () -> CUInt -> Ptr () -> IO CInt Source #
leaveNotifyEvent
type C_WidgetLeaveNotifyEventCallback = Ptr () -> Ptr EventCrossing -> Ptr () -> IO CInt Source #
type WidgetLeaveNotifyEventCallback = EventCrossing -> IO Bool Source #
afterWidgetLeaveNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetLeaveNotifyEventCallback -> m SignalHandlerId Source #
mk_WidgetLeaveNotifyEventCallback :: C_WidgetLeaveNotifyEventCallback -> IO (FunPtr C_WidgetLeaveNotifyEventCallback) Source #
onWidgetLeaveNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetLeaveNotifyEventCallback -> m SignalHandlerId Source #
wrap_WidgetLeaveNotifyEventCallback :: WidgetLeaveNotifyEventCallback -> Ptr () -> Ptr EventCrossing -> Ptr () -> IO CInt Source #
map
type WidgetMapCallback = IO () Source #
data WidgetMapSignalInfo Source #
afterWidgetMap :: (GObject a, MonadIO m) => a -> WidgetMapCallback -> m SignalHandlerId Source #
onWidgetMap :: (GObject a, MonadIO m) => a -> WidgetMapCallback -> m SignalHandlerId Source #
wrap_WidgetMapCallback :: WidgetMapCallback -> Ptr () -> Ptr () -> IO () Source #
mapEvent
afterWidgetMapEvent :: (GObject a, MonadIO m) => a -> WidgetMapEventCallback -> m SignalHandlerId Source #
mk_WidgetMapEventCallback :: C_WidgetMapEventCallback -> IO (FunPtr C_WidgetMapEventCallback) Source #
onWidgetMapEvent :: (GObject a, MonadIO m) => a -> WidgetMapEventCallback -> m SignalHandlerId Source #
wrap_WidgetMapEventCallback :: WidgetMapEventCallback -> Ptr () -> Ptr EventAny -> Ptr () -> IO CInt Source #
mnemonicActivate
afterWidgetMnemonicActivate :: (GObject a, MonadIO m) => a -> WidgetMnemonicActivateCallback -> m SignalHandlerId Source #
mk_WidgetMnemonicActivateCallback :: C_WidgetMnemonicActivateCallback -> IO (FunPtr C_WidgetMnemonicActivateCallback) Source #
onWidgetMnemonicActivate :: (GObject a, MonadIO m) => a -> WidgetMnemonicActivateCallback -> m SignalHandlerId Source #
wrap_WidgetMnemonicActivateCallback :: WidgetMnemonicActivateCallback -> Ptr () -> CInt -> Ptr () -> IO CInt Source #
motionNotifyEvent
type C_WidgetMotionNotifyEventCallback = Ptr () -> Ptr EventMotion -> Ptr () -> IO CInt Source #
type WidgetMotionNotifyEventCallback = EventMotion -> IO Bool Source #
afterWidgetMotionNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetMotionNotifyEventCallback -> m SignalHandlerId Source #
mk_WidgetMotionNotifyEventCallback :: C_WidgetMotionNotifyEventCallback -> IO (FunPtr C_WidgetMotionNotifyEventCallback) Source #
onWidgetMotionNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetMotionNotifyEventCallback -> m SignalHandlerId Source #
wrap_WidgetMotionNotifyEventCallback :: WidgetMotionNotifyEventCallback -> Ptr () -> Ptr EventMotion -> Ptr () -> IO CInt Source #
moveFocus
type WidgetMoveFocusCallback = DirectionType -> IO () Source #
afterWidgetMoveFocus :: (GObject a, MonadIO m) => a -> WidgetMoveFocusCallback -> m SignalHandlerId Source #
mk_WidgetMoveFocusCallback :: C_WidgetMoveFocusCallback -> IO (FunPtr C_WidgetMoveFocusCallback) Source #
onWidgetMoveFocus :: (GObject a, MonadIO m) => a -> WidgetMoveFocusCallback -> m SignalHandlerId Source #
wrap_WidgetMoveFocusCallback :: WidgetMoveFocusCallback -> Ptr () -> CUInt -> Ptr () -> IO () Source #
parentSet
afterWidgetParentSet :: (GObject a, MonadIO m) => a -> WidgetParentSetCallback -> m SignalHandlerId Source #
mk_WidgetParentSetCallback :: C_WidgetParentSetCallback -> IO (FunPtr C_WidgetParentSetCallback) Source #
onWidgetParentSet :: (GObject a, MonadIO m) => a -> WidgetParentSetCallback -> m SignalHandlerId Source #
wrap_WidgetParentSetCallback :: WidgetParentSetCallback -> Ptr () -> Ptr Widget -> Ptr () -> IO () Source #
popupMenu
type WidgetPopupMenuCallback = IO Bool Source #
afterWidgetPopupMenu :: (GObject a, MonadIO m) => a -> WidgetPopupMenuCallback -> m SignalHandlerId Source #
mk_WidgetPopupMenuCallback :: C_WidgetPopupMenuCallback -> IO (FunPtr C_WidgetPopupMenuCallback) Source #
onWidgetPopupMenu :: (GObject a, MonadIO m) => a -> WidgetPopupMenuCallback -> m SignalHandlerId Source #
wrap_WidgetPopupMenuCallback :: WidgetPopupMenuCallback -> Ptr () -> Ptr () -> IO CInt Source #
propertyNotifyEvent
type C_WidgetPropertyNotifyEventCallback = Ptr () -> Ptr EventProperty -> Ptr () -> IO CInt Source #
type WidgetPropertyNotifyEventCallback = EventProperty -> IO Bool Source #
afterWidgetPropertyNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetPropertyNotifyEventCallback -> m SignalHandlerId Source #
mk_WidgetPropertyNotifyEventCallback :: C_WidgetPropertyNotifyEventCallback -> IO (FunPtr C_WidgetPropertyNotifyEventCallback) Source #
onWidgetPropertyNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetPropertyNotifyEventCallback -> m SignalHandlerId Source #
wrap_WidgetPropertyNotifyEventCallback :: WidgetPropertyNotifyEventCallback -> Ptr () -> Ptr EventProperty -> Ptr () -> IO CInt Source #
proximityInEvent
type C_WidgetProximityInEventCallback = Ptr () -> Ptr EventProximity -> Ptr () -> IO CInt Source #
type WidgetProximityInEventCallback = EventProximity -> IO Bool Source #
afterWidgetProximityInEvent :: (GObject a, MonadIO m) => a -> WidgetProximityInEventCallback -> m SignalHandlerId Source #
mk_WidgetProximityInEventCallback :: C_WidgetProximityInEventCallback -> IO (FunPtr C_WidgetProximityInEventCallback) Source #
onWidgetProximityInEvent :: (GObject a, MonadIO m) => a -> WidgetProximityInEventCallback -> m SignalHandlerId Source #
wrap_WidgetProximityInEventCallback :: WidgetProximityInEventCallback -> Ptr () -> Ptr EventProximity -> Ptr () -> IO CInt Source #
proximityOutEvent
type C_WidgetProximityOutEventCallback = Ptr () -> Ptr EventProximity -> Ptr () -> IO CInt Source #
type WidgetProximityOutEventCallback = EventProximity -> IO Bool Source #
afterWidgetProximityOutEvent :: (GObject a, MonadIO m) => a -> WidgetProximityOutEventCallback -> m SignalHandlerId Source #
mk_WidgetProximityOutEventCallback :: C_WidgetProximityOutEventCallback -> IO (FunPtr C_WidgetProximityOutEventCallback) Source #
onWidgetProximityOutEvent :: (GObject a, MonadIO m) => a -> WidgetProximityOutEventCallback -> m SignalHandlerId Source #
wrap_WidgetProximityOutEventCallback :: WidgetProximityOutEventCallback -> Ptr () -> Ptr EventProximity -> Ptr () -> IO CInt Source #
queryTooltip
type C_WidgetQueryTooltipCallback = Ptr () -> Int32 -> Int32 -> CInt -> Ptr Tooltip -> Ptr () -> IO CInt Source #
afterWidgetQueryTooltip :: (GObject a, MonadIO m) => a -> WidgetQueryTooltipCallback -> m SignalHandlerId Source #
mk_WidgetQueryTooltipCallback :: C_WidgetQueryTooltipCallback -> IO (FunPtr C_WidgetQueryTooltipCallback) Source #
onWidgetQueryTooltip :: (GObject a, MonadIO m) => a -> WidgetQueryTooltipCallback -> m SignalHandlerId Source #
wrap_WidgetQueryTooltipCallback :: WidgetQueryTooltipCallback -> Ptr () -> Int32 -> Int32 -> CInt -> Ptr Tooltip -> Ptr () -> IO CInt Source #
realize
type WidgetRealizeCallback = IO () Source #
afterWidgetRealize :: (GObject a, MonadIO m) => a -> WidgetRealizeCallback -> m SignalHandlerId Source #
onWidgetRealize :: (GObject a, MonadIO m) => a -> WidgetRealizeCallback -> m SignalHandlerId Source #
wrap_WidgetRealizeCallback :: WidgetRealizeCallback -> Ptr () -> Ptr () -> IO () Source #
screenChanged
afterWidgetScreenChanged :: (GObject a, MonadIO m) => a -> WidgetScreenChangedCallback -> m SignalHandlerId Source #
mk_WidgetScreenChangedCallback :: C_WidgetScreenChangedCallback -> IO (FunPtr C_WidgetScreenChangedCallback) Source #
onWidgetScreenChanged :: (GObject a, MonadIO m) => a -> WidgetScreenChangedCallback -> m SignalHandlerId Source #
wrap_WidgetScreenChangedCallback :: WidgetScreenChangedCallback -> Ptr () -> Ptr Screen -> Ptr () -> IO () Source #
scrollEvent
type C_WidgetScrollEventCallback = Ptr () -> Ptr EventScroll -> Ptr () -> IO CInt Source #
type WidgetScrollEventCallback = EventScroll -> IO Bool Source #
afterWidgetScrollEvent :: (GObject a, MonadIO m) => a -> WidgetScrollEventCallback -> m SignalHandlerId Source #
mk_WidgetScrollEventCallback :: C_WidgetScrollEventCallback -> IO (FunPtr C_WidgetScrollEventCallback) Source #
onWidgetScrollEvent :: (GObject a, MonadIO m) => a -> WidgetScrollEventCallback -> m SignalHandlerId Source #
wrap_WidgetScrollEventCallback :: WidgetScrollEventCallback -> Ptr () -> Ptr EventScroll -> Ptr () -> IO CInt Source #
selectionClearEvent
type C_WidgetSelectionClearEventCallback = Ptr () -> Ptr EventSelection -> Ptr () -> IO CInt Source #
type WidgetSelectionClearEventCallback = EventSelection -> IO Bool Source #
afterWidgetSelectionClearEvent :: (GObject a, MonadIO m) => a -> WidgetSelectionClearEventCallback -> m SignalHandlerId Source #
mk_WidgetSelectionClearEventCallback :: C_WidgetSelectionClearEventCallback -> IO (FunPtr C_WidgetSelectionClearEventCallback) Source #
onWidgetSelectionClearEvent :: (GObject a, MonadIO m) => a -> WidgetSelectionClearEventCallback -> m SignalHandlerId Source #
wrap_WidgetSelectionClearEventCallback :: WidgetSelectionClearEventCallback -> Ptr () -> Ptr EventSelection -> Ptr () -> IO CInt Source #
selectionGet
type C_WidgetSelectionGetCallback = Ptr () -> Ptr SelectionData -> Word32 -> Word32 -> Ptr () -> IO () Source #
type WidgetSelectionGetCallback = SelectionData -> Word32 -> Word32 -> IO () Source #
afterWidgetSelectionGet :: (GObject a, MonadIO m) => a -> WidgetSelectionGetCallback -> m SignalHandlerId Source #
mk_WidgetSelectionGetCallback :: C_WidgetSelectionGetCallback -> IO (FunPtr C_WidgetSelectionGetCallback) Source #
onWidgetSelectionGet :: (GObject a, MonadIO m) => a -> WidgetSelectionGetCallback -> m SignalHandlerId Source #
wrap_WidgetSelectionGetCallback :: WidgetSelectionGetCallback -> Ptr () -> Ptr SelectionData -> Word32 -> Word32 -> Ptr () -> IO () Source #
selectionNotifyEvent
type C_WidgetSelectionNotifyEventCallback = Ptr () -> Ptr EventSelection -> Ptr () -> IO CInt Source #
afterWidgetSelectionNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetSelectionNotifyEventCallback -> m SignalHandlerId Source #
mk_WidgetSelectionNotifyEventCallback :: C_WidgetSelectionNotifyEventCallback -> IO (FunPtr C_WidgetSelectionNotifyEventCallback) Source #
onWidgetSelectionNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetSelectionNotifyEventCallback -> m SignalHandlerId Source #
wrap_WidgetSelectionNotifyEventCallback :: WidgetSelectionNotifyEventCallback -> Ptr () -> Ptr EventSelection -> Ptr () -> IO CInt Source #
selectionReceived
type C_WidgetSelectionReceivedCallback = Ptr () -> Ptr SelectionData -> Word32 -> Ptr () -> IO () Source #
type WidgetSelectionReceivedCallback = SelectionData -> Word32 -> IO () Source #
afterWidgetSelectionReceived :: (GObject a, MonadIO m) => a -> WidgetSelectionReceivedCallback -> m SignalHandlerId Source #
mk_WidgetSelectionReceivedCallback :: C_WidgetSelectionReceivedCallback -> IO (FunPtr C_WidgetSelectionReceivedCallback) Source #
onWidgetSelectionReceived :: (GObject a, MonadIO m) => a -> WidgetSelectionReceivedCallback -> m SignalHandlerId Source #
wrap_WidgetSelectionReceivedCallback :: WidgetSelectionReceivedCallback -> Ptr () -> Ptr SelectionData -> Word32 -> Ptr () -> IO () Source #
selectionRequestEvent
type C_WidgetSelectionRequestEventCallback = Ptr () -> Ptr EventSelection -> Ptr () -> IO CInt Source #
afterWidgetSelectionRequestEvent :: (GObject a, MonadIO m) => a -> WidgetSelectionRequestEventCallback -> m SignalHandlerId Source #
genClosure_WidgetSelectionRequestEvent :: WidgetSelectionRequestEventCallback -> IO Closure Source #
mk_WidgetSelectionRequestEventCallback :: C_WidgetSelectionRequestEventCallback -> IO (FunPtr C_WidgetSelectionRequestEventCallback) Source #
onWidgetSelectionRequestEvent :: (GObject a, MonadIO m) => a -> WidgetSelectionRequestEventCallback -> m SignalHandlerId Source #
wrap_WidgetSelectionRequestEventCallback :: WidgetSelectionRequestEventCallback -> Ptr () -> Ptr EventSelection -> Ptr () -> IO CInt Source #
show
type WidgetShowCallback = IO () Source #
data WidgetShowSignalInfo Source #
afterWidgetShow :: (GObject a, MonadIO m) => a -> WidgetShowCallback -> m SignalHandlerId Source #
onWidgetShow :: (GObject a, MonadIO m) => a -> WidgetShowCallback -> m SignalHandlerId Source #
wrap_WidgetShowCallback :: WidgetShowCallback -> Ptr () -> Ptr () -> IO () Source #
showHelp
type WidgetShowHelpCallback = WidgetHelpType -> IO Bool Source #
afterWidgetShowHelp :: (GObject a, MonadIO m) => a -> WidgetShowHelpCallback -> m SignalHandlerId Source #
mk_WidgetShowHelpCallback :: C_WidgetShowHelpCallback -> IO (FunPtr C_WidgetShowHelpCallback) Source #
onWidgetShowHelp :: (GObject a, MonadIO m) => a -> WidgetShowHelpCallback -> m SignalHandlerId Source #
wrap_WidgetShowHelpCallback :: WidgetShowHelpCallback -> Ptr () -> CUInt -> Ptr () -> IO CInt Source #
sizeAllocate
type WidgetSizeAllocateCallback = Rectangle -> IO () Source #
afterWidgetSizeAllocate :: (GObject a, MonadIO m) => a -> WidgetSizeAllocateCallback -> m SignalHandlerId Source #
mk_WidgetSizeAllocateCallback :: C_WidgetSizeAllocateCallback -> IO (FunPtr C_WidgetSizeAllocateCallback) Source #
onWidgetSizeAllocate :: (GObject a, MonadIO m) => a -> WidgetSizeAllocateCallback -> m SignalHandlerId Source #
wrap_WidgetSizeAllocateCallback :: WidgetSizeAllocateCallback -> Ptr () -> Ptr Rectangle -> Ptr () -> IO () Source #
stateChanged
type WidgetStateChangedCallback = StateType -> IO () Source #
Deprecated: (Since version 3.0)Use Widget
::state-flags-changed
instead.
afterWidgetStateChanged :: (GObject a, MonadIO m) => a -> WidgetStateChangedCallback -> m SignalHandlerId Source #
mk_WidgetStateChangedCallback :: C_WidgetStateChangedCallback -> IO (FunPtr C_WidgetStateChangedCallback) Source #
onWidgetStateChanged :: (GObject a, MonadIO m) => a -> WidgetStateChangedCallback -> m SignalHandlerId Source #
wrap_WidgetStateChangedCallback :: WidgetStateChangedCallback -> Ptr () -> CUInt -> Ptr () -> IO () Source #
stateFlagsChanged
type WidgetStateFlagsChangedCallback = [StateFlags] -> IO () Source #
afterWidgetStateFlagsChanged :: (GObject a, MonadIO m) => a -> WidgetStateFlagsChangedCallback -> m SignalHandlerId Source #
mk_WidgetStateFlagsChangedCallback :: C_WidgetStateFlagsChangedCallback -> IO (FunPtr C_WidgetStateFlagsChangedCallback) Source #
onWidgetStateFlagsChanged :: (GObject a, MonadIO m) => a -> WidgetStateFlagsChangedCallback -> m SignalHandlerId Source #
wrap_WidgetStateFlagsChangedCallback :: WidgetStateFlagsChangedCallback -> Ptr () -> CUInt -> Ptr () -> IO () Source #
styleSet
type WidgetStyleSetCallback = Maybe Style -> IO () Source #
Deprecated: (Since version 3.0)Use the Widget
::style-updated
signal
afterWidgetStyleSet :: (GObject a, MonadIO m) => a -> WidgetStyleSetCallback -> m SignalHandlerId Source #
mk_WidgetStyleSetCallback :: C_WidgetStyleSetCallback -> IO (FunPtr C_WidgetStyleSetCallback) Source #
onWidgetStyleSet :: (GObject a, MonadIO m) => a -> WidgetStyleSetCallback -> m SignalHandlerId Source #
wrap_WidgetStyleSetCallback :: WidgetStyleSetCallback -> Ptr () -> Ptr Style -> Ptr () -> IO () Source #
styleUpdated
type WidgetStyleUpdatedCallback = IO () Source #
afterWidgetStyleUpdated :: (GObject a, MonadIO m) => a -> WidgetStyleUpdatedCallback -> m SignalHandlerId Source #
mk_WidgetStyleUpdatedCallback :: C_WidgetStyleUpdatedCallback -> IO (FunPtr C_WidgetStyleUpdatedCallback) Source #
onWidgetStyleUpdated :: (GObject a, MonadIO m) => a -> WidgetStyleUpdatedCallback -> m SignalHandlerId Source #
wrap_WidgetStyleUpdatedCallback :: WidgetStyleUpdatedCallback -> Ptr () -> Ptr () -> IO () Source #
touchEvent
afterWidgetTouchEvent :: (GObject a, MonadIO m) => a -> WidgetTouchEventCallback -> m SignalHandlerId Source #
mk_WidgetTouchEventCallback :: C_WidgetTouchEventCallback -> IO (FunPtr C_WidgetTouchEventCallback) Source #
onWidgetTouchEvent :: (GObject a, MonadIO m) => a -> WidgetTouchEventCallback -> m SignalHandlerId Source #
wrap_WidgetTouchEventCallback :: WidgetTouchEventCallback -> Ptr () -> Ptr Event -> Ptr () -> IO CInt Source #
unmap
type WidgetUnmapCallback = IO () Source #
data WidgetUnmapSignalInfo Source #
afterWidgetUnmap :: (GObject a, MonadIO m) => a -> WidgetUnmapCallback -> m SignalHandlerId Source #
onWidgetUnmap :: (GObject a, MonadIO m) => a -> WidgetUnmapCallback -> m SignalHandlerId Source #
wrap_WidgetUnmapCallback :: WidgetUnmapCallback -> Ptr () -> Ptr () -> IO () Source #
unmapEvent
afterWidgetUnmapEvent :: (GObject a, MonadIO m) => a -> WidgetUnmapEventCallback -> m SignalHandlerId Source #
mk_WidgetUnmapEventCallback :: C_WidgetUnmapEventCallback -> IO (FunPtr C_WidgetUnmapEventCallback) Source #
onWidgetUnmapEvent :: (GObject a, MonadIO m) => a -> WidgetUnmapEventCallback -> m SignalHandlerId Source #
wrap_WidgetUnmapEventCallback :: WidgetUnmapEventCallback -> Ptr () -> Ptr EventAny -> Ptr () -> IO CInt Source #
unrealize
type WidgetUnrealizeCallback = IO () Source #
afterWidgetUnrealize :: (GObject a, MonadIO m) => a -> WidgetUnrealizeCallback -> m SignalHandlerId Source #
mk_WidgetUnrealizeCallback :: C_WidgetUnrealizeCallback -> IO (FunPtr C_WidgetUnrealizeCallback) Source #
onWidgetUnrealize :: (GObject a, MonadIO m) => a -> WidgetUnrealizeCallback -> m SignalHandlerId Source #
wrap_WidgetUnrealizeCallback :: WidgetUnrealizeCallback -> Ptr () -> Ptr () -> IO () Source #
visibilityNotifyEvent
type C_WidgetVisibilityNotifyEventCallback = Ptr () -> Ptr EventVisibility -> Ptr () -> IO CInt Source #
type WidgetVisibilityNotifyEventCallback = EventVisibility -> IO Bool Source #
Deprecated: (Since version 3.12)Modern composited windowing systems with pervasive transparency make it impossible to track the visibility of a window reliably, so this signal can not be guaranteed to provide useful information.
afterWidgetVisibilityNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetVisibilityNotifyEventCallback -> m SignalHandlerId Source #
genClosure_WidgetVisibilityNotifyEvent :: WidgetVisibilityNotifyEventCallback -> IO Closure Source #
mk_WidgetVisibilityNotifyEventCallback :: C_WidgetVisibilityNotifyEventCallback -> IO (FunPtr C_WidgetVisibilityNotifyEventCallback) Source #
onWidgetVisibilityNotifyEvent :: (GObject a, MonadIO m) => a -> WidgetVisibilityNotifyEventCallback -> m SignalHandlerId Source #
wrap_WidgetVisibilityNotifyEventCallback :: WidgetVisibilityNotifyEventCallback -> Ptr () -> Ptr EventVisibility -> Ptr () -> IO CInt Source #
windowStateEvent
type C_WidgetWindowStateEventCallback = Ptr () -> Ptr EventWindowState -> Ptr () -> IO CInt Source #
type WidgetWindowStateEventCallback = EventWindowState -> IO Bool Source #
afterWidgetWindowStateEvent :: (GObject a, MonadIO m) => a -> WidgetWindowStateEventCallback -> m SignalHandlerId Source #
mk_WidgetWindowStateEventCallback :: C_WidgetWindowStateEventCallback -> IO (FunPtr C_WidgetWindowStateEventCallback) Source #
onWidgetWindowStateEvent :: (GObject a, MonadIO m) => a -> WidgetWindowStateEventCallback -> m SignalHandlerId Source #
wrap_WidgetWindowStateEventCallback :: WidgetWindowStateEventCallback -> Ptr () -> Ptr EventWindowState -> Ptr () -> IO CInt Source #