Goblin - A Platform for 3D AR and VR Applications

Button Members

Button overview

Public Static Fields

ButtonLayer 
FillLayer 

Public Instance Constructors

Button Constructor Create new button instance

Public Instance Fields

index (inherited from Control) 
isDefault (inherited from Control) 

Public Instance Properties

CanHaveFocusCan the button have focus
ControlType (inherited from Control)Type of the control
Hotkey (inherited from Control)The controls hotkey
ID (inherited from Control)Unique ID of the control
IsEnabled (inherited from Control)Is the control enabled
IsVisible (inherited from Control)Is the control visible
Item (inherited from Control) Index for the elements this control has access to
Parent (inherited from Control)The parent dialog of this control
UserData (inherited from Control)User specified data

Public Instance Methods

ContainsPoint (inherited from Control)Does the control contain this point
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetTextCopy (inherited from StaticText) Return a copy of the string
GetType (inherited from Object) Gets the Type of the current instance.
HandleKeyboard Will handle the keyboard strokes
HandleMouse Handle mouse messages from the buttons
MsgProc (inherited from Control)Message Handler
OnFocusIn (inherited from Control)Called when control gets focus
OnFocusOut (inherited from Control)Called when control loses focus
OnHotKeyThe hotkey for this button was pressed
OnInitialize (inherited from Control)Initialize the control
OnMouseEnter (inherited from Control)Called when mouse goes over the control
OnMouseExit (inherited from Control)Called when mouse leaves the control
Refresh (inherited from Control) Refreshes the control
RenderRender the button
SetLocation (inherited from Control)Called to set control's location
SetSize (inherited from Control)Called to set control's size
SetText (inherited from StaticText) Sets the updated text for this control
ToString (inherited from Object) Returns a String that represents the current Object.

Public Instance Events

Click 

Protected Instance Fields

boundingBox (inherited from Control) 
controlId (inherited from Control) 
controlType (inherited from Control) 
controlX (inherited from Control) 
controlY (inherited from Control) 
elementList (inherited from Control) 
enabled (inherited from Control) 
hasFocus (inherited from Control) 
height (inherited from Control) 
hotKey (inherited from Control) 
isMouseOver (inherited from Control) 
isPressed 
localUserData (inherited from Control) 
parentDialog (inherited from Control) 
textData (inherited from StaticText) 
visible (inherited from Control) 
width (inherited from Control) 

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
RaiseClickEventCreate new button instance
UpdateRectangles (inherited from Control) Updates the rectangles

See Also

Button Class | Microsoft.Samples.DirectX.UtilityToolkit Namespace