C# Class SparkleShare.UserInterfaceHelpers

显示文件 Open project: hbons/SparkleShare Class Usage Examples

Public Methods

Method Description
ColorToHex ( Gdk color ) : string
GetIcon ( string name, int size ) : Gdk.Pixbuf
GetImage ( string name ) : Image
MixColors ( Gdk first_color, Gdk second_color, double ratio ) : Gdk.Color
RGBAToColor ( Gdk rgba ) : Gdk.Color
RGBAToHex ( Gdk rgba ) : string

Method Details

ColorToHex() public static method

public static ColorToHex ( Gdk color ) : string
color Gdk
return string

GetIcon() public static method

public static GetIcon ( string name, int size ) : Gdk.Pixbuf
name string
size int
return Gdk.Pixbuf

GetImage() public static method

public static GetImage ( string name ) : Image
name string
return Image

MixColors() public static method

public static MixColors ( Gdk first_color, Gdk second_color, double ratio ) : Gdk.Color
first_color Gdk
second_color Gdk
ratio double
return Gdk.Color

RGBAToColor() public static method

public static RGBAToColor ( Gdk rgba ) : Gdk.Color
rgba Gdk
return Gdk.Color

RGBAToHex() public static method

public static RGBAToHex ( Gdk rgba ) : string
rgba Gdk
return string