Top | ![]() |
![]() |
![]() |
![]() |
The LwOutput object specifies the position and the size of an onscreen output area. Usually one LwOutput will be created for each physical monitor.
gdouble
lw_output_get_aspect_ratio (LwOutput *self
);
Returns the quotient of width and height if both are > 0 and 0 otherwise.
guint
lw_output_get_id (LwOutput *self
);
Since LiveWallpaper 0.5 the size and position of an output cannot change. You can use the ID to identify exactly this output.
guint
lw_output_get_longest_side (LwOutput *self
);
Returns the width if width > height, otherwise the height.
Since: 0.5
guint
lw_output_get_shortest_side (LwOutput *self
);
Returns the width, if width < height, otherwise the height.
Since: 0.5
void
lw_output_make_current (LwOutput *self
);
Adjusts the OpenGL viewport to fit to the output. It also restricts the drawing
operations to the viewport using glScissor.
LiveWallpaper will call this for you so you don't have to do this again in
lw_wallpaper_adjust_viewport()
.
Since: 0.5
struct LwOutput;
Represents an output area. One LwOutput will be created for each physical monitor.
If LiveWallpaper recognizes a new screen or if the screen resolution changes, all outputs will be destroyed and LiveWallpaper will create new outputs. Just keep this in mind if you associate data with a specific output, because the output can be destroyed and you don't recognize it.
LiveWallpaper will never destroy an output without calling lw_wallpaper_restore_viewport()
.
“height”
property“height” guint
The height of the output
Flags: Read / Write / Construct Only
Default value: 0
“width”
property“width” guint
The width of the output
Flags: Read / Write / Construct Only
Default value: 0
“x”
property“x” guint
The X coordinate of the output
Flags: Read / Write / Construct Only
Default value: 0
“y”
property“y” guint
The Y coordinate of the output
Flags: Read / Write / Construct Only
Default value: 0