4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
9 #ifndef ION_IONCORE_NAMES_H
10 #define ION_IONCORE_NAMES_H
13 #include "clientwin.h"
15 #include <libextl/extl.h>
19 /** Names, keyed by WRegionNameInfo's */
25 extern WNamespace ioncore_internal_ns
;
26 extern WNamespace ioncore_clientwin_ns
;
29 /** Register a region (but not a clientwin) to the naming registry */
30 extern bool region_register(WRegion
*reg
);
31 extern bool region_set_name(WRegion
*reg
, const char *name
);
32 extern bool region_set_name_exact(WRegion
*reg
, const char *name
);
34 extern bool clientwin_register(WClientWin
*cwin
);
35 extern bool clientwin_set_name(WClientWin
*cwin
, const char *name
);
37 extern void region_unregister(WRegion
*reg
);
38 extern void region_do_unuse_name(WRegion
*reg
, bool insert_unnamed
);
40 extern const char *region_name(WRegion
*reg
);
41 DYNFUN
const char *region_displayname(WRegion
*reg
);
43 extern char *region_make_label(WRegion
*reg
, int maxw
, GrBrush
*brush
);
45 extern bool ioncore_region_i(ExtlFn fn
, const char *typenam
);
46 extern bool ioncore_clientwin_i(ExtlFn fn
);
48 * Look up a region (internal windows, not client windows) by name and type
51 * As region names are unique, the 'typename' parameter is only used to filter
52 * out regions that do not have the expected type.
54 extern WRegion
*ioncore_lookup_region(const char *cname
, const char *typenam
);
55 extern WClientWin
*ioncore_lookup_clientwin(const char *cname
);
57 #endif /* ION_IONCORE_NAMES_H */