HP OpenVMS Systems Documentation

Content starts here

DECwindows Motif for OpenVMS Guide to Non-C Bindings


Previous Contents Index


SET FUNCTION


OpenVMS

X$SET_FUNCTION

(display, gc_id, function)

Argument Information
Argument Usage Data Type Access Mechanism
display identifier uns longword read reference
gc_id identifier uns longword read reference
function longword longword read reference

Arguments

function

The new value for the function member of the graphics context. The function member describes how the new destination bits are to be computed from the source bits and the old destination bits. Table 2-7 lists the valid values for function. The default value is 3 for X$C_GX_COPY.

Table 2-7 Graphics Context Codes for Function Member
Hex Value OpenVMS Function Name Operation
0 X$C_GX_CLEAR 0
1 X$C_GX_AND src AND dst
2 X$C_GX_AND_REVERSE src AND NOT dst
3 X$C_GX_COPY src
4 X$C_GX_AND_INVERTED (NOT src) AND dst
5 X$C_GX_NOOP dst
6 X$C_GX_XOR src XOR dst
7 X$C_GX_OR src OR dst
8 X$C_GX_NOR (NOT src) AND NOT dst
9 X$C_GX_EQUIV (NOT src) XOR dst
A X$C_GX_INVERT NOT dst
B X$C_GX_OR_REVERSE src OR NOT dst
C X$C_GX_COPY_INVERTED NOT src
D X$C_GX_OR_INVERTED (NOT src) OR dst
E X$C_GX_NAND (NOT src) OR NOT dst
F X$C_GX_SET 1

SET GRAPHICS EXPOSURES


OpenVMS Format

X$SET_GRAPHICS_EXPOSURES

(display, gc_id, graphics_exposures)

Argument Information
Argument Usage Data Type Access Mechanism
display identifier uns longword read reference
gc_id identifier uns longword read reference
graphics_exposures Boolean uns longword read reference

SET ICON NAME


OpenVMS Format

X$SET_ICON_NAME

(display, window_id, icon_name)

Argument Information
Argument Usage Data Type Access Mechanism
display identifier uns longword read reference
window_id identifier uns longword read reference
icon_name char_string character string read descriptor

SET ICON SIZES


OpenVMS Format

X$SET_ICON_SIZES

(display, window_id, size_list, count)

Argument Information
Argument Usage Data Type Access Mechanism
display identifier uns longword read reference
window_id identifier uns longword read reference
size_list array uns longword read reference
count longword longword read reference

SET INPUT FOCUS


OpenVMS Format

X$SET_INPUT_FOCUS

(display, focus_id, revert_to, time)

Argument Information
Argument Usage Data Type Access Mechanism
display identifier uns longword read reference
focus_id identifier uns longword read reference
revert_to longword longword read reference
time longword uns longword read reference

Arguments

focus_id

The window identifier of the window in which you want to set the input focus.

The identifier of the window was originally returned by CREATE SIMPLE WINDOW or CREATE WINDOW. When the window identifier is specified, that window becomes the keyboard's focus window. When keyboard events are normally reported to this window (or its inferiors), the events continue to be reported. Otherwise, the event is reported with respect to the focus window.

One of the following predefined values can be specified instead of the window identifier:

X$C_POINTER_ROOT
X$C_NONE

revert_to

Where the input focus moves to when the focus window becomes unviewable.

One of the following predefined values can be specified:

X$C_REVERT_TO_PARENT
X$C_REVERT_TO_POINTER_ROOT
X$C_REVERT_TO_NONE

SET IO ERROR HANDLER


OpenVMS Format

prev_handler_return = X$SET_IO_ERROR_HANDLER

(handler)

Argument Information
Argument Usage Data Type Access Mechanism
prev_handler_return procedure proc entry mask write reference
handler procedure proc entry mask read reference

SET LINE ATTRIBUTES


OpenVMS Format

X$SET_LINE_ATTRIBUTES

(display, gc_id, line_width, line_style, cap_style, join_style)

Argument Information
Argument Usage Data Type Access Mechanism
display identifier uns longword read reference
gc_id identifier uns longword read reference
line_width longword longword read reference
line_style longword longword read reference
cap_style longword longword read reference
join_style longword longword read reference

Arguments

line_style

Specifies the line style member. Line style defines the pattern of a line. The predefined values for line_style are as follows:
X$C_LINE_SOLID
X$C_LINE_DOUBLE_DASH
X$C_LINE_OFF_DASH

