small fixes
This commit is contained in:
@@ -621,24 +621,24 @@ namespace nana
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
point rectangle::position() const
|
point rectangle::position() const noexcept
|
||||||
{
|
{
|
||||||
return{ x, y };
|
return{ x, y };
|
||||||
}
|
}
|
||||||
|
|
||||||
rectangle& rectangle::position(const point& p)
|
rectangle& rectangle::position(const point& p) noexcept
|
||||||
{
|
{
|
||||||
x = p.x;
|
x = p.x;
|
||||||
y = p.y;
|
y = p.y;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
size rectangle::dimension() const
|
size rectangle::dimension() const noexcept
|
||||||
{
|
{
|
||||||
return{width, height};
|
return{width, height};
|
||||||
}
|
}
|
||||||
|
|
||||||
rectangle& rectangle::dimension(const size& sz)
|
rectangle& rectangle::dimension(const size& sz) noexcept
|
||||||
{
|
{
|
||||||
width = sz.width;
|
width = sz.width;
|
||||||
height = sz.height;
|
height = sz.height;
|
||||||
|
|||||||
@@ -387,7 +387,7 @@ namespace nana
|
|||||||
}
|
}
|
||||||
|
|
||||||
panels_.emplace_back();
|
panels_.emplace_back();
|
||||||
auto wdg = wdg.get();
|
auto wdg_ptr = wdg.get();
|
||||||
panels_.back().widget_ptr.swap(wdg);
|
panels_.back().widget_ptr.swap(wdg);
|
||||||
|
|
||||||
for (auto & pn : panels_)
|
for (auto & pn : panels_)
|
||||||
@@ -395,7 +395,7 @@ namespace nana
|
|||||||
if (pn.widget_ptr)
|
if (pn.widget_ptr)
|
||||||
pn.widget_ptr->move(r);
|
pn.widget_ptr->move(r);
|
||||||
}
|
}
|
||||||
return wdg;
|
return wdg_ptr;
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
@@ -698,4 +698,4 @@ namespace nana
|
|||||||
}//end namespace place_parts
|
}//end namespace place_parts
|
||||||
}//end namespace nana
|
}//end namespace nana
|
||||||
|
|
||||||
#endif //NANA_GUI_PLACE_PARTS_HPP
|
#endif //NANA_GUI_PLACE_PARTS_HPP
|
||||||
Reference in New Issue
Block a user