4
Data Types
The following is a list of XView data types and their descriptions.
Canvas Handle to an opaque structure that describes a canvas.
Canvas_attribute One of the canvas attributes (CANVAS_*).
Xv_Cursor Handle to an opaque structure that describes a cursor.
Xv_Cursor_attribute One of the cursor attributes (CURSOR_*).
Destroy_status Enumeration:
DESTROY_PROCESS_DEATH
DESTROY_CHECKING
DESTROY_CLEANUP
DESTROY_SAVE_YOURSELF
Dnd Handle to an opaque structure that describes a drag and drop
object.
DndDragType Enumeration:
DND_MOVE=0
DND_COPY
Xv_drag_drop Handle to an opaque structure that describes a drag and drop
object.
Drop_site_item Handle to an opaque structure that describes a drop site.
Xv_drop_site Handle to an opaque structure that describes a drop site.
Event The structure that describes an input event. Use macros for
access:
typedef struct inputevent {
short ie_code;
/* input code */
short ie_flags;
short ie_shiftmask;
/* input code shift state */
short ie_locx, ie_locy;
/* locator (usually a mouse) position */
Data Types
Data Types 221
struct timeval ie_time;
/* time of event */
short action;
/* keymapped version of ie_code */
Xv_object ie_win;
/* window the event is directed to */
char *ie_string;
/* String returned from XLookupString
* or language translation string. */
XEvent *ie_xevent;
/* pointer to actual XEvent struct */
} Event;
Xv_Font Pointer to an opaque structure that describes a font.
Xv_Font_attribute One of the font attributes (FONT_*).
Frame Pointer to an opaque structure that describes a frame.
Frame_attribute One of the frame attributes (FRAME_*).
Fullscreen Handle to an opaque structure that describes a fullscreen.
Fullscreen_attribute
One of the fullscreen attributes (
FULLSCREEN_*).
Icon Handle to an opaque structure that describes a icon.
Icon_attribute One of the icon attributes (ICON_*).
Inputmask Mask specifying which input events a window will receive.
Menu Pointer to an opaque structure that describes a menu.
Menu_attribute One of the menu attributes (MENU_*).
Menu_generate Enumerated type for the operation parameter passed to gen-
erate procs. Enumeration:
MENU_DISPLAY
MENU_DISPLAY_DONE
MENU_NOTIFY
MENU_NOTIFY_DONE
Xv_notice Handle to an opaque structure that describes a notice.
Xv_Notice Handle to an opaque structure that describes a notice.
Menu_item Pointer to an opaque structure that describes a menu item.
Notice_attribute One of the notice attributes (NOTICE_*).
Notify_arg Opaque client optional argument.
Notify_destroy Enumeration:
NOTIFY_SAFE
NOTIFY_IMMEDIATE
Notify_event Opaque client event.
222 XView Reference Manual
Notify_event_type Enumeration of errors for notifier functions:
NOTIFY_SAFE
NOTIFY_IMMEDIATE
Notify_func Notifier function.
Notify_signal_mode Enumeration:
NOTIFY_SYNC
NOTIFY_ASYNC
Notify_value Enumeration of possible return values for client notify
procs:
NOTIFY_DONE
NOTIFY_IGNORED
NOTIFY_UNEXPECTED
Openwin_split_direction
Enumeration:
OPENWIN_SPLIT_HORIZONTAL
OPENWIN_SPLIT_VERTICAL
Panel Pointer to an opaque structure that describes a panel.
Panel_attr One of the panel attributes (PANEL_*).
Panel_item Pointer to an opaque structure that describes a panel item.
Panel_item_type Enumerated type:
PANEL_ABBREV_MENU_BUTTON_ITEM
PANEL_BUTTON_ITEM
PANEL_CHOICE_ITEM
PANEL_DROP_TARGET_ITE
PANEL_EXTENSION_ITEM
PANEL_GAUGE_ITEM
PANEL_ITEM
PANEL_LIST_ITEM
PANEL_MESSAGE_ITEM
PANEL_MULTILINE_TEXT_ITEM
PANEL_NUMERIC_TEXT_ITEM
PANEL_SLIDER_ITEM
PANEL_TEXT_ITEM
PANEL_TOGGLE_ITEM
Panel_list_op Enumerated type:
PANEL_LIST_OP_DELETE
PANEL_LIST_OP_DESELECT
PANEL_LIST_OP_SELECT
PANEL_LIST_OP_VALIDATE
Data Types
Data Types 223
Panel_setting Enumerated type:
PANEL_CLEAR
PANEL_NO_CLEAR
PANEL_NONE
PANEL_ALL
PANEL_NON_PRINTABLE
PANEL_SPECIFIED
PANEL_CURRENT
PANEL_DONE
PANEL_MARKED
PANEL_VERTICAL
PANEL_HORIZONTAL
PANEL_INVERTED
PANEL_INSERT
PANEL_NEXT
PANEL_PREVIOUS
PANEL_NONE_DOWN
PANEL_LEFT_DOWN
PANEL_MIDDLE_DOWN
PANEL_RIGHT_DOWN
PANEL_CHORD_DOWN
Rect The structure describing a rectangle:
typedef struct rect {
short r_left;
short r_top;
short r_width;
short r_height;
} Rect;
Rectlist A list of rectangles:
typedef struct rectlist {
short rl_x, rl_y;
Rectnode *rl_head;
Rectnode *rl_tail;
Rect rl_bound;
} Rectlist;
Rectnode One of the individual rectangles in a rectlist:
typedef struct rectnode {
Rectnode *rn_next;
Rect rn_rect;
} Rectnode;
Xv_Screen Pointer to an opaque structure that describes a screen.
Xv_Screen_attr One of the screen attributes (SCREEN_*).
Scrollbar The opaque handle for a scrollbar.
Scrollbar_attr One of the scrollbar attributes (SCROLL_*).
224 XView Reference Manual
Scrollbar_motion Enumeration:
SCROLL_ABSOLUTE
SCROLL_POINT_TO_MIN
SCROLL_PAGE_FORWARD
SCROLL_LINE_FORWARD
SCROLL_MIN_TO_POINT
SCROLL_PAGE_BACKWARD
SCROLL_LINE_BACKWARD
SCROLL_TO_END
SCROLL_TO_START
SCROLL_NONE
Scrollbar_setting Enumeration:
SCROLL_VERTICAL
SCROLL_HORIZONTAL
Selection_item Handle to an opaque structure that describes the selection item.
Selection_owner Handle to an opaque structure that describes the selection
owner.
Selection_requestor Handle to an opaque structure that describes the selection
requestor.
Seln_attribute One of the seln attributes.
Xv_Server Pointer to an opaque structure that describes a server.
Server_attr One of the server attributes.
Server_image Pointer to an opaque structure that describes a server image.
Server_image_attribute
One of the Server_image attributes:
SERVER_IMAGE_DEPTH
SERVER_IMAGE_BITS
Xv_single_color Color values for a pixel. Defined in <xview/cms.h>.
typedef struct xv_singlecolor {
u_char red, green, blue;
} Xv_singlecolor;
Textsw Pointer to an opaque structure that describes a text subwindow.
Data Types
Data Types 225

Get Volume 7B: XView Reference Manual now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.