Space Engineers
Public Member Functions | Protected Member Functions | Properties | Events | List of all members
Sandbox.Graphics.GUI.MyGuiControlTabControl Class Reference
Inheritance diagram for Sandbox.Graphics.GUI.MyGuiControlTabControl:
Sandbox.Graphics.GUI.MyGuiControlParent Sandbox.Graphics.GUI.MyGuiControlBase Sandbox.Graphics.GUI.IMyGuiControlsParent Sandbox.Graphics.GUI.IMyGuiControlsOwner Sandbox.Graphics.GUI.IMyGuiControlsOwner

Public Member Functions

 MyGuiControlTabControl ()
 
 MyGuiControlTabControl (Vector2?position=null, Vector2?size=null, Vector4?colorMask=null)
 
override void Init (MyObjectBuilder_GuiControlBase builder)
 
void RecreatePages ()
 
override MyObjectBuilder_GuiControlBase GetObjectBuilder ()
 
override void Draw (float transitionAlpha, float backgroundTransitionAlpha)
 
override MyGuiControlBase HandleInput ()
 Method returns true if input was captured by control, so no other controls, nor screen can use input in this update. More...
 
override void ShowToolTip ()
 
MyGuiControlTabPage GetTabSubControl (int key)
 
void MoveToNextTab ()
 
void MoveToPreviousTab ()
 
override MyGuiControlGridDragAndDrop GetDragAndDropHandlingNow ()
 
- Public Member Functions inherited from Sandbox.Graphics.GUI.MyGuiControlParent
 MyGuiControlParent ()
 
 MyGuiControlParent (Vector2?position=null, Vector2?size=null, Vector4?backgroundColor=null, String toolTip=null)
 
override void Clear ()
 
override MyGuiControlBase GetExclusiveInputHandler ()
 
override bool IsMouseOverAnyControl ()
 
override MyGuiControlBase GetMouseOverControl ()
 Returns first control, which has mouse over. More...
 
override void HideToolTip ()
 
override void Update ()
 
override void OnRemoving ()
 Removes various references and clears event handlers. More...
 
override MyGuiControlBase GetNextFocusControl (MyGuiControlBase currentFocusControl, bool forwardMovement)
 
- Public Member Functions inherited from Sandbox.Graphics.GUI.MyGuiControlBase
virtual bool CheckMouseOver ()
 Checks if mouse cursor is over control. GR: Update: Also check if mouse over parent controls. Slower but more solid implementation (and we get rid of a few bugs). Also there is no need for HandleMouse variable (removed) More...
 
virtual string GetMouseCursorTexture ()
 
Vector2 GetPositionAbsolute ()
 
Vector2 GetPositionAbsoluteBottomLeft ()
 
Vector2 GetPositionAbsoluteBottomRight ()
 
Vector2 GetPositionAbsoluteCenterLeft ()
 
Vector2 GetPositionAbsoluteCenter ()
 
Vector2 GetPositionAbsoluteTopLeft ()
 
Vector2 GetPositionAbsoluteTopRight ()
 
Vector2 GetSize ()
 
void SetToolTip (MyToolTips toolTip)
 
void SetToolTip (String text)
 
void SetToolTip (MyStringId text)
 
void GetElementsUnderCursor (Vector2 position, bool visibleOnly, List< MyGuiControlBase > controls)
 
override string ToString ()
 

Protected Member Functions

override void OnSizeChanged ()
 
- Protected Member Functions inherited from Sandbox.Graphics.GUI.MyGuiControlBase
 MyGuiControlBase (Vector2?position=null, Vector2?size=null, Vector4?colorMask=null, String toolTip=null, MyGuiCompositeTexture backgroundTexture=null, bool isActiveControl=true, bool canHaveFocus=false, bool allowFocusingElements=false, MyGuiControlHighlightType highlightType=MyGuiControlHighlightType.WHEN_ACTIVE, MyGuiDrawAlignEnum originAlign=MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_CENTER)
 
void DrawBackground (float transitionAlpha)
 
void DrawBorder (float transitionAlpha)
 
virtual bool ShouldHaveHighlight ()
 
virtual void OnHasHighlightChanged ()
 
virtual void OnPositionChanged ()
 
virtual void OnVisibleChanged ()
 
virtual void OnOriginAlignChanged ()
 
virtual void OnEnabledChanged ()
 
virtual void OnColorMaskChanged ()
 
