Falco Engine 3.9.0.1 (beta)
FalcoEngine.GUI Class Reference

Public Types

enum  ImageType { Simple , Sliced }
 ImageType enum More...
 
enum  TextHorizontalAlignment { Left , Center , Right }
 TextHorizontalAlignment enum More...
 
enum  TextVerticalAlignment { Top , Middle , Bottom }
 TextVerticalAlignment enum More...
 
enum  TextWordWrap { None , WordWrap , BreakWord }
 TextWordWrap enum More...
 

Static Public Member Functions

static void Text (string text, Rect rect)
 Draw text More...
 
static void Text (string text, Rect rect, Font font)
 Draw text with font More...
 
static void Text (string text, Rect rect, Font font, float fontSize)
 Draw text with font and font size More...
 
static void Text (string text, Rect rect, Font font, float fontSize, float fontResolution)
 Draw text with font, font size and font resolution More...
 
static void Text (string text, Rect rect, Font font, float fontSize, float fontResolution, float lineSpacing)
 Draw text with font, font size, font resolution and line spacing More...
 
static void Text (string text, Rect rect, Font font, float fontSize, float fontResolution, float lineSpacing, TextWordWrap wordWrap)
 Draw text with font, font size, font resolution, line spacing and word wrap More...
 
static void Text (string text, Rect rect, Font font, float fontSize, float fontResolution, float lineSpacing, TextWordWrap wordWrap, TextHorizontalAlignment horizontalAlignment, TextVerticalAlignment verticalAlignment)
 Draw text with font, font size, font resolution, line spacing, word wrap, horizontal alignment and vertical alignment More...
 
static void Text (string text, Rect rect, Font font, float fontSize, float fontResolution, float lineSpacing, TextWordWrap wordWrap, TextHorizontalAlignment horizontalAlignment, TextVerticalAlignment verticalAlignment, Color color)
 Draw text with font, font size, font resolution, line spacing, word wrap, horizontal alignment, vertical alignment and text color More...
 
static void Text (string text, Rect rect, float fontSize, Color color)
 Draw text with font size and text color More...
 
static void Text (string text, Rect rect, Font font, float fontSize, Color color)
 Draw text with font, font size and text color More...
 
static void Text (string text, Rect rect, Font font, float fontSize, float fontResolution, Color color)
 Draw text with font, font size, font resolution and text color More...
 
static void Image (Texture texture, Rect rect)
 Draw image More...
 
static void Image (Texture texture, Rect rect, Color color)
 Draw image with color tint More...
 
static void Image (Texture texture, Rect rect, Color color, ImageType imageType)
 Draw image with color tint and image type More...
 
static bool Button (int id, Rect rect, bool interactable)
 Draw enabled or disabled button More...
 
static bool Button (int id, Rect rect, Color normalColor, Color hoverColor, Color activeColor, Color disabledColor, bool interactable)
 Draw enabled or disabled button with tint colors More...
 
static bool Button (int id, Rect rect, Color normalColor, Color hoverColor, Color activeColor, Color disabledColor, Texture normalTexture, Texture hoverTexture, Texture activeTexture, Texture disabledTexture, ImageType imageType, bool interactable)
 Draw enabled or disabled button with textures and tint colors More...
 
static bool Button (int id, Rect rect, Texture normalTexture, Texture hoverTexture, Texture activeTexture, Texture disabledTexture, ImageType imageType, bool interactable)
 Draw enabled or disabled button with textures More...
 
static bool Button (int id, Rect rect, Color normalColor, Color hoverColor, Color activeColor, Color disabledColor, Texture texture, ImageType imageType, bool interactable)
 Draw enabled or disabled button with one texture and tint colors More...
 

Detailed Description

Definition at line 7 of file GUI.cs.

Member Enumeration Documentation

◆ ImageType

ImageType enum

Enumerator
Simple 
Sliced 

Definition at line 12 of file GUI.cs.

◆ TextHorizontalAlignment

TextHorizontalAlignment enum

Enumerator
Left 
Center 
Right 

Definition at line 21 of file GUI.cs.

◆ TextVerticalAlignment

TextVerticalAlignment enum

Enumerator
Top 
Middle 
Bottom 

Definition at line 31 of file GUI.cs.

◆ TextWordWrap

