Skip to content

Commit c36302a

Browse files
committed
Integrated XRENDER patchset from alexer/python-xlib-render
1 parent 373fe3b commit c36302a

File tree

4 files changed

+1279
-4
lines changed

4 files changed

+1279
-4
lines changed

Xlib/display.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
from .xobject import colormap
4242
from .xobject import cursor
4343

44+
# Xlib.ext modules
45+
from .ext import render
46+
4447
_resource_baseclasses = {
4548
'resource': resource.Resource,
4649
'drawable': drawable.Drawable,
@@ -51,12 +54,15 @@
5154
'gc': fontable.GC,
5255
'colormap': colormap.Colormap,
5356
'cursor': cursor.Cursor,
57+
'picture': ext.render.Picture,
58+
'glyphset': ext.render.GlyphSet,
5459
}
5560

5661
_resource_hierarchy = {
5762
'resource': ('drawable', 'window', 'pixmap',
5863
'fontable', 'font', 'gc',
59-
'colormap', 'cursor'),
64+
'colormap', 'cursor',
65+
'picture', 'glyphset'),
6066
'drawable': ('window', 'pixmap'),
6167
'fontable': ('font', 'gc')
6268
}

Xlib/ext/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
('RANDR', 'randr'),
3636
('XFIXES', 'xfixes'),
3737
('SECURITY', 'security'),
38+
('RENDER', 'render'),
3839
('XInputExtension', 'xinput'),
3940
('NV-CONTROL', 'nvcontrol'),
4041
('DAMAGE', 'damage'),

0 commit comments

Comments
 (0)