28 #if defined(_WIN32) && defined(HR_ENGINE_SHARED) 30 # define MR_DllDeclare __declspec( dllexport ) 32 # define MR_DllDeclare __declspec( dllimport ) 35 # define MR_DllDeclare 60 SIZE = SUPER::Props::NEXT_,
67 SUPER(layoutFlags), size(size) { }
81 virtual void AdjustHeight(
double h);
82 virtual void AdjustWidth(
double w);
constexpr Vec3 Promote(double z=0) const noexcept
Definition: Vec.h:206
std::enable_if< MPL::HasSetSize< T >::value, void >::type SetSize(T &widget, double w, double h)
Definition: MPL.h:60
Base class for UI (2D) components.
Definition: UiViewModel.h:56
Base class for low-level bounded widgets.
Definition: Box.h:51
First index for subclasses.
Definition: Box.h:61
MR_UInt32 uiLayoutFlags_t
Definition: UiLayoutFlags.h:53
virtual Vec3 Measure()
Calculate the size of the component.
Definition: Box.h:85
virtual ~Box()
Definition: Box.h:68
Vec2 size
Definition: Box.h:88
void SetSize(double w, double h)
Convenience function for SetSize(const Vec2&).
Definition: Box.h:78
Box(const Vec2 &size, uiLayoutFlags_t layoutFlags=0)
Definition: Box.h:66
#define MR_DllDeclare
Definition: Box.h:35
const Vec2 & GetSize() const
Retrieve the size of the box.
Definition: Box.h:75
static const Vec2 SIZE
Definition: ProfileEditScene.cpp:90
Definition: Announcement.h:24