C# Класс MonoReports.Extensions.CairoExtensions.CairoExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
Clamp ( this r ) : Rectangle
ClipRectangle ( this g, Rectangle r ) : void
Clone ( this surf ) : ImageSurface
ContainsCorrect ( this r, Gdk pt ) : bool

There was a bug in gdk-sharp where this returns incorrect values. We will probably have to use this for a long time until every distro has an updated gdk.

ContainsCorrect ( this r, int x, int y ) : bool

There was a bug in gdk-sharp where this returns incorrect values. We will probably have to use this for a long time until every distro has an updated gdk.

ContainsPoint ( this r, PointD point ) : bool
ContainsPoint ( this r, double x, double y ) : bool
CreateEllipsePath ( this g, Rectangle r ) : Path
CreatePolygonPath ( this g, Cairo polygonSet ) : Path
CreateRectanglePath ( this g, Rectangle r ) : Path
CreateRoundedRectanglePath ( this g, Rectangle r, double radius ) : Path
Distance ( this s, PointD e ) : double
DrawEllipse ( this g, Rectangle r, Cairo color, int lineWidth ) : Rectangle
DrawGripper ( this g, PointD r, int gripperSize ) : void
DrawInsideBorder ( this g, Rectangle r, Border border, bool render ) : void
DrawLine ( this g, PointD p1, PointD p2, Cairo color, double lineWidth, LineType lineType, bool render ) : Rectangle
DrawLinearGradient ( this g, Surface oldsurface, GradientColorMode mode, Cairo c1, Cairo c2, PointD p1, PointD p2 ) : void
DrawLinearReflectedGradient ( this g, Surface oldsurface, GradientColorMode mode, Cairo c1, Cairo c2, PointD p1, PointD p2 ) : void
DrawPixbuf ( this g, Gdk pixbuf, PointD dest, PointD offset ) : void
DrawPolygonal ( this g, PointD points, Cairo color ) : Rectangle
DrawRadialGradient ( this g, Surface oldsurface, GradientColorMode mode, Cairo c1, Cairo c2, PointD p1, PointD p2, double r1, double r2 ) : void
DrawRectangle ( this g, Rectangle r, Cairo color, double lineWidth ) : Rectangle
DrawRoundedRectangle ( this g, Rectangle r, double radius, Cairo stroke, int lineWidth ) : Rectangle
DrawSelectBox ( this g, Rectangle r ) : Rectangle
DrawText ( this g, PointD p, string family, Cairo slant, Cairo weight, double size, Cairo color, double width, string text ) : Rectangle
DrawTextBlock ( this g, TextBlock tb, bool render ) : Rectangle
FillEllipse ( this g, Rectangle r, Cairo color ) : Rectangle
FillPolygonal ( this g, PointD points, Cairo color ) : Rectangle
FillRectangle ( this g, Rectangle r, Cairo color ) : Rectangle
FillRectangle ( this g, Rectangle r, Pattern pattern ) : Rectangle
FillRegion ( this g, Gdk region, Cairo color ) : void
FillRoundedRectangle ( this g, Rectangle r, double radius, Cairo fill ) : Rectangle
FillStrokedEllipse ( this g, Rectangle r, Cairo fill, Cairo stroke, int lineWidth ) : Rectangle
FillStrokedRectangle ( this g, Rectangle r, Cairo fill, Cairo stroke, int lineWidth ) : Rectangle
FillStrokedRoundedRectangle ( this g, Rectangle r, double radius, Cairo fill, Cairo stroke, int lineWidth ) : Rectangle
GdkColorAlpha ( this color ) : ushort
GetBottom ( this rect ) : double
GetBounds ( this surf ) : Gdk.Rectangle
GetBreakLineCharacterIndexbyMaxHeight ( this g, TextBlock tb, double maxHeight ) : int

Get character index after which layout should be broken to not exceed maxHeight

GetRight ( this rect ) : double
GetSize ( this surf ) : Gdk.Size
IsVisible ( this surf, int x, int y ) : bool

Determines if the requested pixel coordinate is within bounds.

