7#include <IGUIStaticText.h>
10#include "IGUISpriteBank.h"
24 GUIButton(gui::IGUIEnvironment* environment, gui::IGUIElement* parent,
32 virtual bool OnEvent(
const SEvent& event)
override;
35 virtual void draw()
override;
63 virtual void setImage(gui::EGUI_BUTTON_IMAGE_STATE state,
64 video::ITexture* image=
nullptr,
65 const core::rect<s32>& sourceRect=core::rect<s32>(0,0,0,0))
override;
68 virtual void setImage(video::ITexture* image=
nullptr)
override;
71 virtual void setImage(video::ITexture* image,
const core::rect<s32>& pos)
override;
77 virtual void setPressedImage(video::ITexture* image,
const core::rect<s32>& pos)
override;
80 virtual void setText(
const wchar_t* text)
override;
84 virtual void setSpriteBank(gui::IGUISpriteBank* bank=0)
override;
92 virtual void setSprite(gui::EGUI_BUTTON_STATE state, s32 index,
93 video::SColor color=video::SColor(255,255,255,255),
94 bool loop=
false)
override;
97 virtual s32
getSpriteIndex(gui::EGUI_BUTTON_STATE state)
const override;
100 virtual video::SColor
getSpriteColor(gui::EGUI_BUTTON_STATE state)
const override;
103 virtual bool getSpriteLoop(gui::EGUI_BUTTON_STATE state)
const override;
114 virtual void setPressed(
bool pressed=
true)
override;
166 void setStyles(
const std::array<StyleSpec, StyleSpec::NUM_STATES>& styles);
173 IGUIElement* parent, s32
id,
const wchar_t* text,
174 const wchar_t *tooltiptext=L
"");
177 void drawSprite(gui::EGUI_BUTTON_STATE state, u32 startTime,
const core::position2di& center);
178 gui::EGUI_BUTTON_IMAGE_STATE
getImageState(
bool pressed)
const;
199 if (
this == &other )
242 std::array<StyleSpec, StyleSpec::NUM_STATES>
Styles;
273 video::SColor
BgColor = video::SColor(0xFF,0xFF,0xFF,0xFF);
Definition texturesource.h:25
Definition StyleSpec.h:18
Definition clientmap.h:30