1
0
Fork 0

Rename Display to Window.

It makes more sense to be consistent and always call it window.
This commit is contained in:
Henrik Hautakoski 2023-08-22 07:12:47 +02:00
parent 416a71f744
commit 24da7f45e0
33 changed files with 257 additions and 255 deletions

View file

@ -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);

View file

@ -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);
};

View file

@ -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);