dtk_create_window(3) [debian man page]
DTK_CREATE_WINDOW(3) Draw Toolkit manual DTK_CREATE_WINDOW(3) NAME
dtk_create_window, dtk_close - Create and destroy a window SYNOPSIS
#include <drawtk.h> dtk_hwnd dtk_create_window(unsigned int width, unsigned int height, unsigned int x, unsigned int y, unsigned int bpp, const char *caption); void dtk_close(const dtk_hwnd wnd); DESCRIPTION
dtk_create_window() creates a window of size (width,height) to be used later as the target of next drawings. If width or height is zero, then the created window will be full screen. Arguments x and y have currently no effect. bpp specifies the number of "bits per pixel" the underlying OpenGL framebuffer should support. caption specifies the name of the window that the window manager should display. The inner frame size for drawings depends on the aspect ratio of the window. The origin (0,0) of the frame is always the the center of the window. The smallest dimension of the window is equal to 2 in the drawing coordinates, so that a draw made in the box between (-1,-1) and (1,1) always fits in the window. dtk_close() destroys an unused window. RETURN VALUE
dtk_create_window() returns an handle to the created window. On error, this function returns NULL. dtk_close() returns no value. LIMITATIONS
For the moment only one window can be created. Any subsequent call to dtk_create_window() will fail. This is due to the underlying SDL ver- sion used which supports only one window. SEE ALSO
dtk_make_current_window(3), dtk_update_screen(3), dtk_process_events(3) EPFL
2010 DTK_CREATE_WINDOW(3)
Check Out this Related Man Page
XMoveResizeWindow() XMoveResizeWindow() Name XMoveResizeWindow - change the size and position of a window. Synopsis XMoveResizeWindow(display, w, x, y, width, height) Display *display; Window w; int x, y; unsigned int width, height; Arguments display Specifies a connection to an X server; returned from XOpenDisplay(). w Specifies the ID of the window to be reconfigured. x Specify the new x and y coordinates of the upper-left pixel of the window's border, relative to the window's parent. y width Specify the new width and height in pixels. These arguments define the interior size of the window. height Description XMoveResizeWindow() moves or resizes a window or both. XMoveResizeWindow() does not raise the window. Resizing a mapped window may lose its contents and generate an Expose event on that window depending on the bit_gravity attribute. Configuring a window may generate expo- sure events on windows that the window formerly obscured, depending on the new size and location parameters. If the override_redirect attribute of the window is False (see Volume One, Chapter 4, Window Attributes) and the window manager has selected SubstructureRedirectMask on the parent, then a ConfigureRequest event is sent to the window manager, and no further processing is performed. If a client has selected StructureNotifyMask on the window, then a ConfigureNotify event is generated after the move and resize takes place, and the event will contain the final position and size of the window. This is only useful in the case of top-level windows, since the window manager may modify or prevent them being moved or resized. Errors BadValue BadWindow See Also XCirculateSubwindows(), XCirculateSubwindowsDown(), XCirculateSubwindowsUp(), XConfigureWindow(), XLowerWindow(), XMoveWindow(), XQuery- Tree(), XRaiseWindow(), XReparentWindow(), XResizeWindow(), XRestackWindows(). Xlib - Window Manipulation XMoveResizeWindow()