OmegaEngine API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Properties | List of all members
OmegaGUI.Render.MessageBox Class Reference

A message-box dialog More...

Inheritance diagram for OmegaGUI.Render.MessageBox:
OmegaGUI.Render.Dialog

Public Member Functions

 MessageBox (DialogManager manager)
 Create a new message-box dialog More...
 
void Show (string text, MsgBoxType type, Action< MsgBoxResult > callback)
 
void Reset ()
 
- Public Member Functions inherited from OmegaGUI.Render.Dialog
void SetSize (int w, int h)
 Called to set dialog's size More...
 
void SetCaptionText (string text)
 Called to set dialog's caption More...
 
void SetBackgroundColors (Color4 topLeft, Color4 topRight, Color4 bottomLeft, Color4 bottomRight)
 Called to set dialog's border colors More...
 
void SetBackgroundColors (Color4 allCorners)
 Called to set dialog's border colors More...
 
void SetCaptionColor (Color4 color)
 
 Dialog (DialogManager manager, Color4 defaultTextColor, string defaultTexture, string defaultFont, uint defaultFontSize)
 Create a new instance of the dialog class More...
 
 Dialog (DialogManager manager, Color4 defaultTextColor)
 Create a new instance of the dialog class More...
 
 Dialog (DialogManager manager)
 Create a new instance of the dialog class More...
 
void RemoveAllControls ()
 Removes all controls from this dialog More...
 
void ClearRadioButtonGroup (uint groupIndex)
 Clears the radio button group More...
 
bool MessageProc (IntPtr hWnd, WindowMessage msg, IntPtr wParam, IntPtr lParam)
 Handle messages for this dialog More...
 
Control GetControlAtPoint (Point pt)
 Returns the control located at a point (if one exists) More...
 
void SetDefaultElement (ControlType ctype, uint index, Element e)
 Sets the default element More...
 
Element GetDefaultElement (ControlType ctype, uint index)
 Gets the default element More...
 
void SetFont (uint index, string faceName, uint fontHeight, FontWeight weight)
 Shared resource access. Indexed fonts and textures are shared among all the controls. More...
 
FontNode GetFont (uint index)
 Shared resource access. Indexed fonts and textures are shared among all the controls. More...
 
void SetTexture (uint index, string filename)
 Shared resource access. Indexed fonts and textures are shared among all the controls. More...
 
TextureNode GetTexture (uint index)
 Shared resource access. Indexed fonts and textures are shared among all the controls. More...
 
void InitializeControl (Control control)
 Initializes a control More...
 
void AddControl (Control control)
 Adds a control to the dialog More...
 
Label AddStatic (int id, string text, int x, int y, int w, int h, bool isDefault)
 Adds a static text control to the dialog More...
 
Label AddStatic (int id, string text, int x, int y, int w, int h)
 Adds a static text control to the dialog More...
 
PictureBox AddPictureBox (int id, int x, int y, int w, int h, Element fill)
 Adds a picture box control to the dialog More...
 
GroupBox AddGroupBox (int id, int x, int y, int w, int h, Color4 borderColor, Color4 fillCo)
 Adds a group box control to the dialog More...
 
Button AddButton (int id, string text, int x, int y, int w, int h, Keys hotkey, bool isDefault)
 Adds a button control to the dialog More...
 
Button AddButton (int id, string text, int x, int y, int w, int h)
 Adds a button control to the dialog More...
 
CheckBox AddCheckBox (int id, string text, int x, int y, int w, int h, bool ischecked, Keys hotkey, bool isDefault)
 Adds a checkbox to the dialog More...
 
CheckBox AddCheckBox (int id, string text, int x, int y, int w, int h, bool ischecked)
 Adds a checkbox control to the dialog More...
 
RadioButton AddRadioButton (int id, uint groupId, string text, int x, int y, int w, int h, bool ischecked, Keys hotkey, bool isDefault)
 Adds a radiobutton to the dialog More...
 
