Rename Display to Window.
It makes more sense to be consistent and always call it window.
This commit is contained in:
parent
416a71f744
commit
24da7f45e0
33 changed files with 257 additions and 255 deletions
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace sp {
|
||||
|
||||
class Display;
|
||||
class Window;
|
||||
|
||||
struct Event
|
||||
{
|
||||
|
|
@ -43,7 +43,7 @@ public :
|
|||
|
||||
struct SizeEvent
|
||||
{
|
||||
Display *display;
|
||||
Window *window;
|
||||
int width;
|
||||
int height;
|
||||
};
|
||||
|
|
@ -62,7 +62,7 @@ public :
|
|||
|
||||
// Helper methods
|
||||
|
||||
static Event createSize(Display *display, int width, int height);
|
||||
static Event createSize(Window *window, int width, int height);
|
||||
|
||||
static Event createKey(Keyboard::Key code, bool pressed);
|
||||
|
||||
|
|
|
|||
|
|
@ -8,12 +8,12 @@
|
|||
|
||||
namespace sp {
|
||||
|
||||
class Display;
|
||||
class Window;
|
||||
|
||||
class EventListener
|
||||
{
|
||||
public :
|
||||
virtual void onSizeChanged(Display* display, int width, int height);
|
||||
virtual void onSizeChanged(Window* window, int width, int height);
|
||||
|
||||
virtual void onEvent(const Event& event);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ public :
|
|||
|
||||
void unregisterListener(EventListener *listener);
|
||||
|
||||
virtual void onSizeChanged(Display* display, int width, int height);
|
||||
virtual void onSizeChanged(Window* window, int width, int height);
|
||||
|
||||
virtual void onEvent(const Event& event);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue