54 Option(
const std::string &name_,
const std::string &value_) :
77 gui::IGUIElement *parent, s32
id,
78 core::rect<s32> rectangle,
87 void setTextList(
const std::vector<std::string> &content,
94 std::vector<std::string> &content);
133 virtual bool OnEvent(
const SEvent &event);
188 video::SColor
m_color = video::SColor(255, 255, 255, 255);
208 const core::rect<s32> &rowrect,
209 const core::rect<s32> &client_clip);
219 s32
getRowAt(s32 y,
bool &really_hovering)
const;
static v2f dir(const v2f &pos_dist)
Definition camera.cpp:191
void openTree(s32 to_open)
Definition guiTable.cpp:1190
virtual void setOverrideFont(gui::IGUIFont *font=nullptr)
Sets another skin independent font. If this is set to zero, the button uses the font of the skin.
Definition guiTable.cpp:587
s32 m_rowheight
Definition guiTable.h:192
GUIScrollBar * m_scrollbar
Definition guiTable.h:194
void setDynamicData(const DynamicData &dyndata)
Definition guiTable.cpp:624
gui::IGUIFont * m_font
Definition guiTable.h:193
std::map< std::string, s32 > m_alloc_images
Definition guiTable.h:200
bool doesRowStartWith(const Row *row, const core::stringw &str) const
Definition guiTable.cpp:1009
void drawCell(const Cell *cell, video::SColor color, const core::rect< s32 > &rowrect, const core::rect< s32 > &client_clip)
Definition guiTable.cpp:717
void sendTableEvent(s32 column, bool doubleclick)
Definition guiTable.cpp:1104
s32 getRowAt(s32 y, bool &really_hovering) const
Definition guiTable.cpp:1026
s32 allocImage(const std::string &imagename)
Definition guiTable.cpp:980
static Option splitOption(const std::string &str)
Definition guiTable.cpp:80
virtual void updateAbsolutePosition()
Definition guiTable.cpp:644
core::stringw m_keynav_buffer
Definition guiTable.h:184
void autoScroll()
Definition guiTable.cpp:1080
DynamicData getDynamicData() const
Definition guiTable.cpp:612
std::vector< core::stringw > m_strings
Definition guiTable.h:197
virtual bool OnEvent(const SEvent &event)
Definition guiTable.cpp:774
void allocationComplete()
Definition guiTable.cpp:993
bool m_has_tree_column
Definition guiTable.h:175
void setTextList(const std::vector< std::string > &content, bool transparent)
Definition guiTable.cpp:90
s32 m_sel_column
Definition guiTable.h:179
ColumnType
Definition guiTable.h:136
@ COLUMN_TYPE_COLOR
Definition guiTable.h:139
@ COLUMN_TYPE_INDENT
Definition guiTable.h:140
@ COLUMN_TYPE_TEXT
Definition guiTable.h:137
@ COLUMN_TYPE_TREE
Definition guiTable.h:141
@ COLUMN_TYPE_IMAGE
Definition guiTable.h:138
std::map< std::string, s32 > m_alloc_strings
Definition guiTable.h:199
virtual ~GUITable()
Definition guiTable.cpp:68
s32 getCellAt(s32 x, s32 row_i) const
Definition guiTable.cpp:1048
void toggleVisibleTree(s32 row_i, int dir, bool move_selection)
Definition guiTable.cpp:1208
video::SColor m_highlight
Definition guiTable.h:190
video::SColor m_color
Definition guiTable.h:188
std::vector< Option > TableOptions
Definition guiTable.h:63
u64 m_keynav_time
Definition guiTable.h:183
std::vector< TableColumn > TableColumns
Definition guiTable.h:73
std::vector< Row > m_rows
Definition guiTable.h:171
s32 getSelected() const
Definition guiTable.cpp:534
s32 allocString(const std::string &text)
Definition guiTable.cpp:966
bool m_sel_doubleclick
Definition guiTable.h:180
bool m_border
Definition guiTable.h:187
GUITable(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, core::rect< s32 > rectangle, ISimpleTextureSource *tsrc)
Definition guiTable.cpp:30
void setTable(const TableOptions &options, const TableColumns &columns, std::vector< std::string > &content)
Definition guiTable.cpp:150
std::vector< video::ITexture * > m_images
Definition guiTable.h:198
video::SColor m_background
Definition guiTable.h:189
void closeTree(s32 to_close)
Definition guiTable.cpp:1198
virtual gui::IGUIFont * getOverrideFont() const
Gets the override font (if any)
Definition guiTable.cpp:607
video::SColor m_highlight_text
Definition guiTable.h:191
std::vector< s32 > m_visible_rows
Definition guiTable.h:173
const Row * getRow(s32 i) const
Definition guiTable.cpp:1001
s32 m_selected
Definition guiTable.h:178
void setOpenedTrees(const std::set< s32 > &opened_trees)
Definition guiTable.cpp:1129
static void alignContent(Cell *cell, s32 xmax, s32 content_width, s32 align)
Definition guiTable.cpp:1263
virtual const c8 * getTypeName() const
Definition guiTable.cpp:639
std::string checkEvent()
Definition guiTable.cpp:510
void setSelected(s32 index)
Definition guiTable.cpp:543
virtual void draw()
Definition guiTable.cpp:650
void updateScrollBar()
Definition guiTable.cpp:1093
bool m_is_textlist
Definition guiTable.h:174
ISimpleTextureSource * m_tsrc
Definition guiTable.h:168
void getOpenedTrees(std::set< s32 > &opened_trees) const
Definition guiTable.cpp:1118
void clear()
Definition guiTable.cpp:480
Definition texturesource.h:25
Definition guiTable.h:144
s32 content_index
Definition guiTable.h:149
bool color_defined
Definition guiTable.h:152
s32 reported_column
Definition guiTable.h:153
s32 xmax
Definition guiTable.h:146
video::SColor color
Definition guiTable.h:151
s32 xpos
Definition guiTable.h:147
f32 image_scale
Definition guiTable.h:154
s32 xmin
Definition guiTable.h:145
ColumnType content_type
Definition guiTable.h:148
s32 tooltip_index
Definition guiTable.h:150
s32 scrollpos
Definition guiTable.h:40
s32 keynav_time
Definition guiTable.h:41
s32 selected
Definition guiTable.h:39
core::stringw keynav_buffer
Definition guiTable.h:42
std::set< s32 > opened_trees
Definition guiTable.h:43
std::string name
Definition guiTable.h:51
Option(const std::string &name_, const std::string &value_)
Definition guiTable.h:54
std::string value
Definition guiTable.h:52
Definition guiTable.h:157
Cell * cells
Definition guiTable.h:158
s32 visible_index
Definition guiTable.h:164
s32 indent
Definition guiTable.h:160
s32 cellcount
Definition guiTable.h:159
std::string type
Definition guiTable.h:70
std::vector< Option > options
Definition guiTable.h:71