Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A bin that acts like a titlebar.
HdyWindowHandle
is a Bin
subclass that can be dragged to move
its Window
, and handles right click, middle click and double
click as expected from a titlebar. This is particularly useful with
[classwindow
] or [classapplicationWindow
].
It isn't necessary to use HdyWindowHandle
if you use [classheaderBar
].
It can be safely nested or used in the actual window titlebar.
CSS nodes
HdyWindowHandle
has a single CSS node with name windowhandle
.
Since: 1.0
Synopsis
- newtype WindowHandle = WindowHandle (ManagedPtr WindowHandle)
- class (GObject o, IsDescendantOf WindowHandle o) => IsWindowHandle o
- toWindowHandle :: (MonadIO m, IsWindowHandle o) => o -> m WindowHandle
- windowHandleNew :: (HasCallStack, MonadIO m) => m WindowHandle
Exported types
newtype WindowHandle Source #
Memory-managed wrapper type.
WindowHandle (ManagedPtr WindowHandle) |
Instances
Eq WindowHandle Source # | |
Defined in GI.Handy.Objects.WindowHandle (==) :: WindowHandle -> WindowHandle -> Bool # (/=) :: WindowHandle -> WindowHandle -> Bool # | |
GObject WindowHandle Source # | |
Defined in GI.Handy.Objects.WindowHandle | |
ManagedPtrNewtype WindowHandle Source # | |
Defined in GI.Handy.Objects.WindowHandle toManagedPtr :: WindowHandle -> ManagedPtr WindowHandle | |
TypedObject WindowHandle Source # | |
Defined in GI.Handy.Objects.WindowHandle | |
HasParentTypes WindowHandle Source # | |
Defined in GI.Handy.Objects.WindowHandle | |
IsGValue (Maybe WindowHandle) Source # | Convert |
Defined in GI.Handy.Objects.WindowHandle gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe WindowHandle -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe WindowHandle) | |
type ParentTypes WindowHandle Source # | |
Defined in GI.Handy.Objects.WindowHandle type ParentTypes WindowHandle = '[EventBox, Bin, Container, Widget, Object, ImplementorIface, Buildable] |
class (GObject o, IsDescendantOf WindowHandle o) => IsWindowHandle o Source #
Type class for types which can be safely cast to WindowHandle
, for instance with toWindowHandle
.
Instances
(GObject o, IsDescendantOf WindowHandle o) => IsWindowHandle o Source # | |
Defined in GI.Handy.Objects.WindowHandle |
toWindowHandle :: (MonadIO m, IsWindowHandle o) => o -> m WindowHandle Source #
Cast to WindowHandle
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
activate, add, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, bindProperty, bindPropertyFull, canActivateAccel, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, classPath, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, 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, forall, forceFloating, foreach, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, propagateDraw, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, remove, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, resizeChildren, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetFocusChain, unsetStateFlags, watchClosure.
Getters
getAboveChild, getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getBorderWidth, getCanDefault, getCanFocus, getChild, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEvents, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getInternalChild, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getResizeMode, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisibleWindow, getVisual, getWindow.
Setters
setAboveChild, setAccelPath, setAllocation, setAppPaintable, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setOpacity, setParent, setParentWindow, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizeMode, setSensitive, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisibleWindow, setVisual, setWindow.
new
:: (HasCallStack, MonadIO m) | |
=> m WindowHandle | Returns: the newly created |
Creates a new HdyWindowHandle
.
Since: 1.0