1#ifndef SETTINGS_COMMON_H
2#define SETTINGS_COMMON_H
11using SceneSize = QPair<unsigned short, unsigned short>;
16using FigureSize = QPair<unsigned short, unsigned short>;
28 static constexpr unsigned short width = value.first;
33 static constexpr unsigned short height = value.second;
39using Position = QPair<unsigned short, unsigned short>;
51 static constexpr unsigned short x = value.first;
56 static constexpr unsigned short y = value.second;
Template struct to extract width and height from a QPair size value.
Definition settings_common.h:24
static constexpr unsigned short width
Width component of the size.
Definition settings_common.h:28
static constexpr unsigned short height
Height component of the size.
Definition settings_common.h:33
Template struct to extract x and y coordinates from a QPair position value.
Definition settings_common.h:47
static constexpr unsigned short y
Y coordinate.
Definition settings_common.h:56
static constexpr unsigned short x
X coordinate.
Definition settings_common.h:51