| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gtk.Objects.Notebook
Contents
- Exported types
- Methods
- appendPage
- appendPageMenu
- detachTab
- getActionWidget
- getCurrentPage
- getGroupName
- getMenuLabel
- getMenuLabelText
- getNPages
- getNthPage
- getScrollable
- getShowBorder
- getShowTabs
- getTabDetachable
- getTabHborder
- getTabLabel
- getTabLabelText
- getTabPos
- getTabReorderable
- getTabVborder
- insertPage
- insertPageMenu
- new
- nextPage
- pageNum
- popupDisable
- popupEnable
- prependPage
- prependPageMenu
- prevPage
- removePage
- reorderChild
- setActionWidget
- setCurrentPage
- setGroupName
- setMenuLabel
- setMenuLabelText
- setScrollable
- setShowBorder
- setShowTabs
- setTabDetachable
- setTabLabel
- setTabLabelText
- setTabPos
- setTabReorderable
- Properties
- Signals
Description
The Notebook widget is a Container whose children are pages that
can be switched between using tab labels along one edge.
There are many configuration options for GtkNotebook. Among other
things, you can choose on which edge the tabs appear
(see notebookSetTabPos), whether, if there are too many
tabs to fit the notebook should be made bigger or scrolling
arrows added (see notebookSetScrollable), and whether there
will be a popup menu allowing the users to switch pages.
(see notebookPopupEnable, notebookPopupDisable)
GtkNotebook as GtkBuildable
The GtkNotebook implementation of the Buildable interface
supports placing children into tabs by specifying “tab” as the
“type” attribute of a <child> element. Note that the content
of the tab must be created before the tab can be filled.
A tab child can be specified without specifying a <child>
type attribute.
To add a child widget in the notebooks action area, specify
"action-start" or “action-end” as the “type” attribute of the
<child> element.
An example of a UI definition fragment with GtkNotebook:
xml code
<object class="GtkNotebook">
<child>
<object class="GtkLabel" id="notebook-content">
<property name="label">Content</property>
</object>
</child>
<child type="tab">
<object class="GtkLabel" id="notebook-tab">
<property name="label">Tab</property>
</object>
</child>
</object>CSS nodes
plain code
notebook
├── header.top
│ ├── [<action widget>]
│ ├── tabs
│ │ ├── [arrow]
│ │ ├── tab
│ │ │ ╰── <tab label>
┊ ┊ ┊
│ │ ├── tab[.reorderable-page]
│ │ │ ╰── <tab label>
│ │ ╰── [arrow]
│ ╰── [<action widget>]
│
╰── stack
├── <child>
┊
╰── <child>GtkNotebook has a main CSS node with name notebook, a subnode with name header and below that a subnode with name tabs which contains one subnode per tab with name tab.
If action widgets are present, their CSS nodes are placed next to the tabs node. If the notebook is scrollable, CSS nodes with name arrow are placed as first and last child of the tabs node.
The main node gets the .frame style class when the notebook
has a border (see notebookSetShowBorder).
The header node gets one of the style class .top, .bottom, .left or .right, depending on where the tabs are placed. For reorderable pages, the tab node gets the .reorderable-page class.
A tab node gets the .dnd style class while it is moved with drag-and-drop.
The nodes are always arranged from left-to-right, regarldess of text direction.
Synopsis
- newtype Notebook = Notebook (ManagedPtr Notebook)
- class (GObject o, IsDescendantOf Notebook o) => IsNotebook o
- toNotebook :: (MonadIO m, IsNotebook o) => o -> m Notebook
- type family ResolveNotebookMethod (t :: Symbol) o where ...
- data NotebookAppendPageMethodInfo
- notebookAppendPage :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c) => a -> b -> Maybe c -> m Int32
- data NotebookAppendPageMenuMethodInfo
- notebookAppendPageMenu :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c, IsWidget d) => a -> b -> Maybe c -> Maybe d -> m Int32
- data NotebookDetachTabMethodInfo
- notebookDetachTab :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> m ()
- data NotebookGetActionWidgetMethodInfo
- notebookGetActionWidget :: (HasCallStack, MonadIO m, IsNotebook a) => a -> PackType -> m (Maybe Widget)
- data NotebookGetCurrentPageMethodInfo
- notebookGetCurrentPage :: (HasCallStack, MonadIO m, IsNotebook a) => a -> m Int32
- data NotebookGetGroupNameMethodInfo
- notebookGetGroupName :: (HasCallStack, MonadIO m, IsNotebook a) => a -> m (Maybe Text)
- data NotebookGetMenuLabelMethodInfo
- notebookGetMenuLabel :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> m (Maybe Widget)
- data NotebookGetMenuLabelTextMethodInfo
- notebookGetMenuLabelText :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> m (Maybe Text)
- data NotebookGetNPagesMethodInfo
- notebookGetNPages :: (HasCallStack, MonadIO m, IsNotebook a) => a -> m Int32
- data NotebookGetNthPageMethodInfo
- notebookGetNthPage :: (HasCallStack, MonadIO m, IsNotebook a) => a -> Int32 -> m (Maybe Widget)
- data NotebookGetScrollableMethodInfo
- notebookGetScrollable :: (HasCallStack, MonadIO m, IsNotebook a) => a -> m Bool
- data NotebookGetShowBorderMethodInfo
- notebookGetShowBorder :: (HasCallStack, MonadIO m, IsNotebook a) => a -> m Bool
- data NotebookGetShowTabsMethodInfo
- notebookGetShowTabs :: (HasCallStack, MonadIO m, IsNotebook a) => a -> m Bool
- data NotebookGetTabDetachableMethodInfo
- notebookGetTabDetachable :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> m Bool
- data NotebookGetTabHborderMethodInfo
- notebookGetTabHborder :: (HasCallStack, MonadIO m, IsNotebook a) => a -> m Word16
- data NotebookGetTabLabelMethodInfo
- notebookGetTabLabel :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> m (Maybe Widget)
- data NotebookGetTabLabelTextMethodInfo
- notebookGetTabLabelText :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> m (Maybe Text)
- data NotebookGetTabPosMethodInfo
- notebookGetTabPos :: (HasCallStack, MonadIO m, IsNotebook a) => a -> m PositionType
- data NotebookGetTabReorderableMethodInfo
- notebookGetTabReorderable :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> m Bool
- data NotebookGetTabVborderMethodInfo
- notebookGetTabVborder :: (HasCallStack, MonadIO m, IsNotebook a) => a -> m Word16
- data NotebookInsertPageMethodInfo
- notebookInsertPage :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c) => a -> b -> Maybe c -> Int32 -> m Int32
- data NotebookInsertPageMenuMethodInfo
- notebookInsertPageMenu :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c, IsWidget d) => a -> b -> Maybe c -> Maybe d -> Int32 -> m Int32
- notebookNew :: (HasCallStack, MonadIO m) => m Notebook
- data NotebookNextPageMethodInfo
- notebookNextPage :: (HasCallStack, MonadIO m, IsNotebook a) => a -> m ()
- data NotebookPageNumMethodInfo
- notebookPageNum :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> m Int32
- data NotebookPopupDisableMethodInfo
- notebookPopupDisable :: (HasCallStack, MonadIO m, IsNotebook a) => a -> m ()
- data NotebookPopupEnableMethodInfo
- notebookPopupEnable :: (HasCallStack, MonadIO m, IsNotebook a) => a -> m ()
- data NotebookPrependPageMethodInfo
- notebookPrependPage :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c) => a -> b -> Maybe c -> m Int32
- data NotebookPrependPageMenuMethodInfo
- notebookPrependPageMenu :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c, IsWidget d) => a -> b -> Maybe c -> Maybe d -> m Int32
- data NotebookPrevPageMethodInfo
- notebookPrevPage :: (HasCallStack, MonadIO m, IsNotebook a) => a -> m ()
- data NotebookRemovePageMethodInfo
- notebookRemovePage :: (HasCallStack, MonadIO m, IsNotebook a) => a -> Int32 -> m ()
- data NotebookReorderChildMethodInfo
- notebookReorderChild :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> Int32 -> m ()
- data NotebookSetActionWidgetMethodInfo
- notebookSetActionWidget :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> PackType -> m ()
- data NotebookSetCurrentPageMethodInfo
- notebookSetCurrentPage :: (HasCallStack, MonadIO m, IsNotebook a) => a -> Int32 -> m ()
- data NotebookSetGroupNameMethodInfo
- notebookSetGroupName :: (HasCallStack, MonadIO m, IsNotebook a) => a -> Maybe Text -> m ()
- data NotebookSetMenuLabelMethodInfo
- notebookSetMenuLabel :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c) => a -> b -> Maybe c -> m ()
- data NotebookSetMenuLabelTextMethodInfo
- notebookSetMenuLabelText :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> Text -> m ()
- data NotebookSetScrollableMethodInfo
- notebookSetScrollable :: (HasCallStack, MonadIO m, IsNotebook a) => a -> Bool -> m ()
- data NotebookSetShowBorderMethodInfo
- notebookSetShowBorder :: (HasCallStack, MonadIO m, IsNotebook a) => a -> Bool -> m ()
- data NotebookSetShowTabsMethodInfo
- notebookSetShowTabs :: (HasCallStack, MonadIO m, IsNotebook a) => a -> Bool -> m ()
- data NotebookSetTabDetachableMethodInfo
- notebookSetTabDetachable :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> Bool -> m ()
- data NotebookSetTabLabelMethodInfo
- notebookSetTabLabel :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c) => a -> b -> Maybe c -> m ()
- data NotebookSetTabLabelTextMethodInfo
- notebookSetTabLabelText :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> Text -> m ()
- data NotebookSetTabPosMethodInfo
- notebookSetTabPos :: (HasCallStack, MonadIO m, IsNotebook a) => a -> PositionType -> m ()
- data NotebookSetTabReorderableMethodInfo
- notebookSetTabReorderable :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> Bool -> m ()
- data NotebookEnablePopupPropertyInfo
- constructNotebookEnablePopup :: (IsNotebook o, MonadIO m) => Bool -> m (GValueConstruct o)
- getNotebookEnablePopup :: (MonadIO m, IsNotebook o) => o -> m Bool
- notebookEnablePopup :: AttrLabelProxy "enablePopup"
- setNotebookEnablePopup :: (MonadIO m, IsNotebook o) => o -> Bool -> m ()
- data NotebookGroupNamePropertyInfo
- clearNotebookGroupName :: (MonadIO m, IsNotebook o) => o -> m ()
- constructNotebookGroupName :: (IsNotebook o, MonadIO m) => Text -> m (GValueConstruct o)
- getNotebookGroupName :: (MonadIO m, IsNotebook o) => o -> m (Maybe Text)
- notebookGroupName :: AttrLabelProxy "groupName"
- setNotebookGroupName :: (MonadIO m, IsNotebook o) => o -> Text -> m ()
- data NotebookPagePropertyInfo
- constructNotebookPage :: (IsNotebook o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getNotebookPage :: (MonadIO m, IsNotebook o) => o -> m Int32
- notebookPage :: AttrLabelProxy "page"
- setNotebookPage :: (MonadIO m, IsNotebook o) => o -> Int32 -> m ()
- data NotebookScrollablePropertyInfo
- constructNotebookScrollable :: (IsNotebook o, MonadIO m) => Bool -> m (GValueConstruct o)
- getNotebookScrollable :: (MonadIO m, IsNotebook o) => o -> m Bool
- notebookScrollable :: AttrLabelProxy "scrollable"
- setNotebookScrollable :: (MonadIO m, IsNotebook o) => o -> Bool -> m ()
- data NotebookShowBorderPropertyInfo
- constructNotebookShowBorder :: (IsNotebook o, MonadIO m) => Bool -> m (GValueConstruct o)
- getNotebookShowBorder :: (MonadIO m, IsNotebook o) => o -> m Bool
- notebookShowBorder :: AttrLabelProxy "showBorder"
- setNotebookShowBorder :: (MonadIO m, IsNotebook o) => o -> Bool -> m ()
- data NotebookShowTabsPropertyInfo
- constructNotebookShowTabs :: (IsNotebook o, MonadIO m) => Bool -> m (GValueConstruct o)
- getNotebookShowTabs :: (MonadIO m, IsNotebook o) => o -> m Bool
- notebookShowTabs :: AttrLabelProxy "showTabs"
- setNotebookShowTabs :: (MonadIO m, IsNotebook o) => o -> Bool -> m ()
- data NotebookTabPosPropertyInfo
- constructNotebookTabPos :: (IsNotebook o, MonadIO m) => PositionType -> m (GValueConstruct o)
- getNotebookTabPos :: (MonadIO m, IsNotebook o) => o -> m PositionType
- notebookTabPos :: AttrLabelProxy "tabPos"
- setNotebookTabPos :: (MonadIO m, IsNotebook o) => o -> PositionType -> m ()
- type NotebookChangeCurrentPageCallback = Int32 -> IO Bool
- data NotebookChangeCurrentPageSignalInfo
- afterNotebookChangeCurrentPage :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookChangeCurrentPageCallback) -> m SignalHandlerId
- onNotebookChangeCurrentPage :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookChangeCurrentPageCallback) -> m SignalHandlerId
- type NotebookCreateWindowCallback = Widget -> Int32 -> Int32 -> IO Notebook
- data NotebookCreateWindowSignalInfo
- afterNotebookCreateWindow :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookCreateWindowCallback) -> m SignalHandlerId
- onNotebookCreateWindow :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookCreateWindowCallback) -> m SignalHandlerId
- type NotebookFocusTabCallback = NotebookTab -> IO Bool
- data NotebookFocusTabSignalInfo
- afterNotebookFocusTab :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookFocusTabCallback) -> m SignalHandlerId
- onNotebookFocusTab :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookFocusTabCallback) -> m SignalHandlerId
- type NotebookMoveFocusOutCallback = DirectionType -> IO ()
- data NotebookMoveFocusOutSignalInfo
- afterNotebookMoveFocusOut :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookMoveFocusOutCallback) -> m SignalHandlerId
- onNotebookMoveFocusOut :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookMoveFocusOutCallback) -> m SignalHandlerId
- type NotebookPageAddedCallback = Widget -> Word32 -> IO ()
- data NotebookPageAddedSignalInfo
- afterNotebookPageAdded :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookPageAddedCallback) -> m SignalHandlerId
- onNotebookPageAdded :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookPageAddedCallback) -> m SignalHandlerId
- type NotebookPageRemovedCallback = Widget -> Word32 -> IO ()
- data NotebookPageRemovedSignalInfo
- afterNotebookPageRemoved :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookPageRemovedCallback) -> m SignalHandlerId
- onNotebookPageRemoved :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookPageRemovedCallback) -> m SignalHandlerId
- type NotebookPageReorderedCallback = Widget -> Word32 -> IO ()
- data NotebookPageReorderedSignalInfo
- afterNotebookPageReordered :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookPageReorderedCallback) -> m SignalHandlerId
- onNotebookPageReordered :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookPageReorderedCallback) -> m SignalHandlerId
- type NotebookReorderTabCallback = DirectionType -> Bool -> IO Bool
- data NotebookReorderTabSignalInfo
- afterNotebookReorderTab :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookReorderTabCallback) -> m SignalHandlerId
- onNotebookReorderTab :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookReorderTabCallback) -> m SignalHandlerId
- type NotebookSelectPageCallback = Bool -> IO Bool
- data NotebookSelectPageSignalInfo
- afterNotebookSelectPage :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookSelectPageCallback) -> m SignalHandlerId
- onNotebookSelectPage :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookSelectPageCallback) -> m SignalHandlerId
- type NotebookSwitchPageCallback = Widget -> Word32 -> IO ()
- data NotebookSwitchPageSignalInfo
- afterNotebookSwitchPage :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookSwitchPageCallback) -> m SignalHandlerId
- onNotebookSwitchPage :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookSwitchPageCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Constructors
| Notebook (ManagedPtr Notebook) |
Instances
class (GObject o, IsDescendantOf Notebook o) => IsNotebook o Source #
Type class for types which can be safely cast to Notebook, for instance with toNotebook.
Instances
| (GObject o, IsDescendantOf Notebook o) => IsNotebook o Source # | |
Defined in GI.Gtk.Objects.Notebook | |
toNotebook :: (MonadIO m, IsNotebook o) => o -> m Notebook Source #
Methods
Click to display all available methods, including inherited ones
Methods
activate, add, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, appendPage, appendPageMenu, bindProperty, bindPropertyFull, canActivateAccel, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, classPath, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, destroy, destroyed, detachTab, 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, insertPage, insertPageMenu, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, nextPage, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, pageNum, parserFinished, path, popupDisable, popupEnable, prependPage, prependPageMenu, prevPage, propagateDraw, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, remove, removeAccelerator, removeMnemonicLabel, removePage, removeTickCallback, renderIcon, renderIconPixbuf, reorderChild, 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
getAccessible, getActionGroup, getActionWidget, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getBorderWidth, getCanDefault, getCanFocus, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getCompositeName, getCurrentPage, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEvents, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFontMap, getFontOptions, getFrameClock, getGroupName, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getInternalChild, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getMenuLabel, getMenuLabelText, getModifierMask, getModifierStyle, getNPages, getName, getNoShowAll, getNthPage, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getResizeMode, getRootWindow, getScaleFactor, getScreen, getScrollable, getSensitive, getSettings, getShowBorder, getShowTabs, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTabDetachable, getTabHborder, getTabLabel, getTabLabelText, getTabPos, getTabReorderable, getTabVborder, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.
Setters
setAccelPath, setActionWidget, setAllocation, setAppPaintable, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setCurrentPage, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFontMap, setFontOptions, setGroupName, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setMenuLabel, setMenuLabelText, setName, setNoShowAll, setOpacity, setParent, setParentWindow, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizeMode, setScrollable, setSensitive, setShowBorder, setShowTabs, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTabDetachable, setTabLabel, setTabLabelText, setTabPos, setTabReorderable, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.
type family ResolveNotebookMethod (t :: Symbol) o where ... Source #
Equations
appendPage
data NotebookAppendPageMethodInfo Source #
Instances
| (signature ~ (b -> Maybe c -> m Int32), MonadIO m, IsNotebook a, IsWidget b, IsWidget c) => OverloadedMethod NotebookAppendPageMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookAppendPageMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c) | |
| => a |
|
| -> b |
|
| -> Maybe c |
|
| -> m Int32 | Returns: the index (starting from 0) of the appended page in the notebook, or -1 if function fails |
Appends a page to notebook.
appendPageMenu
data NotebookAppendPageMenuMethodInfo Source #
Instances
| (signature ~ (b -> Maybe c -> Maybe d -> m Int32), MonadIO m, IsNotebook a, IsWidget b, IsWidget c, IsWidget d) => OverloadedMethod NotebookAppendPageMenuMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookAppendPageMenuMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookAppendPageMenu Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c, IsWidget d) | |
| => a |
|
| -> b |
|
| -> Maybe c |
|
| -> Maybe d |
|
| -> m Int32 | Returns: the index (starting from 0) of the appended page in the notebook, or -1 if function fails |
Appends a page to notebook, specifying the widget to use as the
label in the popup menu.
detachTab
data NotebookDetachTabMethodInfo Source #
Instances
| (signature ~ (b -> m ()), MonadIO m, IsNotebook a, IsWidget b) => OverloadedMethod NotebookDetachTabMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookDetachTabMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> m () |
Removes the child from the notebook.
This function is very similar to containerRemove,
but additionally informs the notebook that the removal
is happening as part of a tab DND operation, which should
not be cancelled.
Since: 3.16
getActionWidget
data NotebookGetActionWidgetMethodInfo Source #
Instances
| (signature ~ (PackType -> m (Maybe Widget)), MonadIO m, IsNotebook a) => OverloadedMethod NotebookGetActionWidgetMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetActionWidgetMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookGetActionWidget Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> PackType |
|
| -> m (Maybe Widget) | Returns: The action widget with the given
|
Gets one of the action widgets. See notebookSetActionWidget.
Since: 2.20
getCurrentPage
data NotebookGetCurrentPageMethodInfo Source #
Instances
| (signature ~ m Int32, MonadIO m, IsNotebook a) => OverloadedMethod NotebookGetCurrentPageMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetCurrentPageMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookGetCurrentPage Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> m Int32 | Returns: the index (starting from 0) of the current page in the notebook. If the notebook has no pages, then -1 will be returned. |
Returns the page number of the current page.
getGroupName
data NotebookGetGroupNameMethodInfo Source #
Instances
| (signature ~ m (Maybe Text), MonadIO m, IsNotebook a) => OverloadedMethod NotebookGetGroupNameMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetGroupNameMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> m (Maybe Text) | Returns: the group name, or |
Gets the current group name for notebook.
Since: 2.24
getMenuLabel
data NotebookGetMenuLabelMethodInfo Source #
Instances
| (signature ~ (b -> m (Maybe Widget)), MonadIO m, IsNotebook a, IsWidget b) => OverloadedMethod NotebookGetMenuLabelMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetMenuLabelMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> m (Maybe Widget) | Returns: the menu label, or |
Retrieves the menu label widget of the page containing child.
getMenuLabelText
data NotebookGetMenuLabelTextMethodInfo Source #
Instances
| (signature ~ (b -> m (Maybe Text)), MonadIO m, IsNotebook a, IsWidget b) => OverloadedMethod NotebookGetMenuLabelTextMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetMenuLabelTextMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookGetMenuLabelText Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> m (Maybe Text) | Returns: the text of the tab label, or |
Retrieves the text of the menu label for the page containing
child.
getNPages
data NotebookGetNPagesMethodInfo Source #
Instances
| (signature ~ m Int32, MonadIO m, IsNotebook a) => OverloadedMethod NotebookGetNPagesMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetNPagesMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> m Int32 | Returns: the number of pages in the notebook |
Gets the number of pages in a notebook.
Since: 2.2
getNthPage
data NotebookGetNthPageMethodInfo Source #
Instances
| (signature ~ (Int32 -> m (Maybe Widget)), MonadIO m, IsNotebook a) => OverloadedMethod NotebookGetNthPageMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetNthPageMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> Int32 |
|
| -> m (Maybe Widget) | Returns: the child widget, or |
Returns the child widget contained in page number pageNum.
getScrollable
data NotebookGetScrollableMethodInfo Source #
Instances
| (signature ~ m Bool, MonadIO m, IsNotebook a) => OverloadedMethod NotebookGetScrollableMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetScrollableMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookGetScrollable Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> m Bool | Returns: |
Returns whether the tab label area has arrows for scrolling.
See notebookSetScrollable.
getShowBorder
data NotebookGetShowBorderMethodInfo Source #
Instances
| (signature ~ m Bool, MonadIO m, IsNotebook a) => OverloadedMethod NotebookGetShowBorderMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetShowBorderMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookGetShowBorder Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> m Bool | Returns: |
Returns whether a bevel will be drawn around the notebook pages.
See notebookSetShowBorder.
getShowTabs
data NotebookGetShowTabsMethodInfo Source #
Instances
| (signature ~ m Bool, MonadIO m, IsNotebook a) => OverloadedMethod NotebookGetShowTabsMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetShowTabsMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> m Bool | Returns: |
Returns whether the tabs of the notebook are shown.
See notebookSetShowTabs.
getTabDetachable
data NotebookGetTabDetachableMethodInfo Source #
Instances
| (signature ~ (b -> m Bool), MonadIO m, IsNotebook a, IsWidget b) => OverloadedMethod NotebookGetTabDetachableMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetTabDetachableMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookGetTabDetachable Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> m Bool | Returns: |
Returns whether the tab contents can be detached from notebook.
Since: 2.10
getTabHborder
data NotebookGetTabHborderMethodInfo Source #
Instances
| (signature ~ m Word16, MonadIO m, IsNotebook a) => OverloadedMethod NotebookGetTabHborderMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetTabHborderMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookGetTabHborder Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> m Word16 | Returns: horizontal width of a tab border |
Deprecated: (Since version 3.4)this function returns zero
Returns the horizontal width of a tab border.
Since: 2.22
getTabLabel
data NotebookGetTabLabelMethodInfo Source #
Instances
| (signature ~ (b -> m (Maybe Widget)), MonadIO m, IsNotebook a, IsWidget b) => OverloadedMethod NotebookGetTabLabelMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetTabLabelMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> m (Maybe Widget) | Returns: the tab label |
Returns the tab label widget for the page child.
Nothing is returned if child is not in notebook or
if no tab label has specifically been set for child.
getTabLabelText
data NotebookGetTabLabelTextMethodInfo Source #
Instances
| (signature ~ (b -> m (Maybe Text)), MonadIO m, IsNotebook a, IsWidget b) => OverloadedMethod NotebookGetTabLabelTextMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetTabLabelTextMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookGetTabLabelText Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> m (Maybe Text) | Returns: the text of the tab label, or |
Retrieves the text of the tab label for the page containing
child.
getTabPos
data NotebookGetTabPosMethodInfo Source #
Instances
| (signature ~ m PositionType, MonadIO m, IsNotebook a) => OverloadedMethod NotebookGetTabPosMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetTabPosMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> m PositionType | Returns: the edge at which the tabs are drawn |
Gets the edge at which the tabs for switching pages in the notebook are drawn.
getTabReorderable
data NotebookGetTabReorderableMethodInfo Source #
Instances
| (signature ~ (b -> m Bool), MonadIO m, IsNotebook a, IsWidget b) => OverloadedMethod NotebookGetTabReorderableMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetTabReorderableMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookGetTabReorderable Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> m Bool | Returns: |
Gets whether the tab can be reordered via drag and drop or not.
Since: 2.10
getTabVborder
data NotebookGetTabVborderMethodInfo Source #
Instances
| (signature ~ m Word16, MonadIO m, IsNotebook a) => OverloadedMethod NotebookGetTabVborderMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookGetTabVborderMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookGetTabVborder Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> m Word16 | Returns: vertical width of a tab border |
Deprecated: (Since version 3.4)this function returns zero
Returns the vertical width of a tab border.
Since: 2.22
insertPage
data NotebookInsertPageMethodInfo Source #
Instances
| (signature ~ (b -> Maybe c -> Int32 -> m Int32), MonadIO m, IsNotebook a, IsWidget b, IsWidget c) => OverloadedMethod NotebookInsertPageMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookInsertPageMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c) | |
| => a |
|
| -> b |
|
| -> Maybe c |
|
| -> Int32 |
|
| -> m Int32 | Returns: the index (starting from 0) of the inserted page in the notebook, or -1 if function fails |
Insert a page into notebook at the given position.
insertPageMenu
data NotebookInsertPageMenuMethodInfo Source #
Instances
| (signature ~ (b -> Maybe c -> Maybe d -> Int32 -> m Int32), MonadIO m, IsNotebook a, IsWidget b, IsWidget c, IsWidget d) => OverloadedMethod NotebookInsertPageMenuMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookInsertPageMenuMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookInsertPageMenu Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c, IsWidget d) | |
| => a |
|
| -> b |
|
| -> Maybe c |
|
| -> Maybe d |
|
| -> Int32 |
|
| -> m Int32 | Returns: the index (starting from 0) of the inserted page in the notebook |
Insert a page into notebook at the given position, specifying
the widget to use as the label in the popup menu.
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m Notebook | Returns: the newly created |
Creates a new Notebook widget with no pages.
nextPage
data NotebookNextPageMethodInfo Source #
Instances
| (signature ~ m (), MonadIO m, IsNotebook a) => OverloadedMethod NotebookNextPageMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookNextPageMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> m () |
Switches to the next page. Nothing happens if the current page is the last page.
pageNum
data NotebookPageNumMethodInfo Source #
Instances
| (signature ~ (b -> m Int32), MonadIO m, IsNotebook a, IsWidget b) => OverloadedMethod NotebookPageNumMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookPageNumMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> m Int32 | Returns: the index of the page containing |
Finds the index of the page which contains the given child widget.
popupDisable
data NotebookPopupDisableMethodInfo Source #
Instances
| (signature ~ m (), MonadIO m, IsNotebook a) => OverloadedMethod NotebookPopupDisableMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookPopupDisableMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> m () |
Disables the popup menu.
popupEnable
data NotebookPopupEnableMethodInfo Source #
Instances
| (signature ~ m (), MonadIO m, IsNotebook a) => OverloadedMethod NotebookPopupEnableMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookPopupEnableMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> m () |
Enables the popup menu: if the user clicks with the right mouse button on the tab labels, a menu with all the pages will be popped up.
prependPage
data NotebookPrependPageMethodInfo Source #
Instances
| (signature ~ (b -> Maybe c -> m Int32), MonadIO m, IsNotebook a, IsWidget b, IsWidget c) => OverloadedMethod NotebookPrependPageMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookPrependPageMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c) | |
| => a |
|
| -> b |
|
| -> Maybe c |
|
| -> m Int32 | Returns: the index (starting from 0) of the prepended page in the notebook, or -1 if function fails |
Prepends a page to notebook.
prependPageMenu
data NotebookPrependPageMenuMethodInfo Source #
Instances
| (signature ~ (b -> Maybe c -> Maybe d -> m Int32), MonadIO m, IsNotebook a, IsWidget b, IsWidget c, IsWidget d) => OverloadedMethod NotebookPrependPageMenuMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookPrependPageMenuMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookPrependPageMenu Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c, IsWidget d) | |
| => a |
|
| -> b |
|
| -> Maybe c |
|
| -> Maybe d |
|
| -> m Int32 | Returns: the index (starting from 0) of the prepended page in the notebook, or -1 if function fails |
Prepends a page to notebook, specifying the widget to use as the
label in the popup menu.
prevPage
data NotebookPrevPageMethodInfo Source #
Instances
| (signature ~ m (), MonadIO m, IsNotebook a) => OverloadedMethod NotebookPrevPageMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookPrevPageMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> m () |
Switches to the previous page. Nothing happens if the current page is the first page.
removePage
data NotebookRemovePageMethodInfo Source #
Instances
| (signature ~ (Int32 -> m ()), MonadIO m, IsNotebook a) => OverloadedMethod NotebookRemovePageMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookRemovePageMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> Int32 |
|
| -> m () |
Removes a page from the notebook given its index in the notebook.
reorderChild
data NotebookReorderChildMethodInfo Source #
Instances
| (signature ~ (b -> Int32 -> m ()), MonadIO m, IsNotebook a, IsWidget b) => OverloadedMethod NotebookReorderChildMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookReorderChildMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> Int32 |
|
| -> m () |
Reorders the page containing child, so that it appears in position
position. If position is greater than or equal to the number of
children in the list or negative, child will be moved to the end
of the list.
setActionWidget
data NotebookSetActionWidgetMethodInfo Source #
Instances
| (signature ~ (b -> PackType -> m ()), MonadIO m, IsNotebook a, IsWidget b) => OverloadedMethod NotebookSetActionWidgetMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookSetActionWidgetMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookSetActionWidget Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> PackType |
|
| -> m () |
Sets widget as one of the action widgets. Depending on the pack type
the widget will be placed before or after the tabs. You can use
a Box if you need to pack more than one widget on the same side.
Note that action widgets are “internal” children of the notebook and thus
not included in the list returned from containerForeach.
Since: 2.20
setCurrentPage
data NotebookSetCurrentPageMethodInfo Source #
Instances
| (signature ~ (Int32 -> m ()), MonadIO m, IsNotebook a) => OverloadedMethod NotebookSetCurrentPageMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookSetCurrentPageMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookSetCurrentPage Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> Int32 |
|
| -> m () |
Switches to the page number pageNum.
Note that due to historical reasons, GtkNotebook refuses to switch to a page unless the child widget is visible. Therefore, it is recommended to show child widgets before adding them to a notebook.
setGroupName
data NotebookSetGroupNameMethodInfo Source #
Instances
| (signature ~ (Maybe Text -> m ()), MonadIO m, IsNotebook a) => OverloadedMethod NotebookSetGroupNameMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookSetGroupNameMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> Maybe Text |
|
| -> m () |
Sets a group name for notebook.
Notebooks with the same name will be able to exchange tabs
via drag and drop. A notebook with a Nothing group name will
not be able to exchange tabs with any other notebook.
Since: 2.24
setMenuLabel
data NotebookSetMenuLabelMethodInfo Source #
Instances
| (signature ~ (b -> Maybe c -> m ()), MonadIO m, IsNotebook a, IsWidget b, IsWidget c) => OverloadedMethod NotebookSetMenuLabelMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookSetMenuLabelMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c) | |
| => a |
|
| -> b |
|
| -> Maybe c |
|
| -> m () |
Changes the menu label for the page containing child.
setMenuLabelText
data NotebookSetMenuLabelTextMethodInfo Source #
Instances
| (signature ~ (b -> Text -> m ()), MonadIO m, IsNotebook a, IsWidget b) => OverloadedMethod NotebookSetMenuLabelTextMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookSetMenuLabelTextMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookSetMenuLabelText Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> Text |
|
| -> m () |
Creates a new label and sets it as the menu label of child.
setScrollable
data NotebookSetScrollableMethodInfo Source #
Instances
| (signature ~ (Bool -> m ()), MonadIO m, IsNotebook a) => OverloadedMethod NotebookSetScrollableMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookSetScrollableMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookSetScrollable Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether the tab label area will have arrows for scrolling if there are too many tabs to fit in the area.
setShowBorder
data NotebookSetShowBorderMethodInfo Source #
Instances
| (signature ~ (Bool -> m ()), MonadIO m, IsNotebook a) => OverloadedMethod NotebookSetShowBorderMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookSetShowBorderMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookSetShowBorder Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether a bevel will be drawn around the notebook pages.
This only has a visual effect when the tabs are not shown.
See notebookSetShowTabs.
setShowTabs
data NotebookSetShowTabsMethodInfo Source #
Instances
| (signature ~ (Bool -> m ()), MonadIO m, IsNotebook a) => OverloadedMethod NotebookSetShowTabsMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookSetShowTabsMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether to show the tabs for the notebook or not.
setTabDetachable
data NotebookSetTabDetachableMethodInfo Source #
Instances
| (signature ~ (b -> Bool -> m ()), MonadIO m, IsNotebook a, IsWidget b) => OverloadedMethod NotebookSetTabDetachableMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookSetTabDetachableMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookSetTabDetachable Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> Bool |
|
| -> m () |
Sets whether the tab can be detached from notebook to another
notebook or widget.
Note that 2 notebooks must share a common group identificator
(see notebookSetGroupName) to allow automatic tabs
interchange between them.
If you want a widget to interact with a notebook through DnD (i.e.: accept dragged tabs from it) it must be set as a drop destination and accept the target “GTK_NOTEBOOK_TAB”. The notebook will fill the selection with a GtkWidget__ pointing to the child widget that corresponds to the dropped tab.
Note that you should use notebookDetachTab instead
of containerRemove if you want to remove the tab from
the source notebook as part of accepting a drop. Otherwise,
the source notebook will think that the dragged tab was
removed from underneath the ongoing drag operation, and
will initiate a drag cancel animation.
C code
static void
on_drag_data_received (GtkWidget *widget,
GdkDragContext *context,
gint x,
gint y,
GtkSelectionData *data,
guint info,
guint time,
gpointer user_data)
{
GtkWidget *notebook;
GtkWidget **child;
notebook = gtk_drag_get_source_widget (context);
child = (void*) gtk_selection_data_get_data (data);
// process_widget (*child);
gtk_notebook_detach_tab (GTK_NOTEBOOK (notebook), *child);
}If you want a notebook to accept drags from other widgets, you will have to set your own DnD code to do it.
Since: 2.10
setTabLabel
data NotebookSetTabLabelMethodInfo Source #
Instances
| (signature ~ (b -> Maybe c -> m ()), MonadIO m, IsNotebook a, IsWidget b, IsWidget c) => OverloadedMethod NotebookSetTabLabelMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookSetTabLabelMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c) | |
| => a |
|
| -> b |
|
| -> Maybe c |
|
| -> m () |
Changes the tab label for child.
If Nothing is specified for tabLabel, then the page will
have the label “page N”.
setTabLabelText
data NotebookSetTabLabelTextMethodInfo Source #
Instances
| (signature ~ (b -> Text -> m ()), MonadIO m, IsNotebook a, IsWidget b) => OverloadedMethod NotebookSetTabLabelTextMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookSetTabLabelTextMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookSetTabLabelText Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> Text |
|
| -> m () |
Creates a new label and sets it as the tab label for the page
containing child.
setTabPos
data NotebookSetTabPosMethodInfo Source #
Instances
| (signature ~ (PositionType -> m ()), MonadIO m, IsNotebook a) => OverloadedMethod NotebookSetTabPosMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookSetTabPosMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a) | |
| => a |
|
| -> PositionType |
|
| -> m () |
Sets the edge at which the tabs for switching pages in the notebook are drawn.
setTabReorderable
data NotebookSetTabReorderableMethodInfo Source #
Instances
| (signature ~ (b -> Bool -> m ()), MonadIO m, IsNotebook a, IsWidget b) => OverloadedMethod NotebookSetTabReorderableMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.Notebook Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo NotebookSetTabReorderableMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.Notebook Methods | |
notebookSetTabReorderable Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> Bool |
|
| -> m () |
Sets whether the notebook tab can be reordered via drag and drop or not.
Since: 2.10
Properties
enablePopup
No description available in the introspection data.
data NotebookEnablePopupPropertyInfo Source #
Instances
constructNotebookEnablePopup :: (IsNotebook o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “enable-popup” property. This is rarely needed directly, but it is used by new.
getNotebookEnablePopup :: (MonadIO m, IsNotebook o) => o -> m Bool Source #
Get the value of the “enable-popup” property.
When overloading is enabled, this is equivalent to
get notebook #enablePopup
notebookEnablePopup :: AttrLabelProxy "enablePopup" Source #
setNotebookEnablePopup :: (MonadIO m, IsNotebook o) => o -> Bool -> m () Source #
Set the value of the “enable-popup” property.
When overloading is enabled, this is equivalent to
setnotebook [ #enablePopup:=value ]
groupName
Group name for tab drag and drop.
Since: 2.24
data NotebookGroupNamePropertyInfo Source #
Instances
| AttrInfo NotebookGroupNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods attrGet :: AttrBaseTypeConstraint NotebookGroupNamePropertyInfo o => o -> IO (AttrGetType NotebookGroupNamePropertyInfo) # attrSet :: (AttrBaseTypeConstraint NotebookGroupNamePropertyInfo o, AttrSetTypeConstraint NotebookGroupNamePropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint NotebookGroupNamePropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint NotebookGroupNamePropertyInfo o, AttrSetTypeConstraint NotebookGroupNamePropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint NotebookGroupNamePropertyInfo o, AttrTransferTypeConstraint NotebookGroupNamePropertyInfo b) => Proxy o -> b -> IO (AttrTransferType NotebookGroupNamePropertyInfo) # attrPut :: AttrBaseTypeConstraint NotebookGroupNamePropertyInfo o => o -> AttrGetType NotebookGroupNamePropertyInfo -> IO () # | |||||||||||||||||||||||||||||||||
| type AttrAllowedOps NotebookGroupNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook type AttrAllowedOps NotebookGroupNamePropertyInfo = '['AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear] | |||||||||||||||||||||||||||||||||
| type AttrBaseTypeConstraint NotebookGroupNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrGetType NotebookGroupNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrLabel NotebookGroupNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrOrigin NotebookGroupNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrSetTypeConstraint NotebookGroupNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrTransferType NotebookGroupNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrTransferTypeConstraint NotebookGroupNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
clearNotebookGroupName :: (MonadIO m, IsNotebook o) => o -> m () Source #
Set the value of the “group-name” property to Nothing.
When overloading is enabled, this is equivalent to
clear #groupName
constructNotebookGroupName :: (IsNotebook o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “group-name” property. This is rarely needed directly, but it is used by new.
getNotebookGroupName :: (MonadIO m, IsNotebook o) => o -> m (Maybe Text) Source #
Get the value of the “group-name” property.
When overloading is enabled, this is equivalent to
get notebook #groupName
notebookGroupName :: AttrLabelProxy "groupName" Source #
setNotebookGroupName :: (MonadIO m, IsNotebook o) => o -> Text -> m () Source #
Set the value of the “group-name” property.
When overloading is enabled, this is equivalent to
setnotebook [ #groupName:=value ]
page
No description available in the introspection data.
data NotebookPagePropertyInfo Source #
Instances
| AttrInfo NotebookPagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods attrGet :: AttrBaseTypeConstraint NotebookPagePropertyInfo o => o -> IO (AttrGetType NotebookPagePropertyInfo) # attrSet :: (AttrBaseTypeConstraint NotebookPagePropertyInfo o, AttrSetTypeConstraint NotebookPagePropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint NotebookPagePropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint NotebookPagePropertyInfo o, AttrSetTypeConstraint NotebookPagePropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint NotebookPagePropertyInfo o, AttrTransferTypeConstraint NotebookPagePropertyInfo b) => Proxy o -> b -> IO (AttrTransferType NotebookPagePropertyInfo) # attrPut :: AttrBaseTypeConstraint NotebookPagePropertyInfo o => o -> AttrGetType NotebookPagePropertyInfo -> IO () # | |||||||||||||||||||||||||||||||||
| type AttrAllowedOps NotebookPagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrBaseTypeConstraint NotebookPagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrGetType NotebookPagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrLabel NotebookPagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrOrigin NotebookPagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrSetTypeConstraint NotebookPagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrTransferType NotebookPagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrTransferTypeConstraint NotebookPagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
constructNotebookPage :: (IsNotebook o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “page” property. This is rarely needed directly, but it is used by new.
getNotebookPage :: (MonadIO m, IsNotebook o) => o -> m Int32 Source #
Get the value of the “page” property.
When overloading is enabled, this is equivalent to
get notebook #page
notebookPage :: AttrLabelProxy "page" Source #
setNotebookPage :: (MonadIO m, IsNotebook o) => o -> Int32 -> m () Source #
Set the value of the “page” property.
When overloading is enabled, this is equivalent to
setnotebook [ #page:=value ]
scrollable
No description available in the introspection data.
data NotebookScrollablePropertyInfo Source #
Instances
| AttrInfo NotebookScrollablePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods attrGet :: AttrBaseTypeConstraint NotebookScrollablePropertyInfo o => o -> IO (AttrGetType NotebookScrollablePropertyInfo) # attrSet :: (AttrBaseTypeConstraint NotebookScrollablePropertyInfo o, AttrSetTypeConstraint NotebookScrollablePropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint NotebookScrollablePropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint NotebookScrollablePropertyInfo o, AttrSetTypeConstraint NotebookScrollablePropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint NotebookScrollablePropertyInfo o, AttrTransferTypeConstraint NotebookScrollablePropertyInfo b) => Proxy o -> b -> IO (AttrTransferType NotebookScrollablePropertyInfo) # attrPut :: AttrBaseTypeConstraint NotebookScrollablePropertyInfo o => o -> AttrGetType NotebookScrollablePropertyInfo -> IO () # | |||||||||||||||||||||||||||||||||
| type AttrAllowedOps NotebookScrollablePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook type AttrAllowedOps NotebookScrollablePropertyInfo = '['AttrSet, 'AttrConstruct, 'AttrGet, 'AttrPut] | |||||||||||||||||||||||||||||||||
| type AttrBaseTypeConstraint NotebookScrollablePropertyInfo Source # | |||||||||||||||||||||||||||||||||
| type AttrGetType NotebookScrollablePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrLabel NotebookScrollablePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrOrigin NotebookScrollablePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrSetTypeConstraint NotebookScrollablePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrTransferType NotebookScrollablePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrTransferTypeConstraint NotebookScrollablePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
constructNotebookScrollable :: (IsNotebook o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “scrollable” property. This is rarely needed directly, but it is used by new.
getNotebookScrollable :: (MonadIO m, IsNotebook o) => o -> m Bool Source #
Get the value of the “scrollable” property.
When overloading is enabled, this is equivalent to
get notebook #scrollable
notebookScrollable :: AttrLabelProxy "scrollable" Source #
setNotebookScrollable :: (MonadIO m, IsNotebook o) => o -> Bool -> m () Source #
Set the value of the “scrollable” property.
When overloading is enabled, this is equivalent to
setnotebook [ #scrollable:=value ]
showBorder
No description available in the introspection data.
data NotebookShowBorderPropertyInfo Source #
Instances
| AttrInfo NotebookShowBorderPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods attrGet :: AttrBaseTypeConstraint NotebookShowBorderPropertyInfo o => o -> IO (AttrGetType NotebookShowBorderPropertyInfo) # attrSet :: (AttrBaseTypeConstraint NotebookShowBorderPropertyInfo o, AttrSetTypeConstraint NotebookShowBorderPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint NotebookShowBorderPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint NotebookShowBorderPropertyInfo o, AttrSetTypeConstraint NotebookShowBorderPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint NotebookShowBorderPropertyInfo o, AttrTransferTypeConstraint NotebookShowBorderPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType NotebookShowBorderPropertyInfo) # attrPut :: AttrBaseTypeConstraint NotebookShowBorderPropertyInfo o => o -> AttrGetType NotebookShowBorderPropertyInfo -> IO () # | |||||||||||||||||||||||||||||||||
| type AttrAllowedOps NotebookShowBorderPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook type AttrAllowedOps NotebookShowBorderPropertyInfo = '['AttrSet, 'AttrConstruct, 'AttrGet, 'AttrPut] | |||||||||||||||||||||||||||||||||
| type AttrBaseTypeConstraint NotebookShowBorderPropertyInfo Source # | |||||||||||||||||||||||||||||||||
| type AttrGetType NotebookShowBorderPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrLabel NotebookShowBorderPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrOrigin NotebookShowBorderPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrSetTypeConstraint NotebookShowBorderPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrTransferType NotebookShowBorderPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrTransferTypeConstraint NotebookShowBorderPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
constructNotebookShowBorder :: (IsNotebook o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “show-border” property. This is rarely needed directly, but it is used by new.
getNotebookShowBorder :: (MonadIO m, IsNotebook o) => o -> m Bool Source #
Get the value of the “show-border” property.
When overloading is enabled, this is equivalent to
get notebook #showBorder
notebookShowBorder :: AttrLabelProxy "showBorder" Source #
setNotebookShowBorder :: (MonadIO m, IsNotebook o) => o -> Bool -> m () Source #
Set the value of the “show-border” property.
When overloading is enabled, this is equivalent to
setnotebook [ #showBorder:=value ]
showTabs
No description available in the introspection data.
data NotebookShowTabsPropertyInfo Source #
Instances
| AttrInfo NotebookShowTabsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods attrGet :: AttrBaseTypeConstraint NotebookShowTabsPropertyInfo o => o -> IO (AttrGetType NotebookShowTabsPropertyInfo) # attrSet :: (AttrBaseTypeConstraint NotebookShowTabsPropertyInfo o, AttrSetTypeConstraint NotebookShowTabsPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint NotebookShowTabsPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint NotebookShowTabsPropertyInfo o, AttrSetTypeConstraint NotebookShowTabsPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint NotebookShowTabsPropertyInfo o, AttrTransferTypeConstraint NotebookShowTabsPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType NotebookShowTabsPropertyInfo) # attrPut :: AttrBaseTypeConstraint NotebookShowTabsPropertyInfo o => o -> AttrGetType NotebookShowTabsPropertyInfo -> IO () # | |||||||||||||||||||||||||||||||||
| type AttrAllowedOps NotebookShowTabsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrBaseTypeConstraint NotebookShowTabsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrGetType NotebookShowTabsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrLabel NotebookShowTabsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrOrigin NotebookShowTabsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrSetTypeConstraint NotebookShowTabsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrTransferType NotebookShowTabsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrTransferTypeConstraint NotebookShowTabsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
constructNotebookShowTabs :: (IsNotebook o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “show-tabs” property. This is rarely needed directly, but it is used by new.
getNotebookShowTabs :: (MonadIO m, IsNotebook o) => o -> m Bool Source #
Get the value of the “show-tabs” property.
When overloading is enabled, this is equivalent to
get notebook #showTabs
notebookShowTabs :: AttrLabelProxy "showTabs" Source #
setNotebookShowTabs :: (MonadIO m, IsNotebook o) => o -> Bool -> m () Source #
Set the value of the “show-tabs” property.
When overloading is enabled, this is equivalent to
setnotebook [ #showTabs:=value ]
tabPos
No description available in the introspection data.
data NotebookTabPosPropertyInfo Source #
Instances
| AttrInfo NotebookTabPosPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods attrGet :: AttrBaseTypeConstraint NotebookTabPosPropertyInfo o => o -> IO (AttrGetType NotebookTabPosPropertyInfo) # attrSet :: (AttrBaseTypeConstraint NotebookTabPosPropertyInfo o, AttrSetTypeConstraint NotebookTabPosPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint NotebookTabPosPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint NotebookTabPosPropertyInfo o, AttrSetTypeConstraint NotebookTabPosPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint NotebookTabPosPropertyInfo o, AttrTransferTypeConstraint NotebookTabPosPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType NotebookTabPosPropertyInfo) # attrPut :: AttrBaseTypeConstraint NotebookTabPosPropertyInfo o => o -> AttrGetType NotebookTabPosPropertyInfo -> IO () # | |||||||||||||||||||||||||||||||||
| type AttrAllowedOps NotebookTabPosPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrBaseTypeConstraint NotebookTabPosPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrGetType NotebookTabPosPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrLabel NotebookTabPosPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrOrigin NotebookTabPosPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrSetTypeConstraint NotebookTabPosPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrTransferType NotebookTabPosPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
| type AttrTransferTypeConstraint NotebookTabPosPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.Notebook | |||||||||||||||||||||||||||||||||
constructNotebookTabPos :: (IsNotebook o, MonadIO m) => PositionType -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “tab-pos” property. This is rarely needed directly, but it is used by new.
getNotebookTabPos :: (MonadIO m, IsNotebook o) => o -> m PositionType Source #
Get the value of the “tab-pos” property.
When overloading is enabled, this is equivalent to
get notebook #tabPos
notebookTabPos :: AttrLabelProxy "tabPos" Source #
setNotebookTabPos :: (MonadIO m, IsNotebook o) => o -> PositionType -> m () Source #
Set the value of the “tab-pos” property.
When overloading is enabled, this is equivalent to
setnotebook [ #tabPos:=value ]
Signals
changeCurrentPage
type NotebookChangeCurrentPageCallback = Int32 -> IO Bool Source #
No description available in the introspection data.
data NotebookChangeCurrentPageSignalInfo Source #
Instances
| SignalInfo NotebookChangeCurrentPageSignalInfo Source # | |||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType NotebookChangeCurrentPageSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
| type HaskellCallbackType NotebookChangeCurrentPageSignalInfo Source # | |||||
afterNotebookChangeCurrentPage :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookChangeCurrentPageCallback) -> m SignalHandlerId Source #
Connect a signal handler for the changeCurrentPage signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after notebook #changeCurrentPage callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onNotebookChangeCurrentPage :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookChangeCurrentPageCallback) -> m SignalHandlerId Source #
Connect a signal handler for the changeCurrentPage signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on notebook #changeCurrentPage callback
createWindow
type NotebookCreateWindowCallback Source #
Arguments
| = Widget |
|
| -> Int32 |
|
| -> Int32 |
|
| -> IO Notebook | Returns: a |
The createWindow signal is emitted when a detachable tab is dropped on the root window.
A handler for this signal can create a window containing a notebook where the tab will be attached. It is also responsible for moving/resizing the window and adding the necessary properties to the notebook (e.g. the Notebook:groupName ).
Since: 2.12
data NotebookCreateWindowSignalInfo Source #
Instances
| SignalInfo NotebookCreateWindowSignalInfo Source # | |||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType NotebookCreateWindowSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
| type HaskellCallbackType NotebookCreateWindowSignalInfo Source # | |||||
afterNotebookCreateWindow :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookCreateWindowCallback) -> m SignalHandlerId Source #
Connect a signal handler for the createWindow signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after notebook #createWindow callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onNotebookCreateWindow :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookCreateWindowCallback) -> m SignalHandlerId Source #
Connect a signal handler for the createWindow signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on notebook #createWindow callback
focusTab
type NotebookFocusTabCallback = NotebookTab -> IO Bool Source #
No description available in the introspection data.
data NotebookFocusTabSignalInfo Source #
Instances
| SignalInfo NotebookFocusTabSignalInfo Source # | |||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType NotebookFocusTabSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
| type HaskellCallbackType NotebookFocusTabSignalInfo Source # | |||||
afterNotebookFocusTab :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookFocusTabCallback) -> m SignalHandlerId Source #
Connect a signal handler for the focusTab signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after notebook #focusTab callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onNotebookFocusTab :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookFocusTabCallback) -> m SignalHandlerId Source #
Connect a signal handler for the focusTab signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on notebook #focusTab callback
moveFocusOut
type NotebookMoveFocusOutCallback = DirectionType -> IO () Source #
No description available in the introspection data.
data NotebookMoveFocusOutSignalInfo Source #
Instances
| SignalInfo NotebookMoveFocusOutSignalInfo Source # | |||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType NotebookMoveFocusOutSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
| type HaskellCallbackType NotebookMoveFocusOutSignalInfo Source # | |||||
afterNotebookMoveFocusOut :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookMoveFocusOutCallback) -> m SignalHandlerId Source #
Connect a signal handler for the moveFocusOut signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after notebook #moveFocusOut callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onNotebookMoveFocusOut :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookMoveFocusOutCallback) -> m SignalHandlerId Source #
Connect a signal handler for the moveFocusOut signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on notebook #moveFocusOut callback
pageAdded
type NotebookPageAddedCallback Source #
Arguments
| = Widget |
|
| -> Word32 |
|
| -> IO () |
the pageAdded signal is emitted in the notebook right after a page is added to the notebook.
Since: 2.10
data NotebookPageAddedSignalInfo Source #
Instances
| SignalInfo NotebookPageAddedSignalInfo Source # | |||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType NotebookPageAddedSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
| type HaskellCallbackType NotebookPageAddedSignalInfo Source # | |||||
afterNotebookPageAdded :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookPageAddedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the pageAdded signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after notebook #pageAdded callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onNotebookPageAdded :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookPageAddedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the pageAdded signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on notebook #pageAdded callback
pageRemoved
type NotebookPageRemovedCallback Source #
the pageRemoved signal is emitted in the notebook right after a page is removed from the notebook.
Since: 2.10
data NotebookPageRemovedSignalInfo Source #
Instances
| SignalInfo NotebookPageRemovedSignalInfo Source # | |||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType NotebookPageRemovedSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
| type HaskellCallbackType NotebookPageRemovedSignalInfo Source # | |||||
afterNotebookPageRemoved :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookPageRemovedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the pageRemoved signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after notebook #pageRemoved callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onNotebookPageRemoved :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookPageRemovedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the pageRemoved signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on notebook #pageRemoved callback
pageReordered
type NotebookPageReorderedCallback Source #
Arguments
| = Widget |
|
| -> Word32 |
|
| -> IO () |
the pageReordered signal is emitted in the notebook right after a page has been reordered.
Since: 2.10
data NotebookPageReorderedSignalInfo Source #
Instances
| SignalInfo NotebookPageReorderedSignalInfo Source # | |||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType NotebookPageReorderedSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
| type HaskellCallbackType NotebookPageReorderedSignalInfo Source # | |||||
afterNotebookPageReordered :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookPageReorderedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the pageReordered signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after notebook #pageReordered callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onNotebookPageReordered :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookPageReorderedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the pageReordered signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on notebook #pageReordered callback
reorderTab
type NotebookReorderTabCallback = DirectionType -> Bool -> IO Bool Source #
No description available in the introspection data.
data NotebookReorderTabSignalInfo Source #
Instances
| SignalInfo NotebookReorderTabSignalInfo Source # | |||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType NotebookReorderTabSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
| type HaskellCallbackType NotebookReorderTabSignalInfo Source # | |||||
afterNotebookReorderTab :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookReorderTabCallback) -> m SignalHandlerId Source #
Connect a signal handler for the reorderTab signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after notebook #reorderTab callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onNotebookReorderTab :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookReorderTabCallback) -> m SignalHandlerId Source #
Connect a signal handler for the reorderTab signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on notebook #reorderTab callback
selectPage
type NotebookSelectPageCallback = Bool -> IO Bool Source #
No description available in the introspection data.
data NotebookSelectPageSignalInfo Source #
Instances
| SignalInfo NotebookSelectPageSignalInfo Source # | |||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType NotebookSelectPageSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
| type HaskellCallbackType NotebookSelectPageSignalInfo Source # | |||||
afterNotebookSelectPage :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookSelectPageCallback) -> m SignalHandlerId Source #
Connect a signal handler for the selectPage signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after notebook #selectPage callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onNotebookSelectPage :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookSelectPageCallback) -> m SignalHandlerId Source #
Connect a signal handler for the selectPage signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on notebook #selectPage callback
switchPage
type NotebookSwitchPageCallback Source #
Emitted when the user or a function changes the current page.
data NotebookSwitchPageSignalInfo Source #
Instances
| SignalInfo NotebookSwitchPageSignalInfo Source # | |||||
Defined in GI.Gtk.Objects.Notebook Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType NotebookSwitchPageSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
| type HaskellCallbackType NotebookSwitchPageSignalInfo Source # | |||||
afterNotebookSwitchPage :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookSwitchPageCallback) -> m SignalHandlerId Source #
Connect a signal handler for the switchPage signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after notebook #switchPage callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onNotebookSwitchPage :: (IsNotebook a, MonadIO m) => a -> ((?self :: a) => NotebookSwitchPageCallback) -> m SignalHandlerId Source #
Connect a signal handler for the switchPage signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on notebook #switchPage callback