PolycodeTextEditor.cpp 411 B

1234567891011121314151617181920212223242526
  1. #include "PolycodeTextEditor.h"
  2. PolycodeTextEditor::PolycodeTextEditor() : PolycodeEditor(true){
  3. }
  4. PolycodeTextEditor::~PolycodeTextEditor() {
  5. }
  6. bool PolycodeTextEditor::openFile(string filePath) {
  7. textInput = new UITextInput(true, 600, 550);
  8. addChild(textInput);
  9. PolycodeEditor::openFile(filePath);
  10. return true;
  11. }
  12. void PolycodeTextEditor::Resize(int x, int y) {
  13. textInput->Resize(x,y);
  14. }