Add double buffer (back buffer) support to x11window_t.
X11-DoubleBuffer | Add double buffer (back buffer) support to x11window_t. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file X11-DoubleBuffer. |
C-kern/ | Implementation file X11-DoubleBuffer impl. |
Types | |
struct x11dblbuffer_t | Export x11dblbuffer_t into global namespace. |
Functions | |
test | |
unittest_platform_X11_x11dblbuffer | Test x11dblbuffer_t functionality. |
x11dblbuffer_t | A drawable which describes the double buffer (back buffer) of a x11window_t. |
display | Reference to x11display_t. |
sys_drawable | X window ID. |
sys_colormap | X window ID. |
lifetime | |
x11dblbuffer_FREE | Static initializer. |
init_x11dblbuffer | Tries to allocate a double buffer associated with window. |
free_x11dblbuffer | Frees and deallocates the double buffer associated with a window. |
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-DoubleBuffer.
Implementation file X11-DoubleBuffer impl.
typedef struct x11dblbuffer_t x11dblbuffer_t
Export x11dblbuffer_t into global namespace.
test | |
unittest_platform_X11_x11dblbuffer | Test x11dblbuffer_t functionality. |
int unittest_platform_X11_x11dblbuffer( void )
Test x11dblbuffer_t functionality.
struct x11dblbuffer_t
A drawable which describes the double buffer (back buffer) of a x11window_t.
display | Reference to x11display_t. |
sys_drawable | X window ID. |
sys_colormap | X window ID. |
lifetime | |
x11dblbuffer_FREE | Static initializer. |
init_x11dblbuffer | Tries to allocate a double buffer associated with window. |
free_x11dblbuffer | Frees and deallocates the double buffer associated with a window. |
struct x11display_t* display
Reference to x11display_t. Every call to X library needs this parameter.
Export x11dblbuffer_t into global namespace.
typedef struct x11dblbuffer_t x11dblbuffer_t
A drawable which describes the double buffer (back buffer) of a x11window_t.
struct x11dblbuffer_t
Test x11dblbuffer_t functionality.
int unittest_platform_X11_x11dblbuffer( 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 x11dblbuffer_FREE { 0, 0, 0 }
Tries to allocate a double buffer associated with window.
int init_x11dblbuffer( /*out*/x11dblbuffer_t * dblbuf, struct x11window_t * x11win )
Frees and deallocates the double buffer associated with a window.
int free_x11dblbuffer( x11dblbuffer_t * dblbuf )