4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
12 #ifndef RENDERBUTTON_H
13 #define RENDERBUTTON_H
15 #include "RenderBase.h"
16 #include "support/docstring.h"
22 class RenderButton : public RenderBase
27 RenderBase * clone(Inset const *) const override;
29 /// compute the size of the object returned in dim
30 void metrics(MetricsInfo & mi, Dimension & dim) const override;
31 /// draw inset and update (xo, yo)-cache
32 void draw(PainterInfo & pi, int x, int y, bool const darkmode = false) const override;
34 /// Provide the text for the button
35 void update(docstring const &, bool editable,
36 bool inherit, bool broken = false);
38 /// equivalent to dynamic_cast
39 RenderButton * asButton() override { return this; }
52 #endif // NOT RENDERBUTTON_H