C# Class LongoMatch.Core.Common.CairoUtils

ファイルを表示 Open project: LongoMatch/longomatch

Public Methods

Method Description
ColorFromRGB ( byte r, byte g, byte b ) : Color
DrawLine ( Cairo g, double x1, double y1, double x2, double y2, int width, Cairo color ) : void
DrawRoundedRectangle ( Cairo gr, double x, double y, double width, double height, double radius, Cairo color, Cairo borderColor ) : void
DrawTriangle ( Cairo g, double x, double y, int width, int height, Cairo color ) : void
RGBToCairoColor ( Gdk gdkColor ) : Color

Method Details

ColorFromRGB() public static method

public static ColorFromRGB ( byte r, byte g, byte b ) : Color
r byte
g byte
b byte
return Cairo.Color

DrawLine() public static method

public static DrawLine ( Cairo g, double x1, double y1, double x2, double y2, int width, Cairo color ) : void
g Cairo
x1 double
y1 double
x2 double
y2 double
width int
color Cairo
return void

DrawRoundedRectangle() public static method

public static DrawRoundedRectangle ( Cairo gr, double x, double y, double width, double height, double radius, Cairo color, Cairo borderColor ) : void
gr Cairo
x double
y double
width double
height double
radius double
color Cairo
borderColor Cairo
return void

DrawTriangle() public static method

public static DrawTriangle ( Cairo g, double x, double y, int width, int height, Cairo color ) : void
g Cairo
x double
y double
width int
height int
color Cairo
return void

RGBToCairoColor() public static method

public static RGBToCairoColor ( Gdk gdkColor ) : Color
gdkColor Gdk
return Cairo.Color