Kage Studio 0.7.240121
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~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_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 class PropertyLocationSize : public Gtk::HBox {
34 public:
36 virtual ~PropertyLocationSize();
37
38 protected:
40 //Member widgets:
43 Gtk::Label m_LabelX;
44 Gtk::Entry m_EntryX;
45 Gtk::Label m_LabelY;
46 Gtk::Entry m_EntryY;
47 Gtk::Label m_LabelWidth;
48 Gtk::Entry m_EntryWidth;
49 Gtk::Label m_LabelHeight;
50 Gtk::Entry m_EntryHeight;
51 public:
52 void EntryX_onEnter();
53 void EntryY_onEnter();
54 void EntryWidth_onEnter();
56
57 void setXText(double p_x);
58 void setYText(double p_y);
59 void setWidthText(double p_width);
60 void setHeightText(double p_height);
61 };
62#endif //GTKMM_KAGE_PROP_LOCATION_SIZE_H
Definition kage.h:74
void EntryWidth_onEnter()
Definition locationsize.cpp:88
Gtk::Entry m_EntryX
Definition locationsize.h:44
Gtk::Label m_LabelY
Definition locationsize.h:45
Gtk::Label m_LabelX
Definition locationsize.h:43
Kage * _kage
Definition locationsize.h:39
void setYText(double p_y)
Definition locationsize.cpp:106
Gtk::Entry m_EntryHeight
Definition locationsize.h:50
Gtk::Label m_LabelWidth
Definition locationsize.h:47
void EntryX_onEnter()
Definition locationsize.cpp:76
void setWidthText(double p_width)
Definition locationsize.cpp:110
void EntryY_onEnter()
Definition locationsize.cpp:82
PropertyLocationSize(Kage *p_kage)
Definition locationsize.cpp:25
Gtk::VBox m_propLocationSizeV1
Definition locationsize.h:41
Gtk::Label m_LabelHeight
Definition locationsize.h:49
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:46
Gtk::Entry m_EntryWidth
Definition locationsize.h:48
Gtk::VBox m_propLocationSizeV2
Definition locationsize.h:42