Commit 98f22505 authored by Rogerborg's avatar Rogerborg

Rename IGUIElement::setProportionalPosition() to setRelativePositionProportional()

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1790 dfc29bdd-3216-0410-991c-e03cc46cb475
parent b6f9e543
Changes in version 1.5 (... 2008) Changes in version 1.5 (... 2008)
- Renamed IGUIElement::setRelativePosition(const core::rect<f32>& r) to setProportionalPosition(), as it has radically different functionality from setRelativePosition(const core::rect<s32>& r) - Renamed IGUIElement::setRelativePosition(const core::rect<f32>& r) to setRelativePositionProportional(), as it has radically different functionality from setRelativePosition(const core::rect<s32>& r)
- Added IGUIElement::setRelativePosition(const core::position2di & position) to set a new position while retaining the existing height and width. - Added IGUIElement::setRelativePosition(const core::position2di & position) to set a new position while retaining the existing height and width.
......
...@@ -122,7 +122,7 @@ public: ...@@ -122,7 +122,7 @@ public:
\param r The rectangle to set, interpreted as a proportion of the parent's area. \param r The rectangle to set, interpreted as a proportion of the parent's area.
Meaningful values are in the range [0...1], unless you intend this element to spill Meaningful values are in the range [0...1], unless you intend this element to spill
outside its parent. */ outside its parent. */
void setProportionalPosition(const core::rect<f32>& r) void setRelativePositionProportional(const core::rect<f32>& r)
{ {
if (!Parent) if (!Parent)
return; return;
...@@ -379,7 +379,6 @@ public: ...@@ -379,7 +379,6 @@ public:
return AbsoluteClippingRect.isPointInside(point); return AbsoluteClippingRect.isPointInside(point);
} }
//! Adds a GUI element as new child of this element. //! Adds a GUI element as new child of this element.
virtual void addChild(IGUIElement* child) virtual void addChild(IGUIElement* child)
{ {
......
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