  | 
		
DECwindows Motif for OpenVMS Guide to Non-C
Bindings
 
 
 
FREE GC
 
OpenVMS Format
 X$FREE_GC
 (display, gc_id)
 
  
Argument Information
  
    | Argument  | 
    Usage  | 
    Data Type  | 
    Access  | 
    Mechanism  | 
   
  
    | 
      display
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      gc_id
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
 
 
FREE MODIFIERMAP
 
OpenVMS Format
 X$FREE_MODIFIERMAP
 (modifier_keys)
 
  
Argument Information
  
    | Argument  | 
    Usage  | 
    Data Type  | 
    Access  | 
    Mechanism  | 
   
  
    | 
      modifier_keys
     | 
    
      record
     | 
    
      x$modifier_keymap
     | 
    
      read
     | 
    
      reference
     | 
   
 
 
FREE PIXMAP
 
OpenVMS Format
 X$FREE_PIXMAP
 (display, pixmap_id)
 
  
Argument Information
  
    | Argument  | 
    Usage  | 
    Data Type  | 
    Access  | 
    Mechanism  | 
   
  
    | 
      display
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      pixmap_id
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
 
 
FREE STRING LIST
 
OpenVMS Format
 X$FREE_STRING_LIST
 (string_list)
 
  
Argument Information
  
    | Argument  | 
    Usage  | 
    Data Type  | 
    Access  | 
    Mechanism  | 
   
  
    | 
      string_list
     | 
    
      address
     | 
    
      byte
     | 
    
      read
     | 
    
      reference
     | 
   
 
 
GCONTEXT FROM GC
 
OpenVMS Format
 gc_resource_id_return = X$GCONTEXT_FROM_GC
 (gc_id)
 
  
Argument Information
  
    | Argument  | 
    Usage  | 
    Data Type  | 
    Access  | 
    Mechanism  | 
   
  
    | 
      gc_resource_id_return
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      write
     | 
    
      value
     | 
   
  
    | 
      gc_id
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
 
 
GEOMETRY
 
OpenVMS Format
 mask_return = X$GEOMETRY
 (display, screen_number, position, default_position, border_width,
 font_width, font_height, xadd, yadd, [x_coord_return],
 [y_coord_return], [width_return], [height_return])
 
  
Argument Information
  
    | Argument  | 
    Usage  | 
    Data Type  | 
    Access  | 
    Mechanism  | 
   
  
    | 
      mask_return
     | 
    
      mask_longword
     | 
    
      uns longword
     | 
    
      write
     | 
    
      value
     | 
   
  
    | 
      display
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      screen_number
     | 
    
      longword
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      position
     | 
    
      char_string
     | 
    
      character string
     | 
    
      read
     | 
    
      descriptor
     | 
   
  
    | 
      default_position
     | 
    
      char_string
     | 
    
      character string
     | 
    
      read
     | 
    
      descriptor
     | 
   
  
    | 
      border_width
     | 
    
      longword
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      font_width
     | 
    
      longword
     | 
    
      longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      font_height
     | 
    
      longword
     | 
    
      longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      xadd
     | 
    
      longword
     | 
    
      longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      yadd
     | 
    
      longword
     | 
    
      longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      x_coord_return
     | 
    
      longword
     | 
    
      longword
     | 
    
      write
     | 
    
      reference
     | 
   
  
    | 
      y_coord_return
     | 
    
      longword
     | 
    
      longword
     | 
    
      write
     | 
    
      reference
     | 
   
  
    | 
      width_return
     | 
    
      longword
     | 
    
      uns longword
     | 
    
      write
     | 
    
      reference
     | 
   
  
    | 
      height_return
     | 
    
      longword
     | 
    
      uns longword
     | 
    
      write
     | 
    
      reference
     | 
   
 
 
Returns
mask_return
A bit mask that specifies which of four values (width, height, x
offset, y offset) are actually found in the string, and whether the x
and y values are negative. Each bit indicates whether the corresponding
value was found in the parsed string. For each value found, the
corresponding argument is updated; for each value not found, the
argument is left unchanged.
Table 2-3 lists the predefined values and descriptions for
mask_return.  
 
  Table 2-3 Parse Mask Bits
  
    | Bit  | 
    Predefined Value  | 
    Description  | 
   
  
    | 
      1
     | 
    
      X$M_NO_VALUE
     | 
    
      Reserved.
     | 
   
  
    | 
      2
     | 
    
      X$M_X_VALUE
     | 
    
      The x-coordinate of the origin of a window.
     | 
   
  
    | 
      3
     | 
    
      X$M_Y_VALUE
     | 
    
      The y-coordinate of the origin of a window.
     | 
   
  
    | 
      4
     | 
    
      X$M_WIDTH_VALUE
     | 
    
      The width of the window in pixels.
     | 
   
  
    | 
      5
     | 
    
      X$M_HEIGHT_VALUE
     | 
    
      The height of the window in pixels.
     | 
   
  
    | 
      6
     | 
    
      X$M_ALL_VALUES
     | 
    
      Indicates if all values are present.
     | 
   
  
    | 
      7
     | 
    
      X$M_X_NEGATIVE_VALUE
     | 
    
      Indicates if the x-coordinate is negative.
     | 
   
  
    | 
      8
     | 
    
      X$M_Y_NEGATIVE_VALUE
     | 
    
      Indicates if the y-coordinate is negative.
     | 
   
 
 
 
