yw_window_new

Name

yw_window_new -- create new window

Synopsis


     #include <yw/window.h>
   

YwWindow *yw_window_new(YwConnection *conn, YwPacket *taglist);

DESCRIPTION

This function creates new window on server side (by sending open_window command to the server) and YwWindow helper structure on client side. YwWindow supports all primitive window operations, like drawing, scrolling, etc. Window is connected to server through conn. taglist contains parameters of created window. This function fetches for own purpouses "width", "virtual_width", "height" and "virtual_height". However entire packet is passed to server (and then to WM) untouched.

RETURN VALUE

Pointer to YwWindow structure, or NULL in case of error. Note: in current implementation, this function bombs when server refuses to create window, so it never returns NULL.

SEE ALSO

yw_window_new_and_free (3), yw_window_close (3), yw_window_buffer (3),

INFO

Generated from: window.c,v 1.1 2001/05/04 11:04:23 malekith Exp.