Location ( this r ) : Point
Magnitude ( this p ) : double
ToCairoColor ( this color ) : Color
ToCairoPointD ( this p ) : PointD
ToCairoRectangle ( this r ) : Rectangle
ToGdkColor ( this color ) : Gdk.Color
ToGdkPoint ( this point ) : Gdk.Point
ToGdkRectangle ( this r ) : Gdk.Rectangle
ToSize ( this point ) : Gdk.Size
ToString2 ( this c ) : string
TranslatePointsInPlace ( this Points, int dx, int dy ) : void

Приватные методы

Метод Описание
CairoToPangoSlant ( Cairo slant ) : Pango.Style
CairoToPangoWeight ( Cairo weight ) : Pango.Weight
ReportToPangoAlignment ( HorizontalAlignment align ) : Pango.Alignment
ReportToPangoSlant ( MonoReports slant ) : Pango.Style
ReportToPangoWeight ( MonoReports weight ) : Pango.Weight
createLayoutFromTextBlock ( Context g, TextBlock tb ) : Pango.Layout
getDashByLineStyle ( LineType type ) : double[]
measureVerticlaSpan ( TextBlock tb, double measuredHeight ) : double

Описание методов

Clamp() публичный статический Метод

public static Clamp ( this r ) : Rectangle
r this
Результат Cairo.Rectangle

ClipRectangle() публичный статический Метод

public static ClipRectangle ( this g, Rectangle r ) : void
g this
r Cairo.Rectangle
Результат void

Clone() публичный статический Метод

public static Clone ( this surf ) : ImageSurface
surf this
Результат Cairo.ImageSurface

ContainsCorrect() публичный статический Метод

There was a bug in gdk-sharp where this returns incorrect values. We will probably have to use this for a long time until every distro has an updated gdk.
public static ContainsCorrect ( this r, Gdk pt ) : bool
r this
pt Gdk
Результат bool

ContainsCorrect() публичный статический Метод

There was a bug in gdk-sharp where this returns incorrect values. We will probably have to use this for a long time until every distro has an updated gdk.
public static ContainsCorrect ( this r, int x, int y ) : bool
r this
x int
y int
Результат bool

ContainsPoint() публичный статический Метод

public static ContainsPoint ( this r, PointD point ) : bool
r this
point Cairo.PointD
Результат bool

ContainsPoint() публичный статический Метод

public static ContainsPoint ( this r, double x, double y ) : bool
r this
x double
y double
Результат bool

CreateEllipsePath() публичный статический Метод

public static CreateEllipsePath ( this g, Rectangle r ) : Path
g this
r Cairo.Rectangle
Результат Cairo.Path

CreatePolygonPath() публичный статический Метод

public static CreatePolygonPath ( this g, Cairo polygonSet ) : Path
g this
polygonSet Cairo
Результат Cairo.Path

CreateRectanglePath() публичный статический Метод

public static CreateRectanglePath ( this g, Rectangle r ) : Path
g this
r Cairo.Rectangle
Результат Cairo.Path

CreateRoundedRectanglePath() публичный статический Метод

public static CreateRoundedRectanglePath ( this g, Rectangle r, double radius ) : Path
g this
r Cairo.Rectangle
radius double
Результат Cairo.Path

Distance() публичный статический Метод

public static Distance ( this s, PointD e ) : double
s this
e Cairo.PointD
Результат double

DrawEllipse() публичный статический Метод

public static DrawEllipse ( this g, Rectangle r, Cairo color, int lineWidth ) : Rectangle
g this
r Cairo.Rectangle
color Cairo
lineWidth int
Результат Cairo.Rectangle

DrawGripper() публичный статический Метод

public static DrawGripper ( this g, PointD r, int gripperSize ) : void
g this
r Cairo.PointD
gripperSize int
Результат void

DrawInsideBorder() публичный статический Метод

public static DrawInsideBorder ( this g, Rectangle r, Border border, bool render ) : void
g this
r Cairo.Rectangle
border MonoReports.Model.Border
render bool
Результат void

DrawLine() публичный статический Метод

