26 #ifndef TGUI_PANEL_HPP 27 #define TGUI_PANEL_HPP 30 #include <TGUI/Container.hpp> 84 virtual Panel* clone();
94 void setSize(
float width,
float height);
103 virtual sf::Vector2f getSize()
const;
117 void setBackgroundTexture(sf::Texture *
const texture =
nullptr);
127 sf::Texture* getBackgroundTexture();
136 void setBackgroundColor(
const sf::Color& backgroundColor);
145 const sf::Color& getBackgroundColor()
const;
158 virtual void setTransparency(
unsigned char transparency);
164 virtual bool mouseOnWidget(
float x,
float y);
169 virtual void leftMousePressed(
float x,
float y);
174 virtual void leftMouseReleased(
float x,
float y);
179 virtual void mouseMoved(
float x,
float y);
187 virtual bool setProperty(std::string property,
const std::string& value);
194 virtual bool getProperty(std::string property, std::string& value)
const;
202 virtual std::list< std::pair<std::string, std::string> > getPropertyList()
const;
211 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
222 LeftMousePressed = WidgetCallbacksCount * 1,
223 LeftMouseReleased = WidgetCallbacksCount * 2,
224 LeftMouseClicked = WidgetCallbacksCount * 4,
225 AllPanelCallbacks = WidgetCallbacksCount * 8 - 1,
226 PanelCallbacksCount = WidgetCallbacksCount * 8
235 sf::Color m_BackgroundColor;
237 sf::Texture* m_Texture;
253 #endif // TGUI_PANEL_HPP Namespace that contains all TGUI functions and classes.
Definition: AnimatedPicture.hpp:33
A static container of widgets. The background color can be solid or transparent.
Definition: Panel.hpp:39
PanelCallbacks
Defines specific triggers to Panel.
Definition: Panel.hpp:220
Parent class for widgets that store multiple widgets.
Definition: Container.hpp:43