30 #include <TGUI/Widget.hpp> 76 Tab& operator= (
const Tab& right);
95 bool load(
const std::string& configFileFilename,
const std::string& sectionName =
"Tab");
105 const std::string& getLoadedConfigFile()
const;
121 virtual void setSize(
float width,
float height);
130 virtual sf::Vector2f getSize()
const;
144 unsigned int add(
const sf::String& name,
bool select =
true);
158 void select(
const sf::String& name);
171 void select(
unsigned int index);
191 void remove(
const sf::String& name);
204 void remove(
unsigned int index);
221 sf::String getSelected()
const;
233 int getSelectedIndex()
const;
245 void setTextFont(
const sf::Font& font);
254 const sf::Font* getTextFont()
const;
263 void setTextColor(
const sf::Color& color);
272 const sf::Color& getTextColor()
const;
281 void setSelectedTextColor(
const sf::Color& color);
290 const sf::Color& getSelectedTextColor()
const;
300 void setTextSize(
unsigned int size);
309 unsigned int getTextSize()
const;
320 void setTabHeight(
unsigned int height);
329 unsigned int getTabHeight()
const;
341 void setMaximumTabWidth(
unsigned int maximumWidth);
353 unsigned int getMaximumTabWidth()
const;
362 void setDistanceToSide(
unsigned int distanceToSide);
371 unsigned int getDistanceToSide()
const;
384 virtual void setTransparency(
unsigned char transparency);
390 virtual bool mouseOnWidget(
float x,
float y);
395 virtual void leftMousePressed(
float x,
float y);
403 virtual bool setProperty(std::string property,
const std::string& value);
410 virtual bool getProperty(std::string property, std::string& value)
const;
418 virtual std::list< std::pair<std::string, std::string> > getPropertyList()
const;
427 virtual void initialize(
Container *
const container);
433 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
444 TabChanged = WidgetCallbacksCount * 1,
445 AllTabCallbacks = WidgetCallbacksCount * 2 - 1,
446 TabCallbacksCount = WidgetCallbacksCount * 2
453 std::string m_LoadedConfigFile;
456 bool m_SeparateSelectedImage;
458 unsigned int m_TabHeight;
459 unsigned int m_TextSize;
461 sf::Color m_TextColor;
462 sf::Color m_SelectedTextColor;
464 unsigned int m_MaximumTabWidth;
467 unsigned int m_DistanceToSide;
471 std::vector<sf::String> m_TabNames;
472 std::vector<float> m_NameWidth;
493 #endif // TGUI_TAB_HPP Namespace that contains all TGUI functions and classes.
Definition: AnimatedPicture.hpp:33
Definition: TextureManager.hpp:52
Parent class for widgets that store multiple widgets.
Definition: Container.hpp:43
TabCallbacks
Defines specific triggers to Tab.
Definition: Tab.hpp:442