Space Engineers
Public Member Functions | Public Attributes | Properties | Events | List of all members
Sandbox.Graphics.GUI.MyRichLabel Class Reference

Public Member Functions

 MyRichLabel (MyGuiControlBase parent, float maxLineWidth, float minLineHeight, int?linesCountMax=null)
 
void Append (StringBuilder text, string font, float scale, Vector4 color)
 
void Append (string text, string font, float scale, Vector4 color)
 
void Append (string texture, Vector2 size, Vector4 color)
 
void AppendLink (string url, string text, float scale, Action< string > onClick)
 
void AppendLine ()
 
void AppendLine (StringBuilder text, string font, float scale, Vector4 color)
 
void AppendLine (string texture, Vector2 size, Vector4 color)
 
bool Draw (Vector2 position, float offset, Vector2 drawSizeMax)
 Draws label More...
 
void Clear ()
 

Public Attributes

MyGuiDrawAlignEnum TextAlign = MyGuiDrawAlignEnum.HORISONTAL_LEFT_AND_VERTICAL_TOP
 

Properties

int NumberOfRows [get]
 
Vector2 Size [get]
 
float MaxLineWidth [get, set]
 
bool ShowTextShadow [get, set]
 

Events

ScissorRectangleHandler AdjustingScissorRectangle
 

Detailed Description

Definition at line 14 of file MyRichLabel.cs.

Constructor & Destructor Documentation

Sandbox.Graphics.GUI.MyRichLabel.MyRichLabel ( MyGuiControlBase  parent,
float  maxLineWidth,
float  minLineHeight,
int?  linesCountMax = null 
)
inline

Definition at line 57 of file MyRichLabel.cs.

Member Function Documentation

void Sandbox.Graphics.GUI.MyRichLabel.Append ( StringBuilder  text,
string  font,
float  scale,
Vector4  color 
)
inline

Definition at line 123 of file MyRichLabel.cs.

void Sandbox.Graphics.GUI.MyRichLabel.Append ( string  text,
string  font,
float  scale,
Vector4  color 
)
inline

Definition at line 128 of file MyRichLabel.cs.

void Sandbox.Graphics.GUI.MyRichLabel.Append ( string  texture,
Vector2  size,
Vector4  color 
)
inline

Definition at line 142 of file MyRichLabel.cs.

void Sandbox.Graphics.GUI.MyRichLabel.AppendLine ( )
inline

Definition at line 158 of file MyRichLabel.cs.

void Sandbox.Graphics.GUI.MyRichLabel.AppendLine ( StringBuilder  text,
string  font,
float  scale,
Vector4  color 
)
inline

Definition at line 178 of file MyRichLabel.cs.

void Sandbox.Graphics.GUI.MyRichLabel.AppendLine ( string  texture,
Vector2  size,
Vector4  color 
)
inline

Definition at line 184 of file MyRichLabel.cs.

void Sandbox.Graphics.GUI.MyRichLabel.AppendLink ( string  url,
string  text,
float  scale,
Action< string >  onClick 
)
inline

Definition at line 152 of file MyRichLabel.cs.

void Sandbox.Graphics.GUI.MyRichLabel.Clear ( )
inline

Definition at line 370 of file MyRichLabel.cs.

bool Sandbox.Graphics.GUI.MyRichLabel.Draw ( Vector2  position,
float  offset,
Vector2  drawSizeMax 
)
inline

Draws label

Parameters
positionTop-left position
offset
drawSizeMax
Returns

Definition at line 273 of file MyRichLabel.cs.

Member Data Documentation

MyGuiDrawAlignEnum Sandbox.Graphics.GUI.MyRichLabel.TextAlign = MyGuiDrawAlignEnum.HORISONTAL_LEFT_AND_VERTICAL_TOP

Definition at line 47 of file MyRichLabel.cs.

Property Documentation

float Sandbox.Graphics.GUI.MyRichLabel.MaxLineWidth
getset

Definition at line 377 of file MyRichLabel.cs.

int Sandbox.Graphics.GUI.MyRichLabel.NumberOfRows
get

Definition at line 50 of file MyRichLabel.cs.

bool Sandbox.Graphics.GUI.MyRichLabel.ShowTextShadow
getset

Definition at line 383 of file MyRichLabel.cs.

Vector2 Sandbox.Graphics.GUI.MyRichLabel.Size
get

Definition at line 341 of file MyRichLabel.cs.

Event Documentation

ScissorRectangleHandler Sandbox.Graphics.GUI.MyRichLabel.AdjustingScissorRectangle

Definition at line 19 of file MyRichLabel.cs.


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