intermediate state

This commit is contained in:
Hartmut Seichter 2019-01-09 17:50:18 +01:00
parent dfe26d9424
commit f840d51f4f
10 changed files with 146 additions and 130 deletions

View file

@ -13,12 +13,13 @@ public:
point mouse_position() const { return _mouse_position; }
~input() = default;
protected:
friend class window;
input();
~input() = default;
private:

View file

@ -16,12 +16,11 @@ public:
void set_title(const std::string& title);
void set_size(int w, int h);
size get_size() const;
void set_size(const size& s);
size size() const;
typedef void drop_callback;
protected:
struct impl;

View file

@ -178,12 +178,12 @@ void window::set_title(const std::string& title)
_impl->set_title(title);
}
void window::set_size(int w,int h)
void window::set_size(const ::pw::size& s)
{
_impl->set_size(w,h);
_impl->set_size(s.width,s.height);
}
size window::get_size() const
size window::size() const
{
return _impl->size();
}