Arguments
position
The position string that you want to parse. The
position argument is the address of a character string
descriptor that points to the string.
default_position
The default geometry specification string that you want to parse. The
default_position argument is the address of a
character string descriptor that points to the string.
x_coord_return
The x-coordinate to which GEOMETRY returns the x-offset from the
specified string and is relative to the origin of the drawable. This
argument is optional.
y_coord_return
The y-coordinate to which GEOMETRY returns the y-offset from the
specified string and is relative to the origin of the drawable. This
argument is optional.
width_return
Specifies the width value. This argument is optional.
height_return
Specifies the height value. This argument is optional.
 
 
GET ATOM NAME
 
OpenVMS Format
 status_return = X$GET_ATOM_NAME
 (display, atom_id, name_return, [name_len_return])
 
  
Argument Information
  
    | Argument  | 
    Usage  | 
    Data Type  | 
    Access  | 
    Mechanism  | 
   
  
    | 
      status_return
     | 
    
      cond_value
     | 
    
      uns longword
     | 
    
      write
     | 
    
      value
     | 
   
  
    | 
      display
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      atom_id
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      name_return
     | 
    
      char_string
     | 
    
      character string
     | 
    
      write
     | 
    
      descriptor
     | 
   
  
    | 
      name_len_return
     | 
    
      longword
     | 
    
      longword
     | 
    
      write
     | 
    
      reference
     | 
   
 
 
Returns
status_return
Specifies whether the routine completed successfully. The argument
status_return can be set to any of the OpenVMS
condition codes returned by LIB$SCOPY_R_DX.
 The routine returns one of the following condition values:
 
  
    | Value  | 
    Description  | 
   
  
    | 
      SS$_NORMAL
     | 
    
      Routine completed successfully.
     | 
   
  
    | 
      X$_ERRORREPLY
     | 
    
      Error received from server.
     | 
   
  
    | 
      X$_INSFMEM
     | 
    
      Insufficient virtual memory.
     | 
   
 
 
 
Arguments
name_return
The name of the atom associated with the identifier specified in
atom_id. The atom name is returned by the routine. The
name_return argument is the address of a character
string descriptor that points to the string.
name_len_return
The length of the atom name returned by the routine. This argument is
optional.
 
 
GET CHAR STRUCT
 
OpenVMS Format
 X$GET_CHAR_STRUCT
 (font_info, char_code, char_struc)
 
  
Argument Information
  
    | Argument  | 
    Usage  | 
    Data Type  | 
    Access  | 
    Mechanism  | 
   
  
    | 
      font_info
     | 
    
      record
     | 
    
      x$font_struct
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      char_code
     | 
    
      longword
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      char_struc
     | 
    
      record
     | 
    
      x$char_struct
     | 
    
      read
     | 
    
      reference
     | 
   
 
 
GET CLASS HINT
 
OpenVMS Format
 status_return = X$GET_CLASS_HINT
 (display, window_id, class_hints_return)
 
  
Argument Information
  
    | Argument  | 
    Usage  | 
    Data Type  | 
    Access  | 
    Mechanism  | 
   
  
    | 
      status_return
     | 
    
      cond_value
     | 
    
      uns longword
     | 
    
      write
     | 
    
      value
     | 
   
  
    | 
      display
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      window_id
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      class_hints_return
     | 
    
      record
     | 
    
      x$class_hint
     | 
    
      write
     | 
    
      reference
     | 
   
 
 
Returns
status_return
Specifies whether the routine completed successfully for the specified
window. This argument returns one of the following values:
  
    | Value  | 
    Description  | 
   
  
    | 
      SS$_NORMAL
     | 
    
      Routine completed successfully.
     | 
   
  
    | 
      X$_PROPUNDEF
     | 
    
      The property has not been defined.
     | 
   
 
 
 
GET COMMAND
 
OpenVMS Format
 status_return = X$GET_COMMAND
 (display, window_id, argv, argc, [name_len])
 
  
Argument Information
  
    | Argument  | 
    Usage  | 
    Data Type  | 
    Access  | 
    Mechanism  | 
   
  
    | 
      status_return
     | 
    
      cond_value
     | 
    
      uns longword
     | 
    
      write
     | 
    
      value
     | 
   
  
    | 
      display
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      window_id
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      argv
     | 
    
      char_string
     | 
    
      character string
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      argc
     | 
    
      uns longword
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      name_len
     | 
    
      uns longword
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
 
 
Returns
status_return
Specifies whether the routine completed successfully. The argument
status_return can be set to any of the OpenVMS
condition codes returned by LIB$SCOPY_R_DX. This argument returns one
of the following values:
  
    | Value  | 
    Description  | 
   
  
    | 
      SS$_NORMAL
     | 
    
      Routine completed successfully.
     | 
   
  
    | 
      0
     | 
    
      Property code does not exist.
     | 
   
 
 
 
