mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-27 00:42:32 +01:00
Initial revision
This commit is contained in:
74
src/icon.h
Normal file
74
src/icon.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* WindowMaker window manager
|
||||
*
|
||||
* Copyright (c) 1997, 1998 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 WMICON_H_
|
||||
#define WMICON_H_
|
||||
|
||||
#include "wcore.h"
|
||||
#include "window.h"
|
||||
#include "funcs.h"
|
||||
|
||||
|
||||
#define TILE_NORMAL 0
|
||||
#define TILE_CLIP 1
|
||||
|
||||
|
||||
typedef struct WIcon {
|
||||
WCoreWindow *core;
|
||||
WWindow *owner; /* owner window */
|
||||
char *icon_name; /* the icon name hint */
|
||||
|
||||
Window icon_win; /* client suplied icon window */
|
||||
|
||||
char *file; /* the file with the icon image */
|
||||
RImage *image;
|
||||
|
||||
short tile_type;
|
||||
|
||||
unsigned int show_title:1;
|
||||
unsigned int has_titlebar:1;
|
||||
unsigned int force_paint:1; /* True for icon update and repaint */
|
||||
unsigned int selected:1;
|
||||
unsigned int step:1;
|
||||
unsigned int shadowed:1; /* If the icon is to be blured */
|
||||
unsigned int mapped:1;
|
||||
unsigned int highlighted:1;
|
||||
|
||||
Pixmap pixmap;
|
||||
|
||||
WMHandlerID handlerID; /* timer handler ID for cycling select
|
||||
* color */
|
||||
} WIcon;
|
||||
|
||||
WIcon *wIconCreateWithIconFile(WScreen *scr, char *iconfile, int tile);
|
||||
WIcon *wIconCreate(WWindow *wwin);
|
||||
void wIconDestroy(WIcon *icon);
|
||||
void wIconPaint(WIcon *icon);
|
||||
void wIconUpdate(WIcon *icon);
|
||||
void wIconChangeTitle(WIcon *icon, char *new_title);
|
||||
void wIconChangeImage(WIcon *icon, RImage *new_image);
|
||||
Bool wIconChangeImageFile(WIcon *icon, char *file);
|
||||
void wIconSelect(WIcon *icon);
|
||||
|
||||
RImage *wIconValidateIconSize(WScreen *scr, RImage *icon);
|
||||
|
||||
#endif /* WMICON_H_ */
|
||||
Reference in New Issue
Block a user