TextWordWrap enum

Enumerator
None 
WordWrap 
BreakWord 

Definition at line 41 of file GUI.cs.

Member Function Documentation

◆ Button() [1/5]

static bool FalcoEngine.GUI.Button ( int  id,
Rect  rect,
bool  interactable 
)
static

Draw enabled or disabled button

Parameters
idButton id
rectRect on the screen
interactableButton interactability
Returns

Definition at line 245 of file GUI.cs.

◆ Button() [2/5]

static bool FalcoEngine.GUI.Button ( int  id,
Rect  rect,
Color  normalColor,
Color  hoverColor,
Color  activeColor,
Color  disabledColor,
bool  interactable 
)
static

Draw enabled or disabled button with tint colors

Parameters
idButton id
rectRect on the screen
normalColorNormal color
hoverColorHover color
activeColorActive color
disabledColorDisabled color
interactableButton interactability
Returns

Definition at line 266 of file GUI.cs.

◆ Button() [3/5]

static bool FalcoEngine.GUI.Button ( int  id,
Rect  rect,
Color  normalColor,
Color  hoverColor,
Color  activeColor,
Color  disabledColor,
Texture  normalTexture,
Texture  hoverTexture,
Texture  activeTexture,
Texture  disabledTexture,
ImageType  imageType,
bool  interactable 
)
static

Draw enabled or disabled button with textures and tint colors

Parameters
idButton id
rectRect on the screen
normalColorNormal color
hoverColorHover color
activeColorActive color
disabledColorDisabled color
normalTextureNormal texture
hoverTextureHover texture
activeTextureActive texture
disabledTextureDisabled texture
imageTypeImage type
interactableButton interactability
Returns

Definition at line 287 of file GUI.cs.

◆ Button() [4/5]

static bool FalcoEngine.GUI.Button ( int  id,
Rect  rect,
Color  normalColor,
Color  hoverColor,
Color  activeColor,
Color  disabledColor,
Texture  texture,
ImageType  imageType,
bool  interactable 
)
static

Draw enabled or disabled button with one texture and tint colors

Parameters
idButton id
rectRect on the screen
normalColorNormal color
hoverColorHover color
activeColorActive color
disabledColorDisabled color
textureTexture
imageTypeImage type
interactableButton interactability
Returns

Definition at line 345 of file GUI.cs.

◆ Button() [5/5]

static bool FalcoEngine.GUI.Button ( int  id,
Rect  rect,
Texture  normalTexture,
Texture  hoverTexture,
Texture  activeTexture,
Texture  disabledTexture,
ImageType  imageType,
bool  interactable 
)
static

Draw enabled or disabled button with textures

Parameters
idButton id
rectRect on the screen
normalTextureNormal texture
hoverTextureHover texture
activeTextureActive texture
disabledTextureDisabled texture
imageTypeImage type
interactableButton interactability
Returns

Definition at line 315 of file GUI.cs.

◆ Image() [1/3]

static void FalcoEngine.GUI.Image ( Texture  texture,
Rect  rect 
)
static

Draw image

Parameters
textureTexture to draw
rectRect on the screen

Definition at line 209 of file GUI.cs.

◆ Image() [2/3]

static void FalcoEngine.GUI.Image ( Texture  texture,
Rect  rect,
Color  color 
)
static

Draw image with color tint

Parameters
textureTexture to draw
rectRect on the screen
colorColor tint

Definition at line 221 of file GUI.cs.

◆ Image() [3/3]

static void FalcoEngine.GUI.Image ( Texture  texture,
Rect  rect,
Color  color,
ImageType  imageType 
)
static

Draw image with color tint and image type

Parameters
textureTexture to draw
rectRect on the screen
colorColor tint
imageTypeImage type

Definition at line 233 of file GUI.cs.

◆ Text() [1/11]

static void FalcoEngine.GUI.Text ( string  text,
Rect  rect 
)
static

Draw text

Parameters
textText to draw
rectRect on the screen

Definition at line 53 of file GUI.cs.

◆ Text() [2/11]

static void FalcoEngine.GUI.Text ( string  text,
Rect  rect,
float  fontSize,
Color  color 
)
static

Draw text with font size and text color

Parameters
textText to draw
rectRect on the screen
fontSizeFont size
colorText color

