26 #if defined(_WIN32) && defined(HR_ENGINE_SHARED) 28 # define MR_DllDeclare __declspec( dllexport ) 30 # define MR_DllDeclare __declspec( dllimport ) 33 # define MR_DllDeclare 59 SUPER(disp, model), screenPos(0, 0), screenSize(0, 0) { }
72 const Vec2 &size = this->model.GetSize();
76 screenPos = this->display.LayoutUiPosition(
77 this->model.GetAlignedPos(w, h),
78 this->model.GetLayoutFlags());
80 if (!this->model.IsLayoutUnscaled()) {
81 double uiScale = this->display.GetUiScale();
Vec2 GetScreenPos() const override
Retrieve the screen-space position, if available.
Definition: SdlBoxView.h:63
Vec2 screenSize
Definition: SdlBoxView.h:91
void CalcScreenBounds()
Update the screen-space bounds from the UI-space bounds.
Definition: SdlBoxView.h:70
virtual ~SdlBoxView()
Definition: SdlBoxView.h:60
double y
Definition: Vec.h:45
Vec2 screenPos
Definition: SdlBoxView.h:90
Base class for FillBox views.
Definition: SdlBoxView.h:53
double x
Definition: Vec.h:44
SdlBoxView(SdlDisplay &disp, T &model)
Definition: SdlBoxView.h:58
Vec2 GetScreenSize() const override
Retrieve the screen-space size, if available.
Definition: SdlBoxView.h:64
Definition: Announcement.h:24
#define MR_DllDeclare
Definition: SdlBoxView.h:33
Base class for views that use SDL for rendering.
Definition: SdlView.h:54
SDL-based software rendering.
Definition: SdlDisplay.h:60