intermediate state
This commit is contained in:
parent
dfe26d9424
commit
f840d51f4f
10 changed files with 146 additions and 130 deletions
|
@ -13,12 +13,13 @@ public:
|
|||
|
||||
point mouse_position() const { return _mouse_position; }
|
||||
|
||||
~input() = default;
|
||||
|
||||
protected:
|
||||
|
||||
friend class window;
|
||||
|
||||
input();
|
||||
~input() = default;
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue