Supported Browsers Home   
MGL_wmCreate Previous   
MGL_wmDestroy Next   
External Functions Up   

MGL_wmCreateWindow

Creates new window.

Declaration

window_t *MGLAPI MGL_wmCreateWindow(
    winmng_t *wm,
    window_t *parent,
    int x,
    int y,
    size_t width,
    size_t height)

Prototype In

mgraph.h

Parameters

wm

window manager that will manage this window

parent

parent window

x

X coordinate of initial window position

y

Y coordinate of initial window position

width

initial window width

height

initial window height

 

Return Value

The created window.

Description

Creates new window and assigns it to given window manager. The window is created as invisible, you must call MGL_wmShowWindow to show it. You must also call MGL_wmSetWindowPainter to set painting callback, otherwise the window will be transparent.

If parent is NULL, the window is created as top level one and its parent is set to window manager's root window.

See Also

MGL_wmCreate, MGL_wmDestroyWindow, MGL_wmSetWindowPosition, MGL_wmSetWindowPainter, MGL_wmSetWindowCursor, MGL_wmSetWindowFlags, MGL_wmSetWindowUserData, MGL_wmSetWindowDestructor, MGL_wmGetWindowParent, MGL_wmCoordGlobalToLocal, MGL_wmCoordLocalToGlobal, MGL_wmGetWindowAtPosition, MGL_wmReparentWindow, MGL_wmLowerWindow, MGL_wmRaiseWindow, MGL_wmShowWindow, MGL_wmInvalidateWindow, MGL_wmBeginPaint, MGL_wmPushWindowEventHandler, MGL_wmPopWindowEventHandler, MGL_wmCaptureEvents, MGL_wmUncaptureEvents

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com