PopoverProtocol
public protocol PopoverProtocol : BinProtocol
                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 gtk_popover_new(),
or updated afterwards through gtk_popover_set_relative_to(), by
default they will point to the whole widget area, although this
behavior can be changed through gtk_popover_set_pointing_to().
The position of a popover relative to the widget it is attached to
can also be changed through gtk_popover_set_position().
By default, GtkPopover 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, gtk_popover_set_modal() 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 GMenuModel, using
gtk_popover_new_from_model(). 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. GtkPopoverMenu or created using gtk_popover_new_from_model().
Particular uses of GtkPopover, such as touch selection popups
or magnifiers in GtkEntry or GtkTextView get style classes
like .touch-selection or .magnifier to differentiate from
plain popovers.
The PopoverProtocol protocol exposes the methods and properties of an underlying GtkPopover instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see Popover.
Alternatively, use PopoverRef as a lighweight, unowned reference if you already have an instance you just want to use.
- 
                  
                  
Untyped pointer to the underlying
GtkPopoverinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } - 
                  
popover_ptrDefault implementationTyped pointer to the underlying
GtkPopoverinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkPopoverinstance.Declaration
Swift
var popover_ptr: UnsafeMutablePointer<GtkPopover>! { get } - 
                  
                  
Required Initialiser for types conforming to
PopoverProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer) 
- 
                  
bind(property:Extension methodto: _: flags: transformFrom: transformTo: ) Bind a
PopoverPropertyNamesource property to a given target object.Declaration
Swift
@discardableResult @inlinable func bind<Q, T>(property source_property: PopoverPropertyName, to target: T, _ target_property: Q, flags f: BindingFlags = .default, transformFrom transform_from: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }, transformTo transform_to: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }) -> BindingRef! where Q : PropertyNameProtocol, T : ObjectProtocolParameters
source_propertythe source property to bind
targetthe target object to bind to
target_propertythe target property to bind to
flagsthe flags to pass to the
Bindingtransform_fromValueTransformerto use for forward transformationtransform_toValueTransformerto use for backwards transformationReturn Value
binding reference or
nilin case of an error - 
                  
get(property:Extension method) Get the value of a Popover property
Declaration
Swift
@inlinable func get(property: PopoverPropertyName) -> GLibObject.ValueParameters
propertythe property to get the value for
Return Value
the value of the named property
 - 
                  
set(property:Extension methodvalue: ) Set the value of a Popover property. Note that this will only have an effect on properties that are writable and not construct-only!
Declaration
Swift
@inlinable func set(property: PopoverPropertyName, value v: GLibObject.Value)Parameters
propertythe property to get the value for
Return Value
the value of the named property
 
- 
                  
connect(signal:Extension methodflags: handler: ) Connect a Swift signal handler to the given, typed
PopoverSignalNamesignalDeclaration
Swift
@discardableResult @inlinable func connect(signal s: PopoverSignalName, flags f: ConnectFlags = ConnectFlags(0), handler h: @escaping SignalHandler) -> IntParameters
signalThe signal to connect
flagsThe connection flags to use
dataA pointer to user data to provide to the callback
destroyDataA
GClosureNotifyC function to destroy the data pointed to byuserDatahandlerThe Swift signal handler (function or callback) to invoke on the given signal
Return Value
The signal handler ID (always greater than 0 for successful connections)
 - 
                  
connect(signal:Extension methodflags: data: destroyData: signalHandler: ) Connect a C signal handler to the given, typed
PopoverSignalNamesignalDeclaration
Swift
@discardableResult @inlinable func connect(signal s: PopoverSignalName, flags f: ConnectFlags = ConnectFlags(0), data userData: gpointer!, destroyData destructor: GClosureNotify? = nil, signalHandler h: @escaping GCallback) -> IntParameters
signalThe signal to connect
flagsThe connection flags to use
dataA pointer to user data to provide to the callback
destroyDataA
GClosureNotifyC function to destroy the data pointed to byuserDatasignalHandlerThe C function to be called on the given signal
Return Value
The signal handler ID (always greater than 0 for successful connections)
 - 
                  