Arguments
name_len
Length of the returned command string. This argument is optional.
 
 
GET DEFAULT
 
OpenVMS Format
 status_return = X$GET_DEFAULT
 (display, program_name, option_name, default_name_return,
 [default_len_return])
 
  
Argument Information
  
    | Argument  | 
    Usage  | 
    Data Type  | 
    Access  | 
    Mechanism  | 
   
  
    | 
      status_return
     | 
    
      cond_value
     | 
    
      uns longword
     | 
    
      write
     | 
    
      value
     | 
   
  
    | 
      display
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      program_name
     | 
    
      char_string
     | 
    
      character string
     | 
    
      read
     | 
    
      descriptor
     | 
   
  
    | 
      option_name
     | 
    
      char_string
     | 
    
      character string
     | 
    
      read
     | 
    
      descriptor
     | 
   
  
    | 
      default_name_return
     | 
    
      char_string
     | 
    
      character string
     | 
    
      write
     | 
    
      descriptor
     | 
   
  
    | 
      default_len_return
     | 
    
      word
     | 
    
      uns word
     | 
    
      write
     | 
    
      reference
     | 
   
 
 
Returns
status_return
Specifies whether the routine completed successfully.
 
 
Arguments
program_name
Name of the program that specifies the default property string for the
user environment. The program_name argument is the
address of a character string descriptor that points to the string.
option_name
Name of the property option for determining the user environment
defaults. The option_name argument is the address of a
character string descriptor that points to the string.
default_name_return
The address of a character string descriptor that points to the default
property string.
default_len_return
The length of the default string minus any padding characters added to
fill the string. This argument is optional.
 
 
GET ERROR DATABASE TEXT
 
OpenVMS Format
 X$GET_ERROR_DATABASE_TEXT
 (display, appl_name, message_name, default_message_name, buff_return,
 [len_return])
 
  
Argument Information
  
    | Argument  | 
    Usage  | 
    Data Type  | 
    Access  | 
    Mechanism  | 
   
  
    | 
      display
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      appl_name
     | 
    
      char_string
     | 
    
      character string
     | 
    
      read
     | 
    
      descriptor
     | 
   
  
    | 
      message_name
     | 
    
      char_string
     | 
    
      character string
     | 
    
      read
     | 
    
      descriptor
     | 
   
  
    | 
      default_message_name
     | 
    
      char_string
     | 
    
      character string
     | 
    
      read
     | 
    
      descriptor
     | 
   
  
    | 
      buff_return
     | 
    
      char_string
     | 
    
      character string
     | 
    
      write
     | 
    
      descriptor
     | 
   
  
    | 
      len_return
     | 
    
      word
     | 
    
      uns word
     | 
    
      write
     | 
    
      reference
     | 
   
 
 
Arguments
message_name
The type of the error message. Xlib uses the following message types to
report errors:
  
    | OpenVMS Binding  | 
    Description  | 
   
  
    | 
      X$C_PROTO_ERROR
     | 
    
      The protocol error number used as a string for
      message_name.
     | 
   
  
    | 
      X$C_XLIB_MESSAGE
     | 
    
      The message strings used internally by Xlib.
     | 
   
  
    | 
      X$C_REQUEST
     | 
    
      The major protocol request number used for the message argument. If no
      string is found in the error database, the default string is returned to
      buff_return.
     | 
   
 
The message_name argument is the address of a
character string descriptor that points to the string.
 length
The size of the buffer that is passed in buff_return.
This argument is optional.
 
 
GET ERROR TEXT
 
OpenVMS Format
 X$GET_ERROR_TEXT
 (display, code, buff_return, [len_return])
 
  
Argument Information
  
    | Argument  | 
    Usage  | 
    Data Type  | 
    Access  | 
    Mechanism  | 
   
  
    | 
      display
     | 
    
      identifier
     | 
    
      uns longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      code
     | 
    
      longword
     | 
    
      longword
     | 
    
      read
     | 
    
      reference
     | 
   
  
    | 
      buff_return
     | 
    
      char_string
     | 
    
      character string
     | 
    
      write
     | 
    
      descriptor
     | 
   
  
    | 
      len_return
     | 
    
      longword
     | 
    
      uns longword
     | 
    
      write
     | 
    
      reference
     | 
   
 
 
Arguments
buff_return
A pointer to the buffer to which GET ERROR TEXT returns the
description. The buff_return argument is the address
of a character string descriptor that points to the string.
len_return
The size of the text string that GET ERROR TEXT returns. This argument
is optional.
 
  
  
		 |