Hoogle Search
Within LTS Haskell 24.41 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
notebookPage :: NotebookClass self => Attr self Intgtk Graphics.UI.Gtk.Layout.Notebook The index of the current page. Allowed values: >= 0 Default value: 0
notebookPageNum :: (NotebookClass self, WidgetClass w) => self -> w -> IO (Maybe Int)gtk Graphics.UI.Gtk.Layout.Notebook Query the page the child widget is contained in.
- The function returns the page number if the child was found, Nothing otherwise.
-
gtk Graphics.UI.Gtk.Layout.Notebook Prepends a page to notebook.
- The given label will be used for the label widget of the new tab. In case the context menu is enabled, this name will also appear in the popup menu. If you want to specify something else to go in the tab, use notebookPrependPageMenu.
- This function returned () in Gtk version 2.2.X and earlier
-
gtk Graphics.UI.Gtk.Layout.Notebook Prepends a page to notebook, specifying the widget to use as the label in the popup menu. Like notebookPrependPage but allows any widget to be used for the label of the new tab and then entry in the page-switch popup menu.
- This function returned () in Gtk version 2.2.X and earlier
notebookPrevPage :: NotebookClass self => self -> IO ()gtk Graphics.UI.Gtk.Layout.Notebook Switches to the previous page. Nothing happens if the current page is the first page.
notebookRemovePage :: NotebookClass self => self -> Int -> IO ()gtk Graphics.UI.Gtk.Layout.Notebook Removes a page from the notebook given its index in the notebook.
notebookSetCurrentPage :: NotebookClass self => self -> Int -> IO ()gtk Graphics.UI.Gtk.Layout.Notebook Switches to the page number pageNum. Page numbers start from 0. Use -1 to request the last page.
- 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.
onSwitchPage :: NotebookClass nb => nb -> (Int -> IO ()) -> IO (ConnectId nb)gtk Graphics.UI.Gtk.Layout.Notebook This signal is emitted when a new page is selected.
switchPage :: NotebookClass self => Signal self (Int -> IO ())gtk Graphics.UI.Gtk.Layout.Notebook Emitted when the user or a function changes the current page.
adjustmentClampPage :: Adjustment -> Double -> Double -> IO ()gtk Graphics.UI.Gtk.Misc.Adjustment Updates the Adjustment value to ensure that the range between lower and upper is in the current page (i.e. between value and value + pageSize). If the range is larger than the page size, then only the start of it will be in the current page. A "changed" signal will be emitted if the value is changed.