|
TachyonUI 0.1.0
High-performance UI for building tools.
|
Integer 2D vector. More...
#include <gui_core/gui_base_types.h>
Public Member Functions | |
| int32_t & | operator[] (int index) |
| const int32_t & | operator[] (int index) const |
| bool | operator== (const int2 &other) const |
| bool | operator!= (const int2 &other) const |
| int2 | operator- () const |
| int2 | operator+ () const |
| int2 | operator- (const int2 &other) const |
| int2 | operator+ (const int2 &other) const |
| int2 & | operator-= (const int2 &other) |
| int2 & | operator+= (const int2 &other) |
Public Attributes | |
| int32_t | x |
| int32_t | y |
Integer 2D vector.
Trivial (no member initializers) so IntRect can overlay it in a union; initialize with {} to start at 0.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| int32_t tachyon::int2::x |
| int32_t tachyon::int2::y |