Hoogle Search
Within LTS Haskell 24.42 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
PlugAccessible :: ManagedPtr PlugAccessible -> PlugAccessiblegi-gtk3 GI.Gtk.Objects.PlugAccessible No documentation available.
-
GtkPopover is a bubble-like context window, primarily meant to provide context-dependent information or options. Popovers are attached to a widget, passed at construction time on popoverNew, or updated afterwards through popoverSetRelativeTo, by default they will point to the whole widget area, although this behavior can be changed through popoverSetPointingTo. The position of a popover relative to the widget it is attached to can also be changed through popoverSetPosition. By default, Popover performs a GTK+ grab, in order to ensure input events get redirected to it while it is shown, and also so the popover is dismissed in the expected situations (clicks outside the popover, or the Esc key being pressed). If no such modal behavior is desired on a popover, popoverSetModal may be called on it to tweak its behavior.
GtkPopover as menu replacement
GtkPopover is often used to replace menus. To facilitate this, it supports being populated from a MenuModel, using popoverNewFromModel. In addition to all the regular menu model features, this function supports rendering sections in the model in a more compact form, as a row of icon buttons instead of menu items. To use this rendering, set the ”display-hint” attribute of the section to ”horizontal-buttons” and set the icons of your items with the ”verb-icon” attribute.<section> <attribute name="display-hint">horizontal-buttons</attribute> <item> <attribute name="label">Cut</attribute> <attribute name="action">app.cut</attribute> <attribute name="verb-icon">edit-cut-symbolic</attribute> </item> <item> <attribute name="label">Copy</attribute> <attribute name="action">app.copy</attribute> <attribute name="verb-icon">edit-copy-symbolic</attribute> </item> <item> <attribute name="label">Paste</attribute> <attribute name="action">app.paste</attribute> <attribute name="verb-icon">edit-paste-symbolic</attribute> </item> </section>
CSS nodes
GtkPopover has a single css node called popover. It always gets the .background style class and it gets the .menu style class if it is menu-like (e.g. PopoverMenu or created using popoverNewFromModel. Particular uses of GtkPopover, such as touch selection popups or magnifiers in Entry or TextView get style classes like .touch-selection or .magnifier to differentiate from plain popovers. Since: 3.12 -
gi-gtk3 GI.Gtk.Objects.Popover Memory-managed wrapper type.
Popover :: ManagedPtr Popover -> Popovergi-gtk3 GI.Gtk.Objects.Popover No documentation available.
type
PopoverClosedCallback = IO ()gi-gtk3 GI.Gtk.Objects.Popover This signal is emitted when the popover is dismissed either through API or user interaction. Since: 3.12
module GI.Gtk.Objects.
PopoverAccessible No description available in the introspection data.
-
gi-gtk3 GI.Gtk.Objects.PopoverAccessible Memory-managed wrapper type.
PopoverAccessible :: ManagedPtr PopoverAccessible -> PopoverAccessiblegi-gtk3 GI.Gtk.Objects.PopoverAccessible No documentation available.
module GI.Gtk.Objects.
PopoverMenu GtkPopoverMenu is a subclass of Popover that treats its children like menus and allows switching between them. It is meant to be used primarily together with ModelButton, but any widget can be used, such as SpinButton or Scale. In this respect, GtkPopoverMenu is more flexible than popovers that are created from a MenuModel with popoverNewFromModel. To add a child as a submenu, set the PopoverMenu:submenu child property to the name of the submenu. To let the user open this submenu, add a ModelButton whose ModelButton:menuName property is set to the name you've given to the submenu. By convention, the first child of a submenu should be a ModelButton to switch back to the parent menu. Such a button should use the ModelButton:inverted and ModelButton:centered properties to achieve a title-like appearance and place the submenu indicator at the opposite side. To switch back to the main menu, use "main" as the menu name.
Example
xml code
<object class="GtkPopoverMenu"> <child> <object class="GtkBox"> <property name="visible">True</property> <property name="margin">10</property> <child> <object class="GtkModelButton"> <property name="visible">True</property> <property name="action-name">win.frob</property> <property name="text" translatable="yes">Frob</property> </object> </child> <child> <object class="GtkModelButton"> <property name="visible">True</property> <property name="menu-name">more</property> <property name="text" translatable="yes">More</property> </object> </child> </object> </child> <child> <object class="GtkBox"> <property name="visible">True</property> <property name="margin">10</property> <child> <object class="GtkModelButton"> <property name="visible">True</property> <property name="action-name">win.foo</property> <property name="text" translatable="yes">Foo</property> </object> </child> <child> <object class="GtkModelButton"> <property name="visible">True</property> <property name="action-name">win.bar</property> <property name="text" translatable="yes">Bar</property> </object> </child> </object> <packing> <property name="submenu">more</property> </packing> </child> </object>
Just like normal popovers created using gtk_popover_new_from_model, PopoverMenu instances have a single css node called "popover" and get the .menu style class.-
gi-gtk3 GI.Gtk.Objects.PopoverMenu Memory-managed wrapper type.