mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:57:35 +00:00
WindowServer: Rename GUI_Foo to WSAPI_Foo.
This commit is contained in:
parent
a54cd84c59
commit
29c49356e3
16 changed files with 204 additions and 204 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue