C# Class Xwt.GtkBackend.FastPangoAttrList

This creates a Pango list and applies attributes to it with *much* less overhead than the GTK# version.
Inheritance: IDisposable
Datei anzeigen Open project: mono/xwt Class Usage Examples

Public Properties

Property Type Description
DefaultLinkColor Gdk.Color

Public Methods

Method Description
Add ( IntPtr attribute, uint start, uint end ) : void
AddAttribute ( TextIndexer indexer, Xwt.Drawing.TextAttribute attr ) : void
AddAttributes ( TextIndexer indexer, IEnumerable attrs ) : void
AddBackgroundAttribute ( Gdk color, uint start, uint end ) : void
AddFontAttribute ( Pango font, uint start, uint end ) : void
AddForegroundAttribute ( Gdk color, uint start, uint end ) : void
AddStrikethroughAttribute ( bool strikethrough, uint start, uint end ) : void
AddStyleAttribute ( Pango style, uint start, uint end ) : void
AddUnderlineAttribute ( Pango underline, uint start, uint end ) : void
AddWeightAttribute ( Pango weight, uint start, uint end ) : void
AssignTo ( Pango layout ) : void
Dispose ( ) : void
FastPangoAttrList ( ) : System
Splice ( Pango attrs, int pos, int len ) : void

Private Methods

Method Description
pango_attr_background_new ( ushort red, ushort green, ushort blue ) : IntPtr
pango_attr_font_desc_new ( IntPtr desc ) : IntPtr
pango_attr_foreground_new ( ushort red, ushort green, ushort blue ) : IntPtr
pango_attr_list_insert ( IntPtr list, IntPtr attr ) : void
pango_attr_list_new ( ) : IntPtr
pango_attr_list_splice ( IntPtr attr_list, IntPtr other, Int32 pos, Int32 len ) : void
pango_attr_list_unref ( IntPtr list ) : void
pango_attr_stretch_new ( Pango stretch ) : IntPtr
pango_attr_strikethrough_new ( bool strikethrough ) : IntPtr
pango_attr_style_new ( Pango style ) : IntPtr
pango_attr_underline_new ( Pango underline ) : IntPtr
pango_attr_weight_new ( Pango weight ) : IntPtr
pango_layout_set_attributes ( IntPtr layout, IntPtr attrList ) : void

Method Details

Add() public method

public Add ( IntPtr attribute, uint start, uint end ) : void
attribute System.IntPtr
start uint
end uint
return void

AddAttribute() public method

public AddAttribute ( TextIndexer indexer, Xwt.Drawing.TextAttribute attr ) : void
indexer TextIndexer
attr Xwt.Drawing.TextAttribute
return void

AddAttributes() public method

public AddAttributes ( TextIndexer indexer, IEnumerable attrs ) : void
indexer TextIndexer
attrs IEnumerable
return void

AddBackgroundAttribute() public method

public AddBackgroundAttribute ( Gdk color, uint start, uint end ) : void
color Gdk
start uint
end uint
return void

AddFontAttribute() public method

public AddFontAttribute ( Pango font, uint start, uint end ) : void
font Pango
start uint
end uint
return void

AddForegroundAttribute() public method

public AddForegroundAttribute ( Gdk color, uint start, uint end ) : void
color Gdk
start uint
end uint
return void

AddStrikethroughAttribute() public method

public AddStrikethroughAttribute ( bool strikethrough, uint start, uint end ) : void
strikethrough bool
start uint
end uint
return void

AddStyleAttribute() public method

public AddStyleAttribute ( Pango style, uint start, uint end ) : void
style Pango
start uint
end uint
return void

AddUnderlineAttribute() public method

public AddUnderlineAttribute ( Pango underline, uint start, uint end ) : void
underline Pango
start uint
end uint
return void

AddWeightAttribute() public method

public AddWeightAttribute ( Pango weight, uint start, uint end ) : void
weight Pango
start uint
end uint
return void

AssignTo() public method

public AssignTo ( Pango layout ) : void
layout Pango
return void

Dispose() public method

public Dispose ( ) : void
return void

FastPangoAttrList() public method

public FastPangoAttrList ( ) : System
return System

Splice() public method

public Splice ( Pango attrs, int pos, int len ) : void
attrs Pango
pos int
len int
return void

Property Details

DefaultLinkColor public_oe property

public Gdk.Color DefaultLinkColor
return Gdk.Color