PolyScreenLabel.h 882 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * PolyScreenLabel.h
  3. * TAU
  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 "PolyGlobals.h"
  12. #include "PolyCoreServices.h"
  13. #include "PolyScreenShape.h"
  14. #include "PolyScreenImage.h"
  15. #include "PolyFont.h"
  16. #include "PolyLabel.h"
  17. #include "PolyTexture.h"
  18. #include "PolyPolygon.h"
  19. #include "PolyMesh.h"
  20. #include <string>
  21. using std::string;
  22. using std::wstring;
  23. namespace Polycode {
  24. class _PolyExport ScreenLabel : public ScreenShape {
  25. public:
  26. ScreenLabel(string fontName, wstring text, int size, int amode);
  27. ~ScreenLabel();
  28. void addDropShadow(Color color, float size, float offsetX, float offsetY);
  29. void setText(wstring newText);
  30. wstring getText();
  31. Label *getLabel();
  32. protected:
  33. Label *label;
  34. ScreenImage *dropShadowImage;
  35. };
  36. }