Table of Contents

Class PopupLayout

Namespace
Gdk
Assembly
Gdk-4.0.dll
public sealed class PopupLayout : BoxedRecord, IEquatable<PopupLayout>
Inheritance
PopupLayout
Implements
Inherited Members

Constructors

PopupLayout(PopupLayoutOwnedHandle)

public PopupLayout(PopupLayoutOwnedHandle handle)

Parameters

handle PopupLayoutOwnedHandle

Properties

Handle

public PopupLayoutOwnedHandle Handle { get; }

Property Value

PopupLayoutOwnedHandle

Methods

Copy()

public PopupLayout Copy()

Returns

PopupLayout

Equal(PopupLayout)

public bool Equal(PopupLayout other)

Parameters

other PopupLayout

Returns

bool

Equals(PopupLayout?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(PopupLayout? other)

Parameters

other PopupLayout

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetAnchorHints()

public AnchorHints GetAnchorHints()

Returns

AnchorHints

GetAnchorRect()

public Rectangle GetAnchorRect()

Returns

Rectangle

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetOffset(out int, out int)

public void GetOffset(out int dx, out int dy)

Parameters

dx int
dy int

GetRectAnchor()

public Gravity GetRectAnchor()

Returns

Gravity

GetShadowWidth(out int, out int, out int, out int)

[Version("4.2")]
public void GetShadowWidth(out int left, out int right, out int top, out int bottom)

Parameters

left int
right int
top int
bottom int

GetSurfaceAnchor()

public Gravity GetSurfaceAnchor()

Returns

Gravity

New(Rectangle, Gravity, Gravity)

public static PopupLayout New(Rectangle anchorRect, Gravity rectAnchor, Gravity surfaceAnchor)

Parameters

anchorRect Rectangle
rectAnchor Gravity
surfaceAnchor Gravity

Returns

PopupLayout

Ref()

public PopupLayout Ref()

Returns

PopupLayout

SetAnchorHints(AnchorHints)

public void SetAnchorHints(AnchorHints anchorHints)

Parameters

anchorHints AnchorHints

SetAnchorRect(Rectangle)

public void SetAnchorRect(Rectangle anchorRect)

Parameters

anchorRect Rectangle

SetOffset(int, int)

public void SetOffset(int dx, int dy)

Parameters

dx int
dy int

SetRectAnchor(Gravity)

public void SetRectAnchor(Gravity anchor)

Parameters

anchor Gravity

SetShadowWidth(int, int, int, int)

[Version("4.2")]
public void SetShadowWidth(int left, int right, int top, int bottom)

Parameters

left int
right int
top int
bottom int

SetSurfaceAnchor(Gravity)

public void SetSurfaceAnchor(Gravity anchor)

Parameters

anchor Gravity

Unref()

public void Unref()