Nach dem Mausklick ist die Projektion eines vierdimensionalen Würfels zu sehen insetinfo.C
Sprache: C
/* This file is part of * ====================================================== * * LyX, The Document Processor * * Copyright (C) 1995 Matthias Ettrich * Copyright (C) 1995-1998 The LyX Team. *
*======================================================*/
void InsetInfo::Draw(LyXFont font, LyXScreen &scr, int baseline, float &x)
{ /* Info-insets are never LaTeX, so just correct the font */
font.setLatex(LyXFont::OFF);
// Draw as "Note" in a yellow box
x += 1;
scr.fillRectangle(gc_note, int(x), baseline - Ascent(font)+1,
Width(font)-2, Ascent(font)+Descent(font)-2);
scr.drawRectangle(gc_note_frame, int(x), baseline- Ascent(font)+1,
Width(font)-2, Ascent(font)+Descent(font)-2);
scr.drawString(font, _("Note"), baseline, int(x+2));
x += Width(font) - 1;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.