mirror of
https://github.com/zetaPRIME/libstarlight.git
synced 2025-06-26 05:32:46 +00:00
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
#pragma once
|
|
#include "starlight/_global.h"
|
|
|
|
#include <string>
|
|
#include <functional>
|
|
#include <memory>
|
|
|
|
#include "starlight/ui/Form.h"
|
|
#include "starlight/ui/ScrollField.h"
|
|
#include "starlight/ui/DrawLayerProxy.h"
|
|
|
|
#include "starlight/dialog/osk/InputHandler.h"
|
|
|
|
namespace starlight {
|
|
namespace dialog {
|
|
class OSK : public ui::Form, public ui::FormCreator<OSK> {
|
|
private:
|
|
std::shared_ptr<ui::UIContainer> setContainer;
|
|
std::shared_ptr<ui::ScrollField> previewSc;
|
|
std::shared_ptr<ui::DrawLayerProxy> preview;
|
|
|
|
//Vector2 cursorPos;
|
|
|
|
public:
|
|
std::unique_ptr<osk::InputHandler> handler;
|
|
|
|
OSK(osk::InputHandler* handler);
|
|
//~OSK() override { };
|
|
|
|
void Update(bool focused) override;
|
|
|
|
void OnKey();
|
|
|
|
void RefreshPreview();
|
|
void DrawPreview(ui::DrawLayerProxy& layer);
|
|
void OnPreviewTap(ui::DrawLayerProxy& layer);
|
|
};
|
|
}
|
|
}
|