Definition at line 172 of file GUI.cs.

◆ Text() [3/11]

static void FalcoEngine.GUI.Text ( string  text,
Rect  rect,
Font  font 
)
static

Draw text with font

Parameters
textText to draw
rectRect on the screen
fontFont

Definition at line 65 of file GUI.cs.

◆ Text() [4/11]

static void FalcoEngine.GUI.Text ( string  text,
Rect  rect,
Font  font,
float  fontSize 
)
static

Draw text with font and font size

Parameters
textText to draw
rectRect on the screen
fontFont
fontSizeFont size

Definition at line 78 of file GUI.cs.

◆ Text() [5/11]

static void FalcoEngine.GUI.Text ( string  text,
Rect  rect,
Font  font,
float  fontSize,
Color  color 
)
static

Draw text with font, font size and text color

Parameters
textText to draw
rectRect on the screen
fontFont
fontSizeFont size
colorText color

Definition at line 185 of file GUI.cs.

◆ Text() [6/11]

static void FalcoEngine.GUI.Text ( string  text,
Rect  rect,
Font  font,
float  fontSize,
float  fontResolution 
)
static

Draw text with font, font size and font resolution

Parameters
textText to draw
rectRect on the screen
fontFont
fontSizeFont size
fontResolutionFont resolution

Definition at line 92 of file GUI.cs.

◆ Text() [7/11]

static void FalcoEngine.GUI.Text ( string  text,
Rect  rect,
Font  font,
float  fontSize,
float  fontResolution,
Color  color 
)
static

Draw text with font, font size, font resolution and text color

Parameters
textText to draw
rectRect on the screen
fontFont
fontSizeFont size
fontResolutionFont resolution
colorText color

Definition at line 199 of file GUI.cs.

◆ Text() [8/11]

static void FalcoEngine.GUI.Text ( string  text,
Rect  rect,
Font  font,
float  fontSize,
float  fontResolution,
float  lineSpacing 
)
static

Draw text with font, font size, font resolution and line spacing

Parameters
textText to draw
rectRect on the screen
fontFont
fontSizeFont size
fontResolutionFont resolution
lineSpacingLine spacing

Definition at line 107 of file GUI.cs.

◆ Text() [9/11]

static void FalcoEngine.GUI.Text ( string  text,
Rect  rect,
Font  font,
float  fontSize,
float  fontResolution,
float  lineSpacing,
TextWordWrap  wordWrap 
)
static

Draw text with font, font size, font resolution, line spacing and word wrap

Parameters
textText to draw
rectRect on the screen
fontFont
fontSizeFont size
fontResolutionFont resolution
lineSpacingLine spacing
wordWrapWord wrap

Definition at line 123 of file GUI.cs.

◆ Text() [10/11]

static void FalcoEngine.GUI.Text ( string  text,
Rect  rect,
Font  font,
float  fontSize,
float  fontResolution,
float  lineSpacing,
TextWordWrap  wordWrap,
TextHorizontalAlignment  horizontalAlignment,
TextVerticalAlignment  verticalAlignment 
)
static

Draw text with font, font size, font resolution, line spacing, word wrap, horizontal alignment and vertical alignment

Parameters
textText to draw
rectRect on the screen
fontFont
fontSizeFont size
fontResolutionFont resolution
lineSpacingLine spacing
wordWrapWord wrap
horizontalAlignmentHorizontal alignment
verticalAlignmentVertical alignment

Definition at line 141 of file GUI.cs.

◆ Text() [11/11]

static void FalcoEngine.GUI.Text ( string  text,
Rect  rect,
Font  font,
float  fontSize,
float  fontResolution,
float  lineSpacing,
TextWordWrap  wordWrap,
TextHorizontalAlignment  horizontalAlignment,
TextVerticalAlignment  verticalAlignment,
Color  color 
)
static

Draw text with font, font size, font resolution, line spacing, word wrap, horizontal alignment, vertical alignment and text color

Parameters
textText to draw
rectRect on the screen
fontFont
fontSizeFont size
fontResolutionFont resolution
lineSpacingLine spacing
wordWrapWord wrap
horizontalAlignmentHorizontal alignment
verticalAlignmentVertical alignment
colorText color

Definition at line 160 of file GUI.cs.


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