GUI2/Drawing: allowed manipulation od widget canvas
This commit is contained in:
parent
1de4b375f6
commit
55b90a128b
2 changed files with 18 additions and 1 deletions
|
@ -190,7 +190,7 @@ widget* builder_drawing::build() const
|
|||
widget->set_best_size(point(w, h));
|
||||
}
|
||||
|
||||
widget->get_canvas().front().set_cfg(draw);
|
||||
widget->set_drawing_data(draw);
|
||||
|
||||
DBG_GUI_G << "Window builder: placed drawing '" << id
|
||||
<< "' with definition '" << definition << "'.\n";
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
#include "gui/core/widget_definition.hpp"
|
||||
#include "gui/core/window_builder.hpp"
|
||||
|
||||
class config;
|
||||
|
||||
namespace gui2
|
||||
{
|
||||
|
||||
|
@ -38,6 +40,21 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
canvas& get_drawing_canvas()
|
||||
{
|
||||
return get_canvas().front();
|
||||
}
|
||||
|
||||
void set_drawing_data(const ::config& cfg)
|
||||
{
|
||||
get_drawing_canvas().set_cfg(cfg);
|
||||
}
|
||||
|
||||
void append_drawing_data(const ::config& cfg)
|
||||
{
|
||||
get_drawing_canvas().append_cfg(cfg);
|
||||
}
|
||||
|
||||
/***** ***** ***** ***** layout functions ***** ***** ***** *****/
|
||||
|
||||
/** See @ref widget::request_reduce_width. */
|
||||
|
|
Loading…
Add table
Reference in a new issue