Kage Studio 0.7.230612
A Simple Free and Open Source 2D Animation Software
Loading...
Searching...
No Matches
locationsize.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~2023 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_LOCATION_SIZE_H
23 #define GTKMM_KAGE_PROP_LOCATION_SIZE_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 using namespace std;
34
35 class PropertyLocationSize : public Gtk::HBox {
36 public:
38 virtual ~PropertyLocationSize();
39
40 protected:
42 //Member widgets:
45 Gtk::Label m_LabelX;
46 Gtk::Entry m_EntryX;
47 Gtk::Label m_LabelY;
48 Gtk::Entry m_EntryY;
49 Gtk::Label m_LabelWidth;
50 Gtk::Entry m_EntryWidth;
51 Gtk::Label m_LabelHeight;
52 Gtk::Entry m_EntryHeight;
53 public:
54 void EntryX_onEnter();
55 void EntryY_onEnter();
56 void EntryWidth_onEnter();
58
59 void setXText(double p_x);
60 void setYText(double p_y);
61 void setWidthText(double p_width);
62 void setHeightText(double p_height);
63 };
64#endif //GTKMM_KAGE_PROP_LOCATION_SIZE_H
Definition: kage.h:69
Definition: locationsize.h:35
void EntryWidth_onEnter()
Definition: locationsize.cpp:88
Gtk::Entry m_EntryX
Definition: locationsize.h:46
Gtk::Label m_LabelY
Definition: locationsize.h:47
Gtk::Label m_LabelX
Definition: locationsize.h:45
Kage * _kage
Definition: locationsize.h:41
void setYText(double p_y)
Definition: locationsize.cpp:106
Gtk::Entry m_EntryHeight
Definition: locationsize.h:52
Gtk::Label m_LabelWidth
Definition: locationsize.h:49
void EntryX_onEnter()
Definition: locationsize.cpp:76
void setWidthText(double p_width)
Definition: locationsize.cpp:110
void EntryY_onEnter()
Definition: locationsize.cpp:82
Gtk::VBox m_propLocationSizeV1
Definition: locationsize.h:43
Gtk::Label m_LabelHeight
Definition: locationsize.h:51
void setHeightText(double p_height)
Definition: locationsize.cpp:114
void setXText(double p_x)
Definition: locationsize.cpp:102
virtual ~PropertyLocationSize()
Definition: locationsize.cpp:72
void EntryHeight_onEnter()
Definition: locationsize.cpp:95
Gtk::Entry m_EntryY
Definition: locationsize.h:48
Gtk::Entry m_EntryWidth
Definition: locationsize.h:50
Gtk::VBox m_propLocationSizeV2
Definition: locationsize.h:44