struct
MiriMargin
- Module
- Miri
- Header
#include "Miri/Core/MiriGeometry.h"- Namespace
Miri
Properties
| Type | Name | Description |
|---|---|---|
float | Left | Default 0.0f. |
float | Top | Default 0.0f. |
float | Right | Default 0.0f. |
float | Bottom | Default 0.0f. |
Constructors
| Signature | Name | Description |
|---|---|---|
MiriMargin() = default | MiriMargin | |
constexpr explicit MiriMargin(float uniform) : Left(uniform), Top(uniform), Righ… | MiriMargin | |
constexpr MiriMargin(float lr, float tb) : Left(lr), Top(tb), Right(lr), Bottom(… | MiriMargin | |
constexpr MiriMargin(float l, float t, float r, float b) : Left(l), Top(t), Righ… | MiriMargin |
Public functions
| Returns | Name | Description |
|---|---|---|
float | Horizontal | |
float | Vertical | |
MiriVec2 | TopLeft | |
MiriVec2 | GetSize | |
bool | operator== | |
bool | operator!= |
Function details
MiriMargin
C++
MiriMargin() = defaultMiriMargin
C++
constexpr explicit MiriMargin(float uniform) : Left(uniform), Top(uniform), Right(uniform), Bottom(uniform)MiriMargin
C++
constexpr MiriMargin(float lr, float tb) : Left(lr), Top(tb), Right(lr), Bottom(tb)MiriMargin
C++
constexpr MiriMargin(float l, float t, float r, float b) : Left(l), Top(t), Right(r), Bottom(b)Horizontal
C++
float Horizontal() constVertical
C++
float Vertical() constTopLeft
C++
MiriVec2 TopLeft() constGetSize
C++
MiriVec2 GetSize() constoperator==
C++
bool operator==(const MiriMargin& other) constoperator!=
C++
bool operator!=(const MiriMargin& other) constGenerated from Miri/Core/MiriGeometry.h via miri.json · Dec 5, 2026Version 1.1.0