Commit e404e5d6 authored by cutealien's avatar cutealien

added IGUIListBox::setDrawBackground


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2401 dfc29bdd-3216-0410-991c-e03cc46cb475
parent c4f0e9b5
...@@ -118,6 +118,8 @@ namespace gui ...@@ -118,6 +118,8 @@ namespace gui
//! set global itemHeight //! set global itemHeight
virtual void setItemHeight( s32 height ) = 0; virtual void setItemHeight( s32 height ) = 0;
//! Sets whether to draw the background
virtual void setDrawBackground(bool draw) = 0;
}; };
......
...@@ -884,6 +884,13 @@ void CGUIListBox::setItemHeight( s32 height ) ...@@ -884,6 +884,13 @@ void CGUIListBox::setItemHeight( s32 height )
} }
//! Sets whether to draw the background
void CGUIListBox::setDrawBackground(bool draw)
{
DrawBack = draw;
}
} // end namespace gui } // end namespace gui
} // end namespace irr } // end namespace irr
......
...@@ -125,6 +125,10 @@ namespace gui ...@@ -125,6 +125,10 @@ namespace gui
//! set global itemHeight //! set global itemHeight
virtual void setItemHeight( s32 height ); virtual void setItemHeight( s32 height );
//! Sets whether to draw the background
virtual void setDrawBackground(bool draw);
private: private:
struct ListItem struct ListItem
......
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