Class WaylandPopup
- Namespace
- GdkWayland
- Assembly
- GdkWayland-4.0.dll
public class WaylandPopup : WaylandSurface, Popup, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
WaylandPopup
- Implements
- Inherited Members
Constructors
WaylandPopup(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public WaylandPopup(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
WaylandPopup(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected WaylandPopup(CreationData data)
Parameters
dataCreationData
WaylandPopup(WaylandPopupHandle)
protected WaylandPopup(WaylandPopupHandle handle)
Parameters
handleWaylandPopupHandle
Properties
Autohide
public bool Autohide { get; }
Property Value
Parent
public Surface? Parent { get; }
Property Value
Methods
GetAutohide()
public bool GetAutohide()
Returns
GetGType()
public static Type GetGType()
Returns
GetParent()
public Surface? GetParent()
Returns
GetPositionX()
public int GetPositionX()
Returns
GetPositionY()
public int GetPositionY()
Returns
GetRectAnchor()
public Gravity GetRectAnchor()
Returns
GetSurfaceAnchor()
public Gravity GetSurfaceAnchor()
Returns
NewFromPointer(nint, bool)
Creates a new managed WaylandPopup instance for a given pointer.
public static WaylandPopup NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new WaylandPopup and sets the properties specified by the construct arguments.
public static WaylandPopup NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Present(int, int, PopupLayout)
public bool Present(int width, int height, PopupLayout layout)
Parameters
widthintheightintlayoutPopupLayout