2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 2000 The LyX Team.
10 * ====================================================== */
12 #ifndef INSET_BUTTON_H
13 #define INSET_BUTTON_H
22 /** Used to provide an inset that looks like a button.
24 class InsetButton: public Inset {
30 int ascent(Painter &, LyXFont const &) const;
32 int descent(Painter &, LyXFont const &) const;
34 int width(Painter &, LyXFont const &) const;
36 void draw(BufferView *, LyXFont const &, int, float &, bool) const;
39 /// This should provide the text for the button
40 virtual string getScreenLabel() const = 0;