MyGuiScreenBase GetTopMostOwnerScreen ()
 
bool IsMouseOverOrKeyboardActive ()
 
virtual void DrawElements (float transitionAlpha, float backgroundTransitionAlpha)
 
MyGuiControlBase HandleInputElements ()
 
virtual void ClearEvents ()
 

Properties

int SelectedPage [get, set]
 
Vector2 TabButtonSize [get]
 
float TabButtonScale [get, set]
 
Vector2 TabPosition [get]
 
Vector2 TabSize [get]
 
- Properties inherited from Sandbox.Graphics.GUI.MyGuiControlParent
MyGuiControls Controls [get]
 
- Properties inherited from Sandbox.Graphics.GUI.MyGuiControlBase
float Alpha [get, set]
 
string Name [get, set]
 
IMyGuiControlsOwner Owner [get]
 
MyToolTips Tooltips [get]
 
Vector2 Position [get, set]
 Position of control's center (normalized and relative to parent screen center (not left/top corner!!!)) More...
 
float PositionY [get, set]
 
float PositionX [get, set]
 
Vector2 Size [get, set]
 Size of control (normalized). More...
 
Vector2 MinSize [get, protected set]
 
Vector2 MaxSize [get, protected set]
 
Vector4 ColorMask [get, set]
 
int BorderSize [get, set]
 
bool Enabled [get, set]
 False to disable control, disabled controls are skipped when switching with Tab key etc., look implemented atm. only in MyGuiControlButton. More...
 
MyGuiDrawAlignEnum OriginAlign [get, set]
 
bool Visible [get, set]
 Says whether control is visible. Note that this is not a constant time operation (checks parents, fires events on set). More...
 
bool HasHighlight [get]
 Says whether control is currently highlighted. When control is highlit depends on HighlightType. More...
 
bool HasFocus [get]
 
bool IsMouseOver [get, set]
 
bool CanHaveFocus [get, set]
 
bool AllowFocusingElements [get, set]
 Indicates whether elements can have focus or not. More...
 
object UserData [get, set]
 Specific user data for this control. More...
 
string DebugNamePath [get]
 
- Properties inherited from Sandbox.Graphics.GUI.IMyGuiControlsOwner
string DebugNamePath [get]
 
string Name [get]
 
IMyGuiControlsOwner Owner [get]
 
- Properties inherited from Sandbox.Graphics.GUI.IMyGuiControlsParent
MyGuiControls Controls [get]
 

Events

Action OnPageChanged
 
- Events inherited from Sandbox.Graphics.GUI.MyGuiControlBase
Action< MyGuiControlBase, NameChangedArgsNameChanged
 
Action< MyGuiControlBaseSizeChanged
 
VisibleChangedDelegate VisibleChanged
 
Action< MyGuiControlBase, bool > FocusChanged
 Called when the control enters or leaves focus. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Sandbox.Graphics.GUI.MyGuiControlBase
static void ReadIfHasValue< T > (ref T target, T?source)
 
static void ReadIfHasValue (ref Color target, Vector4?source)
 
static MyGuiControlBase GetExclusiveInputHandler (MyGuiControls controls)
 
static Color ApplyColorMaskModifiers (Vector4 sourceColorMask, bool enabled, float transitionAlpha)
 Modifies source color mask using transition alpha and color multiplier in case a control is disabled. More...
 
static bool CheckMouseOver (Vector2 size, Vector2 position, MyGuiDrawAlignEnum originAlign)
 
static bool IsPointInside (Vector2 queryPoint, Vector2 size, Vector2 position, MyGuiDrawAlignEnum originAlign)
 
- Public Attributes inherited from Sandbox.Graphics.GUI.MyGuiControlBase
readonly MyGuiControls Elements
 
MyGuiCompositeTexture BackgroundTexture
 
Vector4 BorderColor
 
bool BorderEnabled
 
bool DrawWhilePaused
 
bool ShowTooltipWhenDisabled
 
bool IsActiveControl
 There are some controls, that cannot receive any handle input(control panel for example), thus disable them with this. More...
 
MyGuiControlHighlightType HighlightType
 
- Protected Attributes inherited from Sandbox.Graphics.GUI.MyGuiControlBase
bool m_mouseButtonPressed = false
 
bool m_showToolTip = false
 
Vector2 m_toolTipPosition
 

Detailed Description

Definition at line 84 of file MyGuiControlTabControl.cs.