onClosed(flags:Extension methodhandler: ) This signal is emitted when the popover is dismissed either through API or user interaction.
Note
This represents the underlyingclosedsignalDeclaration
Swift
@discardableResult @inlinable func onClosed(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: PopoverRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
handlerThe signal handler to call Run the given callback whenever the
closedsignal is emitted - 
                  
closedSignalExtension methodTyped
closedsignal for using theconnect(signal:)methodsDeclaration
Swift
static var closedSignal: PopoverSignalName { get } - 
                  
onNotifyConstrainTo(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::constrain-tosignalDeclaration
Swift
@discardableResult @inlinable func onNotifyConstrainTo(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: PopoverRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifyConstrainTosignal is emitted - 
                  
notifyConstrainToSignalExtension methodTyped
notify::constrain-tosignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifyConstrainToSignal: PopoverSignalName { get } - 
                  
onNotifyModal(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::modalsignalDeclaration
Swift
@discardableResult @inlinable func onNotifyModal(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: PopoverRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifyModalsignal is emitted - 
                  
notifyModalSignalExtension methodTyped
notify::modalsignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifyModalSignal: PopoverSignalName { get } - 
                  
onNotifyPointingTo(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::pointing-tosignalDeclaration
Swift
@discardableResult @inlinable func onNotifyPointingTo(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: PopoverRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifyPointingTosignal is emitted - 
                  
notifyPointingToSignalExtension methodTyped
notify::pointing-tosignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifyPointingToSignal: PopoverSignalName { get } - 
                  
onNotifyPosition(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::positionsignalDeclaration
Swift
@discardableResult @inlinable func onNotifyPosition(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: PopoverRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifyPositionsignal is emitted - 
                  
notifyPositionSignalExtension methodTyped
notify::positionsignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifyPositionSignal: PopoverSignalName { get } - 
                  
onNotifyRelativeTo(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::relative-tosignalDeclaration
Swift
@discardableResult @inlinable func onNotifyRelativeTo(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: PopoverRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifyRelativeTosignal is emitted - 
                  
notifyRelativeToSignalExtension methodTyped
notify::relative-tosignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifyRelativeToSignal: PopoverSignalName { get } - 
                  
onNotifyTransitionsEnabled(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::transitions-enabledsignalDeclaration
Swift
@discardableResult @inlinable func onNotifyTransitionsEnabled(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: PopoverRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifyTransitionsEnabledsignal is emitted - 
                  
notifyTransitionsEnabledSignalExtension methodTyped
notify::transitions-enabledsignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifyTransitionsEnabledSignal: PopoverSignalName { get } 
- 
                  
bind(model:Extension methodactionNamespace: ) Establishes a binding between a
GtkPopoverand aGMenuModel.The contents of
popoverare removed and then refilled with menu items according tomodel. Whenmodelchanges,popoveris updated. Calling this function twice onpopoverwith differentmodelwill cause the first binding to be replaced with a binding to the new model. Ifmodelisnilthen any previous binding is undone and all children are removed.If
action_namespaceis non-nilthen the effect is as if all actions mentioned in themodelhave their names prefixed with the namespace, plus a dot. For example, if the action “quit” is mentioned andaction_namespaceis “app” then the effective action name is “app.quit”.This function uses
GtkActionableto define the action name and target values on the created menu items. If you want to use an action group other than “app” and “win”, or if you want to use aGtkMenuShelloutside of aGtkApplicationWindow, then you will need to attach your own action group to the widget hierarchy usinggtk_widget_insert_action_group(). As an example, if you created a group with a “quit” action and inserted it with the name “mygroup” then you would use the action name “mygroup.quit” in yourGMenuModel.Declaration
Swift
@inlinable func bind(model: GIO.MenuModelRef? = nil, actionNamespace: UnsafePointer<gchar>? = nil) - 
                  
bind(model:Extension methodactionNamespace: ) Establishes a binding between a
GtkPopoverand aGMenuModel.The contents of
popoverare removed and then refilled with menu items according tomodel. Whenmodelchanges,popoveris updated. Calling this function twice onpopoverwith differentmodelwill cause the first binding to be replaced with a binding to the new model. Ifmodelisnilthen any previous binding is undone and all children are removed.If
action_namespaceis non-nilthen the effect is as if all actions mentioned in themodelhave their names prefixed with the namespace, plus a dot. For example, if the action “quit” is mentioned andaction_namespaceis “app” then the effective action name is “app.quit”.This function uses
GtkActionableto define the action name and target values on the created menu items. If you want to use an action group other than “app” and “win”, or if you want to use aGtkMenuShelloutside of aGtkApplicationWindow, then you will need to attach your own action group to the widget hierarchy usinggtk_widget_insert_action_group(). As an example, if you created a group with a “quit” action and inserted it with the name “mygroup” then you would use the action name “mygroup.quit” in yourGMenuModel.Declaration
Swift
@inlinable func bind<MenuModelT>(model: MenuModelT?, actionNamespace: UnsafePointer<gchar>? = nil) where MenuModelT : MenuModelProtocol - 
                  
getConstrainTo()Extension methodReturns the constraint for placing this popover. See
gtk_popover_set_constrain_to().Declaration
Swift
@inlinable func getConstrainTo() -> GtkPopoverConstraint - 
                  
getDefaultWidget()Extension methodGets the widget that should be set as the default while the popover is shown.
Declaration
Swift
@inlinable func getDefaultWidget() -> WidgetRef! - 
                  
getModal()Extension methodReturns whether the popover is modal, see gtk_popover_set_modal to see the implications of this.
Declaration
Swift
@inlinable func getModal() -> Bool - 
                  
getPointingTo(rect:Extension method) If a rectangle to point to has been set, this function will return
trueand fill inrectwith such rectangle, otherwise it will returnfalseand fill inrectwith the attached widget coordinates.Declaration
Swift
@inlinable func getPointingTo<RectangleT>(rect: RectangleT) -> Bool where RectangleT : RectangleProtocol - 
                  
getPosition()Extension methodReturns the preferred position of
popover.Declaration
Swift
@inlinable func getPosition() -> GtkPositionType - 
                  
getRelativeTo()Extension methodReturns the widget
popoveris currently attached toDeclaration
Swift
@inlinable func getRelativeTo() -> WidgetRef! - 
                  
getTransitionsEnabled()Extension methodReturns whether show/hide transitions are enabled on this popover.
get_transitions_enabled is deprecated: You can show or hide the popover without transitions using gtk_widget_show() and gtk_widget_hide() while gtk_popover_popup() and gtk_popover_popdown() will use transitions.
Declaration
Swift
@available(*, deprecated) @inlinable func getTransitionsEnabled() -> Bool - 
                  
popdown()Extension methodPops
popoverdown.This is different than agtk_widget_hide()call in that it shows the popover with a transition. If you want to hide the popover without a transition, usegtk_widget_hide().Declaration
Swift
@inlinable func popdown() - 
                  
popup()Extension methodPops
popoverup. This is different than agtk_widget_show()call in that it shows the popover with a transition. If you want to show the popover without a transition, usegtk_widget_show().Declaration
Swift
@inlinable func popup() - 
                  
setConstrainTo(constraint:Extension method) Sets a constraint for positioning this popover.
Note that not all platforms support placing popovers freely, and may already impose constraints.
Declaration
Swift
@inlinable func setConstrainTo(constraint: GtkPopoverConstraint) - 
                  
setDefault(widget:Extension method) Sets the widget that should be set as default widget while the popover is shown (see
gtk_window_set_default()).GtkPopoverremembers the previous default widget and reestablishes it when the popover is dismissed.Declaration
Swift
@inlinable func setDefault(widget: WidgetRef? = nil) - 
                  
setDefault(widget:Extension method) Sets the widget that should be set as default widget while the popover is shown (see
gtk_window_set_default()).GtkPopoverremembers the previous default widget and reestablishes it when the popover is dismissed.Declaration
Swift
@inlinable func setDefault<WidgetT>(widget: WidgetT?) where WidgetT : WidgetProtocol - 
                  
set(modal:Extension method) Sets whether
popoveris modal, a modal popover will grab all input within the toplevel and grab the keyboard focus on it when being displayed. Clicking outside the popover area or pressing Esc will dismiss the popover and ungrab input.Declaration
Swift
@inlinable func set(modal: Bool) - 
                  
setPointingTo(rect:Extension method) Sets the rectangle that
popoverwill point to, in the coordinate space of the widgetpopoveris attached to, seegtk_popover_set_relative_to().Declaration
Swift
@inlinable func setPointingTo<RectangleT>(rect: RectangleT) where RectangleT : RectangleProtocol - 
                  
set(position:Extension method) Sets the preferred position for
popoverto appear. If thepopoveris currently visible, it will be immediately updated.This preference will be respected where possible, although on lack of space (eg. if close to the window edges), the
GtkPopovermay choose to appear on the opposite sideDeclaration
Swift
@inlinable func set(position: GtkPositionType) - 
                  
set(relativeTo:Extension method) Sets a new widget to be attached to
popover. Ifpopoveris visible, the position will be updated.Note: the ownership of popovers is always given to their
relative_towidget, so ifrelative_tois set tonilon an attachedpopover, it will be detached from its previous widget, and consequently destroyed unless extra references are kept.Declaration
Swift
@inlinable func set(relativeTo: WidgetRef? = nil) - 
                  
set(relativeTo:Extension method) Sets a new widget to be attached to
popover. Ifpopoveris visible, the position will be updated.Note: the ownership of popovers is always given to their
relative_towidget, so ifrelative_tois set tonilon an attachedpopover, it will be detached from its previous widget, and consequently destroyed unless extra references are kept.Declaration
Swift
@inlinable func set<WidgetT>(relativeTo: WidgetT?) where WidgetT : WidgetProtocol - 
                  
set(transitionsEnabled:Extension method) Sets whether show/hide transitions are enabled on this popover
set_transitions_enabled is deprecated: You can show or hide the popover without transitions using gtk_widget_show() and gtk_widget_hide() while gtk_popover_popup() and gtk_popover_popdown() will use transitions.
Declaration
Swift
@available(*, deprecated) @inlinable func set(transitionsEnabled: Bool) - 
                  
constrainToExtension methodReturns the constraint for placing this popover. See
gtk_popover_set_constrain_to().Declaration
Swift
@inlinable var constrainTo: GtkPopoverConstraint { get nonmutating set } - 
                  
defaultWidgetExtension methodGets the widget that should be set as the default while the popover is shown.
Declaration
Swift
@inlinable var defaultWidget: WidgetRef! { get nonmutating set } - 
                  
modalExtension methodSets whether the popover is modal (so other elements in the window do not receive input while the popover is visible).
Declaration
Swift
@inlinable var modal: Bool { get nonmutating set } - 
                  
positionExtension methodSets the preferred position of the popover.
Declaration
Swift
@inlinable var position: GtkPositionType { get nonmutating set } - 
                  
relativeToExtension methodReturns the widget
popoveris currently attached toDeclaration
Swift
@inlinable var relativeTo: WidgetRef! { get nonmutating set } - 
                  
transitionsEnabledExtension methodReturns whether show/hide transitions are enabled on this popover.
get_transitions_enabled is deprecated: You can show or hide the popover without transitions using gtk_widget_show() and gtk_widget_hide() while gtk_popover_popup() and gtk_popover_popdown() will use transitions.
Declaration
Swift
@inlinable var transitionsEnabled: Bool { get nonmutating set } - 
                  
parentInstanceExtension methodUndocumented
Declaration
Swift
@inlinable var parentInstance: GtkBin { get } 
            View on GitHub
          
            Install in Dash
          
      PopoverProtocol Protocol Reference