public static DrawLine ( this g, PointD p1, PointD p2, Cairo color, double lineWidth, LineType lineType, bool render ) : Rectangle
g this
p1 Cairo.PointD
p2 Cairo.PointD
color Cairo
lineWidth double
lineType LineType
render bool
Результат Cairo.Rectangle

DrawLinearGradient() публичный статический Метод

public static DrawLinearGradient ( this g, Surface oldsurface, GradientColorMode mode, Cairo c1, Cairo c2, PointD p1, PointD p2 ) : void
g this
oldsurface Cairo.Surface
mode GradientColorMode
c1 Cairo
c2 Cairo
p1 Cairo.PointD
p2 Cairo.PointD
Результат void

DrawLinearReflectedGradient() публичный статический Метод

public static DrawLinearReflectedGradient ( this g, Surface oldsurface, GradientColorMode mode, Cairo c1, Cairo c2, PointD p1, PointD p2 ) : void
g this
oldsurface Cairo.Surface
mode GradientColorMode
c1 Cairo
c2 Cairo
p1 Cairo.PointD
p2 Cairo.PointD
Результат void

DrawPixbuf() публичный статический Метод

public static DrawPixbuf ( this g, Gdk pixbuf, PointD dest, PointD offset ) : void
g this
pixbuf Gdk
dest Cairo.PointD
offset Cairo.PointD
Результат void

DrawPolygonal() публичный статический Метод

public static DrawPolygonal ( this g, PointD points, Cairo color ) : Rectangle
g this
points Cairo.PointD
color Cairo
Результат Cairo.Rectangle

DrawRadialGradient() публичный статический Метод

public static DrawRadialGradient ( this g, Surface oldsurface, GradientColorMode mode, Cairo c1, Cairo c2, PointD p1, PointD p2, double r1, double r2 ) : void
g this
oldsurface Cairo.Surface
mode GradientColorMode
c1 Cairo
c2 Cairo
p1 Cairo.PointD
p2 Cairo.PointD
r1 double
r2 double
Результат void

DrawRectangle() публичный статический Метод

public static DrawRectangle ( this g, Rectangle r, Cairo color, double lineWidth ) : Rectangle
g this
r Cairo.Rectangle
color Cairo
lineWidth double
Результат Cairo.Rectangle

DrawRoundedRectangle() публичный статический Метод

public static DrawRoundedRectangle ( this g, Rectangle r, double radius, Cairo stroke, int lineWidth ) : Rectangle
g this
r Cairo.Rectangle
radius double
stroke Cairo
lineWidth int
Результат Cairo.Rectangle

DrawSelectBox() публичный статический Метод

public static DrawSelectBox ( this g, Rectangle r ) : Rectangle
g this
r Cairo.Rectangle
Результат Cairo.Rectangle

DrawText() публичный статический Метод

public static DrawText ( this g, PointD p, string family, Cairo slant, Cairo weight, double size, Cairo color, double width, string text ) : Rectangle
g this
p Cairo.PointD
family string
slant Cairo
weight Cairo
size double
color Cairo
width double
text string
Результат Cairo.Rectangle

DrawTextBlock() публичный статический Метод

public static DrawTextBlock ( this g, TextBlock tb, bool render ) : Rectangle
g this
tb MonoReports.Model.Controls.TextBlock
render bool
Результат Cairo.Rectangle

FillEllipse() публичный статический Метод

public static FillEllipse ( this g, Rectangle r, Cairo color ) : Rectangle
g this
r Cairo.Rectangle
color Cairo
Результат Cairo.Rectangle

FillPolygonal() публичный статический Метод

public static FillPolygonal ( this g, PointD points, Cairo color ) : Rectangle
g this
points Cairo.PointD
color Cairo
Результат Cairo.Rectangle

FillRectangle() публичный статический Метод

public static FillRectangle ( this g, Rectangle r, Cairo color ) : Rectangle
g this
r Cairo.Rectangle
color Cairo
Результат Cairo.Rectangle

FillRectangle() публичный статический Метод

public static FillRectangle ( this g, Rectangle r, Pattern pattern ) : Rectangle
g this
r Cairo.Rectangle
pattern Cairo.Pattern
Результат Cairo.Rectangle

