typedef struct { GR_WINDOW_ID wid; GR_WINDOW_ID parent; GR_WINDOW_ID child; GR_WINDOW_ID sibling; GR_BOOL inputonly; GR_BOOL mapped; GR_COUNT unmapcount; GR_COORD x; GR_COORD y; GR_SIZE width; GR_SIZE height; GR_SIZE bordersize; GR_COLOR bordercolor; GR_COLOR background; GR_EVENT_MASK eventmask; GR_WM_PROPS props; } GR_WINDOW_INFO; |
This stucture is used in conjuncion with the GrGetWindowInfo() function to return information about a window's current properties.
Type | Name | Description |
---|---|---|
GR_WINDOW_ID | wid | The window ID of the window described in this structure, or 0 if the window passed to GrGetWindowInfo() is invalid. |
GR_WINDOW_ID | parent | The window ID of this window's parent window. |
GR_WINDOW_ID | child | The window ID of this window's first child window. All of this window's child windows can be determined by obtaining window information on the first child, then the first child's next sibling, then that child's next sibling, etc.. This field will be zero if the window has no children. |
GR_WINDOW_ID | sibling | The window ID of this windows's next sibling window. All child windows, of a particular parent, form a singly linked list. This field indicates the next child window in the list. This field will be zero if the window has no siblings, or is the last sibling in the linked list. |
GR_BOOL | inputonly | This field is GR_TRUE if the window is an input only window. |
GR_BOOL | mapped | This field is GR_TRUE if the window is mapped (visible). |
GR_COUNT | unmapcount | The depth of unmapping for this window. When zero this window is visible. Each time the window is unmapped this field will increase, each time the window is mapped this field will decrement. |
GR_COORD | x | The X coordinate of the uper left corner of the window relative to the screen. |
GR_COORD | y | The Y coordinate of the uper left corner of the window relative to the screen. |
GR_SIZE | width | The width of the window. |
GR_SIZE | height | The height of the window. |
GR_SIZE | bordersize | The width of the window's border. |
GR_COLOR | bordercolor | The color of the window's border. |
GR_COLOR | background | The window's background color. |
GR_EVENT_MASK | eventmask | The window's event mask. The value of this field indicates all events that the window is selected to receive (see GrSelectEvents()). |
GR_WM_PROPS | props | The window's window manager properties. |