Other values specified in this argument are not valid.

cap_style

Specifies the cap style member, which defines how the endpoints of a path are drawn. The predefined values for cap_style are as follows:
X$C_CAP_NOT_LAST
X$C_CAP_BUTT
X$C_CAP_ROUND
X$C_CAP_PROJECTING

Other values specified in this argument are not valid. The default value is X$C_CAP_BUTT.

join_style

The join style. The join style defines how corners are drawn for wide lines. The predefined values for join_style are as follows:
X$C_JOIN_MITER
X$C_JOIN_ROUND
X$C_JOIN_BEVEL

Other values specified in this argument are not valid. The default value is X$C_JOIN_MITER.


SET MODIFIER MAPPING


OpenVMS Format

status_return = X$SET_MODIFIER_MAPPING

(display, modifier_keys)

Argument Information
Argument Usage Data Type Access Mechanism
status_return cond_value uns longword write value
display identifier uns longword read reference
modifier_keys record x$modifier_keymap read reference

Returns

status_return

A server can impose restrictions on how modifiers can be changed. If such a restriction is violated, SET MODIFIER MAPPING returns a status message. SET MODIFIER MAPPING returns the following values:
X$C_MAPPING_SUCCESS
X$C_MAPPING_FAILED
X$C_MAPPING_BUSY

SET NORMAL HINTS


OpenVMS Format

X$SET_NORMAL_HINTS

(display, window_id, hints)

Argument Information
Argument Usage Data Type Access Mechanism
display identifier uns longword read reference
window_id identifier uns longword read reference
hints record x$size_hints read reference

SET PLANE MASK


OpenVMS Format

X$SET_PLANE_MASK

(display, gc_id, plane_mask)

Argument Information
Argument Usage Data Type Access Mechanism
display identifier uns longword read reference
gc_id identifier uns longword read reference
plane_mask mask_longword uns longword read reference

SET POINTER MAPPING


OpenVMS Format

status_return = X$SET_POINTER_MAPPING

(display, pointer_map, num_maps)

Argument Information
Argument Usage Data Type Access Mechanism
status_return cond_value uns longword write value
display identifier uns longword read reference
pointer_map array byte read reference
num_maps word uns word read reference

Returns

status_return

Specifies whether the routine completed successfully. SET POINTER MAPPING returns one of the following status messages:
X$C_MAPPING_SUCCESS
X$C_MAPPING_BUSY
X$C_MAPPING_FAILED

SET REGION


OpenVMS Format

X$SET_REGION

(display, gc_id, region_id)

Argument Information
Argument Usage Data Type Access Mechanism
display identifier uns longword read reference
gc_id identifier uns longword read reference
region_id identifier uns longword read reference

SET RGB COLORMAPS


OpenVMS Format

X$SET_RGB_COLORMAPS

(display, window_id, standard_colormap, count, property_id)

Argument Information
Argument Usage Data Type Access Mechanism
display identifier uns longword read reference
window_id identifier uns longword read reference
standard_colormap record x$standard_colormap read reference
count longword longword read reference
property_id identifier uns longword read reference

SET SCREEN SAVER


OpenVMS Format

X$SET_SCREEN_SAVER

(display, timeout, interval, prefer_blanking, allow_exposures)

Argument Information
Argument Usage Data Type Access Mechanism
display identifier uns longword read reference
timeout longword longword read reference
interval longword longword read reference
prefer_blanking longword longword read reference
allow_exposures longword longword read reference

Arguments

prefer_blanking

Specifies the mode for whether to blank the screen during a screen save operation. The predefined values for prefer_blanking are as follows:
X$C_DONT_PREFER_BLANKING
X$C_PREFER_BLANKING
X$C_DEFAULT_BLANKING

Other values specified in this argument are not valid.

allow_exposures

Specifies screen saver control values. The predefined values for allow_exposures are as follows:
X$C_DONT_ALLOW_EXPOSURES
X$C_ALLOW_EXPOSURES
X$C_DEFAULT_EXPOSURES

Other values specified in this argument are not valid.


SET SELECTION OWNER


OpenVMS Format

X$SET_SELECTION_OWNER

(display, selection_id, owner_window_id, time)

Argument Information
Argument Usage Data Type Access Mechanism
display identifier uns longword read reference
selection_id identifier uns longword read reference
owner_window_id identifier uns longword read reference
time longword uns longword read reference


Previous Next Contents Index