panel.omni_bar
Module for [OmniBar] class
Types 3
A multi-use widget for user interaction in the window header bar. You can add widgets, a popover to provide action items, an icon, updates on progress and pulse the main widget.
There is also a prefix and suffix area that can contain more widgets.
Methods
OmniBarGidBuilder builder() static nothrowGet builder for [panel.omni_bar.OmniBar] Returns: New builder objectstring actionTooltip() @property nothrowGet `actionTooltip` property. Returns: The tooltip for the action.void actionTooltip(string propval) @property nothrowSet `actionTooltip` property. Params: propval = The tooltip for the action.void iconName(string propval) @property nothrowSet `iconName` property. Params: propval = The name of the icon to use.gio.menu_model.MenuModel menuModel() @property nothrowGet `menuModel` property. Returns: The menu model of the omni bar menu.void menuModel(gio.menu_model.MenuModel propval) @property nothrowSet `menuModel` property. Params: propval = The menu model of the omni bar menu.gtk.popover.Popover popover() @property nothrowGet `popover` property. Returns: The popover to show.void popover(gtk.popover.Popover propval) @property nothrowSet `popover` property. Params: propval = The popover to show.void progress(double propval) @property nothrowSet `progress` property. Params: propval = The current progress value.void addPrefix(int priority, gtk.widget.Widget widget) nothrowAdd a widget at the start of the container, ordered by priority. The highest the priority, the closest to the start.void addSuffix(int priority, gtk.widget.Widget widget) nothrowAdd a widget towards the end of the container, ordered by priority. The highest the priority, the closest to the start.gtk.popover.Popover getPopover() nothrowGets the current popover or null if none is setup. Returns: a #GtkPopover or nulldouble getProgress() nothrowGets the progress value displayed in the omni bar. Returns: the progress value.void remove(gtk.widget.Widget widget) nothrowRemoves a widget from the omni bar. Currently only prefix or suffix widgets are supported.void setPopover(gtk.popover.Popover popover = null) nothrowSets the omnibar popover, that will appear when clicking on the omni bar.void stopPulsing() nothrowStops pulsing the omni bar, that was started with panel_omni_bar_start_pulsing.classOmniBarGidBuilderImpl(T) : gtk.widget.WidgetGidBuilderImpl!T, gtk.actionable.ActionableGidBuilderImpl!T
Fluent builder implementation template for panel.omni_bar.OmniBar
Methods
T actionTooltip(string propval) nothrowSet `actionTooltip` property. Params: propval = The tooltip for the action. Returns: Builder instance for fluent chainingT iconName(string propval) nothrowSet `iconName` property. Params: propval = The name of the icon to use. Returns: Builder instance for fluent chainingT menuModel(gio.menu_model.MenuModel propval) nothrowSet `menuModel` property. Params: propval = The menu model of the omni bar menu. Returns: Builder instance for fluent chainingT popover(gtk.popover.Popover propval) nothrowSet `popover` property. Params: propval = The popover to show. Returns: Builder instance for fluent chainingT progress(double propval) nothrowSet `progress` property. Params: propval = The current progress value. Returns: Builder instance for fluent chainingFluent builder for panel.omni_bar.OmniBar