yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gui::CanvasGeometry Struct Reference

Canvas geometry calculated per-frame. More...

#include <canvas_state.h>

Public Member Functions

 CanvasGeometry ()
 

Public Attributes

ImVec2 canvas_p0
 
ImVec2 canvas_p1
 
ImVec2 canvas_sz
 
ImVec2 scaled_size
 
ImVec2 scrolling
 

Detailed Description

Canvas geometry calculated per-frame.

Represents the position, size, and scroll state of a canvas in both screen space and scaled space. Used by rendering functions to correctly position elements.

Definition at line 18 of file canvas_state.h.

Constructor & Destructor Documentation

◆ CanvasGeometry()

yaze::gui::CanvasGeometry::CanvasGeometry ( )
inline

Definition at line 25 of file canvas_state.h.

Member Data Documentation

◆ canvas_p0

◆ canvas_p1

◆ canvas_sz

◆ scaled_size

◆ scrolling


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