XsmGetVideoStatus(3X) — NEWS-OS Programmer’s Manual
NAME
XsmGetVideoStatus — Gets the current video status
SYNOPSIS
#include <X11/Xsm/VideoMap.h> Boolean XsmGetVideoStatus (widget, v_status)
Widgetwidget;
XsmVideoStatus∗v_status;
DESCRIPTION
XsmGetVideoStatus sets v_status to the video display function status of the display specified by the widget. If the widget is not VideoMap, or if the display does not support video, False is returned.
widgetSpecifies the ID of the widget in the display to be checked.
v_statusReturns the specified video status to the XsmVideoStatus structure.
STRUCTURE
The XsmVideoStatus structure is defined as follows.
typedef struct {
Windowrender_win;/∗ window in which video is displayed ∗/
Windowgrab_win;/∗ the window grabbing the video ∗/
intstatus;/∗ video display function status ∗/
intframerate;/∗ frame rate ∗/
XRectanglevideo;/∗ video reproduction area ∗/
XRectanglevideo_area;/∗ video display area ∗/
intreserved[24];
} XsmVideoStatus;
render_win
Contains the window in which video is displayed.
grab_winContains the window that is grabbing the video. While a window is grabbing the video, the other windows are not capable of video display.
statusContains the video display function status. This will be VideoStatusRun if video is being displayed and VideoStatusStop if display has been halted.
videoContains the coordinates, or size, of the area in the upper left corner of the window in which the video is mapped.
video_area
Contains the area in which the video is displayed within the window.
RETURN VALUE
False is returned if execution is unsuccessful.
SEE ALSO
XsmVideoMap(3X) XsmQueryVideo(3X) XsmCreateVideoMap(3X)
NEWS-OSRelease 4.1C