1// Don't modify, generated file from /home/lucius/Code/aseprite/data/widgets/sprite_size.xml
2
3#ifndef GENERATED_SPRITE_SIZE_H_INCLUDED
4#define GENERATED_SPRITE_SIZE_H_INCLUDED
5#pragma once
6
7#include "app/find_widget.h"
8#include "app/load_widget.h"
9#include "app/ui/expr_entry.h"
10#include "ui/button.h"
11#include "ui/combobox.h"
12#include "ui/window.h"
13
14namespace app {
15namespace gen {
16
17 class SpriteSize : public ui::Window {
18 public:
19 SpriteSize() : ui::Window(ui::Window::WithTitleBar) {
20 app::load_widget("sprite_size.xml", "sprite_size", this);
21 app::finder(this)
22 >> "width_px" >> m_widthPx
23 >> "height_px" >> m_heightPx
24 >> "lock_ratio" >> m_lockRatio
25 >> "width_perc" >> m_widthPerc
26 >> "height_perc" >> m_heightPerc
27 >> "method" >> m_method
28 >> "ok" >> m_ok
29 ;
30 }
31
32 app::ExprEntry* widthPx() const { return m_widthPx; }
33 app::ExprEntry* heightPx() const { return m_heightPx; }
34 ui::CheckBox* lockRatio() const { return m_lockRatio; }
35 app::ExprEntry* widthPerc() const { return m_widthPerc; }
36 app::ExprEntry* heightPerc() const { return m_heightPerc; }
37 ui::ComboBox* method() const { return m_method; }
38 ui::Button* ok() const { return m_ok; }
39
40 private:
41 app::ExprEntry* m_widthPx;
42 app::ExprEntry* m_heightPx;
43 ui::CheckBox* m_lockRatio;
44 app::ExprEntry* m_widthPerc;
45 app::ExprEntry* m_heightPerc;
46 ui::ComboBox* m_method;
47 ui::Button* m_ok;
48 };
49
50} // namespace gen
51} // namespace app
52
53#endif
54