X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=ioncore%2Fframedpholder.h;h=754731d05cd5dbeda8fb5b9fb9ec74b202f3dc6c;hp=2bd7f1b631cf0acdce643e9c6b2ff630a3dbbbf2;hb=HEAD;hpb=8366314611bf30a0f31d25bf5f5023186fa87692 diff --git a/ioncore/framedpholder.h b/ioncore/framedpholder.h index 2bd7f1b..754731d 100644 --- a/ioncore/framedpholder.h +++ b/ioncore/framedpholder.h @@ -1,12 +1,9 @@ /* * ion/ioncore/framedpholder.h * - * Copyright (c) Tuomo Valkonen 2005-2006. + * Copyright (c) Tuomo Valkonen 2005-2009. * - * 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. + * See the included file LICENSE for details. */ #ifndef ION_IONCORE_FRAMEDPHOLDER_H @@ -15,19 +12,19 @@ #include "common.h" #include "pholder.h" #include "attach.h" - -INTRCLASS(WFramedPHolder); -INTRSTRUCT(WFramedParam); +#include "frame.h" -#define FRAMEDPARAM_INIT {0, 0, {0, 0, 0, 0}, NULL} +#define FRAMEDPARAM_INIT {0, 0, {0, 0, 0, 0}, FRAME_MODE_FLOATING /*, NULL*/} +INTRSTRUCT(WFramedParam); DECLSTRUCT(WFramedParam){ uint inner_geom_gravity_set:1; int gravity; WRectangle inner_geom; - WRegionSimpleCreateFn *mkframe; + WFrameMode mode; + /*WRegionSimpleCreateFn *mkframe;*/ }; @@ -35,6 +32,7 @@ DECLCLASS(WFramedPHolder){ WPHolder ph; WPHolder *cont; WFramedParam param; + Watch frame_watch; }; @@ -48,6 +46,8 @@ extern void framedpholder_deinit(WFramedPHolder *ph); extern bool framedpholder_do_goto(WFramedPHolder *ph); +extern bool framedpholder_stale(WFramedPHolder *ph); + extern WRegion *framedpholder_do_target(WFramedPHolder *ph); extern WRegion *framedpholder_do_attach(WFramedPHolder *ph, int flags, @@ -57,4 +57,7 @@ extern WRegion *region_attach_framed(WRegion *reg, WFramedParam *param, WRegionAttachFn *fn, void *fn_param, WRegionAttachData *data); +extern void frame_adjust_to_initial(WFrame *frame, const WFitParams *fp, + const WFramedParam *param, WRegion *reg); + #endif /* ION_IONCORE_FRAMEDPHOLDER_H */