Table of Contents

Class PopupLayout

Namespace
Gdk.Internal
Assembly
Gdk-4.0.dll
public class PopupLayout
Inheritance
PopupLayout
Inherited Members

Methods

Copy(PopupLayoutHandle)

Calls native method gdk_popup_layout_copy.

public static extern PopupLayoutOwnedHandle Copy(PopupLayoutHandle layout)

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

Returns

PopupLayoutOwnedHandle

Transfer ownership: Full Nullable: False

Equal(PopupLayoutHandle, PopupLayoutHandle)

Calls native method gdk_popup_layout_equal.

public static extern bool Equal(PopupLayoutHandle layout, PopupLayoutHandle other)

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

other PopupLayoutHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetAnchorHints(PopupLayoutHandle)

Calls native method gdk_popup_layout_get_anchor_hints.

public static extern AnchorHints GetAnchorHints(PopupLayoutHandle layout)

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

Returns

AnchorHints

Transfer ownership: None Nullable: False

GetAnchorRect(PopupLayoutHandle)

Calls native method gdk_popup_layout_get_anchor_rect.

public static extern RectangleUnownedHandle GetAnchorRect(PopupLayoutHandle layout)

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

Returns

RectangleUnownedHandle

Transfer ownership: None Nullable: False

GetGType()

Calls native function gdk_popup_layout_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetOffset(PopupLayoutHandle, out int, out int)

Calls native method gdk_popup_layout_get_offset.

public static extern void GetOffset(PopupLayoutHandle layout, out int dx, out int dy)

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

dx int

Transfer ownership: Full Nullable: False

dy int

Transfer ownership: Full Nullable: False

GetRectAnchor(PopupLayoutHandle)

Calls native method gdk_popup_layout_get_rect_anchor.

public static extern Gravity GetRectAnchor(PopupLayoutHandle layout)

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

Returns

Gravity

Transfer ownership: None Nullable: False

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

Calls native method gdk_popup_layout_get_shadow_width. Version: 4.2

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

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

left int

Transfer ownership: Full Nullable: False

right int

Transfer ownership: Full Nullable: False

top int

Transfer ownership: Full Nullable: False

bottom int

Transfer ownership: Full Nullable: False

GetSurfaceAnchor(PopupLayoutHandle)

Calls native method gdk_popup_layout_get_surface_anchor.

public static extern Gravity GetSurfaceAnchor(PopupLayoutHandle layout)

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

Returns

Gravity

Transfer ownership: None Nullable: False

New(RectangleHandle, Gravity, Gravity)

Calls native constructor gdk_popup_layout_new.

public static extern PopupLayoutOwnedHandle New(RectangleHandle anchorRect, Gravity rectAnchor, Gravity surfaceAnchor)

Parameters

anchorRect RectangleHandle

Transfer ownership: None Nullable: False

rectAnchor Gravity

Transfer ownership: None Nullable: False

surfaceAnchor Gravity

Transfer ownership: None Nullable: False

Returns

PopupLayoutOwnedHandle

Transfer ownership: Full Nullable: False

Ref(PopupLayoutHandle)

Calls native method gdk_popup_layout_ref.

public static extern PopupLayoutOwnedHandle Ref(PopupLayoutHandle layout)

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

Returns

PopupLayoutOwnedHandle

Transfer ownership: Full Nullable: False

SetAnchorHints(PopupLayoutHandle, AnchorHints)

Calls native method gdk_popup_layout_set_anchor_hints.

public static extern void SetAnchorHints(PopupLayoutHandle layout, AnchorHints anchorHints)

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

anchorHints AnchorHints

Transfer ownership: None Nullable: False

SetAnchorRect(PopupLayoutHandle, RectangleHandle)

Calls native method gdk_popup_layout_set_anchor_rect.

public static extern void SetAnchorRect(PopupLayoutHandle layout, RectangleHandle anchorRect)

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

anchorRect RectangleHandle

Transfer ownership: None Nullable: False

SetOffset(PopupLayoutHandle, int, int)

Calls native method gdk_popup_layout_set_offset.

public static extern void SetOffset(PopupLayoutHandle layout, int dx, int dy)

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

dx int

Transfer ownership: None Nullable: False

dy int

Transfer ownership: None Nullable: False

SetRectAnchor(PopupLayoutHandle, Gravity)

Calls native method gdk_popup_layout_set_rect_anchor.

public static extern void SetRectAnchor(PopupLayoutHandle layout, Gravity anchor)

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

anchor Gravity

Transfer ownership: None Nullable: False

SetShadowWidth(PopupLayoutHandle, int, int, int, int)

Calls native method gdk_popup_layout_set_shadow_width. Version: 4.2

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

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

left int

Transfer ownership: None Nullable: False

right int

Transfer ownership: None Nullable: False

top int

Transfer ownership: None Nullable: False

bottom int

Transfer ownership: None Nullable: False

SetSurfaceAnchor(PopupLayoutHandle, Gravity)

Calls native method gdk_popup_layout_set_surface_anchor.

public static extern void SetSurfaceAnchor(PopupLayoutHandle layout, Gravity anchor)

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False

anchor Gravity

Transfer ownership: None Nullable: False

Unref(PopupLayoutHandle)

Calls native method gdk_popup_layout_unref.

public static extern void Unref(PopupLayoutHandle layout)

Parameters

layout PopupLayoutHandle

Transfer ownership: None Nullable: False