XGetTextProperty man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

XGetTextProperty()					    XGetTextProperty()

Name
  XGetTextProperty – read one of a window's text properties.

Synopsis
  Status XGetTextProperty(display, w, text_prop_return, property)
	Display *display;
	Window w;
	XTextProperty *text_prop_return;
	Atom property;

Arguments
  display   Specifies	a  connection  to  an  X  server;  returned  from
	    XOpenDisplay().

  w	    Specifies the window.

  text_prop_return
	    Returns the XTextProperty structure.

  property  Specifies the property name.

Returns
  Zero on failure, non-zero on success.

Availability
  Release 4 and later.

Description
  XGetTextProperty() reads the specified property  from	 the  window  and
  stores the data in the returned XTextProperty structure.  It stores the
  data in the value field, the type of the data in  the	 encoding  field,
  the  format of the data in the format field, and the number of items of
  data in the nitems field.  An extra byte containing null (which is  not
  included  in the nitems number) is stored at the end of the value field
  of text_prop_return.	The particular interpretation of  the  property's
  encoding  and	 data as ``text'' is left to the calling application.  If
  the specified property does not exist on the window, XGetTextProperty()
  sets	the  value  field to NULL, the encoding field to None, the format
  field to zero, and the nitems field to zero.

  If it was able to set these files in the XTextProperty structure, XGet‐
  TextProperty()  returns a non-zero status; otherwise, it returns a zero
  status.

  For more information, see Volume One, Chapter 12, Interclient	 Communi‐
  cation.

Structures
     typedef struct {
	 unsigned char *value;	      /* same as Property routines */
	 Atom encoding;		      /* prop type */
	 int format;		      /* prop data format: 8, 16, or 32 */
	 unsigned long nitems;	      /* number of data items in value */
     } XTextProperty;

Errors
  BadAtom
  BadWindow

See Also
  XFreeStringList(),   XSetTextProperty(),   XStringListToTextProperty(),
  XTextPropertytoStringList.

Xlib - Window Manager Hints				    XGetTextProperty()
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net