21 inline int32_t&
operator[](
int index) { assert(index >= 0 && index < 2);
return (&
x)[index]; }
22 inline const int32_t&
operator[](
int index)
const { assert(index >= 0 && index < 2);
return (&
x)[index]; }
24 inline bool operator!=(
const int2& other)
const {
return !(*
this == other); }
37 int32_t
x = 0,
y = 0,
z = 0;
39 inline int32_t&
operator[](
int index) { assert(index >= 0 && index < 3);
return (&
x)[index]; }
40 inline const int32_t&
operator[](
int index)
const { assert(index >= 0 && index < 3);
return (&
x)[index]; }
42 inline bool operator!=(
const int3& other)
const {
return !(*
this == other); }
55 int32_t
x = 0,
y = 0,
z = 0,
w = 0;
57 inline int32_t&
operator[](
int index) { assert(index >= 0 && index < 4);
return (&
x)[index]; }
58 inline const int32_t&
operator[](
int index)
const { assert(index >= 0 && index < 4);
return (&
x)[index]; }
59 inline bool operator==(
const int4& other)
const {
return x == other.
x &&
y == other.
y &&
z == other.
z &&
w == other.
w; }
60 inline bool operator!=(
const int4& other)
const {
return !(*
this == other); }
75 uint32_t
x = 0,
y = 0;
77 inline uint32_t&
operator[](
int index) { assert(index >= 0 && index < 2);
return (&
x)[index]; }
78 inline const uint32_t&
operator[](
int index)
const { assert(index >= 0 && index < 2);
return (&
x)[index]; }
90 uint32_t
x = 0,
y = 0,
z = 0;
92 inline uint32_t&
operator[](
int index) { assert(index >= 0 && index < 3);
return (&
x)[index]; }
93 inline const uint32_t&
operator[](
int index)
const { assert(index >= 0 && index < 3);
return (&
x)[index]; }
105 uint32_t
x = 0,
y = 0,
z = 0,
w = 0;
107 inline uint32_t&
operator[](
int index) { assert(index >= 0 && index < 4);
return (&
x)[index]; }
108 inline const uint32_t&
operator[](
int index)
const { assert(index >= 0 && index < 4);
return (&
x)[index]; }
123 inline float&
operator[](
int index) { assert(index >= 0 && index < 2);
return (&
x)[index]; }
124 inline const float&
operator[](
int index)
const { assert(index >= 0 && index < 2);
return (&
x)[index]; }
150 float x = 0,
y = 0,
z = 0;
152 inline float&
operator[](
int index) { assert(index >= 0 && index < 3);
return (&
x)[index]; }
153 inline const float&
operator[](
int index)
const { assert(index >= 0 && index < 3);
return (&
x)[index]; }
174 float x = 0,
y = 0,
z = 0,
w = 0;
176 inline float&
operator[](
int index) { assert(index >= 0 && index < 4);
return (&
x)[index]; }
177 inline const float&
operator[](
int index)
const { assert(index >= 0 && index < 4);
return (&
x)[index]; }
197 return float4{
x * scale,
y * scale,
z * scale,
w * scale};
206 inline const float2&
operator[](
int index)
const { assert(index >= 0 && index < 2);
return (&
r0)[index]; }
222 inline const float3&
operator[](
int index)
const { assert(index >= 0 && index < 2);
return (&
r0)[index]; }
231 return r0.
x == 1.0f &&
r0.
y == 0.0f &&
r0.
z == 0.0f &&
232 r1.
x == 0.0f &&
r1.
y == 1.0f &&
r1.
z == 0.0f;
239 inline static float3x2 Scale(
int2 scale) {
return { { (float)scale.
x, 0, 0 }, { 0, (float)scale.
y, 0 } }; }
240 inline static float3x2 Scale(
int x,
int y) {
return { { (float)x, 0, 0 }, { 0, (float)y, 0 } }; }
241 inline static float3x2 Scale(
int s) {
return { { (float)s, 0, 0 }, { 0, (float)s, 0 } }; }
242 inline static float3x2 Translate(
int2 translation) {
return { { 1, 0, (float)translation.
x }, { 0, 1, (float)translation.
y } }; }
243 inline static float3x2 Translate(
int x,
int y) {
return { { 1, 0, (float)x }, { 0, 1, (float)y } }; }
246 inline static float3x2 Scale(
float x,
float y) {
return { { x, 0, 0 }, { 0, y, 0 } }; }
247 inline static float3x2 Scale(
float s) {
return { { s, 0, 0 }, { 0, s, 0 } }; }
259 float4 r0 =
float4{1,0,0,0},
r1 =
float4{0,1,0,0},
r2 = float4{0,0,1,0},
r3 = float4{0,0,0,1};
262 inline const float4&
operator[](
int index)
const { assert(index >= 0 && index < 4);
return (&
r0)[index]; }
279 inline byte&
operator[](
int index) { assert(index >= 0 && index < 2);
return (&
x)[index]; }
280 inline const byte&
operator[](
int index)
const { assert(index >= 0 && index < 2);
return (&
x)[index]; }
290 inline byte&
operator[](
int index) { assert(index >= 0 && index < 3);
return (&
x)[index]; }
291 inline const byte&
operator[](
int index)
const { assert(index >= 0 && index < 3);
return (&
x)[index]; }
299 byte x = 0,
y = 0,
z = 0,
w = 0;
301 inline byte&
operator[](
int index) { assert(index >= 0 && index < 4);
return (&
x)[index]; }
302 inline const byte&
operator[](
int index)
const { assert(index >= 0 && index < 4);
return (&
x)[index]; }
315 inline short&
operator[](
int index) { assert(index >= 0 && index < 2);
return (&
x)[index]; }
316 inline const short&
operator[](
int index)
const { assert(index >= 0 && index < 2);
return (&
x)[index]; }
324 short x = 0,
y = 0,
z = 0;
326 inline short&
operator[](
int index) { assert(index >= 0 && index < 3);
return (&
x)[index]; }
327 inline const short&
operator[](
int index)
const { assert(index >= 0 && index < 3);
return (&
x)[index]; }
335 short x = 0,
y = 0,
z = 0,
w = 0;
337 inline short&
operator[](
int index) { assert(index >= 0 && index < 4);
return (&
x)[index]; }
338 inline const short&
operator[](
int index)
const { assert(index >= 0 && index < 4);
return (&
x)[index]; }
353 inline const ushort&
operator[](
int index)
const { assert(index >= 0 && index < 2);
return (&
x)[index]; }
364 inline const ushort&
operator[](
int index)
const { assert(index >= 0 && index < 3);
return (&
x)[index]; }
375 inline const ushort&
operator[](
int index)
const { assert(index >= 0 && index < 4);
return (&
x)[index]; }
384 byte r = 0,
g = 0,
b = 0,
a = 0;
386 inline byte&
operator[](
int index) { assert(index >= 0 && index < 4);
return (&
r)[index]; }
387 inline const byte&
operator[](
int index)
const { assert(index >= 0 && index < 4);
return (&
r)[index]; }
395 float r = 0,
g = 0,
b = 0,
a = 0;
397 inline float&
operator[](
int index) { assert(index >= 0 && index < 4);
return (&
r)[index]; }
398 inline const float&
operator[](
int index)
const { assert(index >= 0 && index < 4);
return (&
r)[index]; }
409 struct { int32_t
x,
y,
w,
h; };
415 inline int32_t
Min(
int axis)
const {
return position[axis]; }
416 inline int32_t
Max(
int axis)
const {
return position[axis] + size[axis]; }
419 inline int2 Max()
const {
return position + size; }
421 inline int2 Center()
const {
return { x + w / 2, y + h / 2 }; }
431 inline bool operator==(
const IntRect& other)
const {
return x == other.x && y == other.y && w == other.w && h == other.h; }
455 const int32_t ax2 = a.x + (a.w > 0 ? a.w : 0), ay2 = a.y + (a.h > 0 ? a.h : 0);
456 const int32_t bx2 = b.x + (b.w > 0 ? b.w : 0), by2 = b.y + (b.h > 0 ? b.h : 0);
457 const int32_t x = a.x > b.x ? a.x : b.x, y = a.y > b.y ? a.y : b.y;
458 const int32_t w = (ax2 < bx2 ? ax2 : bx2) - x, h = (ay2 < by2 ? ay2 : by2) - y;
459 return IntRect{ x, y, w > 0 ? w : 0, h > 0 ? h : 0 };
465 const int32_t ax2 = a.x + (a.w > 0 ? a.w : 0), ay2 = a.y + (a.h > 0 ? a.h : 0);
466 const int32_t bx2 = b.x + (b.w > 0 ? b.w : 0), by2 = b.y + (b.h > 0 ? b.h : 0);
467 const int32_t x = a.x < b.x ? a.x : b.x, y = a.y < b.y ? a.y : b.y;
468 const int32_t w = (ax2 > bx2 ? ax2 : bx2) - x, h = (ay2 > by2 ? ay2 : by2) - y;
469 return IntRect{ x, y, w > 0 ? w : 0, h > 0 ? h : 0 };
void SetSteadyClockSource(SteadyClockSource source)
Makes SteadyClockNowNanos read source, e.g.
unsigned short ushort
Definition gui_base_types.h:346
float HalfToFloat(uint16_t value)
unsigned char byte
Definition gui_base_types.h:273
std::function< void()> OnGuiFunc
Definition gui_base_types.h:13
int64_t(*)() SteadyClockSource
Where SteadyClockNowNanos reads the time; must never go backwards.
Definition gui_base_types.h:490
int64_t SteadyClockNowNanos()
Monotonic steady_clock time in nanoseconds; a plain int64_t keeps <chrono> out of widely-included hea...
uint16_t FloatToHalf(float value)
Definition gui_logging.h:24
Definition gui_base_types.h:406
IntRect operator-(const int2 &other) const
Definition gui_base_types.h:435
int2 Min() const
Definition gui_base_types.h:418
IntRect Transform(const float3x2 &m) const
The axis-aligned bounding rect of this rect transformed by m.
int2 MiddleLeft() const
Definition gui_base_types.h:425
IntRect Transform(int2 offset, const float3x2 &m) const
IntRect Inflate(int32_t t, int32_t r, int32_t b, int32_t l) const
Definition gui_base_types.h:441
IntRect Union(IntRect b) const
Definition gui_base_types.h:471
int32_t Min(int axis) const
Definition gui_base_types.h:415
IntRect Deflate(int32_t n) const
Definition gui_base_types.h:450
int32_t Max(int axis) const
Definition gui_base_types.h:416
static IntRect Union(IntRect a, IntRect b)
Definition gui_base_types.h:463
static IntRect Inflate(IntRect a, int32_t n)
bool Contains(int2 p) const
Definition gui_base_types.h:413
int2 Max() const
Definition gui_base_types.h:419
int2 Center() const
Definition gui_base_types.h:421
int2 BottomCenter() const
Definition gui_base_types.h:428
int2 TopCenter() const
Definition gui_base_types.h:423
IntRect Transform(IntRect parentRect, const float3x2 &m) const
IntRect Inflate(int32_t n) const
Definition gui_base_types.h:444
IntRect & operator+=(const int2 &other)
Definition gui_base_types.h:437
static IntRect Deflate(IntRect a, int32_t n)
bool operator==(const IntRect &other) const
Definition gui_base_types.h:431
IntRect Deflate(int32_t t, int32_t r, int32_t b, int32_t l) const
Definition gui_base_types.h:447
static IntRect Intersection(IntRect a, IntRect b)
Definition gui_base_types.h:453
static IntRect Deflate(IntRect a, int32_t t, int32_t r, int32_t b, int32_t l)
static IntRect Inflate(IntRect a, int32_t t, int32_t r, int32_t b, int32_t l)
int2 BottomRight() const
Definition gui_base_types.h:429
int2 MiddleRight() const
Definition gui_base_types.h:426
int2 TopLeft() const
Definition gui_base_types.h:422
int2 BottomLeft() const
Definition gui_base_types.h:427
IntRect operator+(const int2 &other) const
Definition gui_base_types.h:434
IntRect Intersection(IntRect b) const
Definition gui_base_types.h:461
IntRect & operator-=(const int2 &other)
Definition gui_base_types.h:438
int2 TopRight() const
Definition gui_base_types.h:424
bool operator!=(const IntRect &other) const
Definition gui_base_types.h:432
bool IsEmpty() const
Definition gui_base_types.h:473
Definition gui_base_types.h:276
byte & operator[](int index)
Definition gui_base_types.h:279
const byte & operator[](int index) const
Definition gui_base_types.h:280
bool operator==(const byte2 &other) const
Definition gui_base_types.h:282
bool operator!=(const byte2 &other) const
Definition gui_base_types.h:283
byte x
Definition gui_base_types.h:277
byte y
Definition gui_base_types.h:277
Definition gui_base_types.h:287
const byte & operator[](int index) const
Definition gui_base_types.h:291
bool operator==(const byte3 &other) const
Definition gui_base_types.h:293
byte & operator[](int index)
Definition gui_base_types.h:290
byte z
Definition gui_base_types.h:288
byte y
Definition gui_base_types.h:288
byte x
Definition gui_base_types.h:288
bool operator!=(const byte3 &other) const
Definition gui_base_types.h:294
Definition gui_base_types.h:298
const byte & operator[](int index) const
Definition gui_base_types.h:302
byte z
Definition gui_base_types.h:299
byte & operator[](int index)
Definition gui_base_types.h:301
bool operator==(const byte4 &other) const
Definition gui_base_types.h:304
byte x
Definition gui_base_types.h:299
byte w
Definition gui_base_types.h:299
bool operator!=(const byte4 &other) const
Definition gui_base_types.h:305
byte y
Definition gui_base_types.h:299
Definition gui_base_types.h:383
bool operator==(const color4b &other) const
Definition gui_base_types.h:389
const byte & operator[](int index) const
Definition gui_base_types.h:387
byte & operator[](int index)
Definition gui_base_types.h:386
byte b
Definition gui_base_types.h:384
byte g
Definition gui_base_types.h:384
byte a
Definition gui_base_types.h:384
bool operator!=(const color4b &other) const
Definition gui_base_types.h:390
byte r
Definition gui_base_types.h:384
Definition gui_base_types.h:394
const float & operator[](int index) const
Definition gui_base_types.h:398
float b
Definition gui_base_types.h:395
float r
Definition gui_base_types.h:395
bool operator!=(const color4f &other) const
Definition gui_base_types.h:401
float & operator[](int index)
Definition gui_base_types.h:397
bool operator==(const color4f &other) const
Definition gui_base_types.h:400
float a
Definition gui_base_types.h:395
float g
Definition gui_base_types.h:395
Definition gui_base_types.h:120
float2 & operator*=(float other)
Definition gui_base_types.h:141
float2 operator-() const
Definition gui_base_types.h:126
float & operator[](int index)
Definition gui_base_types.h:123
float2 & operator+=(const float2 &other)
Definition gui_base_types.h:137
float y
Definition gui_base_types.h:121
float2 & operator-=(const int2 &other)
Definition gui_base_types.h:131
bool operator!=(const float2 &other) const
Definition gui_base_types.h:145
float2 & operator/=(float other)
Definition gui_base_types.h:142
float2 operator/(float other) const
Definition gui_base_types.h:140
bool operator==(const float2 &other) const
Definition gui_base_types.h:144
const float & operator[](int index) const
Definition gui_base_types.h:124
float2 & operator+=(const int2 &other)
Definition gui_base_types.h:132
float2 & operator-=(const float2 &other)
Definition gui_base_types.h:136
float2 operator*(float other) const
Definition gui_base_types.h:139
float2 operator+() const
Definition gui_base_types.h:127
float x
Definition gui_base_types.h:121
Definition gui_base_types.h:202
bool operator==(const float2x2 &other) const
Definition gui_base_types.h:208
const float2 & operator[](int index) const
Definition gui_base_types.h:206
float2 r1
Definition gui_base_types.h:203
float2 r0
Definition gui_base_types.h:203
float2 & operator[](int index)
Definition gui_base_types.h:205
float2x2 operator*(float2x2 const &m2)
bool operator!=(const float2x2 &other) const
Definition gui_base_types.h:209
Definition gui_base_types.h:149
float3 operator/(float other) const
Definition gui_base_types.h:164
float y
Definition gui_base_types.h:150
float x
Definition gui_base_types.h:150
float3 operator+() const
Definition gui_base_types.h:156
bool operator==(const float3 &other) const
Definition gui_base_types.h:168
float3 & operator+=(const float3 &other)
Definition gui_base_types.h:161
float3 operator*(float other) const
Definition gui_base_types.h:163
float3 & operator-=(const float3 &other)
Definition gui_base_types.h:160
bool operator!=(const float3 &other) const
Definition gui_base_types.h:169
float3 & operator*=(float other)
Definition gui_base_types.h:165
float3 & operator/=(float other)
Definition gui_base_types.h:166
float z
Definition gui_base_types.h:150
float & operator[](int index)
Definition gui_base_types.h:152
float3 operator-() const
Definition gui_base_types.h:155
const float & operator[](int index) const
Definition gui_base_types.h:153
2D affine transform matrix (2 rows x 3 columns): x' = r0.x*x + r0.y*y + r0.z y' = r1....
Definition gui_base_types.h:218
float2 TransformVector(float2 p) const
bool operator!=(const float3x2 &other) const
Definition gui_base_types.h:225
float3x2 operator*(const float3x2 &b) const
static float3x2 Translate(float x, float y)
Definition gui_base_types.h:249
float3 & operator[](int index)
Definition gui_base_types.h:221
float3 r1
Definition gui_base_types.h:219
float2 TransformPoint(float2 p) const
const float3 & operator[](int index) const
Definition gui_base_types.h:222
static float3x2 Translate(float2 translation)
Definition gui_base_types.h:248
bool operator==(const float3x2 &other) const
Definition gui_base_types.h:224
static float3x2 Scale(float2 scale)
Definition gui_base_types.h:245
static constexpr float3x2 Identity()
Definition gui_base_types.h:227
static float3x2 Scale(float x, float y)
Definition gui_base_types.h:246
static float3x2 Scale(int s)
Definition gui_base_types.h:241
bool IsIdentity() const
Definition gui_base_types.h:229
static float3x2 Scale(float s)
Definition gui_base_types.h:247
static float3x2 Translate(int2 translation)
Definition gui_base_types.h:242
float3 r0
Definition gui_base_types.h:219
static float3x2 Translate(int x, int y)
Definition gui_base_types.h:243
static float3x2 Scale(int2 scale)
Definition gui_base_types.h:239
static float3x2 Scale(int x, int y)
Definition gui_base_types.h:240
Definition gui_base_types.h:173
float4 & operator*=(float other)
Definition gui_base_types.h:189
float4 operator+() const
Definition gui_base_types.h:180
float4 & operator+=(const float4 &other)
Definition gui_base_types.h:185
float4 operator/(float other) const
Definition gui_base_types.h:188
const float & operator[](int index) const
Definition gui_base_types.h:177
float y
Definition gui_base_types.h:174
float4 operator-() const
Definition gui_base_types.h:179
float x
Definition gui_base_types.h:174
float z
Definition gui_base_types.h:174
float4 & operator/=(float other)
Definition gui_base_types.h:190
float & operator[](int index)
Definition gui_base_types.h:176
float4 operator*(float other) const
Definition gui_base_types.h:187
float w
Definition gui_base_types.h:174
float4 & operator-=(const float4 &other)
Definition gui_base_types.h:184
float4 operator*(float const scale)
Definition gui_base_types.h:195
bool operator==(const float4 &other) const
Definition gui_base_types.h:192
bool operator!=(const float4 &other) const
Definition gui_base_types.h:193
Definition gui_base_types.h:258
float4 r3
Definition gui_base_types.h:259
bool operator!=(const float4x4 &other) const
Definition gui_base_types.h:265
float4 & operator[](int index)
Definition gui_base_types.h:261
float4 r1
Definition gui_base_types.h:259
float4 r2
Definition gui_base_types.h:259
float4 r0
Definition gui_base_types.h:259
float4x4 operator*(float4x4 const &m2) const
bool operator==(const float4x4 &other) const
Definition gui_base_types.h:264
const float4 & operator[](int index) const
Definition gui_base_types.h:262
Integer 2D vector.
Definition gui_base_types.h:18
int32_t x
Definition gui_base_types.h:19
int32_t & operator[](int index)
Definition gui_base_types.h:21
int2 & operator-=(const int2 &other)
Definition gui_base_types.h:31
bool operator==(const int2 &other) const
Definition gui_base_types.h:23
int2 operator+() const
Definition gui_base_types.h:27
int32_t y
Definition gui_base_types.h:19
bool operator!=(const int2 &other) const
Definition gui_base_types.h:24
int2 & operator+=(const int2 &other)
Definition gui_base_types.h:32
const int32_t & operator[](int index) const
Definition gui_base_types.h:22
int2 operator-() const
Definition gui_base_types.h:26
Definition gui_base_types.h:36
int32_t y
Definition gui_base_types.h:37
int3 & operator+=(const int3 &other)
Definition gui_base_types.h:50
int3 operator+() const
Definition gui_base_types.h:45
int3 & operator-=(const int3 &other)
Definition gui_base_types.h:49
int32_t & operator[](int index)
Definition gui_base_types.h:39
int3 operator-() const
Definition gui_base_types.h:44
int32_t x
Definition gui_base_types.h:37
bool operator!=(const int3 &other) const
Definition gui_base_types.h:42
int32_t z
Definition gui_base_types.h:37
bool operator==(const int3 &other) const
Definition gui_base_types.h:41
const int32_t & operator[](int index) const
Definition gui_base_types.h:40
Definition gui_base_types.h:54
bool operator==(const int4 &other) const
Definition gui_base_types.h:59
int32_t w
Definition gui_base_types.h:55
int4 operator+() const
Definition gui_base_types.h:63
int32_t x
Definition gui_base_types.h:55
int32_t y
Definition gui_base_types.h:55
int4 operator-() const
Definition gui_base_types.h:62
int32_t & operator[](int index)
Definition gui_base_types.h:57
bool operator!=(const int4 &other) const
Definition gui_base_types.h:60
const int32_t & operator[](int index) const
Definition gui_base_types.h:58
int32_t z
Definition gui_base_types.h:55
int4 & operator+=(const int4 &other)
Definition gui_base_types.h:68
int4 & operator-=(const int4 &other)
Definition gui_base_types.h:67
Definition gui_base_types.h:312
short x
Definition gui_base_types.h:313
bool operator!=(const short2 &other) const
Definition gui_base_types.h:319
short y
Definition gui_base_types.h:313
bool operator==(const short2 &other) const
Definition gui_base_types.h:318
short & operator[](int index)
Definition gui_base_types.h:315
const short & operator[](int index) const
Definition gui_base_types.h:316
Definition gui_base_types.h:323
short & operator[](int index)
Definition gui_base_types.h:326
const short & operator[](int index) const
Definition gui_base_types.h:327
short z
Definition gui_base_types.h:324
short x
Definition gui_base_types.h:324
short y
Definition gui_base_types.h:324
bool operator!=(const short3 &other) const
Definition gui_base_types.h:330
bool operator==(const short3 &other) const
Definition gui_base_types.h:329
Definition gui_base_types.h:334
short x
Definition gui_base_types.h:335
bool operator==(const short4 &other) const
Definition gui_base_types.h:340
short z
Definition gui_base_types.h:335
short w
Definition gui_base_types.h:335
short y
Definition gui_base_types.h:335
bool operator!=(const short4 &other) const
Definition gui_base_types.h:341
const short & operator[](int index) const
Definition gui_base_types.h:338
short & operator[](int index)
Definition gui_base_types.h:337
Definition gui_base_types.h:74
uint2 operator-(const uint2 &other) const
Definition gui_base_types.h:82
uint2 & operator-=(const uint2 &other)
Definition gui_base_types.h:84
uint32_t x
Definition gui_base_types.h:75
uint32_t y
Definition gui_base_types.h:75
uint2 operator+(const uint2 &other) const
Definition gui_base_types.h:83
bool operator==(const uint2 &other) const
Definition gui_base_types.h:79
uint32_t & operator[](int index)
Definition gui_base_types.h:77
const uint32_t & operator[](int index) const
Definition gui_base_types.h:78
bool operator!=(const uint2 &other) const
Definition gui_base_types.h:80
uint2 & operator+=(const uint2 &other)
Definition gui_base_types.h:85
Definition gui_base_types.h:89
bool operator!=(const uint3 &other) const
Definition gui_base_types.h:95
const uint32_t & operator[](int index) const
Definition gui_base_types.h:93
bool operator==(const uint3 &other) const
Definition gui_base_types.h:94
uint32_t z
Definition gui_base_types.h:90
uint32_t y
Definition gui_base_types.h:90
uint32_t x
Definition gui_base_types.h:90
uint3 operator-(const uint3 &other) const
Definition gui_base_types.h:97
uint3 & operator-=(const uint3 &other)
Definition gui_base_types.h:99
uint3 operator+(const uint3 &other) const
Definition gui_base_types.h:98
uint32_t & operator[](int index)
Definition gui_base_types.h:92
uint3 & operator+=(const uint3 &other)
Definition gui_base_types.h:100
Definition gui_base_types.h:104
uint4 & operator+=(const uint4 &other)
Definition gui_base_types.h:115
uint4 operator+(const uint4 &other) const
Definition gui_base_types.h:113
const uint32_t & operator[](int index) const
Definition gui_base_types.h:108
uint32_t y
Definition gui_base_types.h:105
bool operator!=(const uint4 &other) const
Definition gui_base_types.h:110
uint32_t z
Definition gui_base_types.h:105
uint4 & operator-=(const uint4 &other)
Definition gui_base_types.h:114
uint32_t & operator[](int index)
Definition gui_base_types.h:107
bool operator==(const uint4 &other) const
Definition gui_base_types.h:109
uint32_t x
Definition gui_base_types.h:105
uint4 operator-(const uint4 &other) const
Definition gui_base_types.h:112
uint32_t w
Definition gui_base_types.h:105
Definition gui_base_types.h:349
ushort & operator[](int index)
Definition gui_base_types.h:352
ushort x
Definition gui_base_types.h:350
const ushort & operator[](int index) const
Definition gui_base_types.h:353
ushort y
Definition gui_base_types.h:350
bool operator==(const ushort2 &other) const
Definition gui_base_types.h:355
bool operator!=(const ushort2 &other) const
Definition gui_base_types.h:356
Definition gui_base_types.h:360
ushort y
Definition gui_base_types.h:361
const ushort & operator[](int index) const
Definition gui_base_types.h:364
ushort x
Definition gui_base_types.h:361
bool operator!=(const ushort3 &other) const
Definition gui_base_types.h:367
ushort z
Definition gui_base_types.h:361
bool operator==(const ushort3 &other) const
Definition gui_base_types.h:366
ushort & operator[](int index)
Definition gui_base_types.h:363
Definition gui_base_types.h:371
ushort y
Definition gui_base_types.h:372
bool operator!=(const ushort4 &other) const
Definition gui_base_types.h:378
const ushort & operator[](int index) const
Definition gui_base_types.h:375
ushort & operator[](int index)
Definition gui_base_types.h:374
ushort x
Definition gui_base_types.h:372
ushort w
Definition gui_base_types.h:372
bool operator==(const ushort4 &other) const
Definition gui_base_types.h:377
ushort z
Definition gui_base_types.h:372