Allows to query and change the video mode of a screen of x11screen_t.
X11-Videomode | Allows to query and change the video mode of a screen of x11screen_t. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file X11-Videomode. |
C-kern/ | Implementation file X11-Videomode impl. |
Types | |
struct x11videomode_t | Export x11videomode_t into global namespace. |
struct x11videomode_iterator_t | Export x11videomode_iterator_t into global namespace. |
Functions | |
test | |
unittest_platform_X11_x11videomode | Test x11videomode_t functionality. |
x11videomode_t | Describes a single supported videmode. |
width_in_pixel | Pixel size in horizontal direction. |
height_in_pixel | Pixel size in vertical direction. |
modeid | Internal implementation specific id. |
lifetime | |
x11videomode_FREE | Static initializer. |
initfromvalues_x11videomode | Initializes xvidmode with the parameter values. |
initcurrent_x11videomode | Returns the current active video mode of the default screen. |
change x11screen_t | |
set_x11videomode | Sets a new videomode of x11screen_t. |
x11videomode_iterator_t | Allows to query all supported videmodes of a x11screen_t. |
lifetime | |
x11videomode_iterator_FREE | Static initializer. |
init_x11videomodeiterator | Returns an iterator to a list of all video modes supported by x11screen_t. |
free_x11videomodeiterator | Frees the iterator and the associated list of all videomodes. |
iterator | |
gofirst_x11videomodeiterator | Resets iterator to first element. |
next_x11videomodeiterator | Returns next videomode element. |
inline implementation | |
x11videomode_t | |
initfromvalues_x11videomode | Implements x11videomode_t.initfromvalues_x11videomode. |
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-Videomode.
Implementation file X11-Videomode impl.
typedef struct x11videomode_t x11videomode_t
Export x11videomode_t into global namespace.
typedef struct x11videomode_iterator_t x11videomode_iterator_t
Export x11videomode_iterator_t into global namespace.
test | |
unittest_platform_X11_x11videomode | Test x11videomode_t functionality. |
int unittest_platform_X11_x11videomode( void )
Test x11videomode_t functionality.
struct x11videomode_t
Describes a single supported videmode.
width_in_pixel | Pixel size in horizontal direction. |
height_in_pixel | Pixel size in vertical direction. |
modeid | Internal implementation specific id. |
lifetime | |
x11videomode_FREE | Static initializer. |
initfromvalues_x11videomode | Initializes xvidmode with the parameter values. |
initcurrent_x11videomode | Returns the current active video mode of the default screen. |
change x11screen_t | |
set_x11videomode | Sets a new videomode of x11screen_t. |
int set_x11videomode( const x11videomode_t * xvidmode, struct x11screen_t * x11screen )
Sets a new videomode of x11screen_t.
struct x11videomode_iterator_t
Allows to query all supported videmodes of a x11screen_t.
lifetime | |
x11videomode_iterator_FREE | Static initializer. |
init_x11videomodeiterator | Returns an iterator to a list of all video modes supported by x11screen_t. |
free_x11videomodeiterator | Frees the iterator and the associated list of all videomodes. |
iterator | |
gofirst_x11videomodeiterator | Resets iterator to first element. |
next_x11videomodeiterator | Returns next videomode element. |
int init_x11videomodeiterator( /*out*/x11videomode_iterator_t * xvidit, struct x11screen_t * x11screen )
Returns an iterator to a list of all video modes supported by x11screen_t.
bool next_x11videomodeiterator( x11videomode_iterator_t * xvidit, /*out*/x11videomode_t * xvidmode )
Returns next videomode element. The first call after gofirst_x11videomodeiterator returns the first element.
#define initfromvalues_x11videomode( xvidmode, width_in_pixel, height_in_pixel, modeid ) ((void)(*(xvidmode) = (x11videomode_t) { width_in_pixel, height_in_pixel, modeid }))
Implements x11videomode_t.initfromvalues_x11videomode.
Export x11videomode_t into global namespace.
typedef struct x11videomode_t x11videomode_t
Describes a single supported videmode.
struct x11videomode_t
Export x11videomode_iterator_t into global namespace.
typedef struct x11videomode_iterator_t x11videomode_iterator_t
Allows to query all supported videmodes of a x11screen_t.
struct x11videomode_iterator_t
Test x11videomode_t functionality.
int unittest_platform_X11_x11videomode( void )
Pixel size in horizontal direction.
uint32_t width_in_pixel
Pixel size in vertical direction.
uint32_t height_in_pixel
Internal implementation specific id.
uint16_t modeid
Static initializer.
#define x11videomode_FREE { 0, 0, 0 }
Initializes xvidmode with the parameter values.
void initfromvalues_x11videomode( /*out*/x11videomode_t * xvidmode, uint32_t width_in_pixel, uint32_t height_in_pixel, uint16_t modeid )
Returns the current active video mode of the default screen.
int initcurrent_x11videomode( /*out*/x11videomode_t * current_xvidmode, struct x11screen_t * x11screen )
Sets a new videomode of x11screen_t.
int set_x11videomode( const x11videomode_t * xvidmode, struct x11screen_t * x11screen )
Static initializer.
#define x11videomode_iterator_FREE { 0, 0, 0 }
Returns an iterator to a list of all video modes supported by x11screen_t.
int init_x11videomodeiterator( /*out*/x11videomode_iterator_t * xvidit, struct x11screen_t * x11screen )
Frees the iterator and the associated list of all videomodes.
int free_x11videomodeiterator( x11videomode_iterator_t * xvidit )
Resets iterator to first element.
void gofirst_x11videomodeiterator( x11videomode_iterator_t * xvidit )
Returns next videomode element.
bool next_x11videomodeiterator( x11videomode_iterator_t * xvidit, /*out*/x11videomode_t * xvidmode )
Implements x11videomode_t.initfromvalues_x11videomode.
#define initfromvalues_x11videomode( xvidmode, width_in_pixel, height_in_pixel, modeid ) ((void)(*(xvidmode) = (x11videomode_t) { width_in_pixel, height_in_pixel, modeid }))