Skip to content
Snippets Groups Projects
Commit a24db618 authored by Niels Möller's avatar Niels Möller
Browse files

Added CreateGC and PolyFillRectangle.

Rev: lib/modules/Protocols.pmod/X.pmod/Requests.pmod:1.2
parent 148f150f
Branches
Tags
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* *
*/ */
#define error(x) throw( ({ (x), backtrace() }) ) #include "error.h"
class request class request
{ {
...@@ -106,3 +106,38 @@ class MapWindow ...@@ -106,3 +106,38 @@ class MapWindow
inherit ResourceReq; inherit ResourceReq;
constant type = 8; constant type = 8;
} }
class CreateGC
{
inherit request;
constant type = 55;
int gid;
int drawable;
mapping attributes = ([ ]);
string to_string()
{
return build_request(sprintf("%4c%4c%s", gid, drawable,
build_value_list(attributes,
_Xlib.gc_attributes)));
}
}
class PolyFillRectangle
{
inherit request;
constant type = 70;
int drawable;
int gid;
array rectangles;
string to_string()
{
return build_request(sprintf("%4c%4c%@s", drawable, gid,
rectangles->to_string()));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment