region: add dimension and value_type constants
for interoperability with vector and point classes
This commit is contained in:
parent
0db3188a49
commit
f7f84ef6b8
@ -34,6 +34,9 @@ namespace util {
|
||||
typedef T position_type;
|
||||
typedef T size_type;
|
||||
|
||||
static constexpr size_t dimension = 2u;
|
||||
typedef T value_type;
|
||||
|
||||
position_type x, y;
|
||||
size_type w, h;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user