OmegaEngine API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Attributes | Package Functions | Properties | List of all members
OmegaGUI.Model.PictureBox Class Reference
Inheritance diagram for OmegaGUI.Model.PictureBox:
OmegaGUI.Model.Control

Public Attributes

bool TextureFileValid => !string.IsNullOrEmpty(_textureFile) && ContentManager.FileExists("GUI/Textures", _textureFile)
 
- Public Attributes inherited from OmegaGUI.Model.Control
Rectangle DrawBox => new Rectangle(EffectiveLocation, EffectiveSize)
 The effective area on the window were this control is rendered More...
 
Render.Control ControlModel => DXControl
 

Package Functions

override void Generate ()
 Generates a control model from this control view More...
 
- Package Functions inherited from OmegaGUI.Model.Control
void UpdateLayout ()
 Updates the control's location and size More...
 

Properties

string TextureFile [get, set]
 The file containing the texture for this picture box - no auto-update More...
 
Point TextureLocation [get, set]
 The upper left corner of the area in the texture file to use - no auto-update More...
 
Size TextureSize [get, set]
 The distance to the lower right corner of the area in the texture file to use - no auto-update More...
 
byte Alpha [get, set]
 The level of transparency from 0 (invisible) to 255 (solid) More...
 
- Properties inherited from OmegaGUI.Model.Control
string Name [get, set]
 Unique name for identifying this control More...
 
bool Default [get, set]
 Is this the default control on the dialog? - no auto-update More...
 
bool Enabled [get, set]
 Is this control currently active? More...
 
bool Visible [get, set]
 Is this control currently visible? More...
 
Point Location [get, set]
 The location of the control on the dialog More...
 
Size Size [get, set]
 The size of the control on the dialog More...
 
HorizontalMode AlignHorizontal [get, set]
 How to handle the X values of Location and Size More...
 
VerticalMode AlignVertical [get, set]
 How to handle the Y values of Location and Size More...
 
string OnMouseEnter [get, set]
 A Lua script to execute when the mouse enters the area of the control More...
 
string OnMouseExit [get, set]
 A Lua script to execute when the mouse leaves the area of the control More...
 

Additional Inherited Members

- Public Member Functions inherited from OmegaGUI.Model.Control
override string ToString ()
 
Control Clone ()
 Creates a shallow copy of this control. You need to call Generate on it before it can be used for rendering. More...
 
- Protected Member Functions inherited from OmegaGUI.Model.Control
void NeedsUpdate ()
 
void SetupMouseEvents ()
 
- Protected Attributes inherited from OmegaGUI.Model.Control
Render.Control DXControl
 The OmegaGUI.Render control used for actual rendering More...
 
Point EffectiveLocation
 The actual location of the control on the dialog factoring in AlignHorizontal and AlignVertical More...
 
Size EffectiveSize
 The actual size of the control on the dialog factoring in scaling due to Dialog.Scale More...
 
bool IsEnabled = true
 
bool IsVisible = true
 
- Package Attributes inherited from OmegaGUI.Model.Control
Dialog Parent
 The dialog containing this control More...
 

Member Function Documentation

override void OmegaGUI.Model.PictureBox.Generate ( )
inlinepackagevirtual

Generates a control model from this control view

Implements OmegaGUI.Model.Control.

Property Documentation

byte OmegaGUI.Model.PictureBox.Alpha
getset

The level of transparency from 0 (invisible) to 255 (solid)

string OmegaGUI.Model.PictureBox.TextureFile
getset

The file containing the texture for this picture box - no auto-update

Point OmegaGUI.Model.PictureBox.TextureLocation
getset

The upper left corner of the area in the texture file to use - no auto-update

Size OmegaGUI.Model.PictureBox.TextureSize
getset

The distance to the lower right corner of the area in the texture file to use - no auto-update


The documentation for this class was generated from the following file: