mirror of
https://github.com/minetest/minetest.git
synced 2025-01-25 07:21:27 +01:00
27 lines
677 B
C++
27 lines
677 B
C++
// Luanti
|
|
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
// Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
|
|
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
#include <array>
|
|
#include "irrlichttypes_extrabloated.h"
|
|
|
|
class GUIBox : public gui::IGUIElement
|
|
{
|
|
public:
|
|
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);
|
|
|
|
virtual void draw() override;
|
|
|
|
private:
|
|
std::array<video::SColor, 4> m_colors;
|
|
std::array<video::SColor, 4> m_bordercolors;
|
|
std::array<s32, 4> m_borderwidths;
|
|
};
|