1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 22:28:02 +01:00
Files
wmaker/src/pixmap.h
Carlos R. Mafra e1d5ce7a51 Cleanup includes of wcore.h, defaults.h and pixmap.h
Several files were including others for no reason, and this slows
down the build time (but probably not measurable on a fast machine).
2010-03-17 11:12:53 +01:00

48 lines
1.6 KiB
C

/*
* Window Maker window manager
*
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* 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.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
* USA.
*/
#ifndef WMPIXMAP_H_
#define WMPIXMAP_H_
#include "screen.h"
typedef struct WPixmap {
Pixmap image; /* icon image */
Pixmap mask; /* icon mask */
int width, height; /* size of pixmap */
int depth; /* depth of pixmap */
unsigned int shared:1; /* if pixmaps should be kept
* when structure is freed */
unsigned int client_owned:1;
unsigned int client_owned_mask:1;
} WPixmap;
WPixmap *wPixmapCreate(WScreen *scr, Pixmap image, Pixmap mask);
WPixmap *wPixmapCreateFromXPMData(WScreen *scr, char **data);
WPixmap *wPixmapCreateFromXBMData(WScreen *scr, char *data, char *mask,
int width, int height, unsigned long fg,
unsigned long bg);
void wPixmapDestroy(WPixmap *pix);
#endif