5 #ifndef __I_GUI_TABLE_H_INCLUDED__ 6 #define __I_GUI_TABLE_H_INCLUDED__ 98 virtual void addColumn(
const wchar_t* caption,
s32 columnIndex=-1) = 0;
191 virtual void clear() = 0;
virtual IGUIFont * getOverrideFont(void) const =0
Gets the override font (if any)
virtual s32 getSelected() const =0
Returns which row is currently selected.
virtual IGUIScrollBar * getHorizontalScrollBar() const =0
Access the horizontal scrollbar.
virtual void orderRows(s32 columnIndex=-1, EGUI_ORDERING_MODE mode=EGOM_NONE)=0
This tells the table to start ordering all the rows.
IGUITable(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
virtual void setDrawFlags(s32 flags)=0
Set flags, as defined in EGUI_TABLE_DRAW_FLAGS, which influence the layout.
virtual void removeRow(u32 rowIndex)=0
Remove a row from the table.
GLint GLint GLsizei width
virtual void clear()=0
clears the table, deletes all items in the table
virtual s32 getDrawFlags() const =0
Get the flags, as defined in EGUI_TABLE_DRAW_FLAGS, which influence the layout.
char c8
8 bit character variable.
virtual void setCellColor(u32 rowIndex, u32 columnIndex, video::SColor color)=0
Set the color of a cell text.
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
virtual void setCellData(u32 rowIndex, u32 columnIndex, void *data)=0
Set the data of a cell.
virtual void setCellText(u32 rowIndex, u32 columnIndex, const core::stringw &text)=0
Set the text of a cell.
virtual const wchar_t * getCellText(u32 rowIndex, u32 columnIndex) const =0
Get the text of a cell.
Elements are ordered from the smallest to the largest.
Sort it ascending on first click, descending on next, etc.
Everything in the Irrlicht Engine can be found in this namespace.
EGUI_COLUMN_ORDERING
modes for ordering used when a column header is clicked
virtual u32 addRow(u32 rowIndex)=0
adds a row to the table
GUI Environment. Used as factory and manager of all other GUI elements.
const c8 *const GUIOrderingModeNames[]
Not used as mode, only to get maximum value for this enum.
Very simple string class with some useful features.
virtual u32 getColumnWidth(u32 columnIndex) const =0
Get the width of a column.
const c8 *const GUIColumnOrderingNames[]
Names for EGUI_COLUMN_ORDERING types.
virtual void setColumnWidth(u32 columnIndex, u32 width)=0
Set the width of a column.
virtual IGUIScrollBar * getVerticalScrollBar() const =0
Access the vertical scrollbar.
virtual bool hasResizableColumns() const =0
can columns be resized by drag 'n drop?
signed int s32
32 bit signed variable.
virtual s32 getColumnCount() const =0
Returns the number of columns in the table control.
virtual void draw()
Draws the element and its children.
virtual s32 getRowCount() const =0
Get amount of rows in the tabcontrol.
unsigned int u32
32 bit unsigned variable.
virtual void removeColumn(u32 columnIndex)=0
remove a column from the table
virtual s32 getActiveColumn() const =0
Returns which header is currently active.
Sort it ascending by it's ascii value like: a,b,c,...
virtual void setOverrideFont(IGUIFont *font=0)=0
Sets another skin independent font.
virtual IGUIFont * getActiveFont() const =0
Get the font which is used right now for drawing.
Class representing a 32 bit ARGB color.
Base class of all GUI elements.
virtual s32 getItemHeight() const =0
Get the height of items/rows.
virtual void setColumnOrdering(u32 columnIndex, EGUI_COLUMN_ORDERING mode)=0
This tells the table control which ordering mode should be used when a column header is clicked.
Default list box GUI element.
virtual bool setActiveColumn(s32 idx, bool doOrder=false)=0
Makes a column active. This will trigger an ordering process.
virtual void clearRows()=0
clears the table rows, but keeps the columns intact
virtual void setSelected(s32 index)=0
set which row is currently selected
Elements are ordered from the largest to the smallest.
virtual void addColumn(const wchar_t *caption, s32 columnIndex=-1)=0
Adds a column.
virtual bool isDrawBackgroundEnabled() const =0
Checks if background drawing is enabled.
virtual void * getCellData(u32 rowIndex, u32 columnIndex) const =0
Get the data of a cell.
virtual EGUI_ORDERING_MODE getActiveColumnOrdering() const =0
Returns the ordering used by the currently active column.
virtual void setResizableColumns(bool resizable)=0
columns can be resized by drag 'n drop
virtual void setDrawBackground(bool draw)=0
Sets whether to draw the background.
Sort it descending by it's ascii value like: z,x,y,...
Send a EGET_TABLE_HEADER_CHANGED message when a column header is clicked.
virtual void swapRows(u32 rowIndexA, u32 rowIndexB)=0
Swap two row positions.