- Main Page
- Modules
- Files
- Related Pages

# X11
[g2 Physical devices]

## Functions
int | g2_open_X11 (int width, int height)
int | g2_open_X11X (int width, int height, int x, int y, char *window_name, char *icon_name, char *icon_data, int icon_width, int icon_height)

## Function Documentation

int g2_open_X11 | ( | int | width,
|  | int | height
| ) |

  | Open a simple X11 window (physical device device). Parameters:
  | width | window width
  | height | window height
Returns: physical device id

int g2_open_X11X | ( | int | width,
|  | int | height,
|  | int | x,
|  | int | y,
|  | char * | window_name,
|  | char * | icon_name,
|  | char * | icon_data,
|  | int | icon_width,
|  | int | icon_height
| ) |

  | Open a X11 window (physical device device). If icon_width or icon_height is smaller than 0, the icon_data is interpreted as a file name. Parameters:
  | width | window width
  | height | window height
  | x | x position on screen
  | y | y position on screen
  | window_name | hint for window manager
  | icon_name | hint for window manager
  | icon_data | icon bitmap (icon_width * icon_height bits) or file name containing bitmap (if icon_width <= 0 or icon_height <= 0)
  | icon_width | icon width
  | icon_height | icon height
Returns: physical device id