Constructor & Destructor Documentation

Sandbox.Graphics.GUI.MyGuiControlTabControl.MyGuiControlTabControl ( )
inline

Definition at line 127 of file MyGuiControlTabControl.cs.

Sandbox.Graphics.GUI.MyGuiControlTabControl.MyGuiControlTabControl ( Vector2 position = null,
Vector2 size = null,
Vector4 colorMask = null 
)
inline

Definition at line 131 of file MyGuiControlTabControl.cs.

Member Function Documentation

override void Sandbox.Graphics.GUI.MyGuiControlTabControl.Draw ( float  transitionAlpha,
float  backgroundTransitionAlpha 
)
inlinevirtual

Reimplemented from Sandbox.Graphics.GUI.MyGuiControlParent.

Definition at line 173 of file MyGuiControlTabControl.cs.

override MyGuiControlGridDragAndDrop Sandbox.Graphics.GUI.MyGuiControlTabControl.GetDragAndDropHandlingNow ( )
inlinevirtual

Reimplemented from Sandbox.Graphics.GUI.MyGuiControlParent.

Definition at line 365 of file MyGuiControlTabControl.cs.

override MyObjectBuilder_GuiControlBase Sandbox.Graphics.GUI.MyGuiControlTabControl.GetObjectBuilder ( )
inlinevirtual

Reimplemented from Sandbox.Graphics.GUI.MyGuiControlParent.

Definition at line 166 of file MyGuiControlTabControl.cs.

MyGuiControlTabPage Sandbox.Graphics.GUI.MyGuiControlTabControl.GetTabSubControl ( int  key)
inline

Definition at line 245 of file MyGuiControlTabControl.cs.

override MyGuiControlBase Sandbox.Graphics.GUI.MyGuiControlTabControl.HandleInput ( )
inlinevirtual

Method returns true if input was captured by control, so no other controls, nor screen can use input in this update.

Reimplemented from Sandbox.Graphics.GUI.MyGuiControlParent.

Definition at line 217 of file MyGuiControlTabControl.cs.

override void Sandbox.Graphics.GUI.MyGuiControlTabControl.Init ( MyObjectBuilder_GuiControlBase  builder)
inlinevirtual

Reimplemented from Sandbox.Graphics.GUI.MyGuiControlParent.

Definition at line 142 of file MyGuiControlTabControl.cs.

void Sandbox.Graphics.GUI.MyGuiControlTabControl.MoveToNextTab ( )
inline

Definition at line 327 of file MyGuiControlTabControl.cs.

void Sandbox.Graphics.GUI.MyGuiControlTabControl.MoveToPreviousTab ( )
inline

Definition at line 346 of file MyGuiControlTabControl.cs.

override void Sandbox.Graphics.GUI.MyGuiControlTabControl.OnSizeChanged ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Graphics.GUI.MyGuiControlBase.

Definition at line 321 of file MyGuiControlTabControl.cs.

void Sandbox.Graphics.GUI.MyGuiControlTabControl.RecreatePages ( )
inline

Definition at line 154 of file MyGuiControlTabControl.cs.

override void Sandbox.Graphics.GUI.MyGuiControlTabControl.ShowToolTip ( )
inlinevirtual

Reimplemented from Sandbox.Graphics.GUI.MyGuiControlParent.

Definition at line 230 of file MyGuiControlTabControl.cs.

Property Documentation

int Sandbox.Graphics.GUI.MyGuiControlTabControl.SelectedPage
getset

Definition at line 95 of file MyGuiControlTabControl.cs.

float Sandbox.Graphics.GUI.MyGuiControlTabControl.TabButtonScale
getset

Definition at line 118 of file MyGuiControlTabControl.cs.

Vector2 Sandbox.Graphics.GUI.MyGuiControlTabControl.TabButtonSize
get

Definition at line 111 of file MyGuiControlTabControl.cs.

Vector2 Sandbox.Graphics.GUI.MyGuiControlTabControl.TabPosition
get

Definition at line 318 of file MyGuiControlTabControl.cs.

Vector2 Sandbox.Graphics.GUI.MyGuiControlTabControl.TabSize
get

Definition at line 319 of file MyGuiControlTabControl.cs.

Event Documentation

Action Sandbox.Graphics.GUI.MyGuiControlTabControl.OnPageChanged

Definition at line 86 of file MyGuiControlTabControl.cs.


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