Logo
Public Member Functions | Properties | List of all members
Yukar.Engine.WindowDrawer Class Reference

A class that draws a window type image More...

Public Member Functions

 WindowDrawer (Texture window)
 
void Update ()
 
void Draw (Vector2 position)
 
void Draw (Vector2 position, Vector2 windowSize)
 
void Draw (Vector2 position, Vector2 windowSize, Color windowColor)
 
void Draw (Vector2 position, Vector2 windowSize, Color windowColor, bool isSlider)
 
void Draw (Vector2 position, Vector2 windowSize, Color windowColor, bool isSlider, Rectangle? clipRectAngle=null)
 
void Draw (Vector2 position, Vector2 windowSize, Vector2 edgeScale, Color windowColor, bool isSlider=false, Rectangle? clipRectAngle=null)
 
void DrawString (string text, Vector2 position)
 
void DrawString (int fontId, string text, Vector2 position, Color color)
 
float GetScale (Vector2 windowSize)
 
Rectangle GetRectangle (Vector2 position, Vector2 size)
 
Vector2 GetRenderSize (Vector2 size)
 

Properties

Texture WindowResource [get]
 
int paddingLeft [get]
 
int paddingRight [get]
 
int paddingTop [get]
 
int paddingBottom [get]
 

Detailed Description

A class that draws a window type image

Constructor & Destructor Documentation

◆ WindowDrawer()

Yukar.Engine.WindowDrawer.WindowDrawer ( Texture  window)

Member Function Documentation

◆ Draw() [1/6]

void Yukar.Engine.WindowDrawer.Draw ( Vector2  position)

◆ Draw() [2/6]

void Yukar.Engine.WindowDrawer.Draw ( Vector2  position,
Vector2  windowSize 
)

◆ Draw() [3/6]

void Yukar.Engine.WindowDrawer.Draw ( Vector2  position,
Vector2  windowSize,
Color  windowColor 
)

◆ Draw() [4/6]

void Yukar.Engine.WindowDrawer.Draw ( Vector2  position,
Vector2  windowSize,
Color  windowColor,
bool  isSlider 
)

◆ Draw() [5/6]

void Yukar.Engine.WindowDrawer.Draw ( Vector2  position,
Vector2  windowSize,
Color  windowColor,
bool  isSlider,
Rectangle?  clipRectAngle = null 
)

◆ Draw() [6/6]

void Yukar.Engine.WindowDrawer.Draw ( Vector2  position,
Vector2  windowSize,
Vector2  edgeScale,
Color  windowColor,
bool  isSlider = false,
Rectangle?  clipRectAngle = null 
)

◆ DrawString() [1/2]

void Yukar.Engine.WindowDrawer.DrawString ( int  fontId,
string  text,
Vector2  position,
Color  color 
)

◆ DrawString() [2/2]

void Yukar.Engine.WindowDrawer.DrawString ( string  text,
Vector2  position 
)

◆ GetRectangle()

Rectangle Yukar.Engine.WindowDrawer.GetRectangle ( Vector2  position,
Vector2  size 
)

◆ GetRenderSize()

Vector2 Yukar.Engine.WindowDrawer.GetRenderSize ( Vector2  size)

◆ GetScale()

float Yukar.Engine.WindowDrawer.GetScale ( Vector2  windowSize)

◆ Update()

void Yukar.Engine.WindowDrawer.Update ( )

Property Documentation

◆ paddingBottom

int Yukar.Engine.WindowDrawer.paddingBottom
get

◆ paddingLeft

int Yukar.Engine.WindowDrawer.paddingLeft
get

◆ paddingRight

int Yukar.Engine.WindowDrawer.paddingRight
get

◆ paddingTop

int Yukar.Engine.WindowDrawer.paddingTop
get

◆ WindowResource

Texture Yukar.Engine.WindowDrawer.WindowResource
get