Inkscape
Vector Graphics Editor
frame.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Authors:
4 * Murray C
5 *
6 * Copyright (C) 2012 Authors
7 *
8 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9 */
10
11#ifndef INKSCAPE_UI_WIDGET_FRAME_H
12#define INKSCAPE_UI_WIDGET_FRAME_H
13
14#include <gtkmm/frame.h>
15#include <gtkmm/label.h>
16
17namespace Inkscape::UI::Widget {
18
23class Frame : public Gtk::Frame
24{
25public:
26
32 Frame(Glib::ustring const &label = {}, bool label_bold = true);
33
37 Gtk::Label const *get_label_widget() const;
38
42 void add(Widget& widget);
43
47 void set_label(Glib::ustring const &label, bool label_bold = true);
48
52 void set_padding(unsigned padding_top, unsigned padding_bottom,
53 unsigned padding_left, unsigned padding_right);
54
55protected:
56 Gtk::Label _label;
57};
58
59} // namespace Inkscape::UI::Widget
60
61#endif // INKSCAPE_UI_WIDGET_FRAME_H
62
63/*
64 Local Variables:
65 mode:c++
66 c-file-style:"stroustrup"
67 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
68 indent-tabs-mode:nil
69 fill-column:99
70 End:
71*/
72// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Creates a Gnome HIG style indented frame with bold label See http://developer.gnome....
Definition: frame.h:24
void set_padding(unsigned padding_top, unsigned padding_bottom, unsigned padding_left, unsigned padding_right)
Set the frame padding.
Definition: frame.cpp:42
void add(Widget &widget)
Add a widget to this frame.
Definition: frame.cpp:25
Frame(Glib::ustring const &label={}, bool label_bold=true)
Construct a Frame Widget.
Definition: frame.cpp:15
void set_label(Glib::ustring const &label, bool label_bold=true)
Set the frame label text and if bold or not.
Definition: frame.cpp:32
Gtk::Label const * get_label_widget() const
Return the label widget.
Definition: frame.cpp:57
Custom widgets.
Definition: desktop.h:127