Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
c285b73c
Commit
c285b73c
authored
27 years ago
by
Marcus Comstedt
Browse files
Options
Downloads
Patches
Plain Diff
Added UnmapWindow, OpenFont, CloseFont, QueryTextExtents, ImageText8.
Rev: lib/modules/Protocols.pmod/X.pmod/Requests.pmod:1.17
parent
59d61332
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/modules/Protocols.pmod/X.pmod/Requests.pmod
+90
-24
90 additions, 24 deletions
lib/modules/Protocols.pmod/X.pmod/Requests.pmod
with
90 additions
and
24 deletions
lib/modules/Protocols.pmod/X.pmod/Requests.pmod
+
90
−
24
View file @
c285b73c
...
...
@@ -119,6 +119,12 @@ class MapWindow
constant reqType = 8;
}
class UnmapWindow
{
inherit ResourceReq;
constant reqType = 10;
}
class GetKeyboardMapping
{
inherit request;
...
...
@@ -468,6 +474,73 @@ class UnGrabButton
}
#endif
class OpenFont
{
inherit request;
constant reqType = 45;
int fid;
string name;
string to_string()
{
return build_request(sprintf("%4c%2c\0\0%s",
fid, sizeof(name), name));
}
}
class CloseFont
{
inherit ResourceReq;
constant reqType = 46;
}
class QueryTextExtents
{
inherit request;
constant reqType = 48;
int font;
string str;
string to_string()
{
return build_request(sprintf("%4c%s",
font, str), (sizeof(str)/2)&1);
}
mapping(string:int) handle_reply(mapping reply)
{
mapping(string:int) res = (["DrawDirection":reply->data1]);
sscanf(reply->rest, "%2c%2c%2c%2c%4c%4c%4c",
res->FontAscent, res->FontDescent,
res->OverallAscent, res->OverallDescent,
res->OverallWidth, res->OverallLeft, res->OverallRight);
return res;
}
}
class CreatePixmap
{
inherit request;
constant reqType = 53;
int depth;
int pid;
int drawable;
int width, height;
string to_string()
{
return build_request
(sprintf("%4c%4c" "%2c%2c",
pid, drawable,
width, height), depth);
}
}
class CreateGC
{
inherit request;
...
...
@@ -617,6 +690,23 @@ class PutImage
}
class ImageText8
{
inherit request;
constant reqType = 76;
int drawable;
int gc;
int x, y;
string str;
string to_string()
{
return build_request(sprintf("%4c%4c%2c%2c%s",
drawable, gc, x, y, str), sizeof(str));
}
}
class CreateColormap
{
inherit request;
...
...
@@ -661,27 +751,6 @@ class AllocColor
}
}
class CreatePixmap
{
inherit request;
constant reqType = 53;
int depth;
int pid;
int drawable;
int width, height;
string to_string()
{
return build_request
(sprintf("%4c%4c" "%2c%2c",
pid, drawable,
width, height), depth);
}
}
class QueryExtension
{
inherit request;
...
...
@@ -713,9 +782,6 @@ class QueryExtension
}
}
class ExtensionRequest
{
int type;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment