Skip to content

Class LemonUI::Tools::GameScreen

ClassList > LemonUI > Tools > GameScreen

The screen of the game being rendered.

Public Static Properties

Type Name
property SizeF AbsoluteResolution
Gets the actual Screen resolution the game is being rendered at.
property float AspectRatio
The Aspect Ratio of the screen.
property PointF Cursor
The location of the cursor on screen between 0 and 1.

Public Static Functions

Type Name
bool IsCursorInArea (PointF pos, SizeF size)
Checks if the cursor is inside of the scaled area.
bool IsCursorInArea (float x, float y, float width, float height)
Checks if the cursor is inside of the scaled area.
void ShowCursorThisFrame ()
Shows the cursor during the current game frame.

Public Static Properties Documentation

property AbsoluteResolution

SizeF LemonUI.Tools.GameScreen.AbsoluteResolution;

property AspectRatio

float LemonUI.Tools.GameScreen.AspectRatio;

property Cursor

PointF LemonUI.Tools.GameScreen.Cursor;

Public Static Functions Documentation

function IsCursorInArea [1/2]

Checks if the cursor is inside of the scaled area.

static bool LemonUI::Tools::GameScreen::IsCursorInArea (
    PointF pos,
    SizeF size
) 

Parameters:

  • pos The scaled position.
  • size The scaled size of the area.

Returns:

true if the cursor is in the specified bounds, false otherwise.

function IsCursorInArea [2/2]

Checks if the cursor is inside of the scaled area.

static inline bool LemonUI::Tools::GameScreen::IsCursorInArea (
    float x,
    float y,
    float width,
    float height
) 

Parameters:

  • x The scaled X position.
  • y The scaled Y position.
  • width The scaled width of the area.
  • height The scaled height of the area.

Returns:

true if the cursor is in the specified bounds, false otherwise.

function ShowCursorThisFrame

static inline void LemonUI::Tools::GameScreen::ShowCursorThisFrame () 

The documentation for this class was generated from the following file repos/LemonUI/LemonUI/Tools/GameScreen.cs