summaryrefslogtreecommitdiff
path: root/Libraries/LibGfx/Point.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGfx/Point.cpp')
-rw-r--r--Libraries/LibGfx/Point.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Libraries/LibGfx/Point.cpp b/Libraries/LibGfx/Point.cpp
index 32bd115a48..10efa90f08 100644
--- a/Libraries/LibGfx/Point.cpp
+++ b/Libraries/LibGfx/Point.cpp
@@ -28,6 +28,7 @@
#include <AK/String.h>
#include <LibGfx/Point.h>
#include <LibIPC/Decoder.h>
+#include <LibIPC/Encoder.h>
namespace Gfx {
@@ -45,6 +46,12 @@ const LogStream& operator<<(const LogStream& stream, const Point& value)
namespace IPC {
+bool encode(Encoder& encoder, const Gfx::Point& point)
+{
+ encoder << point.x() << point.y();
+ return true;
+}
+
bool decode(Decoder& decoder, Gfx::Point& point)
{
int x = 0;