Simple GUI Library
layered_container.h
Go to the documentation of this file.
1/**
2 * @author Nikita Mochalov (github.com/tralf-strues)
3 * @file layered_container.h
4 * @date 2021-12-12
5 *
6 * @copyright Copyright (c) 2021
7 */
8
9#pragma once
10
11#include "container.h"
12
13namespace Sgl
14{
16 {
17 public:
19
20 bool isAutoAdjust() const;
21 void setAutoAdjust(bool autoAdjust);
22
23 void moveToFront(Component* child);
24 void moveToBack(Component* child);
25
26 Component* getFront();
27 Component* getBack();
28
29 private:
30 bool m_AutoAdjust = false;
31 };
32}