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 WMAPPLICATION_H_
|
|
|
|
|
#define WMAPPLICATION_H_
|
|
|
|
|
|
|
|
|
|
/* for tracking single application instances */
|
2025-09-09 22:23:59 -04:00
|
|
|
// This is now defined in application.rs.
|
2025-08-24 23:41:16 -04:00
|
|
|
typedef struct WApplication WApplication;
|
1998-09-29 22:36:29 +00:00
|
|
|
|
2025-08-24 23:41:16 -04:00
|
|
|
/******** Accessors/mutators ********/
|
|
|
|
|
Window wApplicationGetMainWindow(WApplication *wapp);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
2025-08-24 23:41:16 -04:00
|
|
|
struct WWindow *wApplicationGetMainWindowDesc(WApplication *wapp);
|
|
|
|
|
|
|
|
|
|
WMenu *wApplicationGetMenu(WApplication *wapp);
|
|
|
|
|
void wApplicationSetMenu(WApplication *wapp, WMenu *menu);
|
|
|
|
|
|
|
|
|
|
struct WAppIcon *wApplicationGetAppIcon(WApplication *wapp);
|
|
|
|
|
void wApplicationSetAppIcon(WApplication *wapp, struct WAppIcon *icon);
|
|
|
|
|
|
|
|
|
|
int wApplicationGetLastWorkspace(WApplication *wapp);
|
|
|
|
|
void wApplicationSetLastWorkspace(WApplication *wapp, int workspace);
|
|
|
|
|
|
|
|
|
|
struct WWindow *wApplicationGetLastFocused(WApplication *wapp);
|
|
|
|
|
void wApplicationSetLastFocused(WApplication *wapp, struct WWindow *win);
|
|
|
|
|
|
|
|
|
|
WMHandlerID *wApplicationGetUrgentBounceTimer(WApplication *wapp);
|
|
|
|
|
int wApplicationHasUrgentBounceTimer(WApplication *wapp);
|
|
|
|
|
void wApplicationClearUrgentBounceTimer(WApplication *wapp);
|
|
|
|
|
void wApplicationSetUrgentBounceTimer(WApplication *wapp, WMHandlerID *timer);
|
|
|
|
|
|
|
|
|
|
int wApplicationGetSkipNextAnimation(WApplication *wapp);
|
|
|
|
|
void wApplicationSetSkipNextAnimation(WApplication *wapp, int skip);
|
|
|
|
|
|
|
|
|
|
int wApplicationIsHidden(WApplication *wapp);
|
|
|
|
|
void wApplicationSetHidden(WApplication *wapp, int hidden);
|
|
|
|
|
|
|
|
|
|
int wApplicationIsEmulated(WApplication *wapp);
|
|
|
|
|
void wApplicationSetEmulated(WApplication *wapp, int emulated);
|
|
|
|
|
|
|
|
|
|
int wApplicationIsBouncing(WApplication *wapp);
|
|
|
|
|
void wApplicationSetBouncing(WApplication *wapp, int bouncing);
|
|
|
|
|
|
|
|
|
|
/******** Lifecycle/resource management ********/
|
2004-10-12 01:34:32 +00:00
|
|
|
WApplication *wApplicationCreate(struct WWindow *wwin);
|
1998-09-29 22:36:29 +00:00
|
|
|
WApplication *wApplicationOf(Window window);
|
2012-03-03 22:49:53 +01:00
|
|
|
void wApplicationDestroy(WApplication *wapp);
|
2010-09-10 20:51:03 +04:00
|
|
|
|
2025-08-24 23:41:16 -04:00
|
|
|
void wApplicationIncrementRefcount(WApplication *wapp);
|
|
|
|
|
int wApplicationHasLiveRefcount(WApplication *wapp);
|
|
|
|
|
void wApplicationClearRefcount(WApplication *wapp);
|
|
|
|
|
|
2010-09-10 20:51:03 +04:00
|
|
|
void wAppBounce(WApplication *);
|
2010-09-16 17:05:13 -04:00
|
|
|
void wAppBounceWhileUrgent(WApplication *);
|
2012-04-04 16:04:09 +02:00
|
|
|
void wApplicationActivate(WApplication *);
|
|
|
|
|
void wApplicationDeactivate(WApplication *);
|
2010-09-10 20:51:07 +04:00
|
|
|
#endif
|