diff options
author | v-rob <robinsonvincent89@gmail.com> | 2020-08-19 18:14:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-19 18:14:47 -0700 |
commit | 83d0c360cc648e02650aa4d341dbf5205c1e708f (patch) | |
tree | 4defb9776d28281059da0b145df9cfeca921f489 /src/gui/guiBox.h | |
parent | 471497fa9198695becae26a83097ec80643b4cc5 (diff) | |
download | minetest-83d0c360cc648e02650aa4d341dbf5205c1e708f.tar.gz minetest-83d0c360cc648e02650aa4d341dbf5205c1e708f.tar.bz2 minetest-83d0c360cc648e02650aa4d341dbf5205c1e708f.zip |
Add gradients and borders to FormSpec boxes (#8676)
Diffstat (limited to 'src/gui/guiBox.h')
-rw-r--r-- | src/gui/guiBox.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gui/guiBox.h b/src/gui/guiBox.h index 5306fdf65..ca8f83771 100644 --- a/src/gui/guiBox.h +++ b/src/gui/guiBox.h @@ -19,16 +19,23 @@ with this program; if not, write to the Free Software Foundation, Inc., #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 video::SColor &color); + 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: - video::SColor m_color; + std::array<video::SColor, 4> m_colors; + std::array<video::SColor, 4> m_bordercolors; + std::array<s32, 4> m_borderwidths; }; |