PolycodeFontEditor.h 774 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include "PolycodeEditor.h"
  3. #include "PolycodeUI.h"
  4. #include <Polycode.h>
  5. using namespace Polycode;
  6. class PolycodeFontEditor : public PolycodeEditor {
  7. public:
  8. PolycodeFontEditor();
  9. virtual ~PolycodeFontEditor();
  10. bool openFile(String filePath);
  11. void Resize(int x, int y);
  12. protected:
  13. ScreenImage *grid;
  14. UIBox *bg;
  15. ScreenEntity *anchor;
  16. ScreenLabel *editorLabel;
  17. ScreenLabel *editorLabel2;
  18. ScreenLabel *editorLabel3;
  19. ScreenLabel *editorLabel4;
  20. ScreenLabel *editorLabel5;
  21. };
  22. class PolycodeFontEditorFactory : public PolycodeEditorFactory {
  23. public:
  24. PolycodeFontEditorFactory() : PolycodeEditorFactory() { extensions.push_back("otf"); extensions.push_back("ttf");}
  25. PolycodeEditor *createEditor() { return new PolycodeFontEditor(); }
  26. };