Represents an item of drawing.
More...
|
virtual void | DoMouseDown (float x, float y) |
| Fires mouse down event.
|
|
virtual void | DoMouseRightDown (float x, float y) |
| Fires mouse down event of right button.
|
|
virtual void | DoMouseClick (float x, float y) |
| Fires mouse click event.
|
|
void | OnMouseMove (float x, float y) |
| Fores mouse move event.
|
|
virtual void | DoMouseUp (float x, float y, bool realUp) |
| Fires mouse up event.
|
|
bool | EnforceMouseUp () |
| Enforces mouse up event.
|
|
virtual void | DoMouseDoubleClick (float x, float y) |
| Fires double click event.
|
|
virtual bool | OnMouseDoubleClick (float x, float y) |
| Executes the double click.
|
|
virtual bool | OnMouseUp (float x, float y) |
| Executes the mouse up.
|
|
virtual bool | OnMouseDown (float x, float y) |
| Executes the mouse down.
|
|
virtual void | Draw (IGraphics.GInterface.IGraphics gr) |
| Draws the item.
|
|
|
int | zindex = 0 |
| Z index of item.
|
|
|
virtual void | OnXChange (float x) |
| Fires on X changed event.
|
|
virtual void | OnYChange (float y) |
| Fires on Y changed event.
|
|
virtual void | OnMouseDownChange (bool oldValue, bool newValue) |
| Fires mouse down changed event.
|
|
|
bool | visible = true |
| Visibility of item.
|
|
bool | enable = true |
| The item is enabled.
|
|
float | x = 0 |
| X position of item.
|
|
float | y = 0 |
| Y position of item.
|
|
float | width = 0 |
| Width of item.
|
|
float | height = 0 |
| Height of item.
|
|
float | baseStartX = 0 |
| Temp value for X position.
|
|
float | baseStartY = 0 |
| Temp value for Y position.
|
|
float | dropShadowToTextX = 2 |
| Drop shadow offset X.
|
|
float | dropShadowToTextY = 2 |
| Drop shadow offset Y.
|
|
object | bmp = null |
| Background image.
|
|
IGraphics.Drawing2D.Shape2DCollection | elements = new IGraphics.Drawing2D.Shape2DCollection() |
| Sub elements of item.
|
|
string | text = "" |
| Text of item.
|
|
IGraphics.GInterface.IStringAlignment | textAlignment = new IGraphics.GInterface.IStringAlignment() |
| Text alignment of item.
|
|
GInterface.IFont | font = new GInterface.IFont("Arial", 8) |
| Font of text.
|
|
IColor | foreColor = IColor.Black |
| Fore color of item.
|
|
IColor | baseForeColor = IColor.Empty |
| Temp variable of fore color.
|
|
IColor | backColor = IColor.Empty |
| Back color of item.
|
|
IColor | baseBackColor = IColor.Empty |
| Temp variable of back color.
|
|
int | sleepTime = 1000 |
| Sleep time during animation.
|
|
float | stepLength = 10 |
| Step length during animation.
|
|
object | tag = null |
| Tag of item.
|
|
bool | clickable = true |
| The item is clickable.
|
|
bool | rightClickable = false |
| The item is clickable by right mouse button.
|
|
bool | mouseDown = false |
| The item has mouse down.
|
|
bool | alphaClick = false |
| Enables the click on alpha color.
|
|
double | doubleValue = 0 |
| Double value of item.
|
|
bool | dropShadowToText = false |
| Enables the drop shadow.
|
|
int | text_margin_left = 0 |
| Margin left of text.
|
|
int | text_margin_right = 0 |
| Margin right of text.
|
|
int | text_margin_top = 0 |
| Margin top of text.
|
|
int | text_margin_bottom = 0 |
| Margin bottom of text.
|
|
IGFX2DScene | scene |
| The parent.
|
|
bool | backgroundRepeatX = false |
| Repeats the background.
|
|
bool | backgroundRepeatY = false |
| Repeats the background.
|
|
bool | enableDrawBorder = false |
| Enables to draw bolrder.
|
|
int | borderWidth = 1 |
| Width of border.
|
|
IColor | borderColor = IColor.Black |
| Color of border.
|
|
IPen | borderPen |
| Pen of border.
|
|
float | e_x = 0 |
| Current mouse X.
|
|
float | e_y = 0 |
| Current mouse Y.
|
|
int | minstep = 1 |
| Minimum step of movement.
|
|
|
static bool | useAlphaClick = false |
| Enables the click on alpha color.
|
|
|
int | ZIndex [get, set] |
| Z index of item.
|
|
bool | AllVisible [get, set] |
| Sets all item to visible or not. Returns false when ote item is not visible.
|
|
object | Tag [get, set] |
| Tag of item.
|
|
bool | Clickable [get, set] |
| The item is clickable.
|
|
bool | RightClickable [get, set] |
| Right click is enabled on the item.
|
|
bool | IsMouseDown [get, set] |
| The mouse is down on this item.
|
|
float | StepLength [get, set] |
| Seps of the item.
|
|
int | SleepTime [get, set] |
| Sleep time when item moving.
|
|
IGFX2DScene | Scene [get, set] |
| Parent.
|
|
virtual string | Text [get, set] |
| Text of item.
|
|
virtual IStringAlignment | TextAlignment [get, set] |
| Alignment of text.
|
|
bool | Visible [get, set] |
| Visibility of item.
|
|
bool | Enable [get, set] |
| The item is enabled.
|
|
float | X [get, set] |
| X coordinate.
|
|
float | Y [get, set] |
| Y coordinate.
|
|
float | BaseStartX [get, set] |
| Temp value for X position.
|
|
float | BaseStartY [get, set] |
| Temp value for Y position.
|
|
float | Width [get, set] |
| Width of item.
|
|
float | Height [get, set] |
| Height of item.
|
|
object | BMP [get, set] |
| Bitmap of item.
|
|
GInterface.IFont | Font [get, set] |
| Font of text.
|
|
IColor | BackColor [get, set] |
| Back color of item.
|
|
IColor | BaseBackColor [get, set] |
| Temp variable of back color.
|
|
IColor | ForeColor [get, set] |
| Fore color of item.
|
|
IColor | BaseForeColor [get, set] |
| Temp variable of fore color.
|
|
double | DoubleValue [get, set] |
| Double value of item.
|
|
bool | AlphaClick [get, set] |
| Enables the click on alpha color.
|
|
float | DropShadowToTextX [get, set] |
| Drop shadow offset X.
|
|
float | DropShadowToTextY [get, set] |
| Drop shadow offset Y.
|
|
bool | DropShadowToText [get, set] |
| Enables the drop shadow.
|
|
int | Text_margin_bottom [get, set] |
| Margin bottom of text.
|
|
int | Text_margin_left [get, set] |
| Margin left of text.
|
|
int | Text_margin_right [get, set] |
| Margin right of text.
|
|
int | Text_margin_top [get, set] |
| Margin top of text.
|
|
bool | BackgroundRepeatX [get, set] |
| Repeats the background.
|
|
bool | BackgroundRepeatY [get, set] |
| Repeats the background.
|
|
int | BorderWidth [get, set] |
| Width of border line.
|
|
IColor | BorderColor [get, set] |
| Color of border line.
|
|
bool | EnableDrawBorder [get, set] |
| Enables the draw of border line.
|
|
Shape2DCollection | Elements [get] |
| Children element.
|
|
|
MouseDown | MouseDown = null |
| Event of mouse down.
|
|
MouseUp | MouseUp = null |
| Event of mouse up.
|
|
MouseMove | MouseMove = null |
| Event of mouse move.
|
|
MouseDoubleClick | DoubleClick = null |
| Event of double click.
|
|
MouseRightDown | RightDown = null |
| Event of right button down.
|
|
MouseClick | MouseClick = null |
| Event of mouse click.
|
|
Represents an item of drawing.
◆ DoMouseClick()
virtual void IGraphics.Drawing2D.IShape2D.DoMouseClick |
( |
float | x, |
|
|
float | y ) |
|
virtual |
Fires mouse click event.
- Parameters
-
x | X coordinate. |
y | Y coordinate. |
◆ DoMouseDoubleClick()
virtual void IGraphics.Drawing2D.IShape2D.DoMouseDoubleClick |
( |
float | x, |
|
|
float | y ) |
|
virtual |
Fires double click event.
- Parameters
-
x | X coordinate. |
y | Y coordinate. |
◆ DoMouseDown()
virtual void IGraphics.Drawing2D.IShape2D.DoMouseDown |
( |
float | x, |
|
|
float | y ) |
|
virtual |
Fires mouse down event.
- Parameters
-
x | X coordinate. |
y | Y coordinate. |
◆ DoMouseRightDown()
virtual void IGraphics.Drawing2D.IShape2D.DoMouseRightDown |
( |
float | x, |
|
|
float | y ) |
|
virtual |
Fires mouse down event of right button.
- Parameters
-
x | X coordinate. |
y | Y coordinate. |
◆ DoMouseUp()
virtual void IGraphics.Drawing2D.IShape2D.DoMouseUp |
( |
float | x, |
|
|
float | y, |
|
|
bool | realUp ) |
|
virtual |
Fires mouse up event.
- Parameters
-
x | X coordinate. |
y | Y coordinate. |
realUp | True when really released the button. |
◆ Draw()
Draws the item.
- Parameters
-
◆ EnforceMouseUp()
bool IGraphics.Drawing2D.IShape2D.EnforceMouseUp |
( |
| ) |
|
Enforces mouse up event.
- Returns
- True when this item contains the mouse up.
◆ OnMouseDoubleClick()
virtual bool IGraphics.Drawing2D.IShape2D.OnMouseDoubleClick |
( |
float | x, |
|
|
float | y ) |
|
virtual |
Executes the double click.
- Parameters
-
x | X coordinate. |
y | Y coordinate. |
- Returns
- True when this item contains the double click.
◆ OnMouseDown()
virtual bool IGraphics.Drawing2D.IShape2D.OnMouseDown |
( |
float | x, |
|
|
float | y ) |
|
virtual |
Executes the mouse down.
- Parameters
-
x | X coordinate. |
y | Y coordinate. |
- Returns
- True when this item contains the mouse down.
◆ OnMouseDownChange()
virtual void IGraphics.Drawing2D.IShape2D.OnMouseDownChange |
( |
bool | oldValue, |
|
|
bool | newValue ) |
|
protectedvirtual |
Fires mouse down changed event.
- Parameters
-
oldValue | Old value. |
newValue | New value. |
◆ OnMouseMove()
void IGraphics.Drawing2D.IShape2D.OnMouseMove |
( |
float | x, |
|
|
float | y ) |
Fores mouse move event.
- Parameters
-
x | X coordinate. |
y | Y coordinate. |
◆ OnMouseUp()
virtual bool IGraphics.Drawing2D.IShape2D.OnMouseUp |
( |
float | x, |
|
|
float | y ) |
|
virtual |
Executes the mouse up.
- Parameters
-
x | X coordinate. |
y | Y coordinate. |
- Returns
- True when this item contains the mouse up.
◆ OnXChange()
virtual void IGraphics.Drawing2D.IShape2D.OnXChange |
( |
float | x | ) |
|
|
protectedvirtual |
Fires on X changed event.
- Parameters
-
◆ OnYChange()
virtual void IGraphics.Drawing2D.IShape2D.OnYChange |
( |
float | y | ) |
|
|
protectedvirtual |
Fires on Y changed event.
- Parameters
-
The documentation for this class was generated from the following file:
- Z:/x4t/src/IGraphics/Drawing2D/IShape2D.cs