1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
/*
* ion/ioncore/attach.h
*
* Copyright (c) Tuomo Valkonen 1999-2004.
*
* Ion is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*/
#ifndef ION_IONCORE_ATTACH_H
#define ION_IONCORE_ATTACH_H
#include "region.h"
#include "reginfo.h"
#include "window.h"
#include "clientwin.h"
#include "genws.h"
/* Attach helpers */
typedef WRegion *WRegionAttachHandler(WWindow *parent,
const WRectangle *geom,
void *param);
typedef WRegion *WRegionDoAttachFn(WRegion *reg,
WRegionAttachHandler *handler,
void *handlerparams,
void *param);
extern bool attach_reparent_helper(WRegion *mgr, WRegion *reg,
WRegionDoAttachFn *fn, void *param);
extern WRegion *attach_new_helper(WRegion *mgr, WRegionSimpleCreateFn *cfn,
WRegionDoAttachFn *fn, void *param);
extern WRegion *attach_load_helper(WRegion *mgr, ExtlTab tab,
WRegionDoAttachFn *fn, void *param);
/* Rescue */
extern WRegion *region_find_rescue_manager(WRegion *reg);
DYNFUN WRegion *region_find_rescue_manager_for(WRegion *reg, WRegion *todst);
extern WRegion *default_find_rescue_manager_for(WRegion *reg, WRegion *todst);
extern bool region_rescue_clientwins(WRegion *reg);
extern bool region_do_rescue_managed_clientwins(WRegion *reg, WRegion *dest, WRegion *list);
extern bool region_do_rescue_child_clientwins(WRegion *reg, WRegion *dest);
/* dest may be NULL */
DYNFUN bool region_do_rescue_clientwins(WRegion *reg, WRegion *dest);
#endif /* ION_IONCORE_ATTACH_H */
|