mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:17:45 +00:00
LibDraw: Remove convenience functions for the old WindowServer IPC
This commit is contained in:
parent
86504f4461
commit
b780dcf353
3 changed files with 0 additions and 13 deletions
|
@ -5,7 +5,6 @@
|
||||||
#include <LibDraw/Orientation.h>
|
#include <LibDraw/Orientation.h>
|
||||||
|
|
||||||
class Rect;
|
class Rect;
|
||||||
struct WSAPI_Point;
|
|
||||||
|
|
||||||
class Point {
|
class Point {
|
||||||
public:
|
public:
|
||||||
|
@ -15,7 +14,6 @@ public:
|
||||||
, m_y(y)
|
, m_y(y)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
Point(const WSAPI_Point&);
|
|
||||||
|
|
||||||
int x() const { return m_x; }
|
int x() const { return m_x; }
|
||||||
int y() const { return m_y; }
|
int y() const { return m_y; }
|
||||||
|
@ -79,7 +77,6 @@ public:
|
||||||
}
|
}
|
||||||
Point operator+(const Point& other) const { return { m_x + other.m_x, m_y + other.m_y }; }
|
Point operator+(const Point& other) const { return { m_x + other.m_x, m_y + other.m_y }; }
|
||||||
|
|
||||||
operator WSAPI_Point() const;
|
|
||||||
String to_string() const { return String::format("[%d,%d]", x(), y()); }
|
String to_string() const { return String::format("[%d,%d]", x(), y()); }
|
||||||
|
|
||||||
bool is_null() const { return !m_x && !m_y; }
|
bool is_null() const { return !m_x && !m_y; }
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
#include <LibDraw/Size.h>
|
#include <LibDraw/Size.h>
|
||||||
#include <LibDraw/TextAlignment.h>
|
#include <LibDraw/TextAlignment.h>
|
||||||
|
|
||||||
struct WSAPI_Rect;
|
|
||||||
|
|
||||||
class Rect {
|
class Rect {
|
||||||
public:
|
public:
|
||||||
Rect() {}
|
Rect() {}
|
||||||
|
@ -28,8 +26,6 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
Rect(const WSAPI_Rect&);
|
|
||||||
|
|
||||||
bool is_null() const
|
bool is_null() const
|
||||||
{
|
{
|
||||||
return width() == 0 && height() == 0;
|
return width() == 0 && height() == 0;
|
||||||
|
@ -227,8 +223,6 @@ public:
|
||||||
|
|
||||||
Vector<Rect, 4> shatter(const Rect& hammer) const;
|
Vector<Rect, 4> shatter(const Rect& hammer) const;
|
||||||
|
|
||||||
operator WSAPI_Rect() const;
|
|
||||||
|
|
||||||
bool operator==(const Rect& other) const
|
bool operator==(const Rect& other) const
|
||||||
{
|
{
|
||||||
return m_location == other.m_location
|
return m_location == other.m_location
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
#include <AK/LogStream.h>
|
#include <AK/LogStream.h>
|
||||||
#include <LibDraw/Orientation.h>
|
#include <LibDraw/Orientation.h>
|
||||||
|
|
||||||
struct WSAPI_Size;
|
|
||||||
|
|
||||||
class Size {
|
class Size {
|
||||||
public:
|
public:
|
||||||
Size() {}
|
Size() {}
|
||||||
|
@ -14,7 +12,6 @@ public:
|
||||||
, m_height(h)
|
, m_height(h)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
Size(const WSAPI_Size&);
|
|
||||||
|
|
||||||
bool is_null() const { return !m_width && !m_height; }
|
bool is_null() const { return !m_width && !m_height; }
|
||||||
bool is_empty() const { return m_width <= 0 || m_height <= 0; }
|
bool is_empty() const { return m_width <= 0 || m_height <= 0; }
|
||||||
|
@ -77,7 +74,6 @@ public:
|
||||||
set_height(value);
|
set_height(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
operator WSAPI_Size() const;
|
|
||||||
|
|
||||||
String to_string() const { return String::format("[%dx%d]", m_width, m_height); }
|
String to_string() const { return String::format("[%dx%d]", m_width, m_height); }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue