Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
alignment-selector.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * anchor-selector.h
4 *
5 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
6 */
7
8#ifndef ANCHOR_SELECTOR_H
9#define ANCHOR_SELECTOR_H
10
11#include <array>
12#include <gtkmm/box.h>
13#include <gtkmm/button.h>
14#include <gtkmm/grid.h>
15#include <sigc++/signal.h>
16
17namespace Glib {
18class ustring;
19} // namespace Glib
20
21namespace Inkscape::UI::Widget {
22
23class AlignmentSelector final : public Gtk::Box
24{
25public:
27
28 sigc::connection connectAlignmentClicked(sigc::slot<void (int)>);
29
30private:
31 std::array<Gtk::Button, 9> _buttons;
32 Gtk::Grid _container;
33
34 sigc::signal<void (int)> _alignmentClicked;
35
36 void setupButton(const Glib::ustring &icon, Gtk::Button &button);
37 void btn_activated(int index);
38};
39
40} // namespace Inkscape::UI::Widget
41
42#endif // ANCHOR_SELECTOR_H
43
44/*
45 Local Variables:
46 mode:c++
47 c-file-style:"stroustrup"
48 c-file-offsets:((innamespace . 0)(inline-open . 0))
49 indent-tabs-mode:nil
50 fill-column:99
51 End:
52*/
53// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
std::array< Gtk::Button, 9 > _buttons
sigc::connection connectAlignmentClicked(sigc::slot< void(int)>)
void setupButton(const Glib::ustring &icon, Gtk::Button &button)
Custom widgets.
Definition desktop.h:126
int index