mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 16:46:04 +00:00
Forward all layout functions to the grid.
The container does nothing regarding resizing so forward everything.
This commit is contained in:
parent
395d79dafb
commit
48d5a20b1a
@ -49,11 +49,31 @@ void tcontainer_::NEW_reduce_width(const unsigned maximum_width)
|
||||
grid_.NEW_reduce_width(maximum_width - border_space().x);
|
||||
}
|
||||
|
||||
void tcontainer_::NEW_request_reduce_width(const unsigned maximum_width)
|
||||
{
|
||||
grid_.NEW_request_reduce_width(maximum_width - border_space().x);
|
||||
}
|
||||
|
||||
void tcontainer_::NEW_demand_reduce_width(const unsigned maximum_width)
|
||||
{
|
||||
grid_.NEW_demand_reduce_width(maximum_width - border_space().x);
|
||||
}
|
||||
|
||||
void tcontainer_::NEW_reduce_height(const unsigned maximum_height)
|
||||
{
|
||||
grid_.NEW_reduce_height(maximum_height - border_space().y);
|
||||
}
|
||||
|
||||
void tcontainer_::NEW_request_reduce_height(const unsigned maximum_height)
|
||||
{
|
||||
grid_.NEW_request_reduce_height(maximum_height - border_space().y);
|
||||
}
|
||||
|
||||
void tcontainer_::NEW_demand_reduce_height(const unsigned maximum_height)
|
||||
{
|
||||
grid_.NEW_demand_reduce_height(maximum_height - border_space().y);
|
||||
}
|
||||
|
||||
void tcontainer_::layout_wrap(const unsigned maximum_width)
|
||||
{
|
||||
// Inherited.
|
||||
|
@ -61,6 +61,12 @@ public:
|
||||
*/
|
||||
void NEW_reduce_width(const unsigned maximum_width);
|
||||
|
||||
/** Inherited from tcontrol. */
|
||||
void NEW_request_reduce_width(const unsigned maximum_width);
|
||||
|
||||
/** Inherited from twidget. */
|
||||
void NEW_demand_reduce_width(const unsigned maximum_width);
|
||||
|
||||
/**
|
||||
* Tries to reduce the height of a container.
|
||||
*
|
||||
@ -70,6 +76,12 @@ public:
|
||||
*/
|
||||
void NEW_reduce_height(const unsigned maximum_height);
|
||||
|
||||
/** Inherited from twidget. */
|
||||
void NEW_request_reduce_height(const unsigned maximum_height);
|
||||
|
||||
/** Inherited from twidget. */
|
||||
void NEW_demand_reduce_height(const unsigned maximum_height);
|
||||
|
||||
private:
|
||||
/** Inherited from twidget. */
|
||||
tpoint calculate_best_size() const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user