3 #if !defined __ZNaturalCoord_H
5 #define __ZNaturalCoord_H
8 #include <mix/SortedAr.H>
44 int group_index (ZGroupId gid)
const;
50 ZNHintAr (
unsigned quant = DEFAULT_QUANT,
51 unsigned volume = START_VOLUME)
55 virtual Compar compare (
const char* item1,
const char* item2)
const;
61 void remove_group (ZGroupId gid);
69 Logic check (ZGroupId gid)
const;
76 virtual void print_item (
unsigned i)
const;
104 ZGroupId group ()
const;
107 void group (ZGroupId new_gid);
113 void get_nc (
float nc[2])
const;
114 float get_nc1 ()
const;
115 float get_nc2 ()
const;
116 float get_nc_min ()
const;
117 float get_nc_max ()
const;
118 float get_nsize ()
const;
121 void set_nc (
float nc[2]);
124 void set_bounds (
float b[2]);
125 void clear_bounds ();
128 Logic own_bounds (
float b[2]);
131 Logic group_bounds (
float b[2]);
135 void applied_bounds (
float b[2]);
138 Logic is_resized ()
const;
141 Logic is_moved ()
const;
146 #define PtrType ZNCoordSlave*
148 #include <mix/PtrAr.H>
157 enum ZBoundMode {UnifyBounds, IntersectBounds};
174 void get_nc (ZGroupId gid,
float nc[2])
const;
175 float get_nc1 (ZGroupId gid)
const;
176 float get_nc2 (ZGroupId gid)
const;
177 float get_nc_min (ZGroupId gid)
const;
178 float get_nc_max (ZGroupId gid)
const;
179 float get_nsize (ZGroupId gid)
const;
182 void set_nc (ZGroupId gid,
float nc[2]);
188 void add_group (ZGroupId gid);
191 unsigned slaves_count (ZGroupId gid);
197 Logic group_bounds (ZGroupId gid,
float b[2]);
201 void applied_bounds (ZGroupId gid,
float b[2]);
204 Logic is_resized (ZGroupId gid)
const;
207 Logic is_moved (ZGroupId gid)
const;
210 void rebounds (ZBoundMode mode);
227 #endif // ZNaturalCoord.H
Definition: ZNaturalCoord.H:39
Definition: SortedAr.H:14
Definition: ZNaturalCoord.H:22
ZNCoordMaster(const char *szName=NULL)
Definition: ZNaturalCoord.H:88
Definition: ZNaturalCoord.H:164
Definition: ZNaturalCoord.H:15