Describes a single monitor (or group of monitors depending on configuration).
X11-Screen | Describes a single monitor (or group of monitors depending on configuration). |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file X11-Screen. |
C-kern/ | Implementation file X11-Screen impl. |
Types | |
struct x11screen_t | Export x11screen_t into global namespace. |
Functions | |
test | |
unittest_platform_X11_x11screen | Test x11screen_t functionality. |
x11screen_t | Associates a x11display_t with a screen number. |
lifetime | |
x11screen_FREE | Static initializer. |
x11screen_INIT | Static initializer. |
init_x11screen | Initializes x11screen_t with reference to x11display_t and screen number. |
query | |
display_x11screen | Returns the display of the screen of. |
number_x11screen | Returns the number of the screen of x11display_t. |
isequal_x11screen | Returns true if the two objects refer to the same screen. |
inline implementation | |
x11screen_t | |
display_x11screen | Implements x11screen_t.display_x11screen. |
number_x11screen | Implements x11screen_t.number_x11screen. |
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-Screen.
Implementation file X11-Screen impl.
typedef struct x11screen_t x11screen_t
Export x11screen_t into global namespace.
test | |
unittest_platform_X11_x11screen | Test x11screen_t functionality. |
int unittest_platform_X11_x11screen( void )
Test x11screen_t functionality.
struct x11screen_t
Associates a x11display_t with a screen number. A display normally corresponds to a graphics card and the screen to an attached monitor.
lifetime | |
x11screen_FREE | Static initializer. |
x11screen_INIT | Static initializer. |
init_x11screen | Initializes x11screen_t with reference to x11display_t and screen number. |
query | |
display_x11screen | Returns the display of the screen of. |
number_x11screen | Returns the number of the screen of x11display_t. |
isequal_x11screen | Returns true if the two objects refer to the same screen. |
int init_x11screen( /*out*/x11screen_t * x11screen, struct x11display_t * display, uint32_t nrscreen )
Initializes x11screen_t with reference to x11display_t and screen number. If nrscreen >= <nrofscreens_x11display>(display) then error EINVAL is returned. Do not free the display as long as x11screen_t is not freed.
int32_t number_x11screen( const x11screen_t * x11screen )
Returns the number of the screen of x11display_t.
#define display_x11screen( x11screen ) ((x11screen)->display)
Implements x11screen_t.display_x11screen.
#define number_x11screen( x11screen ) ((x11screen)->nrscreen)
Implements x11screen_t.number_x11screen.
Export x11screen_t into global namespace.
typedef struct x11screen_t x11screen_t
Associates a x11display_t with a screen number.
struct x11screen_t
Test x11screen_t functionality.
int unittest_platform_X11_x11screen( void )
Static initializer.
#define x11screen_FREE { 0, 0 }
Static initializer.
#define x11screen_INIT( display, nrscreen ) { display, nrscreen }
Initializes x11screen_t with reference to x11display_t and screen number.
int init_x11screen( /*out*/x11screen_t * x11screen, struct x11display_t * display, uint32_t nrscreen )
Returns the display of the screen of.
struct x11display_t * display_x11screen( const x11screen_t * x11screen )
Returns the number of the screen of x11display_t.
int32_t number_x11screen( const x11screen_t * x11screen )
Returns true if the two objects refer to the same screen.
bool isequal_x11screen( const x11screen_t * lx11screen, const x11screen_t * rx11screen )
Implements x11screen_t.display_x11screen.
#define display_x11screen( x11screen ) ((x11screen)->display)
Implements x11screen_t.number_x11screen.
#define number_x11screen( x11screen ) ((x11screen)->nrscreen)