Class Layout
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
IntPtrTransfer ownership: None Nullable: False
Copy(IntPtr)
Calls native method pango_layout_copy.
public static extern IntPtr Copy(IntPtr src)
Parameters
src
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
bytes
BytesHandleTransfer ownership: None Nullable: False
flags
LayoutDeserializeFlagsTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
index
intTransfer ownership: None Nullable: False
strongPos
RectangleOwnedHandleTransfer ownership: None Nullable: False
weakPos
RectangleOwnedHandleTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
index
intTransfer ownership: None Nullable: False
strongPos
RectangleOwnedHandleTransfer ownership: None Nullable: False
weakPos
RectangleOwnedHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
index
intTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
inkRect
RectangleOwnedHandleTransfer ownership: None Nullable: False
logicalRect
RectangleOwnedHandleTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
line
intTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
line
intTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
attrs
IntPtrTransfer ownership: Container Nullable: False
nAttrs
intTransfer 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
IntPtrTransfer ownership: None Nullable: False
inkRect
RectangleOwnedHandleTransfer ownership: None Nullable: False
logicalRect
RectangleOwnedHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
width
intTransfer ownership: Full Nullable: False
height
intTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
width
intTransfer ownership: Full Nullable: False
height
intTransfer ownership: Full Nullable: False
GetSpacing(IntPtr)
Calls native method pango_layout_get_spacing.
public static extern int GetSpacing(IntPtr layout)
Parameters
layout
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
index
intTransfer ownership: None Nullable: False
trailing
boolTransfer ownership: None Nullable: False
line
intTransfer ownership: Full Nullable: False
xPos
intTransfer 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
IntPtrTransfer ownership: None Nullable: False
index
intTransfer ownership: None Nullable: False
pos
RectangleOwnedHandleTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
strong
boolTransfer ownership: None Nullable: False
oldIndex
intTransfer ownership: None Nullable: False
oldTrailing
intTransfer ownership: None Nullable: False
direction
intTransfer ownership: None Nullable: False
newIndex
intTransfer ownership: Full Nullable: False
newTrailing
intTransfer ownership: Full Nullable: False
New(IntPtr)
Calls native constructor pango_layout_new.
public static extern IntPtr New(IntPtr context)
Parameters
context
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
flags
LayoutSerializeFlagsTransfer 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
IntPtrTransfer ownership: None Nullable: False
alignment
AlignmentTransfer 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
IntPtrTransfer ownership: None Nullable: False
attrs
AttrListHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
autoDir
boolTransfer 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
IntPtrTransfer ownership: None Nullable: False
ellipsize
EllipsizeModeTransfer 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
IntPtrTransfer ownership: None Nullable: False
desc
FontDescriptionHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
height
intTransfer 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
IntPtrTransfer ownership: None Nullable: False
indent
intTransfer 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
IntPtrTransfer ownership: None Nullable: False
justify
boolTransfer 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
IntPtrTransfer ownership: None Nullable: False
justify
boolTransfer 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
IntPtrTransfer ownership: None Nullable: False
factor
floatTransfer 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
IntPtrTransfer ownership: None Nullable: False
markup
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
length
intTransfer 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
IntPtrTransfer ownership: None Nullable: False
markup
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
length
intTransfer ownership: None Nullable: False
accelMarker
uintTransfer ownership: None Nullable: False
accelChar
uintTransfer 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
IntPtrTransfer ownership: None Nullable: False
setting
boolTransfer 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
IntPtrTransfer ownership: None Nullable: False
spacing
intTransfer 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
IntPtrTransfer ownership: None Nullable: False
tabs
TabArrayHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
text
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
length
intTransfer 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
IntPtrTransfer ownership: None Nullable: False
width
intTransfer 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
IntPtrTransfer ownership: None Nullable: False
wrap
WrapModeTransfer 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
IntPtrTransfer ownership: None Nullable: False
flags
LayoutSerializeFlagsTransfer ownership: None Nullable: False
filename
NonNullablePlatformStringHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
x
intTransfer ownership: None Nullable: False
y
intTransfer ownership: None Nullable: False
index
intTransfer ownership: Full Nullable: False
trailing
intTransfer ownership: Full Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False