// Don't modify, generated file from /build/libresprite/src/libresprite/data/widgets/new_sprite.xml

#pragma once

#include "app/find_widget.h"
#include "app/load_widget.h"
#include "ui/ui.h"

namespace app {
namespace gen {

  class NewSprite : public ui::Window {
  public:
    NewSprite() : ui::Window(ui::Window::WithTitleBar) {
      app::load_widget("new_sprite.xml", "new_sprite", this);
      app::finder(this)
        >> "width" >> m_width
        >> "height" >> m_height
        >> "color_mode" >> m_colorMode
        >> "bg_color" >> m_bgColor
        >> "ok_button" >> m_okButton
      ;
    }

    ui::Entry* width() const { return m_width; }
    ui::Entry* height() const { return m_height; }
    app::ButtonSet* colorMode() const { return m_colorMode; }
    app::ButtonSet* bgColor() const { return m_bgColor; }
    ui::Button* okButton() const { return m_okButton; }

  private:
    ui::Entry* m_width;
    ui::Entry* m_height;
    app::ButtonSet* m_colorMode;
    app::ButtonSet* m_bgColor;
    ui::Button* m_okButton;
  };

} // namespace gen
} // namespace app
