Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
fontbutton.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef INKSCAPE_LIVEPATHEFFECT_PARAMETER_FONT_H
3#define INKSCAPE_LIVEPATHEFFECT_PARAMETER_FONT_H
4
5/*
6 * Inkscape::LivePathEffectParameters
7 *
8 * Authors:
9 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
10 */
11#include <glib.h>
13
14namespace Inkscape {
15
16namespace LivePathEffect {
17
18class FontButtonParam : public Parameter {
19public:
20 FontButtonParam( const Glib::ustring& label,
21 const Glib::ustring& tip,
22 const Glib::ustring& key,
24 Effect* effect,
25 const Glib::ustring default_value = "Sans 10");
26 ~FontButtonParam() override = default;
27
28 Gtk::Widget * param_newWidget() override;
29 bool param_readSVGValue(const gchar * strvalue) override;
30 void param_update_default(const gchar * default_value) override;
31 Glib::ustring param_getSVGValue() const override;
32 Glib::ustring param_getDefaultSVGValue() const override;
33
34 void param_setValue(Glib::ustring newvalue);
35
36 void param_set_default() override;
37
38 const Glib::ustring get_value() const { return defvalue; };
39 ParamType paramType() const override { return ParamType::FONT_BUTTON; };
40private:
43 Glib::ustring value;
44 Glib::ustring defvalue;
45
46};
47
48} //namespace LivePathEffect
49
50} //namespace Inkscape
51
52#endif
53
54/*
55 Local Variables:
56 mode:c++
57 c-file-style:"stroustrup"
58 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
59 indent-tabs-mode:nil
60 fill-column:99
61 End:
62*/
63// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
bool param_readSVGValue(const gchar *strvalue) override
const Glib::ustring get_value() const
Definition fontbutton.h:38
FontButtonParam(const FontButtonParam &)=delete
FontButtonParam & operator=(const FontButtonParam &)=delete
Gtk::Widget * param_newWidget() override
Glib::ustring param_getDefaultSVGValue() const override
ParamType paramType() const override
Definition fontbutton.h:39
void param_update_default(const gchar *default_value) override
void param_setValue(Glib::ustring newvalue)
Glib::ustring param_getSVGValue() const override
Glib::ustring label
Helper class to stream background task notifications as a series of messages.
static cairo_user_data_key_t key