FillRegion() публичный статический Метод

public static FillRegion ( this g, Gdk region, Cairo color ) : void
g this
region Gdk
color Cairo
Результат void

FillRoundedRectangle() публичный статический Метод

public static FillRoundedRectangle ( this g, Rectangle r, double radius, Cairo fill ) : Rectangle
g this
r Cairo.Rectangle
radius double
fill Cairo
Результат Cairo.Rectangle

FillStrokedEllipse() публичный статический Метод

public static FillStrokedEllipse ( this g, Rectangle r, Cairo fill, Cairo stroke, int lineWidth ) : Rectangle
g this
r Cairo.Rectangle
fill Cairo
stroke Cairo
lineWidth int
Результат Cairo.Rectangle

FillStrokedRectangle() публичный статический Метод

public static FillStrokedRectangle ( this g, Rectangle r, Cairo fill, Cairo stroke, int lineWidth ) : Rectangle
g this
r Cairo.Rectangle
fill Cairo
stroke Cairo
lineWidth int
Результат Cairo.Rectangle

FillStrokedRoundedRectangle() публичный статический Метод

public static FillStrokedRoundedRectangle ( this g, Rectangle r, double radius, Cairo fill, Cairo stroke, int lineWidth ) : Rectangle
g this
r Cairo.Rectangle
radius double
fill Cairo
stroke Cairo
lineWidth int
Результат Cairo.Rectangle

GdkColorAlpha() публичный статический Метод

public static GdkColorAlpha ( this color ) : ushort
color this
Результат ushort

GetBottom() публичный статический Метод

public static GetBottom ( this rect ) : double
rect this
Результат double

GetBounds() публичный статический Метод

public static GetBounds ( this surf ) : Gdk.Rectangle
surf this
Результат Gdk.Rectangle

GetBreakLineCharacterIndexbyMaxHeight() публичный статический Метод

Get character index after which layout should be broken to not exceed maxHeight
public static GetBreakLineCharacterIndexbyMaxHeight ( this g, TextBlock tb, double maxHeight ) : int
g this /// G. ///
tb MonoReports.Model.Controls.TextBlock /// Tb. ///
maxHeight double /// Max height. ///
Результат int

GetRight() публичный статический Метод

public static GetRight ( this rect ) : double
rect this
Результат double

GetSize() публичный статический Метод

public static GetSize ( this surf ) : Gdk.Size
surf this
Результат Gdk.Size

IsVisible() публичный статический Метод

Determines if the requested pixel coordinate is within bounds.
public static IsVisible ( this surf, int x, int y ) : bool
surf this
x int The x coordinate.
y int The y coordinate.
Результат bool

Location() публичный статический Метод

public static Location ( this r ) : Point
r this
Результат Cairo.Point

Magnitude() публичный статический Метод

public static Magnitude ( this p ) : double
p this
Результат double

ToCairoColor() публичный статический Метод

public static ToCairoColor ( this color ) : Color
color this
Результат Cairo.Color

ToCairoPointD() публичный статический Метод

public static ToCairoPointD ( this p ) : PointD
p this
Результат Cairo.PointD

ToCairoRectangle() публичный статический Метод

public static ToCairoRectangle ( this r ) : Rectangle
r this
Результат Cairo.Rectangle

ToGdkColor() публичный статический Метод

public static ToGdkColor ( this color ) : Gdk.Color
color this
Результат Gdk.Color

ToGdkPoint() публичный статический Метод

public static ToGdkPoint ( this point ) : Gdk.Point
point this
Результат Gdk.Point

ToGdkRectangle() публичный статический Метод

public static ToGdkRectangle ( this r ) : Gdk.Rectangle
r this
Результат Gdk.Rectangle

ToSize() публичный статический Метод

public static ToSize ( this point ) : Gdk.Size
point this
Результат Gdk.Size

ToString2() публичный статический Метод

public static ToString2 ( this c ) : string
c this
Результат string

TranslatePointsInPlace() публичный статический Метод

public static TranslatePointsInPlace ( this Points, int dx, int dy ) : void
Points this
dx int
dy int
Результат void