Table of Contents

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

constructArguments ConstructArgument[]

WaylandPopup(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected WaylandPopup(CreationData data)

Parameters

data CreationData

WaylandPopup(WaylandPopupHandle)

protected WaylandPopup(WaylandPopupHandle handle)

Parameters

handle WaylandPopupHandle

Properties

Autohide

public bool Autohide { get; }

Property Value

bool

Parent

public Surface? Parent { get; }

Property Value

Surface

Methods

GetAutohide()

public bool GetAutohide()

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

GetParent()

public Surface? GetParent()

Returns

Surface

GetPositionX()

public int GetPositionX()

Returns

int

GetPositionY()

public int GetPositionY()

Returns

int

GetRectAnchor()

public Gravity GetRectAnchor()

Returns

Gravity

GetSurfaceAnchor()

public Gravity GetSurfaceAnchor()

Returns

Gravity

NewFromPointer(nint, bool)

Creates a new managed WaylandPopup instance for a given pointer.

public static WaylandPopup NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

WaylandPopup

NewWithProperties(ConstructArgument[])

Creates a new WaylandPopup and sets the properties specified by the construct arguments.

public static WaylandPopup NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

WaylandPopup

Present(int, int, PopupLayout)

public bool Present(int width, int height, PopupLayout layout)

Parameters

width int
height int
layout PopupLayout

Returns

bool