Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xosd_is_onscreen(3) [debian man page]

XOSD_IS_ONSCREEN(3)													       XOSD_IS_ONSCREEN(3)

NAME
xosd_is_onscreen - Returns wether the XOSD window is shown SYNOPSIS
#include <xosd.h> xosd *xosd_is_onscreen (xosd *osd); DESCRIPTION
osd_is_onscreen determines weather a XOSD window, is currently being shown (is mapped to the X display). Because XOSD displays data asyn- chronously (see xosd_display(3) for details) it can be difficult to know if data is being displayed, xosd_is_onscreen solves this problem. Call xosd_show(3) or xosd_hide(3) to alter the visibility of the XOSD window. ARGUMENTS
osd The XOSD window to query. RETURN VALUE
A 1 is returned if the window is onscreen (mapped), or 0 if it is hidden (unmapped). On error, -1 is returned and xosd_error is set to in- dicate the reason for the error. ENVIRONMENT
char *xosd_error A string to a text string describing the error, if one occurred. HISTORY
The xosd_is_onscreen function first appeared in version 2.1 of the XOSD library. AUTHORS
The XOSD library was originally written by Andre Renaud and is currenly maintained by Tim Wright, who also wrote the xosd_is_onscreen func- tion. Michael JasonSmith thinks he wrote this document, but is not sure; drop Micahel an email (<mike@ldots.org>) if you think he didn't write this document. BUGS
There are no known bugs with xosd_is_onscreen. Bug reports can be sent to <xosd@ignavus.net>. SEE ALSO
xosd_display(3), xosd_show(3), xosd_hide(3). XOSD_IS_ONSCREEN(3)

Check Out this Related Man Page

XOSD(3) 						     Library Functions Manual							   XOSD(3)

NAME
xosd - X on-screen display library SYNOPSIS
#include <xosd.h> xosd* xosd_create(int number_lines); int xosd_uninit (xosd* osd); int xosd_display (xosd* osd, int line, xosd_command command, ...); int xosd_is_onscreen(xosd* osd); int xosd_wait_until_no_display(xosd* osd); int xosd_hide (xosd* osd); int xosd_show (xosd* osd); int xosd_set_pos (xosd* osd, xosd_pos pos); int xosd_set_vertical_offset (xosd* osd, int offset); int xosd_set_horizontal_offset (xosd* osd, int offset); int xosd_set_align (xosd* osd, xosd_align align) int xosd_set_shadow_offset (xosd* osd, int shadow_offset); int xosd_set_timeout (xosd* osd, int timeout); int xosd_set_font (xosd* osd, char* font); int xosd_set_colour (xosd* osd, char* colour); int xosd_get_colour (xosd* osd, int* red, int* green, int* blue); int xosd_scroll (xosd* osd, int lines); int xosd_get_number_lines ( xosd* osd); DESCRIPTION
xosd is a library for displaying an on-screen display (like the one on many TVs) on your X display. Each function should have it's own man- page. The latest version can be found on http://www.ignavus.net/software.html It is distributed under the GNU General Public License. BUGS
No known bugs at the moment. There are probably functions that aren't listed here. Bug reports can be sent to tnw13@cosc.canterbury.ac.nz EXAMPLE
#include <xosd.h> int main (int argc, char *argv[]) { xosd *osd; osd = xosd_create (1); xosd_set_font(osd, "fixed"); xosd_set_colour(osd, "LawnGreen"); xosd_set_timeout(osd, 3); xosd_set_shadow_offset(osd, 1); xosd_display (osd, 0, XOSD_string, "Example XOSD output"); xosd_wait_until_no_display(osd); xosd_uninit (osd); return EXIT_SUCCESS; } AUTHOR
Martijn van de Streek <martijn@foodfight.org>, Some patching by Malcolm Valentine <farkit@iprimus.com.au> and Tim Wright <tim@ignavus.net>. xosd was written by Andre Renaud <andre@ignavus.net> and is maintained by Tim Wright <tim@ignavus.net>. SEE ALSO
More information on the X OSD Library and its author can be found on http://www.ignavus.net/software.html. Each function has its own man- page. See there for more information. X OSD Library December 2000 XOSD(3)
Man Page