RadioButton AddRadioButton (int id, uint groupId, string text, int x, int y, int w, int h, bool ischecked)
 Adds a radio button control to the dialog More...
 
DropdownList AddDropdownList (int id, int x, int y, int w, int h, Keys hotkey, bool isDefault)
 Adds a dropdown list control to the dialog More...
 
DropdownList AddDropdownList (int id, int x, int y, int w, int h)
 Adds a dropdown list control to the dialog More...
 
Slider AddSlider (int id, int x, int y, int w, int h, int min, int max, int initialValue, bool isDefault)
 Adds a slider control to the dialog More...
 
Slider AddSlider (int id, int x, int y, int w, int h)
 Adds a slider control to the dialog More...
 
ScrollBar AddScrollBar (int id, int x, int y, int w, int h, int min, int max, int initialValue, bool isDefault)
 Adds a scroll bar control to the dialog More...
 
ScrollBar AddScrollBar (int id, int x, int y, int w, int h)
 Adds a scroll bar control to the dialog More...
 
ListBox AddListBox (int id, int x, int y, int w, int h, ListBoxStyle style)
 Adds a listbox control to the dialog More...
 
ListBox AddListBox (int id, int x, int y, int w, int h)
 Adds a listbox control to the dialog More...
 
TextBox AddTextBox (int id, string text, int x, int y, int w, int h, bool isDefault)
 Adds an edit box control to the dialog More...
 
TextBox AddTextBox (int id, string text, int x, int y, int w, int h)
 Adds an edit box control to the dialog More...
 
void OnRender (float elapsedTime)
 Render the dialog More...
 
void Refresh ()
 Refresh the dialog More...
 
void DrawText (string text, Element element, Rectangle rect, bool shadow)
 Draw's some text More...
 
void DrawSprite (Element element, Rectangle rect)
 Draw a sprite More...
 
void DrawText (string text, Element element, Rectangle rect)
 Draw's some text More...
 
void DrawRectangle (Rectangle rect, Color4 color, bool filled)
 Draw a rectangle More...
 

Properties

bool Visible [get, set]
 
- Properties inherited from OmegaGUI.Render.Dialog
DialogManager DialogManager [get]
 
uint DefaultFontSize [get, set]
 
Point Location [get, set]
 The dialog's location More...
 
int Width [get, set]
 Dialogs width More...
 
int Height [get, set]
 Dialogs height More...
 
int CaptionHeight [get, set]
 The height of the caption bar at the top of the dialog More...
 

Additional Inherited Members

- Static Public Member Functions inherited from OmegaGUI.Render.Dialog
static void SetRefreshTime (float time)
 Set the static refresh time More...
 
static void RequestFocus (Control control)
 Request that this control has focus More...
 
static void ClearFocus ()
 Clears focus of the dialog More...
 
- Public Attributes inherited from OmegaGUI.Render.Dialog
const int WheelDelta = 120
 
bool IsMinimized
 
bool IsUsingNonUserEvents
 
bool IsUsingKeyboardInput
 
bool IsUsingMouseInput
 
- Static Public Attributes inherited from OmegaGUI.Render.Dialog
static readonly Color4 WhiteColorValue = new Color4(1.0f, 1.0f, 1.0f)
 
static readonly Color4 TransparentWhite = new Color4(0.0f, 1.0f, 1.0f, 1.0f)
 
static readonly Color4 BlackColorValue = new Color4(0.0f, 0.0f, 0.0f)
 
- Events inherited from OmegaGUI.Render.Dialog
EventHandler Resize
 

Detailed Description

A message-box dialog

Constructor & Destructor Documentation

OmegaGUI.Render.MessageBox.MessageBox ( DialogManager  manager)
inline

Create a new message-box dialog

Parameters
managerThe DialogManager instance that provides the resources for rendering of this dialog

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