ARB
AW_device.cxx
Go to the documentation of this file.
1 // =============================================================== //
2 // //
3 // File : AW_device.cxx //
4 // Purpose : //
5 // //
6 // Institute of Microbiology (Technical University Munich) //
7 // http://www.arb-home.de/ //
8 // //
9 // =============================================================== //
10 
11 #include "aw_window.hxx"
12 #include "aw_root.hxx"
13 #include "aw_common_xm.hxx"
14 
15 #include <arb_mem.h>
16 #include <arb_msg.h>
17 
18 #if defined(DEBUG)
19 // #define SHOW_CLIP_STACK_CHANGES
20 #endif // DEBUG
21 
23  // completely private, but accessible by AW_device
24  friend class AW_device;
25 
26  AW_screen_area clip_rect;
27  AW_font_overlap font_overlap;
28 
29  AW::Vector offset;
30  AW_pos scale;
31 
32  class AW_clip_scale_stack *next;
33 };
34 
35 #if defined(SHOW_CLIP_STACK_CHANGES)
36 static const char *clipstatestr(AW_device *device) {
37  static char buffer[1024];
38 
39  const AW_screen_area& clip_rect = device->get_cliprect();
40  const AW_font_overlap& fo = device->get_font_overlap();
41  const AW::Vector& offset = device->get_offset();
42 
43  sprintf(buffer,
44  "clip_rect={t=%i, b=%i, l=%i, r=%i} "
45  "font_overlap={t=%i, b=%i, l=%i, r=%i} "
46  "scale=%f unscale=%f "
47  "offset={x=%f y=%f}" ,
48  clip_rect.t, clip_rect.b, clip_rect.l, clip_rect.r,
49  fo.top, fo.bottom, fo.left, fo.right,
50  device->get_scale(), device->get_unscale(),
51  offset.x(), offset.y());
52 
53  return buffer;
54 }
55 #endif // SHOW_CLIP_STACK_CHANGES
56 
58  return get_common()->get_screen();
59 }
60 
61 
63  if (!clip_scale_stack) {
64  aw_assert(0); // Too many pop_clip_scale on that device
65  return;
66  }
67 
68 #if defined(SHOW_CLIP_STACK_CHANGES)
69  char *state_before_pop = strdup(clipstatestr(this));
70 #endif // SHOW_CLIP_STACK_CHANGES
71 
73  set_offset(clip_scale_stack->offset); // needs to be called before zoom()
74  zoom(clip_scale_stack->scale);
75  set_cliprect(clip_scale_stack->clip_rect);
76  set_font_overlap(clip_scale_stack->font_overlap);
77 
79 
82  delete oldstack;
83 
84 #if defined(SHOW_CLIP_STACK_CHANGES)
85  printf(" pop_clip_scale: %s\n", state_before_pop);
86  printf(" [after pop]: %s\n\n", clipstatestr(this));
87  free(state_before_pop);
88 #endif // SHOW_CLIP_STACK_CHANGES
89 }
90 
93 
94  stack->next = clip_scale_stack;
95  clip_scale_stack = stack;
96 
97  stack->scale = get_scale();
98  stack->offset = get_offset();
99  stack->font_overlap = get_font_overlap();
100  stack->clip_rect = get_cliprect();
101 
102 #if defined(SHOW_CLIP_STACK_CHANGES)
103  printf("push_clip_scale: %s\n", clipstatestr(this));
104 #endif // SHOW_CLIP_STACK_CHANGES
105 }
106 
107 bool AW_device::text_overlay(int gc, const SizedCstr& cstr, const AW::Position& pos, AW_pos alignment, AW_bitset filteri, TextOverlayCallback toc, AW_CL cduser) {
108  // reduces any string (or virtual string) to its actual drawn size and
109  // calls the function 'toc' with the result.
110 
111  const AW_GC *gcm = get_common()->map_gc(gc);
112  const AW_font_limits& font = gcm->get_font_limits();
113 
114 
115  bool inside_clipping_left = true; // clipping at the left edge of the screen is different from clipping right of the left edge.
116  bool inside_clipping_right = true;
117 
118  // es gibt 4 clipping Moeglichkeiten:
119  // 1. man will fuer den Fall clippen, dass man vom linken display-Rand aus druckt => clipping rechts vom 1. Buchstaben
120  // 2. man will fuer den Fall clippen, dass man mitten im Bildschirm ist => clipping links vom 1. Buchstaben
121  // 3. man will fuer den Fall clippen, dass man mitten im Bildschirm ist => clipping links vom letzten Buchstaben
122  // 4. man will fuer den Fall clippen, dass man bis zum rechten display-Rand druckt => clipping rechts vom letzten Buchstaben
123 
124  if (!(filter & filteri)) return 0;
125 
126  const AW_screen_area& screen = get_common()->get_screen();
127  const AW_screen_area& clipRect = get_cliprect();
128 
129  if (allow_left_font_overlap() || screen.l == clipRect.l) inside_clipping_left = false;
130  if (allow_right_font_overlap() || clipRect.r == screen.r) inside_clipping_right = false;
131 
132  AW::Position tpos(transform(pos));
133  {
134  const AW_pos Y0 = tpos.ypos();
135  if (allow_top_font_overlap() || clipRect.t == 0) { // check clip border inside screen
136  if (Y0+font.descent < clipRect.t) return 0; // draw outside screen
137  }
138  else {
139  if (Y0-font.ascent < clipRect.t) return 0; // don't cross the clip border
140  }
141 
142  if (allow_bottom_font_overlap() || clipRect.b == screen.b) { // check clip border inside screen
143  if (Y0-font.ascent > clipRect.b) return 0; // draw outside screen
144  }
145  else {
146  if (Y0+font.descent> clipRect.b) return 0; // don't cross the clip border
147  }
148  }
149 
150  long drawLen = cstr.get_length();
151  int drawOff = 0;
152 
153  const char * const textBuf = cstr;
154 #if defined(ASSERTION_USED)
155  const long textBufLen = cstr.get_length();
156 #endif
157 
158  {
159  int xi;
160  {
161  AW_pos X0 = tpos.xpos();
162  if (alignment) {
163  AW_pos width = get_string_size(gc, cstr);
164  X0 = X0-alignment*width;
165  }
166  if (X0 > clipRect.r) return 0; // right of screen
167 
168  xi = AW_INT(X0);
169  }
170 
171  // now clip left side
172  {
173  int l = (int)clipRect.l;
174  if (xi + drawLen*font.width < l) return 0; // left of screen
175 
176  if (xi < l) {
177  if (font.is_monospaced()) {
178  int h = (l - xi)/font.width;
179  if (inside_clipping_left) {
180  if ((l-xi)%font.width >0) h += 1;
181  }
182  if (h >= drawLen) return 0;
183  drawOff = h;
184  xi += h*font.width;
185  drawLen -= h;
186 
187  if (drawLen < 0) return 0;
188  aw_assert(textBufLen >= drawLen);
189  }
190  else { // proportional font
191  int c = 0;
192  int h;
193  for (h=0; xi < l; h++) {
194  if (!(c = textBuf[h])) return 0;
195  xi += gcm->get_width_of_char(c);
196  }
197  if (!inside_clipping_left) {
198  h-=1;
199  xi -= gcm->get_width_of_char(c);
200  }
201  drawOff = h;
202  drawLen -= h;
203 
204  if (drawLen < 0) return 0;
205  aw_assert(textBufLen >= drawLen);
206  }
207  }
208  }
209 
210  // now clip right side
211  {
212  int r = (int)clipRect.r - xi;
213  if (font.is_monospaced()) {
214  int h = r / font.width;
215  if (h < drawLen) {
216  if (inside_clipping_right) {
217  drawLen = h;
218  }
219  else {
220  drawLen = h+1;
221  }
222  }
223 
224  if (drawLen < 0) return 0;
225  aw_assert(textBufLen >= drawLen);
226  }
227  else { // proportional font
228  int h;
229  for (h = drawOff; r >= 0 && drawLen > 0; h++, drawLen--) { // was drawLen >= 0
230  r -= gcm->get_width_of_char(textBuf[h]);
231  }
232  drawLen = h - drawOff;
233  if (r <= 0 && inside_clipping_right && drawLen > 0) {
234  drawLen -= 1;
235  }
236 
237  if (drawLen < 0) return 0;
238  aw_assert(textBufLen >= drawLen);
239  }
240  }
241 
242  tpos = AW::Position(xi, tpos.ypos()); // store corrected X-position in tpos
243  }
244 
245  aw_assert(drawLen >= 0 && textBufLen >= drawLen);
246  aw_assert(textBufLen >= (drawOff+drawLen));
247 
248  return toc(this, gc, textBuf, drawOff, drawLen, rtransform(tpos), cduser);
249 }
250 
251 bool AW_device::generic_polygon(int gc, int npos, const AW::Position *pos, AW_bitset filteri) {
252  bool drawflag = false;
253  if (filteri & filter) {
254  int p = npos-1;
255  for (int n = 0; n<npos; ++n) {
256  drawflag |= line(gc, pos[p], pos[n], filteri);
257  p = n;
258  }
259  }
260  return drawflag;
261 }
262 
263 void AW_device::move_region(AW_pos /* src_x */, AW_pos /* src_y */, AW_pos /* width */, AW_pos /* height */,
264  AW_pos /* dest_x */, AW_pos /* dest_y */) {
265  // empty default
266 }
267 
269  // empty default
270 }
271 
272 static const AW_screen_area& get_universe() {
273  // "unrestricted" area
274  const int UMIN = INT_MIN/10;
275  const int UMAX = INT_MAX/10;
276  static AW_screen_area universe = { UMIN, UMAX, UMIN, UMAX };
277  return universe;
278 }
279 
281  while (clip_scale_stack) {
282  pop_clip_scale();
283  }
284  if (type() == AW_DEVICE_SIZE) {
286  }
287  else {
289  }
291  specific_reset();
292 }
293 
295  return (filter & filteri) ? !is_outside_clip(transform(pos)) : false;
296 }
297 
299  return common_->get_screen();
300 }
301 
302 bool AW_device::generic_box(int gc, const AW::Rectangle& rect, AW_bitset filteri) {
303  int drawflag = 0;
304  if (filteri & filter) {
305  drawflag |= line_impl(gc, rect.upper_edge(), filteri);
306  drawflag |= line_impl(gc, rect.lower_edge(), filteri);
307  drawflag |= line_impl(gc, rect.left_edge(), filteri);
308  drawflag |= line_impl(gc, rect.right_edge(), filteri);
309  }
310  return drawflag;
311 }
312 
314  // nothing to do
315 }
316 
318  // nothing to do
319 }
320 
322  filter = filteri;
323 }
324 
328  return get_common()->gc_mapable(gc);
329 }
330 
332  unscale = scale = 1.0;
333  offset = AW::Vector(0, 0);
334 }
335 
337  scale *= val;
338  unscale = 1.0/scale;
339 }
340 
341 // -----------------
342 // AW_GC_Xm
343 
344 const int GC_DEFAULT_LINE_STYLE = LineSolid;
345 const int GC_DEFAULT_CAP_STYLE = CapProjecting;
346 const int GC_JOIN_STYLE = JoinMiter;
347 
349  : AW_GC(common_)
350 {
351  XGCValues val;
352 
354  val.line_style = GC_DEFAULT_LINE_STYLE;
355  val.cap_style = GC_DEFAULT_CAP_STYLE;
356  val.join_style = GC_JOIN_STYLE;
357 
358  unsigned long value_mask = GCLineWidth|GCLineStyle|GCCapStyle|GCJoinStyle;
359 
360  gc = XCreateGC(get_common()->get_display(), get_common()->get_window_id(), value_mask, &val);
361  wm_set_function(get_function());
362 }
364  if (gc) XFreeGC(get_common()->get_display(), gc);
365 }
366 void AW_GC_Xm::wm_set_lineattributes(short lwidth, AW_linestyle lstyle) {
367  Display *display = get_common()->get_display();
368  aw_assert(lwidth>0);
369 
370  switch (lstyle) {
371  case AW_SOLID:
372  XSetLineAttributes(display, gc, lwidth, LineSolid, GC_DEFAULT_CAP_STYLE, GC_JOIN_STYLE);
373  break;
374 
375  case AW_DOTTED:
376  case AW_DASHED: {
377  static char dashes[] = { 5, 2 };
378  static char dots[] = { 1, 1 };
379  XSetDashes(display, gc, 0, lstyle == AW_DOTTED ? dots : dashes, 2);
380  XSetLineAttributes(display, gc, lwidth, LineOnOffDash, CapButt, GC_JOIN_STYLE);
381  break;
382  }
383  }
384 }
385 void AW_GC_Xm::wm_set_function(AW_function mode) {
386  switch (mode) {
387  case AW_XOR:
388  XSetFunction(get_common()->get_display(), gc, GXxor);
389  break;
390  case AW_COPY:
391  XSetFunction(get_common()->get_display(), gc, GXcopy);
392  break;
393  }
394 }
395 void AW_GC_Xm::wm_set_foreground_color(AW_rgb col) {
396  XSetForeground(get_common()->get_display(), gc, col);
397 }
398 
399 const AW_font_limits& AW_stylable::get_font_limits(int gc, char c) const {
400  return get_common()->get_font_limits(gc, c);
401 }
402 
403 int AW_GC::get_string_size(long len) const {
404  // calculate display size of 'len' characters of a monospaced font
405  aw_assert(font_limits.is_monospaced());
406  return len * font_limits.width;
407 }
408 
410  // calculate display size of 'cstr'
411 
412  aw_assert(bool(cstr)); // use other flavor!
413  if (font_limits.is_monospaced()) {
414  return get_string_size(cstr.get_length());
415  }
416 
417  int width = 0;
418  const char *str = cstr;
419  size_t len = cstr.get_length();
420 
421  for (size_t i = 0; i<len; ++i) {
422  aw_assert(str[i]); // otherwise cstr is invalid
423  width += width_of_chars[safeCharIndex(str[i])];
424  }
425 
426  return width;
427 }
428 
430  return new AW_GC_Xm(this);
431 }
432 
433 void AW_GC_set::add_gc(int gi, AW_GC *agc) {
434  if (gi >= count) {
435  int new_count = gi+10;
436  ARB_recalloc(gcs, count, new_count);
437  count = new_count;
438  }
439  if (gcs[gi]) delete gcs[gi];
440  gcs[gi] = agc;
441 }
442 
443 int AW_stylable::get_string_size(int gc, long textlen) const {
444  return get_common()->map_gc(gc)->get_string_size(textlen);
445 }
446 int AW_stylable::get_string_size(int gc, const SizedCstr& cstr) const {
447  return get_common()->map_gc(gc)->get_string_size(cstr);
448 }
449 void AW_stylable::new_gc(int gc) { get_common()->new_gc(gc); }
450 void AW_stylable::set_grey_level(int gc, AW_grey_level grey_level) {
451  // <0 = don't fill, 0.0 = white, 1.0 = black
452  get_common()->map_mod_gc(gc)->set_grey_level(grey_level);
453 }
455  return get_common()->map_gc(gc)->get_grey_level();
456 }
457 
458 void AW_stylable::set_font(int gc, AW_font font_nr, int size, int *found_size) {
459  // if found_size != 0 -> return value for used font size
460  get_common()->map_mod_gc(gc)->set_font(font_nr, size, found_size);
461 }
462 int AW_stylable::get_available_fontsizes(int gc, AW_font font_nr, int *available_sizes) {
463  return get_common()->map_gc(gc)->get_available_fontsizes(font_nr, available_sizes);
464 }
465 void AW_stylable::set_line_attributes(int gc, short width, AW_linestyle style) {
466  get_common()->map_mod_gc(gc)->set_line_attributes(width, style);
467 }
468 void AW_stylable::set_function(int gc, AW_function function) {
469  get_common()->map_mod_gc(gc)->set_function(function);
470 }
472  get_common()->map_mod_gc(gc)->set_fg_color(get_common()->get_color(color));
473 }
476 }
478  get_common()->reset_style();
479 }
480 
482  Window root;
483  unsigned int width, height;
484  unsigned int depth, borderwidth; // unused
485  int x_offset, y_offset; // unused
486 
487  XGetGeometry(common->get_display(), common->get_window_id(),
488  &root,
489  &x_offset,
490  &y_offset,
491  &width,
492  &height,
493  &borderwidth, // border width
494  &depth); // depth of display
495 
496  common->set_screen_size(width, height);
497 }
498 
499 void AW_common_Xm::install_common_extends_cb(AW_window *aww, AW_area area) {
500  aww->set_resize_callback(area, makeWindowCallback(AW_get_common_extends_cb, this));
501  AW_get_common_extends_cb(aww, this);
502 }
503 
AW::Vector transform(const AW::Vector &vec) const
Definition: aw_device.hxx:144
virtual void clear(AW_bitset filteri)
Definition: AW_device.cxx:313
XID get_window_id() const
bool allow_left_font_overlap() const
Definition: aw_device.hxx:249
long AW_bitset
Definition: aw_base.hxx:44
bool allow_right_font_overlap() const
Definition: aw_device.hxx:250
void set_resize_callback(AW_area area, const WindowCallback &wcb)
Definition: AW_window.cxx:816
short get_width_of_char(char c) const
Definition: aw_common.hxx:142
bool is_outside_clip(AW::Position pos) const
Definition: aw_device.hxx:215
void set_grey_level(int gc, AW_grey_level grey_level)
Definition: AW_device.cxx:450
AW_pos get_scale() const
Definition: aw_device.hxx:124
const AW_screen_area & get_screen() const
Definition: aw_common.hxx:241
int get_string_size(long textlen) const
Definition: AW_device.cxx:403
const AW_screen_area & get_area_size() const
Definition: AW_device.cxx:57
void set_line_attributes(short new_width, AW_linestyle new_style)
Definition: aw_common.hxx:163
LineVector lower_edge() const
CONSTEXPR_INLINE unsigned char safeCharIndex(char c)
Definition: dupstr.h:73
void set_screen_size(unsigned int width, unsigned int height)
Definition: aw_common.hxx:242
void set_line_attributes(int gc, short width, AW_linestyle style)
Definition: AW_device.cxx:465
void set_function(int gc, AW_function function)
Definition: AW_device.cxx:468
void establish_default(int gc)
Definition: AW_device.cxx:474
const AW_screen_area & get_cliprect() const
Definition: aw_device.hxx:237
void set_font(AW_font font_nr, int size, int *found_size)
Definition: AW_xfont.cxx:839
bool gc_mapable(int gc) const
Definition: aw_common.hxx:266
virtual void clear_part(const AW::Rectangle &rect, AW_bitset filteri)
Definition: AW_device.cxx:317
AW_GC * map_mod_gc(int gc)
Definition: aw_common.hxx:268
const AW_font_overlap & get_font_overlap() const
Definition: aw_device.hxx:251
AW::Vector get_offset() const
Definition: aw_device.hxx:126
static const AW_screen_area & get_common_screen(const AW_common *common_)
Definition: AW_device.cxx:298
bool generic_polygon(int gc, int npos, const AW::Position *pos, AW_bitset filteri)
Definition: AW_device.cxx:251
unsigned long AW_rgb
Definition: aw_base.hxx:51
AW_color_idx
Definition: aw_base.hxx:83
void set_offset(const AW::Vector &off)
Definition: aw_device.hxx:130
virtual int get_available_fontsizes(AW_font font_nr, int *available_sizes) const =0
void add_gc(int gi, AW_GC *agc)
Definition: AW_device.cxx:433
void establish_default()
Definition: aw_common.hxx:177
void zoom(AW_pos scale)
Definition: AW_device.cxx:336
void reset()
Definition: AW_device.cxx:331
char buffer[MESSAGE_BUFFERSIZE]
Definition: seq_search.cxx:34
AW_area
Definition: aw_base.hxx:76
LineVector left_edge() const
void new_gc(int gc)
Definition: aw_common.hxx:265
const AW_font_limits & get_font_limits(int gc, char c) const
Definition: AW_device.cxx:399
AW_GC_Xm(AW_common *common)
Definition: AW_device.cxx:348
virtual void fast()
Definition: AW_device.cxx:325
void reset_style()
Definition: AW_device.cxx:477
double AW_pos
Definition: aw_base.hxx:29
size_t get_length() const
Definition: sized_cstr.h:42
void set_font(int gc, AW_font fontnr, int size, int *found_size)
Definition: AW_device.cxx:458
void set_foreground_color(int gc, AW_color_idx color)
Definition: AW_device.cxx:471
int get_string_size(int gc, long textlen) const
Definition: AW_device.cxx:443
void push_clip_scale()
Definition: AW_device.cxx:91
const double & ypos() const
void new_gc(int gc)
Definition: AW_device.cxx:449
AW_pos get_unscale() const
Definition: aw_device.hxx:125
Display * get_display() const
#define aw_assert(bed)
Definition: aw_position.hxx:29
void set_grey_level(AW_grey_level grey_level_)
Definition: aw_common.hxx:52
static double xi
const int GC_DEFAULT_CAP_STYLE
Definition: AW_device.cxx:345
bool line(int gc, const AW::LineVector &Line, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
Definition: aw_device.hxx:430
void pop_clip_scale()
Definition: AW_device.cxx:62
AW::Vector rtransform(const AW::Vector &vec) const
Definition: aw_device.hxx:145
bool generic_box(int gc, const AW::Rectangle &rect, AW_bitset filteri)
Definition: AW_device.cxx:302
const AW_GC * map_gc(int gc) const
Definition: aw_common.hxx:267
AW_grey_level get_grey_level() const
Definition: aw_common.hxx:51
bool allow_bottom_font_overlap() const
Definition: aw_device.hxx:248
AW_grey_level get_grey_level(int gc)
Definition: AW_device.cxx:454
AW_common * get_common() const
Definition: aw_device.hxx:296
GB_write_int const char GB_write_autoconv_string WRITE_SKELETON(write_pointer, GBDATA *,"%p", GB_write_pointer) char *AW_awa if)(!gb_var) return strdup("")
Definition: AW_awar.cxx:163
void ARB_recalloc(TYPE *&tgt, size_t oelem, size_t nelem)
Definition: arb_mem.h:49
const double & y() const
virtual AW_DEVICE_TYPE type()=0
void set_font_overlap(bool allow)
Definition: aw_device.hxx:260
bool generic_invisible(const AW::Position &pos, AW_bitset filteri)
Definition: AW_device.cxx:294
float AW_grey_level
Definition: aw_base.hxx:46
AW_bitset filter
Definition: aw_device.hxx:366
static void AW_get_common_extends_cb(AW_window *, AW_common_Xm *common)
Definition: AW_device.cxx:481
AW_clip_scale_stack * clip_scale_stack
Definition: aw_device.hxx:361
const int GC_DEFAULT_LINE_STYLE
Definition: AW_device.cxx:344
const AW_font_limits & get_font_limits(int gc, char c) const
Definition: aw_common.hxx:270
long AW_CL
Definition: cb.h:21
void set_fg_color(AW_rgb col)
Definition: aw_common.hxx:152
LineVector upper_edge() const
void set_cliprect(const AW_screen_area &rect)
Definition: aw_device.hxx:198
bool is_monospaced() const
static const AW_screen_area & get_universe()
Definition: AW_device.cxx:272
void reset()
Definition: AW_device.cxx:280
short line_width
Definition: aw_common.hxx:37
const int GC_JOIN_STYLE
Definition: AW_device.cxx:346
bool(* TextOverlayCallback)(AW_device *device, int gc, const char *textBuffer, size_t textStart, size_t textLen, const AW::Position &pos, AW_CL cduser)
Definition: aw_device.hxx:354
const double & xpos() const
AW_function get_function() const
Definition: aw_common.hxx:48
void set_function(AW_function mode)
Definition: aw_common.hxx:154
const char * cstr
Definition: defines.h:21
void set_filter(AW_bitset filteri)
Definition: AW_device.cxx:321
#define offset(field)
Definition: GLwDrawA.c:73
#define GC_DEFAULT_LINE_WIDTH
Definition: aw_common.hxx:29
AW_function
Definition: aw_device.hxx:283
virtual void move_region(AW_pos src_x, AW_pos src_y, AW_pos width, AW_pos height, AW_pos dest_x, AW_pos dest_y)
Definition: AW_device.cxx:263
const AW_font_limits & get_font_limits() const
Definition: aw_common.hxx:133
bool ready_to_draw(int gc)
Definition: AW_device.cxx:327
virtual void flush()
Definition: AW_device.cxx:268
virtual AW_GC * create_gc()
Definition: AW_device.cxx:429
void reset_style()
Definition: aw_common.hxx:239
LineVector right_edge() const
AW_common_Xm * get_common() const
int get_available_fontsizes(int gc, AW_font font_nr, int *available_sizes)
Definition: AW_device.cxx:462
virtual void slow()
Definition: AW_device.cxx:326
AW_linestyle
Definition: aw_device.hxx:276
const double & x() const
bool allow_top_font_overlap() const
Definition: aw_device.hxx:247
bool text_overlay(int gc, const SizedCstr &cstr, const AW::Position &pos, AW_pos alignment, AW_bitset filteri, TextOverlayCallback toc, AW_CL cduser=0)
Definition: AW_device.cxx:107