30 #include <TGUI/Container.hpp> 101 Grid& operator= (
const Grid& right);
108 virtual Grid* clone();
122 virtual void setSize(
float width,
float height);
131 virtual sf::Vector2f getSize()
const;
164 virtual void remove(
Widget* widget);
171 virtual void removeAllWidgets();
200 Widget::Ptr getWidget(
unsigned int row,
unsigned int column);
209 void updateWidgets();
235 virtual bool mouseOnWidget(
float x,
float y);
245 sf::Vector2f getMinSize();
251 void updatePositionsOfAllWidgets();
257 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
268 AllGridCallbacks = WidgetCallbacksCount - 1,
269 GridCallbacksCount = WidgetCallbacksCount
276 std::vector< std::vector<Widget::Ptr> > m_GridWidgets;
277 std::vector< std::vector<Borders> > m_ObjBorders;
278 std::vector< std::vector<Layout::Layouts> > m_ObjLayout;
280 std::vector<unsigned int> m_RowHeight;
281 std::vector<unsigned int> m_ColumnWidth;
284 sf::Vector2f m_IntendedSize;
295 #endif // TGUI_GRID_HPP Namespace that contains all TGUI functions and classes.
Definition: AnimatedPicture.hpp:33
Draw the widget in the bottom left corner of the cell.
Definition: Grid.hpp:63
Draw the widget at the upper side of the cell (horizontally centered)
Definition: Grid.hpp:58
Draw the widget in the upper left corner of the cell.
Definition: Grid.hpp:57
Draw the widget at the bottom of the cell (horizontally centered)
Definition: Grid.hpp:62
The layout of the widget.
Definition: Grid.hpp:52
Draw the widget in the upper right corner of the cell.
Definition: Grid.hpp:59
Parent class for widgets that store multiple widgets.
Definition: Container.hpp:43
GridCallbacks
Defines specific triggers to Grid.
Definition: Grid.hpp:266
Definition: Borders.hpp:35
Draw the widget at the right side of the cell (vertically centered)
Definition: Grid.hpp:60
Draw the widget in the bottom right corner of the cell.
Definition: Grid.hpp:61
Layouts
The layout of the widget.
Definition: Grid.hpp:55
Draw the widget at the left side of the cell (vertically centered)
Definition: Grid.hpp:64