11using namespace MaxOS::common;
12using namespace MaxOS::gui;
13using namespace MaxOS::drivers;
14using namespace MaxOS::drivers::peripherals;
35 m_position(left, top, width, height)
40Widget::~Widget() =
default;
88 child->m_parent =
this;
312CompositeWidget::CompositeWidget() =
default;
323:
Widget(left, top, width, height) {
327CompositeWidget::~CompositeWidget() =
default;
Draws pixels to the screen, and handles drawing lines, rectangles and circles.
Stores the left, top, width and height of a rectangle.
Type height
The height of the rectangle.
Type top
The top coordinate of the rectangle.
bool intersects(const Rectangle< Type > &)
Rectangle< Type > intersection(const Rectangle< Type > &)
Type left
The left coordinate of the rectangle.
Vector< Rectangle< Type > > subtract(const Rectangle< Type > &)
bool contains(const Rectangle< Type > &)
Type width
The width of the rectangle.
Handles the events that are triggered by the Keyboard Driver.
Handles events that are triggered by the mouse driver.