PolyScreenLabel.h 906 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * PolyScreenLabel.h
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 3/16/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. // @package Screen
  10. #pragma once
  11. #include "PolyString.h"
  12. #include "PolyGlobals.h"
  13. #include "PolyCoreServices.h"
  14. #include "PolyScreenShape.h"
  15. #include "PolyScreenImage.h"
  16. #include "PolyFont.h"
  17. #include "PolyLabel.h"
  18. #include "PolyTexture.h"
  19. #include "PolyPolygon.h"
  20. #include "PolyMesh.h"
  21. #include <string>
  22. using std::string;
  23. using std::wstring;
  24. namespace Polycode {
  25. class _PolyExport ScreenLabel : public ScreenShape {
  26. public:
  27. ScreenLabel(String fontName, String text, int size, int amode);
  28. ~ScreenLabel();
  29. void addDropShadow(Color color, Number size, Number offsetX, Number offsetY);
  30. void setText(String newText);
  31. String getText();
  32. Label *getLabel();
  33. protected:
  34. Label *label;
  35. ScreenImage *dropShadowImage;
  36. };
  37. }