C# Class Xwt.GtkBackend.Util

Show file Open project: mono/xwt

Public Methods

Method Description
BuildTargetTable ( TransferDataType types ) : Gtk.TargetList
GetBestSizeFit ( double size, Gtk availablesizes = null ) : Gtk.IconSize
GetBestSizeFitSize ( double size ) : double
GetDefaultScaleFactor ( ) : double
GetScaleFactor ( Gtk w ) : double
GetSelectionData ( ApplicationContext context, Gtk data, TransferDataStore target ) : bool
SetDragData ( TransferDataSource data, Gtk args ) : void
SetSelectionData ( Gtk data, string atomType, object val ) : void
ToGtkStock ( string id ) : GtkImage
WithDefaultSize ( this image, Gtk defaultIconSize ) : ImageDescription

Private Methods

Method Description
AtomToType ( string targetName ) : TransferDataType
CreateTargetEntries ( TransferDataType type ) : Gtk.TargetEntry[]
Dispose ( this cr ) : void
GetDragTypes ( Gdk dropTypes ) : TransferDataType[]
GetTarget ( this cr ) : Cairo.Surface
SetSource ( this cr, Cairo pattern ) : void
SetSourceColor ( this cr, Cairo color ) : void
Util ( ) : System

Method Details

BuildTargetTable() public static method

public static BuildTargetTable ( TransferDataType types ) : Gtk.TargetList
types TransferDataType
return Gtk.TargetList

GetBestSizeFit() public static method

public static GetBestSizeFit ( double size, Gtk availablesizes = null ) : Gtk.IconSize
size double
availablesizes Gtk
return Gtk.IconSize

GetBestSizeFitSize() public static method

public static GetBestSizeFitSize ( double size ) : double
size double
return double

GetDefaultScaleFactor() public static method

public static GetDefaultScaleFactor ( ) : double
return double

GetScaleFactor() public static method

public static GetScaleFactor ( Gtk w ) : double
w Gtk
return double

GetSelectionData() public static method

public static GetSelectionData ( ApplicationContext context, Gtk data, TransferDataStore target ) : bool
context ApplicationContext
data Gtk
target TransferDataStore
return bool

SetDragData() public static method

public static SetDragData ( TransferDataSource data, Gtk args ) : void
data TransferDataSource
args Gtk
return void

SetSelectionData() public static method

public static SetSelectionData ( Gtk data, string atomType, object val ) : void
data Gtk
atomType string
val object
return void

ToGtkStock() public static method

public static ToGtkStock ( string id ) : GtkImage
id string
return GtkImage

WithDefaultSize() public static method

public static WithDefaultSize ( this image, Gtk defaultIconSize ) : ImageDescription
image this
defaultIconSize Gtk
return ImageDescription