1// Aseprite UI Library
2// Copyright (C) 2019 Igara Studio S.A.
3// Copyright (C) 2001-2014 David Capello
4//
5// This file is released under the terms of the MIT license.
6// Read LICENSE.txt for more information.
7
8#ifndef UI_PANEL_H_INCLUDED
9#define UI_PANEL_H_INCLUDED
10#pragma once
11
12#include "ui/box.h"
13
14namespace ui {
15
16 class Panel : public VBox {
17 public:
18 Panel();
19
20 void showChild(Widget* widget);
21 void showAllChildren();
22
23 protected:
24 virtual void onResize(ResizeEvent& ev) override;
25 virtual void onSizeHint(SizeHintEvent& ev) override;
26
27 private:
28 bool m_multiple;
29 };
30
31} // namespace ui
32
33#endif
34