1998-09-29 22:36:29 +00:00
|
|
|
/*
|
1998-10-21 14:43:47 +00:00
|
|
|
* Window Maker window manager
|
2004-10-12 21:28:27 +00:00
|
|
|
*
|
2003-01-16 23:30:45 +00:00
|
|
|
* Copyright (c) 1997-2003 Alfredo K. Kojima
|
2004-10-12 21:28:27 +00:00
|
|
|
*
|
1998-09-29 22:36:29 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
2010-10-08 01:32:11 +02:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
1998-09-29 22:36:29 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef WMCORE_H_
|
|
|
|
|
#define WMCORE_H_
|
|
|
|
|
|
|
|
|
|
#include "screen.h"
|
|
|
|
|
|
|
|
|
|
typedef struct WStacking {
|
2012-10-06 17:58:52 +02:00
|
|
|
struct _WCoreWindow *above;
|
|
|
|
|
struct _WCoreWindow *under;
|
|
|
|
|
short window_level;
|
|
|
|
|
struct _WCoreWindow *child_of; /* owner for transient window */
|
1998-09-29 22:36:29 +00:00
|
|
|
} WStacking;
|
|
|
|
|
|
|
|
|
|
typedef struct _WCoreWindow {
|
2012-10-06 17:58:52 +02:00
|
|
|
Window window;
|
|
|
|
|
int width; /* size of the window */
|
|
|
|
|
int height;
|
|
|
|
|
WScreen *screen_ptr; /* ptr to screen of the window */
|
2004-10-12 21:28:27 +00:00
|
|
|
|
2012-10-06 17:58:52 +02:00
|
|
|
WObjDescriptor descriptor;
|
|
|
|
|
WStacking *stacking; /* window stacking information */
|
1998-09-29 22:36:29 +00:00
|
|
|
} WCoreWindow;
|
|
|
|
|
|
2004-10-12 21:28:27 +00:00
|
|
|
WCoreWindow *wCoreCreateTopLevel(WScreen *screen, int x, int y, int width,
|
2012-10-06 17:58:52 +02:00
|
|
|
int height, int bwidth,
|
2013-03-20 04:02:17 +01:00
|
|
|
int depth, Visual *visual, Colormap colormap,
|
|
|
|
|
WMPixel border_pixel);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
2004-10-12 21:28:27 +00:00
|
|
|
WCoreWindow *wCoreCreate(WCoreWindow *parent, int x, int y,
|
2012-10-06 17:58:52 +02:00
|
|
|
int width, int height);
|
|
|
|
|
|
1998-09-29 22:36:29 +00:00
|
|
|
void wCoreDestroy(WCoreWindow *core);
|
2004-10-12 21:28:27 +00:00
|
|
|
void wCoreConfigure(WCoreWindow *core, int req_x, int req_y,
|
2012-10-06 17:58:52 +02:00
|
|
|
int req_w, int req_h);
|
1998-09-29 22:36:29 +00:00
|
|
|
#endif
|