x4Trace Documentation v1.0
Loading...
Searching...
No Matches
IGraphics.Drawing2D Namespace Reference

Classes

class  GFXTools
 Represents a tool class for drawing. More...
 
class  IGFX2DScene
 Represents a graphics 2D scene. Controls the graphics elements/primitives. More...
 
class  IShape2D
 Represents an item of drawing. More...
 
class  Shape2DCollection
 Collection of Shape2D items. More...
 

Enumerations

enum  MouseButtons { Left = 1048576 , Right = 2097152 , Middle = 4194304 }
 Event of mouse buttons. More...
 

Functions

delegate void GetTextHeightHandler (string text, GInterface.IFont font, int width, out int height)
 Delegate of get text height event.
 
delegate void GetTextSizeHandler (string text, GInterface.IFont font, int width, out ISize size)
 Delegate of get text size event.
 
delegate void GetTextSize2Handler (string text, GInterface.IFont font, int width, int heigth, out ISize size)
 Delegate of get text size event.
 
delegate void MouseDownUC (float x, float y)
 Delagate of mousedown event.
 
delegate void RefreshEvt ()
 Delegate of refresh event.
 
delegate void RefreshAreaEvt (int x, int y, int width, int height)
 Refresh graphics event.
 
delegate void MouseDown (object sender, int x, int y)
 Delegate of mouse down event.
 
delegate void MouseDoubleClick (object sender, int x, int y)
 Delegate of mouse double click event.
 
delegate void MouseClick (object sender, int x, int y)
 Delegate of mose click event.
 
delegate void MouseUp (object sender, int x, int y, bool realUp)
 Delegate of mouse up event.
 
delegate void MouseMove (object sender, float x, float y)
 Delegate of mouse move event.
 
delegate void MouseRightDown (object sender, int x, int y)
 Delegate fo mouse right button down event.
 

Enumeration Type Documentation

◆ MouseButtons

Event of mouse buttons.

Enumerator
Left 

Value of left button.

Right 

Value of right button.

Middle 

Value of middle button.

Function Documentation

◆ GetTextHeightHandler()

delegate void IGraphics.Drawing2D.GetTextHeightHandler ( string text,
GInterface.IFont font,
int width,
out int height )

Delegate of get text height event.

Parameters
textText.
fontFont.
widthMaximum width of text.
heightResult of height.

◆ GetTextSize2Handler()

delegate void IGraphics.Drawing2D.GetTextSize2Handler ( string text,
GInterface.IFont font,
int width,
int heigth,
out ISize size )

Delegate of get text size event.

Parameters
textText.
fontFont.
widthMaximum width of text.
heigthMaximum height of text.
sizeResult of size.

◆ GetTextSizeHandler()

delegate void IGraphics.Drawing2D.GetTextSizeHandler ( string text,
GInterface.IFont font,
int width,
out ISize size )

Delegate of get text size event.

Parameters
textText.
fontFont.
widthMaximum width of text.
sizeResult of size.

◆ MouseClick()

delegate void IGraphics.Drawing2D.MouseClick ( object sender,
int x,
int y )

Delegate of mose click event.

Parameters
senderSender.
xX coordinate.
yY coordinate.

◆ MouseDoubleClick()

delegate void IGraphics.Drawing2D.MouseDoubleClick ( object sender,
int x,
int y )

Delegate of mouse double click event.

Parameters
senderSender.
xX coordinate.
yY coordinate.

◆ MouseDown()

delegate void IGraphics.Drawing2D.MouseDown ( object sender,
int x,
int y )

Delegate of mouse down event.

Parameters
senderSender.
xX coordinate.
yY coordinate.

◆ MouseDownUC()

delegate void IGraphics.Drawing2D.MouseDownUC ( float x,
float y )

Delagate of mousedown event.

Parameters
xX coordinate.
yY coordinate.

◆ MouseMove()

delegate void IGraphics.Drawing2D.MouseMove ( object sender,
float x,
float y )

Delegate of mouse move event.

Parameters
senderSender.
xX coordinate.
yY coordinate.

◆ MouseRightDown()

delegate void IGraphics.Drawing2D.MouseRightDown ( object sender,
int x,
int y )

Delegate fo mouse right button down event.

Parameters
senderSender.
xX coordinate.
yY coordinate.

◆ MouseUp()

delegate void IGraphics.Drawing2D.MouseUp ( object sender,
int x,
int y,
bool realUp )

Delegate of mouse up event.

Parameters
senderSender.
xX coordinate.
yY coordinate.
realUpTrue when really released the button.

◆ RefreshAreaEvt()

delegate void IGraphics.Drawing2D.RefreshAreaEvt ( int x,
int y,
int width,
int height )

Refresh graphics event.

Parameters
xX coordinate of area.
yY coordinate of area.
widthWidth of area.
heightHeight of area.