Inkscape
Vector Graphics Editor
entry.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Authors:
4 * Johan Engelen <goejendaagh@zonnet.nl>
5 *
6 * Copyright (C) 2006 Authors
7 *
8 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9 */
10
11#ifndef SEEN_INKSCAPE_UI_WIDGET_ENTRY_H
12#define SEEN_INKSCAPE_UI_WIDGET_ENTRY_H
13
14#include <gtkmm/entry.h>
15
16#include "labelled.h"
17
18namespace Inkscape::UI::Widget {
19
23class Entry : public Labelled
24{
25public:
26 Entry(Glib::ustring const &label,
27 Glib::ustring const &tooltip,
28 Glib::ustring const &icon = {},
29 bool mnemonic = true);
30
31 Gtk::Entry const * getEntry() const { return static_cast<Gtk::Entry const *>(getWidget()); }
32 Gtk::Entry * getEntry() { return static_cast<Gtk::Entry *>(getWidget()); }
33};
34
35} // namespace Inkscape::UI::Widget
36
37#endif // SEEN_INKSCAPE_UI_WIDGET_ENTRY_H
38
39/*
40 Local Variables:
41 mode:c++
42 c-file-style:"stroustrup"
43 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
44 indent-tabs-mode:nil
45 fill-column:99
46 End:
47*/
48// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Helperclass for Gtk::Entry widgets.
Definition: entry.h:24
Entry(Glib::ustring const &label, Glib::ustring const &tooltip, Glib::ustring const &icon={}, bool mnemonic=true)
Definition: entry.cpp:15
Gtk::Entry const * getEntry() const
Definition: entry.h:31
Gtk::Entry * getEntry()
Definition: entry.h:32
Adds a label with optional icon to another widget.
Definition: labelled.h:31
Gtk::Widget const * getWidget() const
Definition: labelled.h:48
Custom widgets.
Definition: desktop.h:127