Table of Contents

Class Layout

Namespace
Pango.Internal
Assembly
Pango-1.0.dll
public class Layout
Inheritance
Layout
Inherited Members

Methods

ContextChanged(IntPtr)

Calls native method pango_layout_context_changed.

public static extern void ContextChanged(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Copy(IntPtr)

Calls native method pango_layout_copy.

public static extern IntPtr Copy(IntPtr src)

Parameters

src IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

Deserialize(IntPtr, BytesHandle, LayoutDeserializeFlags, out ErrorOwnedHandle)

Calls native function pango_layout_deserialize. Version: 1.50

[Version("1.50")]
public static extern IntPtr Deserialize(IntPtr context, BytesHandle bytes, LayoutDeserializeFlags flags, out ErrorOwnedHandle error)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

bytes BytesHandle

Transfer ownership: None Nullable: False

flags LayoutDeserializeFlags

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

GetAlignment(IntPtr)

Calls native method pango_layout_get_alignment.

public static extern Alignment GetAlignment(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

Alignment

Transfer ownership: None Nullable: False

GetAttributes(IntPtr)

Calls native method pango_layout_get_attributes.

public static extern AttrListUnownedHandle GetAttributes(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

AttrListUnownedHandle

Transfer ownership: None Nullable: True

GetAutoDir(IntPtr)

Calls native method pango_layout_get_auto_dir. Version: 1.4

[Version("1.4")]
public static extern bool GetAutoDir(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetBaseline(IntPtr)

Calls native method pango_layout_get_baseline. Version: 1.22

[Version("1.22")]
public static extern int GetBaseline(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetCaretPos(IntPtr, int, RectangleOwnedHandle, RectangleOwnedHandle)

Calls native method pango_layout_get_caret_pos. Version: 1.50

[Version("1.50")]
public static extern void GetCaretPos(IntPtr layout, int index, RectangleOwnedHandle strongPos, RectangleOwnedHandle weakPos)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

index int

Transfer ownership: None Nullable: False

strongPos RectangleOwnedHandle

Transfer ownership: None Nullable: False

weakPos RectangleOwnedHandle

Transfer ownership: None Nullable: False

GetCharacterCount(IntPtr)

Calls native method pango_layout_get_character_count. Version: 1.30

[Version("1.30")]
public static extern int GetCharacterCount(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetContext(IntPtr)

Calls native method pango_layout_get_context.

public static extern IntPtr GetContext(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetCursorPos(IntPtr, int, RectangleOwnedHandle, RectangleOwnedHandle)

Calls native method pango_layout_get_cursor_pos.

public static extern void GetCursorPos(IntPtr layout, int index, RectangleOwnedHandle strongPos, RectangleOwnedHandle weakPos)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

index int

Transfer ownership: None Nullable: False

strongPos RectangleOwnedHandle

Transfer ownership: None Nullable: False

weakPos RectangleOwnedHandle

Transfer ownership: None Nullable: False

GetDirection(IntPtr, int)

Calls native method pango_layout_get_direction. Version: 1.46

[Version("1.46")]
public static extern Direction GetDirection(IntPtr layout, int index)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

index int

Transfer ownership: None Nullable: False

Returns

Direction

Transfer ownership: None Nullable: False

GetEllipsize(IntPtr)

Calls native method pango_layout_get_ellipsize. Version: 1.6

[Version("1.6")]
public static extern EllipsizeMode GetEllipsize(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

EllipsizeMode

Transfer ownership: None Nullable: False

GetExtents(IntPtr, RectangleOwnedHandle, RectangleOwnedHandle)

Calls native method pango_layout_get_extents.

public static extern void GetExtents(IntPtr layout, RectangleOwnedHandle inkRect, RectangleOwnedHandle logicalRect)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

inkRect RectangleOwnedHandle

Transfer ownership: None Nullable: False

logicalRect RectangleOwnedHandle

Transfer ownership: None Nullable: False

GetFontDescription(IntPtr)

Calls native method pango_layout_get_font_description. Version: 1.8

[Version("1.8")]
public static extern FontDescriptionUnownedHandle GetFontDescription(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

FontDescriptionUnownedHandle

Transfer ownership: None Nullable: True

GetGType()

Calls native function pango_layout_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetHeight(IntPtr)

Calls native method pango_layout_get_height. Version: 1.20

[Version("1.20")]
public static extern int GetHeight(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetIndent(IntPtr)

Calls native method pango_layout_get_indent.

public static extern int GetIndent(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetIter(IntPtr)

Calls native method pango_layout_get_iter.

public static extern LayoutIterOwnedHandle GetIter(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

LayoutIterOwnedHandle

Transfer ownership: Full Nullable: False

GetJustify(IntPtr)

Calls native method pango_layout_get_justify.

public static extern bool GetJustify(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetJustifyLastLine(IntPtr)

Calls native method pango_layout_get_justify_last_line. Version: 1.50

[Version("1.50")]
public static extern bool GetJustifyLastLine(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetLine(IntPtr, int)

Calls native method pango_layout_get_line.

public static extern LayoutLineUnownedHandle GetLine(IntPtr layout, int line)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

line int

Transfer ownership: None Nullable: False

Returns

LayoutLineUnownedHandle

Transfer ownership: None Nullable: True

GetLineCount(IntPtr)

Calls native method pango_layout_get_line_count.

public static extern int GetLineCount(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetLineReadonly(IntPtr, int)

Calls native method pango_layout_get_line_readonly. Version: 1.16

[Version("1.16")]
public static extern LayoutLineUnownedHandle GetLineReadonly(IntPtr layout, int line)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

line int

Transfer ownership: None Nullable: False

Returns

LayoutLineUnownedHandle

Transfer ownership: None Nullable: True

GetLineSpacing(IntPtr)

Calls native method pango_layout_get_line_spacing. Version: 1.44

[Version("1.44")]
public static extern float GetLineSpacing(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

GetLines(IntPtr)

Calls native method pango_layout_get_lines.

public static extern SListUnownedHandle GetLines(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

SListUnownedHandle

Transfer ownership: None Nullable: False

GetLinesReadonly(IntPtr)

Calls native method pango_layout_get_lines_readonly. Version: 1.16

[Version("1.16")]
public static extern SListUnownedHandle GetLinesReadonly(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

SListUnownedHandle

Transfer ownership: None Nullable: False

GetLogAttrs(IntPtr, ref IntPtr, out int)

Calls native method pango_layout_get_log_attrs.

public static extern void GetLogAttrs(IntPtr layout, ref IntPtr attrs, out int nAttrs)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

attrs IntPtr

Transfer ownership: Container Nullable: False

nAttrs int

Transfer ownership: Full Nullable: False

GetPixelExtents(IntPtr, RectangleOwnedHandle, RectangleOwnedHandle)

Calls native method pango_layout_get_pixel_extents.

public static extern void GetPixelExtents(IntPtr layout, RectangleOwnedHandle inkRect, RectangleOwnedHandle logicalRect)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

inkRect RectangleOwnedHandle

Transfer ownership: None Nullable: False

logicalRect RectangleOwnedHandle

Transfer ownership: None Nullable: False

GetPixelSize(IntPtr, out int, out int)

Calls native method pango_layout_get_pixel_size.

public static extern void GetPixelSize(IntPtr layout, out int width, out int height)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

width int

Transfer ownership: Full Nullable: False

height int

Transfer ownership: Full Nullable: False

GetSerial(IntPtr)

Calls native method pango_layout_get_serial. Version: 1.32.4

[Version("1.32.4")]
public static extern uint GetSerial(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetSingleParagraphMode(IntPtr)

Calls native method pango_layout_get_single_paragraph_mode.

public static extern bool GetSingleParagraphMode(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetSize(IntPtr, out int, out int)

Calls native method pango_layout_get_size.

public static extern void GetSize(IntPtr layout, out int width, out int height)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

width int

Transfer ownership: Full Nullable: False

height int

Transfer ownership: Full Nullable: False

GetSpacing(IntPtr)

Calls native method pango_layout_get_spacing.

public static extern int GetSpacing(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetTabs(IntPtr)

Calls native method pango_layout_get_tabs.

public static extern TabArrayOwnedHandle GetTabs(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

TabArrayOwnedHandle

Transfer ownership: Full Nullable: True

GetText(IntPtr)

Calls native method pango_layout_get_text.

public static extern NonNullableUtf8StringUnownedHandle GetText(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetUnknownGlyphsCount(IntPtr)

Calls native method pango_layout_get_unknown_glyphs_count. Version: 1.16

[Version("1.16")]
public static extern int GetUnknownGlyphsCount(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetWidth(IntPtr)

Calls native method pango_layout_get_width.

public static extern int GetWidth(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetWrap(IntPtr)

Calls native method pango_layout_get_wrap.

public static extern WrapMode GetWrap(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

WrapMode

Transfer ownership: None Nullable: False

IndexToLineX(IntPtr, int, bool, out int, out int)

Calls native method pango_layout_index_to_line_x.

public static extern void IndexToLineX(IntPtr layout, int index, bool trailing, out int line, out int xPos)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

index int

Transfer ownership: None Nullable: False

trailing bool

Transfer ownership: None Nullable: False

line int

Transfer ownership: Full Nullable: False

xPos int

Transfer ownership: Full Nullable: False

IndexToPos(IntPtr, int, RectangleOwnedHandle)

Calls native method pango_layout_index_to_pos.

public static extern void IndexToPos(IntPtr layout, int index, RectangleOwnedHandle pos)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

index int

Transfer ownership: None Nullable: False

pos RectangleOwnedHandle

Transfer ownership: None Nullable: False

IsEllipsized(IntPtr)

Calls native method pango_layout_is_ellipsized. Version: 1.16

[Version("1.16")]
public static extern bool IsEllipsized(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsWrapped(IntPtr)

Calls native method pango_layout_is_wrapped. Version: 1.16

[Version("1.16")]
public static extern bool IsWrapped(IntPtr layout)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

MoveCursorVisually(IntPtr, bool, int, int, int, out int, out int)

Calls native method pango_layout_move_cursor_visually.

public static extern void MoveCursorVisually(IntPtr layout, bool strong, int oldIndex, int oldTrailing, int direction, out int newIndex, out int newTrailing)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

strong bool

Transfer ownership: None Nullable: False

oldIndex int

Transfer ownership: None Nullable: False

oldTrailing int

Transfer ownership: None Nullable: False

direction int

Transfer ownership: None Nullable: False

newIndex int

Transfer ownership: Full Nullable: False

newTrailing int

Transfer ownership: Full Nullable: False

New(IntPtr)

Calls native constructor pango_layout_new.

public static extern IntPtr New(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

Serialize(IntPtr, LayoutSerializeFlags)

Calls native method pango_layout_serialize. Version: 1.50

[Version("1.50")]
public static extern BytesOwnedHandle Serialize(IntPtr layout, LayoutSerializeFlags flags)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

flags LayoutSerializeFlags

Transfer ownership: None Nullable: False

Returns

BytesOwnedHandle

Transfer ownership: Full Nullable: False

SetAlignment(IntPtr, Alignment)

Calls native method pango_layout_set_alignment.

public static extern void SetAlignment(IntPtr layout, Alignment alignment)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

alignment Alignment

Transfer ownership: None Nullable: False

SetAttributes(IntPtr, AttrListHandle)

Calls native method pango_layout_set_attributes.

public static extern void SetAttributes(IntPtr layout, AttrListHandle attrs)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

attrs AttrListHandle

Transfer ownership: None Nullable: True

SetAutoDir(IntPtr, bool)

Calls native method pango_layout_set_auto_dir. Version: 1.4

[Version("1.4")]
public static extern void SetAutoDir(IntPtr layout, bool autoDir)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

autoDir bool

Transfer ownership: None Nullable: False

SetEllipsize(IntPtr, EllipsizeMode)

Calls native method pango_layout_set_ellipsize. Version: 1.6

[Version("1.6")]
public static extern void SetEllipsize(IntPtr layout, EllipsizeMode ellipsize)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

ellipsize EllipsizeMode

Transfer ownership: None Nullable: False

SetFontDescription(IntPtr, FontDescriptionHandle)

Calls native method pango_layout_set_font_description.

public static extern void SetFontDescription(IntPtr layout, FontDescriptionHandle desc)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

desc FontDescriptionHandle

Transfer ownership: None Nullable: True

SetHeight(IntPtr, int)

Calls native method pango_layout_set_height. Version: 1.20

[Version("1.20")]
public static extern void SetHeight(IntPtr layout, int height)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

SetIndent(IntPtr, int)

Calls native method pango_layout_set_indent.

public static extern void SetIndent(IntPtr layout, int indent)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

indent int

Transfer ownership: None Nullable: False

SetJustify(IntPtr, bool)

Calls native method pango_layout_set_justify.

public static extern void SetJustify(IntPtr layout, bool justify)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

justify bool

Transfer ownership: None Nullable: False

SetJustifyLastLine(IntPtr, bool)

Calls native method pango_layout_set_justify_last_line. Version: 1.50

[Version("1.50")]
public static extern void SetJustifyLastLine(IntPtr layout, bool justify)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

justify bool

Transfer ownership: None Nullable: False

SetLineSpacing(IntPtr, float)

Calls native method pango_layout_set_line_spacing. Version: 1.44

[Version("1.44")]
public static extern void SetLineSpacing(IntPtr layout, float factor)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

factor float

Transfer ownership: None Nullable: False

SetMarkup(IntPtr, NonNullableUtf8StringHandle, int)

Calls native method pango_layout_set_markup.

public static extern void SetMarkup(IntPtr layout, NonNullableUtf8StringHandle markup, int length)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

markup NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

length int

Transfer ownership: None Nullable: False

SetMarkupWithAccel(IntPtr, NonNullableUtf8StringHandle, int, uint, out uint)

Calls native method pango_layout_set_markup_with_accel.

public static extern void SetMarkupWithAccel(IntPtr layout, NonNullableUtf8StringHandle markup, int length, uint accelMarker, out uint accelChar)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

markup NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

length int

Transfer ownership: None Nullable: False

accelMarker uint

Transfer ownership: None Nullable: False

accelChar uint

Transfer ownership: Full Nullable: False

SetSingleParagraphMode(IntPtr, bool)

Calls native method pango_layout_set_single_paragraph_mode.

public static extern void SetSingleParagraphMode(IntPtr layout, bool setting)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

setting bool

Transfer ownership: None Nullable: False

SetSpacing(IntPtr, int)

Calls native method pango_layout_set_spacing.

public static extern void SetSpacing(IntPtr layout, int spacing)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

spacing int

Transfer ownership: None Nullable: False

SetTabs(IntPtr, TabArrayHandle)

Calls native method pango_layout_set_tabs.

public static extern void SetTabs(IntPtr layout, TabArrayHandle tabs)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

tabs TabArrayHandle

Transfer ownership: None Nullable: True

SetText(IntPtr, NonNullableUtf8StringHandle, int)

Calls native method pango_layout_set_text.

public static extern void SetText(IntPtr layout, NonNullableUtf8StringHandle text, int length)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

text NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

length int

Transfer ownership: None Nullable: False

SetWidth(IntPtr, int)

Calls native method pango_layout_set_width.

public static extern void SetWidth(IntPtr layout, int width)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

SetWrap(IntPtr, WrapMode)

Calls native method pango_layout_set_wrap.

public static extern void SetWrap(IntPtr layout, WrapMode wrap)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

wrap WrapMode

Transfer ownership: None Nullable: False

WriteToFile(IntPtr, LayoutSerializeFlags, NonNullablePlatformStringHandle, out ErrorOwnedHandle)

Calls native method pango_layout_write_to_file. Version: 1.50

[Version("1.50")]
public static extern bool WriteToFile(IntPtr layout, LayoutSerializeFlags flags, NonNullablePlatformStringHandle filename, out ErrorOwnedHandle error)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

flags LayoutSerializeFlags

Transfer ownership: None Nullable: False

filename NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

XyToIndex(IntPtr, int, int, out int, out int)

Calls native method pango_layout_xy_to_index.

public static extern bool XyToIndex(IntPtr layout, int x, int y, out int index, out int trailing)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

x int

Transfer ownership: None Nullable: False

y int

Transfer ownership: None Nullable: False

index int

Transfer ownership: Full Nullable: False

trailing int

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False