it->xwidget = lookup_xwidget(value);
}
-#endif
+#endif
#ifdef HAVE_WINDOW_SYSTEM
else
{
case GET_FROM_XWIDGET:
p->u.xwidget.object = it->object;
break;
-#endif
+#endif
}
p->position = position ? *position : it->position;
p->current = it->current;
next_element_from_stretch
#ifdef HAVE_XWIDGETS
,next_element_from_xwidget
-#endif
+#endif
};
#define GET_NEXT_DISPLAY_ELEMENT(it) (*get_next_element[(it)->method]) (it)
start_display (&it, w, pos);
it.glyph_row->reversed_p = false;
-
-
/* Display all lines of W. */
while (it.current_y < it.last_visible_y)
{
return -1;
#endif
-
+
/* This is handy for debugging. */
#if 0
#define GIVE_UP(X) \
glyph->left_box_line_p,
glyph->right_box_line_p);
}
-#ifdef HAVE_XWIDGETS
+#ifdef HAVE_XWIDGETS
else if (glyph->type == XWIDGET_GLYPH)
{
fprintf (stderr,
// printf("dump xwidget glyph\n");
}
-#endif
+#endif
}
printf("calc_pixel_width_or_height: return dummy size FIXME\n");
return OK_PIXELS (width_p ? 100 : 100);
}
-#endif
+#endif
#endif
if (EQ (car, Qplus) || EQ (car, Qminus))
{
s->ybase += s->first_glyph->voffset;
}
+
#ifdef HAVE_XWIDGETS
static void
fill_xwidget_glyph_string (struct glyph_string *s)
BUILD_IMAGE_GLYPH_STRING (START, END, HEAD, TAIL, \
HL, X, LAST_X); \
break;
-
+
#define BUILD_GLYPH_STRINGS_XW(START, END, HEAD, TAIL, HL, X, LAST_X) \
case XWIDGET_GLYPH: \
BUILD_XWIDGET_GLYPH_STRING (START, END, HEAD, TAIL, \
#define BUILD_GLYPH_STRINGS(START, END, HEAD, TAIL, HL, X, LAST_X) \
BUILD_GLYPH_STRINGS_1(START, END, HEAD, TAIL, HL, X, LAST_X) \
BUILD_GLYPH_STRINGS_2(START, END, HEAD, TAIL, HL, X, LAST_X)
-#endif
+#endif
+
-
/* Draw glyphs between START and END in AREA of ROW on window W,
starting at x-position X. X is relative to AREA in W. HL is a
face-override with the following meaning:
else if (it->what == IT_XWIDGET)
produce_xwidget_glyph (it);
#endif
+
done:
/* Accumulate dimensions. Note: can't assume that it->descent > 0
because this isn't true for images with `:ascent 100'. */
if (!w->cursor_off_p)
{
-#ifdef HAVE_XWIDGETS
+#ifdef HAVE_XWIDGETS
if (glyph != NULL && glyph->type == XWIDGET_GLYPH){
//printf("attempt xwidget cursor avoidance in get_window_cursor_type\n");
return NO_CURSOR;
}
-#endif
+#endif
if (glyph != NULL && glyph->type == IMAGE_GLYPH)
{
if (cursor_type == FILLED_BOX_CURSOR)