Describes an object which supports writing text and drawing lines and shapes.
X11-Drawable | Describes an object which supports writing text and drawing lines and shapes. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file X11-Drawable. |
C-kern/ | Implementation file X11-Drawable impl. |
Types | |
struct x11drawable_t | Export x11drawable_t into global namespace. |
Functions | |
test | |
unittest_platform_X11_x11drawable | Test x11drawable_t functionality. |
x11drawable_t | Base class of x11window_t or <glxwindow_t> (or Pixmap). |
display | Reference to x11display_t. |
sys_drawable | X window ID. |
sys_colormap | X window ID. |
lifetime | |
x11drawable_FREE | Static initializer. |
x11drawable_INIT | Static initializer. |
query | |
genericcast_x11drawable | Casts drawable into pointer to x11drawable_t if that is possible. |
draw-lines | |
draw-shapes | |
draw-text | |
inline implementation | |
x11drawable_t | |
genericcast_x11drawable | Implements x11drawable_t.genericcast_x11drawable. |
This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
© 2013 Jörg Seebohn
Header file X11-Drawable.
Implementation file X11-Drawable impl.
typedef struct x11drawable_t x11drawable_t
Export x11drawable_t into global namespace.
test | |
unittest_platform_X11_x11drawable | Test x11drawable_t functionality. |
int unittest_platform_X11_x11drawable( void )
Test x11drawable_t functionality.
struct x11drawable_t
Base class of x11window_t or <glxwindow_t> (or Pixmap). You can use text and drawing functions to draw into a drawable.
display | Reference to x11display_t. |
sys_drawable | X window ID. |
sys_colormap | X window ID. |
lifetime | |
x11drawable_FREE | Static initializer. |
x11drawable_INIT | Static initializer. |
query | |
genericcast_x11drawable | Casts drawable into pointer to x11drawable_t if that is possible. |
draw-lines | |
draw-shapes | |
draw-text |
struct x11display_t* display
Reference to x11display_t. Every call to X library needs this parameter.
#define x11drawable_INIT( display, sys_drawable, sys_colormap ) { display, sys_drawable, sys_colormap }
Static initializer. See x11drawable_t for the description of the parameter.
x11drawable_t* genericcast_x11drawable( void * drawable )
Casts drawable into pointer to x11drawable_t if that is possible. The first fields of drawable must match the data fields in x11drawable_t.
Implements x11drawable_t.genericcast_x11drawable.
Export x11drawable_t into global namespace.
typedef struct x11drawable_t x11drawable_t
Base class of x11window_t or glxwindow_t (or Pixmap).
struct x11drawable_t
Test x11drawable_t functionality.
int unittest_platform_X11_x11drawable( void )
Reference to x11display_t.
struct x11display_t* display
X window ID.
uint32_t sys_drawable
X window ID.
uint32_t sys_colormap
Static initializer.
#define x11drawable_FREE { 0, 0, 0 }
Static initializer.
#define x11drawable_INIT( display, sys_drawable, sys_colormap ) { display, sys_drawable, sys_colormap }
Casts drawable into pointer to x11drawable_t if that is possible.
x11drawable_t* genericcast_x11drawable( void * drawable )