FifeGUI 0.2.0
A C++ GUI library designed for games.
primarypanel.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later OR BSD-3-Clause
2// SPDX-FileCopyrightText: 2026 Fifengine contributors
3
4#ifndef INCLUDE_FIFECHAN_WIDGETS_PRIMARYPANEL_HPP_
5#define INCLUDE_FIFECHAN_WIDGETS_PRIMARYPANEL_HPP_
6
7// Platform config include
8#include "fifechan/platform.hpp"
9
10// Standard library includes
11#include <string>
12
13// Project headers (subdirs before local)
14#include "fifechan/widgets/panel.hpp"
15
16namespace fcn
17{
26 class FIFEGUI_API PrimaryPanel : public Panel
27 {
28 public:
34 explicit PrimaryPanel(std::string const & title = "Primary");
35
36 ~PrimaryPanel() override = default;
37
38 PrimaryPanel(PrimaryPanel const &) = delete;
39 PrimaryPanel& operator=(PrimaryPanel const &) = delete;
40 PrimaryPanel(PrimaryPanel&&) = delete;
41 PrimaryPanel& operator=(PrimaryPanel&&) = delete;
42
49 void setDefaultWidth(int width);
50
57 int getDefaultWidth() const;
58
59 private:
63 int mDefaultWidth{250};
64 };
65} // namespace fcn
66
67#endif // INCLUDE_FIFECHAN_WIDGETS_PRIMARYPANEL_HPP_
Panel()
Constructor.
Definition panel.cpp:19
int getDefaultWidth() const
Gets the default width of the panel.
PrimaryPanel(std::string const &title="Primary")
Constructor.
void setDefaultWidth(int width)
Sets the default width of the panel.
Used replacement tokens by configure_file():