Class Layout
- Namespace
- Pango
- Assembly
- Pango-1.0.dll
public class Layout : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
- Inheritance
-
Layout
- Implements
-
- Inherited Members
-
Constructors
Layout(bool, params ConstructArgument[])
protected Layout(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
bool
constructArguments
ConstructArgument[]
Layout(IntPtr, bool)
protected Layout(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
Methods
ContextChanged()
public void ContextChanged()
Copy()
Returns
- Layout
Deserialize(Context, Bytes, LayoutDeserializeFlags)
[Version("1.50")]
public static Layout? Deserialize(Context context, Bytes bytes, LayoutDeserializeFlags flags)
Parameters
context
Context
bytes
Bytes
flags
LayoutDeserializeFlags
Returns
- Layout
GetAlignment()
public Alignment GetAlignment()
Returns
- Alignment
GetAttributes()
public AttrList? GetAttributes()
Returns
- AttrList
GetAutoDir()
[Version("1.4")]
public bool GetAutoDir()
Returns
- bool
GetBaseline()
[Version("1.22")]
public int GetBaseline()
Returns
- int
GetCaretPos(int, out Rectangle, out Rectangle)
[Version("1.50")]
public void GetCaretPos(int index, out Rectangle strongPos, out Rectangle weakPos)
Parameters
index
int
strongPos
Rectangle
weakPos
Rectangle
GetCharacterCount()
[Version("1.30")]
public int GetCharacterCount()
Returns
- int
GetContext()
public Context GetContext()
Returns
- Context
GetCursorPos(int, out Rectangle, out Rectangle)
public void GetCursorPos(int index, out Rectangle strongPos, out Rectangle weakPos)
Parameters
index
int
strongPos
Rectangle
weakPos
Rectangle
GetDirection(int)
[Version("1.46")]
public Direction GetDirection(int index)
Parameters
index
int
Returns
- Direction
GetEllipsize()
[Version("1.6")]
public EllipsizeMode GetEllipsize()
Returns
- EllipsizeMode
GetExtents(out Rectangle, out Rectangle)
public void GetExtents(out Rectangle inkRect, out Rectangle logicalRect)
Parameters
inkRect
Rectangle
logicalRect
Rectangle
GetFontDescription()
[Version("1.8")]
public FontDescription? GetFontDescription()
Returns
- FontDescription
GetGType()
public static Type GetGType()
Returns
- Type
GetHeight()
[Version("1.20")]
public int GetHeight()
Returns
- int
GetIndent()
Returns
- int
GetIter()
public LayoutIter GetIter()
Returns
- LayoutIter
GetJustify()
Returns
- bool
GetJustifyLastLine()
[Version("1.50")]
public bool GetJustifyLastLine()
Returns
- bool
GetLine(int)
public LayoutLine? GetLine(int line)
Parameters
line
int
Returns
- LayoutLine
GetLineCount()
public int GetLineCount()
Returns
- int
GetLineReadonly(int)
[Version("1.16")]
public LayoutLine? GetLineReadonly(int line)
Parameters
line
int
Returns
- LayoutLine
GetLineSpacing()
[Version("1.44")]
public float GetLineSpacing()
Returns
- float
GetLines()
Returns
- SList
GetLinesReadonly()
[Version("1.16")]
public SList GetLinesReadonly()
Returns
- SList
GetPixelExtents(out Rectangle, out Rectangle)
public void GetPixelExtents(out Rectangle inkRect, out Rectangle logicalRect)
Parameters
inkRect
Rectangle
logicalRect
Rectangle
GetPixelSize(out int, out int)
public void GetPixelSize(out int width, out int height)
Parameters
width
int
height
int
GetSerial()
[Version("1.32.4")]
public uint GetSerial()
Returns
- uint
GetSingleParagraphMode()
public bool GetSingleParagraphMode()
Returns
- bool
GetSize(out int, out int)
public void GetSize(out int width, out int height)
Parameters
width
int
height
int
GetSpacing()
Returns
- int
GetTabs()
public TabArray? GetTabs()
Returns
- TabArray
GetText()
Returns
- string
GetUnknownGlyphsCount()
[Version("1.16")]
public int GetUnknownGlyphsCount()
Returns
- int
GetWidth()
Returns
- int
GetWrap()
public WrapMode GetWrap()
Returns
- WrapMode
IndexToLineX(int, bool, out int, out int)
public void IndexToLineX(int index, bool trailing, out int line, out int xPos)
Parameters
index
int
trailing
bool
line
int
xPos
int
IndexToPos(int, out Rectangle)
public void IndexToPos(int index, out Rectangle pos)
Parameters
index
int
pos
Rectangle
IsEllipsized()
[Version("1.16")]
public bool IsEllipsized()
Returns
- bool
IsWrapped()
[Version("1.16")]
public bool IsWrapped()
Returns
- bool
MoveCursorVisually(bool, int, int, int, out int, out int)
public void MoveCursorVisually(bool strong, int oldIndex, int oldTrailing, int direction, out int newIndex, out int newTrailing)
Parameters
strong
bool
oldIndex
int
oldTrailing
int
direction
int
newIndex
int
newTrailing
int
New(Context)
public static Layout New(Context context)
Parameters
context
Context
Returns
- Layout
Serialize(LayoutSerializeFlags)
[Version("1.50")]
public Bytes Serialize(LayoutSerializeFlags flags)
Parameters
flags
LayoutSerializeFlags
Returns
- Bytes
SetAlignment(Alignment)
public void SetAlignment(Alignment alignment)
Parameters
alignment
Alignment
SetAttributes(AttrList?)
public void SetAttributes(AttrList? attrs)
Parameters
attrs
AttrList
SetAutoDir(bool)
[Version("1.4")]
public void SetAutoDir(bool autoDir)
Parameters
autoDir
bool
SetEllipsize(EllipsizeMode)
[Version("1.6")]
public void SetEllipsize(EllipsizeMode ellipsize)
Parameters
ellipsize
EllipsizeMode
SetFontDescription(FontDescription?)
public void SetFontDescription(FontDescription? desc)
Parameters
desc
FontDescription
SetHeight(int)
[Version("1.20")]
public void SetHeight(int height)
Parameters
height
int
SetIndent(int)
public void SetIndent(int indent)
Parameters
indent
int
SetJustify(bool)
public void SetJustify(bool justify)
Parameters
justify
bool
SetJustifyLastLine(bool)
[Version("1.50")]
public void SetJustifyLastLine(bool justify)
Parameters
justify
bool
SetLineSpacing(float)
[Version("1.44")]
public void SetLineSpacing(float factor)
Parameters
factor
float
SetMarkup(string, int)
public void SetMarkup(string markup, int length)
Parameters
markup
string
length
int
SetMarkupWithAccel(string, int, uint, out uint)
public void SetMarkupWithAccel(string markup, int length, uint accelMarker, out uint accelChar)
Parameters
markup
string
length
int
accelMarker
uint
accelChar
uint
SetSingleParagraphMode(bool)
public void SetSingleParagraphMode(bool setting)
Parameters
setting
bool
SetSpacing(int)
public void SetSpacing(int spacing)
Parameters
spacing
int
SetTabs(TabArray?)
public void SetTabs(TabArray? tabs)
Parameters
tabs
TabArray
SetText(string, int)
public void SetText(string text, int length)
Parameters
text
string
length
int
SetWidth(int)
public void SetWidth(int width)
Parameters
width
int
SetWrap(WrapMode)
public void SetWrap(WrapMode wrap)
Parameters
wrap
WrapMode
WriteToFile(LayoutSerializeFlags, string)
[Version("1.50")]
public bool WriteToFile(LayoutSerializeFlags flags, string filename)
Parameters
flags
LayoutSerializeFlags
filename
string
Returns
- bool
XyToIndex(int, int, out int, out int)
public bool XyToIndex(int x, int y, out int index, out int trailing)
Parameters
x
int
y
int
index
int
trailing
int
Returns
- bool