mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Initial revision
This commit is contained in:
106
src/dock.h
Normal file
106
src/dock.h
Normal file
@@ -0,0 +1,106 @@
|
||||
/* dock.h- built-in Dock module for WindowMaker
|
||||
*
|
||||
* 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 WMDOCK_H_
|
||||
#define WMDOCK_H_
|
||||
|
||||
|
||||
#include "appicon.h"
|
||||
#include "funcs.h"
|
||||
|
||||
|
||||
typedef struct WDock {
|
||||
WScreen *screen_ptr;
|
||||
int x_pos, y_pos; /* position of the first icon */
|
||||
|
||||
WAppIcon **icon_array; /* array of docked icons */
|
||||
int max_icons;
|
||||
|
||||
int icon_count;
|
||||
|
||||
#define WM_DOCK 0
|
||||
#define WM_CLIP 1
|
||||
#define NORMAL_DOCK WM_DOCK
|
||||
#define EXTENDED_DOCK WM_CLIP
|
||||
int type;
|
||||
|
||||
WMagicNumber auto_collapse_magic;
|
||||
unsigned int auto_collapse:1; /* if clip auto-collapse itself */
|
||||
unsigned int on_right_side:1;
|
||||
unsigned int collapsed:1;
|
||||
unsigned int mapped:1;
|
||||
unsigned int lowered:1;
|
||||
unsigned int attract_icons:1; /* If clip should attract app-icons */
|
||||
unsigned int keep_attracted:1; /* if keep them when application exits*/
|
||||
|
||||
unsigned int lclip_button_pushed:1;
|
||||
unsigned int rclip_button_pushed:1;
|
||||
|
||||
struct WMenu *menu;
|
||||
|
||||
struct WDDomain *defaults;
|
||||
} WDock;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
WDock *wDockCreate(WScreen *scr, int type);
|
||||
WDock *wDockRestoreState(WScreen *scr, proplist_t dock_state, int type);
|
||||
|
||||
void wDockDestroy(WDock *dock);
|
||||
void wDockHideIcons(WDock *dock);
|
||||
void wDockShowIcons(WDock *dock);
|
||||
void wDockLower(WDock *dock);
|
||||
void wDockRaise(WDock *dock);
|
||||
void wDockRaiseLower(WDock *dock);
|
||||
void wDockSaveState(WScreen *scr);
|
||||
|
||||
Bool wDockAttachIcon(WDock *dock, WAppIcon *icon, int x, int y);
|
||||
int wDockSnapIcon(WDock *dock, WAppIcon *icon, int req_x, int req_y,
|
||||
int *ret_x, int *ret_y, int redocking);
|
||||
int wDockFindFreeSlot(WDock *dock, int *req_x, int *req_y);
|
||||
void wDockDetach(WDock *dock, WAppIcon *icon);
|
||||
|
||||
void wDockTrackWindowLaunch(WDock *dock, Window window);
|
||||
WAppIcon *wDockFindIconFor(WDock *dock, Window window);
|
||||
void wDockDoAutoLaunch(WDock *dock, int workspace);
|
||||
void wDockLaunchWithState(WDock *dock, WAppIcon *btn, WSavedState *state);
|
||||
|
||||
#ifdef REDUCE_APPICONS
|
||||
void wDockSimulateLaunch(WDock *dock, WAppIcon *btn);
|
||||
#endif
|
||||
|
||||
#ifdef OFFIX_DND
|
||||
int wDockReceiveDNDDrop(WScreen *scr, XEvent *event);
|
||||
#endif
|
||||
|
||||
void wClipIconPaint(WAppIcon *aicon);
|
||||
void wClipSaveState(WScreen *scr);
|
||||
proplist_t wClipSaveWorkspaceState(WScreen *scr, int workspace);
|
||||
WAppIcon* wClipRestoreState(WScreen *scr, proplist_t clip_state);
|
||||
|
||||
void wClipUpdateForWorkspaceChange(WScreen *scr, int workspace);
|
||||
|
||||
RImage *wClipMakeTile(WScreen *scr, RImage *normalTile);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user