Add CGUIEditBox::getOverrideColor and CGUIEditBox::isOverrideColorEnabled (same as GuiStaticText has already. thx to greenya for noticing)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3326 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
e03ff5e739
commit
b80b8c180d
|
@ -38,12 +38,19 @@ namespace gui
|
|||
\param color: New color of the text. */
|
||||
virtual void setOverrideColor(video::SColor color) = 0;
|
||||
|
||||
//! Gets the override color
|
||||
virtual video::SColor const & getOverrideColor() const;
|
||||
|
||||
//! Sets if the text should use the override color or the color in the gui skin.
|
||||
/** \param enable: If set to true, the override color, which can be set
|
||||
with IGUIEditBox::setOverrideColor is used, otherwise the
|
||||
EGDC_BUTTON_TEXT color of the skin. */
|
||||
virtual void enableOverrideColor(bool enable) = 0;
|
||||
|
||||
//! Checks if an override color is enabled
|
||||
/** \return true if the override color is enabled, false otherwise */
|
||||
virtual bool isOverrideColorEnabled(void) const = 0;
|
||||
|
||||
//! Turns the border on or off
|
||||
/** \param border: true if you want the border to be drawn, false if not */
|
||||
virtual void setDrawBorder(bool border) = 0;
|
||||
|
|
|
@ -109,6 +109,12 @@ void CGUIEditBox::setOverrideColor(video::SColor color)
|
|||
}
|
||||
|
||||
|
||||
video::SColor const& CGUIEditBox::getOverrideColor() const
|
||||
{
|
||||
return OverrideColor;
|
||||
}
|
||||
|
||||
|
||||
//! Turns the border on or off
|
||||
void CGUIEditBox::setDrawBorder(bool border)
|
||||
{
|
||||
|
@ -122,6 +128,11 @@ void CGUIEditBox::enableOverrideColor(bool enable)
|
|||
OverrideColorEnabled = enable;
|
||||
}
|
||||
|
||||
bool CGUIEditBox::isOverrideColorEnabled() const
|
||||
{
|
||||
_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX;
|
||||
return OverrideColorEnabled;
|
||||
}
|
||||
|
||||
//! Enables or disables word wrap
|
||||
void CGUIEditBox::setWordWrap(bool enable)
|
||||
|
|
|
@ -33,10 +33,17 @@ namespace gui
|
|||
//! Sets another color for the text.
|
||||
virtual void setOverrideColor(video::SColor color);
|
||||
|
||||
//! Gets the override color
|
||||
virtual video::SColor const & getOverrideColor() const;
|
||||
|
||||
//! Sets if the text should use the overide color or the
|
||||
//! color in the gui skin.
|
||||
virtual void enableOverrideColor(bool enable);
|
||||
|
||||
//! Checks if an override color is enabled
|
||||
/** \return true if the override color is enabled, false otherwise */
|
||||
virtual bool isOverrideColorEnabled(void) const;
|
||||
|
||||
//! Turns the border on or off
|
||||
virtual void setDrawBorder(bool border);
|
||||
|
||||
|
|
Loading…
Reference in New Issue