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
|
/*
* ion/panews/splitfloat.h
*
* Copyright (c) Tuomo Valkonen 1999-2005.
*
* 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_PANEWS_SPLITFLOAT_H
#define ION_PANEWS_SPLITFLOAT_H
#include <ioncore/common.h>
#include <ioncore/gr.h>
#include "split.h"
#include "ionws.h"
INTRCLASS(WSplitFloat);
#include "panehandle.h"
DECLCLASS(WSplitFloat){
WSplitSplit ssplit;
WPaneHandle *tlpwin, *brpwin;
};
extern bool splitfloat_init(WSplitFloat *split, const WRectangle *geom,
WIonWS *ws, int dir);
extern WSplitFloat *create_splitfloat(const WRectangle *geom,
WIonWS *ws, int dir);
extern void splitfloat_deinit(WSplitFloat *split);
extern void splitfloat_update_handles(WSplitFloat *split,
const WRectangle *tlg,
const WRectangle *brg);
extern void splitfloat_tl_pwin_to_cnt(WSplitFloat *split, WRectangle *g);
extern void splitfloat_br_pwin_to_cnt(WSplitFloat *split, WRectangle *g);
extern void splitfloat_tl_cnt_to_pwin(WSplitFloat *split, WRectangle *g);
extern void splitfloat_br_cnt_to_pwin(WSplitFloat *split, WRectangle *g);
extern void splitfloat_flip(WSplitFloat *split);
extern WSplit *load_splitfloat(WIonWS *ws, const WRectangle *geom,
ExtlTab tab);
extern WSplitRegion *splittree_split_floating(WSplit *node, int dir,
int primn, int nmins,
WRegionSimpleCreateFn *fn,
WIonWS *ws);
#endif /* ION_PANEWS_SPLITFLOAT_H */
|