Commit a4dc43f5 authored by cutealien's avatar cutealien

Added IGUITable::getColumnWidth


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3603 dfc29bdd-3216-0410-991c-e03cc46cb475
parent b4fde1ec
Changes in 1.8 (??.??.2011)
- Added IGUITable::getColumnWidth
- Added the ability to open an archive from an IReadFile*, added a FileToHeader tool with instructions of how to make a portable app that consists of a single executable file.
- Added ISceneManager::createSceneNodeAnimator to create animators by name
......
......@@ -113,6 +113,9 @@ namespace gui
//! Set the width of a column
virtual void setColumnWidth(u32 columnIndex, u32 width) = 0;
//! Get the width of a column
virtual u32 getColumnWidth(u32 columnIndex) const = 0;
//! columns can be resized by drag 'n drop
virtual void setResizableColumns(bool resizable) = 0;
......
......@@ -229,6 +229,14 @@ void CGUITable::setColumnWidth(u32 columnIndex, u32 width)
recalculateWidths();
}
//! Get the width of a column
u32 CGUITable::getColumnWidth(u32 columnIndex) const
{
if ( columnIndex >= Columns.size() )
return 0;
return Columns[columnIndex].Width;
}
void CGUITable::setResizableColumns(bool resizable)
{
......
......@@ -57,6 +57,9 @@ namespace gui
//! set a column width
virtual void setColumnWidth(u32 columnIndex, u32 width);
//! Get the width of a column
virtual u32 getColumnWidth(u32 columnIndex) const;
//! columns can be resized by drag 'n drop
virtual void setResizableColumns(bool resizable);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment