Luanti 5.10.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 <vector>
8#include <array>
10
11class GUIBox : public gui::IGUIElement
12{
13public:
14 GUIBox(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id,
15 const core::rect<s32> &rectangle,
16 const std::array<video::SColor, 4> &colors,
17 const std::array<video::SColor, 4> &bordercolors,
18 const std::array<s32, 4> &borderwidths);
19
20 virtual void draw() override;
21
22private:
23 std::array<video::SColor, 4> m_colors;
24 std::array<video::SColor, 4> m_bordercolors;
25 std::array<s32, 4> m_borderwidths;
26};
Definition guiBox.h:12
std::array< video::SColor, 4 > m_colors
Definition guiBox.h:23
std::array< s32, 4 > m_borderwidths
Definition guiBox.h:25
virtual void draw() override
Definition guiBox.cpp:20
std::array< video::SColor, 4 > m_bordercolors
Definition guiBox.h:24
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:8