summaryrefslogtreecommitdiff
path: root/SharedGraphics
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-15 09:17:18 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-15 09:17:18 +0100
commit29c49356e3229acb740f016d39629e322d31abd1 (patch)
tree3e9b6bb9cf4bdf2a002d68e8050ad76ed75297cc /SharedGraphics
parenta54cd84c5935437412d3986f7a02a4271ae1ae65 (diff)
downloadserenity-29c49356e3229acb740f016d39629e322d31abd1.zip
WindowServer: Rename GUI_Foo to WSAPI_Foo.
Diffstat (limited to 'SharedGraphics')
-rw-r--r--SharedGraphics/Painter.cpp10
-rw-r--r--SharedGraphics/Point.h6
-rw-r--r--SharedGraphics/Rect.h6
-rw-r--r--SharedGraphics/Size.h6
4 files changed, 14 insertions, 14 deletions
diff --git a/SharedGraphics/Painter.cpp b/SharedGraphics/Painter.cpp
index acc51b7a95..e65ecbcbad 100644
--- a/SharedGraphics/Painter.cpp
+++ b/SharedGraphics/Painter.cpp
@@ -26,10 +26,10 @@ Painter::Painter(GraphicsBitmap& bitmap)
Painter::Painter(GWidget& widget)
: m_font(&widget.font())
{
- GUI_ClientMessage request;
- request.type = GUI_ClientMessage::Type::GetWindowBackingStore;
+ WSAPI_ClientMessage request;
+ request.type = WSAPI_ClientMessage::Type::GetWindowBackingStore;
request.window_id = widget.window()->window_id();
- auto response = GEventLoop::main().sync_request(request, GUI_ServerMessage::DidGetWindowBackingStore);
+ auto response = GEventLoop::main().sync_request(request, WSAPI_ServerMessage::DidGetWindowBackingStore);
m_backing_store_id = response.backing.backing_store_id;
m_target = GraphicsBitmap::create_wrapper(response.backing.size, response.backing.pixels);
@@ -53,8 +53,8 @@ Painter::~Painter()
#ifdef USERLAND
m_target = nullptr;
if (m_backing_store_id) {
- GUI_ClientMessage request;
- request.type = GUI_ClientMessage::Type::ReleaseWindowBackingStore;
+ WSAPI_ClientMessage request;
+ request.type = WSAPI_ClientMessage::Type::ReleaseWindowBackingStore;
request.backing.backing_store_id = m_backing_store_id;
GEventLoop::main().post_message_to_server(request);
}
diff --git a/SharedGraphics/Point.h b/SharedGraphics/Point.h
index fd1cc28c1e..cf5fd11ef6 100644
--- a/SharedGraphics/Point.h
+++ b/SharedGraphics/Point.h
@@ -3,13 +3,13 @@
#include <AK/AKString.h>
class Rect;
-struct GUI_Point;
+struct WSAPI_Point;
class Point {
public:
Point() { }
Point(int x, int y) : m_x(x) , m_y(y) { }
- Point(const GUI_Point&);
+ Point(const WSAPI_Point&);
int x() const { return m_x; }
int y() const { return m_y; }
@@ -48,7 +48,7 @@ public:
return !(*this == other);
}
- operator GUI_Point() const;
+ operator WSAPI_Point() const;
String to_string() const { return String::format("[%d,%d]", x(), y()); }
private:
diff --git a/SharedGraphics/Rect.h b/SharedGraphics/Rect.h
index d7ed95dcd1..931f230b6e 100644
--- a/SharedGraphics/Rect.h
+++ b/SharedGraphics/Rect.h
@@ -4,7 +4,7 @@
#include "Size.h"
#include <AK/AKString.h>
-struct GUI_Rect;
+struct WSAPI_Rect;
class Rect {
public:
@@ -25,7 +25,7 @@ public:
{
}
- Rect(const GUI_Rect&);
+ Rect(const WSAPI_Rect&);
bool is_null() const
{
@@ -170,7 +170,7 @@ public:
Point location() const { return m_location; }
Size size() const { return m_size; }
- operator GUI_Rect() const;
+ operator WSAPI_Rect() const;
bool operator==(const Rect& other) const
{
diff --git a/SharedGraphics/Size.h b/SharedGraphics/Size.h
index 7fe41d125d..d5d914af19 100644
--- a/SharedGraphics/Size.h
+++ b/SharedGraphics/Size.h
@@ -2,13 +2,13 @@
#include <AK/AKString.h>
-struct GUI_Size;
+struct WSAPI_Size;
class Size {
public:
Size() { }
Size(int w, int h) : m_width(w), m_height(h) { }
- Size(const GUI_Size&);
+ Size(const WSAPI_Size&);
bool is_empty() const { return !m_width || !m_height; }
@@ -38,7 +38,7 @@ public:
return *this;
}
- operator GUI_Size() const;
+ operator WSAPI_Size() const;
String to_string() const { return String::format("[%d,%d]", m_width, m_height); }