Kage Studio 0.7.240121
A Simple Free and Open Source 2D Animation Software
Loading...
Searching...
No Matches
nodexy.h
Go to the documentation of this file.
1/*
2 * Kage Studio - a simple free and open source vector-based 2D animation software
3 * Copyright (C) 2011~2024 Mj Mendoza IV
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18 * MA 02110-1301, USA. Or, see <https://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef GTKMM_KAGE_PROP_NODE_XY_H
23 #define GTKMM_KAGE_PROP_NODE_XY_H
24
25 #include <gtkmm/box.h>
26 #include <gtkmm/label.h>
27 #include <gtkmm/entry.h>
28 #include <gtkmm/colorbutton.h>
29 #include <gtkmm/colorselection.h>
30
31 class Kage; //forward declaration
32
33 class PropertyNodeXY : public Gtk::HBox {
34 public:
35 PropertyNodeXY(Kage* p_kage);
36 virtual ~PropertyNodeXY();
37
38 protected:
40 //Member widgets:
41 Gtk::HBox m_propNodeXY;
42 Gtk::VBox m_propNodeXYV1;
43 Gtk::VBox m_propNodeXYV2;
44 Gtk::Label m_LabelNodeX;
45 Gtk::Entry m_EntryNodeX;
46 Gtk::Label m_LabelNodeY;
47 Gtk::Entry m_EntryNodeY;
49 Gtk::Button _btnToggleLine;
51 Glib::RefPtr<Gdk::Pixbuf> _btnToggleLine_pixbuf;
52 public:
53 void EntryNodeX_onEnter();
54 void EntryNodeY_onEnter();
55 void ToggleLine_onClick();
56
57 void setNodeXText(double p_nodeX);
58 void setNodeYText(double p_nodeY);
59 };
60#endif //GTKMM_KAGE_PROP_NODE_XY_H
Definition kage.h:74
Gtk::Label m_LabelToggleLine
Definition nodexy.h:48
Kage * _kage
Definition nodexy.h:39
Gtk::Label m_LabelNodeY
Definition nodexy.h:46
void ToggleLine_onClick()
Definition nodexy.cpp:83
Gtk::VBox m_propNodeXYV2
Definition nodexy.h:43
Gtk::Entry m_EntryNodeX
Definition nodexy.h:45
Gtk::Entry m_EntryNodeY
Definition nodexy.h:47
Gtk::VBox m_propNodeXYV1
Definition nodexy.h:42
void setNodeXText(double p_nodeX)
Definition nodexy.cpp:91
virtual ~PropertyNodeXY()
Definition nodexy.cpp:65
PropertyNodeXY(Kage *p_kage)
Definition nodexy.cpp:25
Gtk::Label m_LabelNodeX
Definition nodexy.h:44
void setNodeYText(double p_nodeY)
Definition nodexy.cpp:94
Gtk::HBox m_propNodeXY
Definition nodexy.h:41
void EntryNodeY_onEnter()
Definition nodexy.cpp:76
void EntryNodeX_onEnter()
Definition nodexy.cpp:69
Glib::RefPtr< Gdk::Pixbuf > _btnToggleLine_pixbuf
Definition nodexy.h:51
Gtk::Image _btnToggleLine_img
Definition nodexy.h:50
Gtk::Button _btnToggleLine
Definition nodexy.h:49