Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
guiBox.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4
5#pragma once
6
7#include <array>
8#include <IGUIElement.h>
9#include <IGUIEnvironment.h>
10
11
12class GUIBox : public gui::IGUIElement
13{
14public:
15 GUIBox(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id,
16 const core::rect<s32> &rectangle,
17 const std::array<video::SColor, 4> &colors,
18 const std::array<video::SColor, 4> &bordercolors,
19 const std::array<s32, 4> &borderwidths);
20
21 virtual void draw() override;
22
23private:
24 std::array<video::SColor, 4> m_colors;
25 std::array<video::SColor, 4> m_bordercolors;
26 std::array<s32, 4> m_borderwidths;
27};
Definition guiBox.h:13
std::array< video::SColor, 4 > m_colors
Definition guiBox.h:24
std::array< s32, 4 > m_borderwidths
Definition guiBox.h:26
virtual void draw() override
Definition guiBox.cpp:21
std::array< video::SColor, 4 > m_bordercolors
Definition guiBox.h:25
GUIBox(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle, const std::array< video::SColor, 4 > &colors, const std::array< video::SColor, 4 > &bordercolors, const std::array< s32, 4 > &borderwidths)
Definition guiBox.cpp:9