BsGUIWindowFrame.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsGUITexture.h"
  4. #include "BsImageSprite.h"
  5. namespace BansheeEngine
  6. {
  7. /**
  8. * @brief GUI element used for displaying a border on an editor window edge.
  9. */
  10. class GUIWindowFrame : public GUITexture
  11. {
  12. public:
  13. /**
  14. * Returns type name of the GUI element used for finding GUI element styles.
  15. */
  16. static const String& getGUITypeName();
  17. /**
  18. * @brief Creates a new GUI window frame element.
  19. *
  20. * @param styleName Optional style to use for the element. Style will be retrieved
  21. * from GUISkin of the GUIWidget the element is used on. If not specified
  22. * default style is used.
  23. */
  24. static GUIWindowFrame* create(const String& styleName = StringUtil::BLANK);
  25. /**
  26. * @brief Creates a new GUI window frame element.
  27. *
  28. * @param options Options that allow you to control how is the element positioned and sized.
  29. * This will override any similar options set by style.
  30. * @param styleName Optional style to use for the element. Style will be retrieved
  31. * from GUISkin of the GUIWidget the element is used on. If not specified
  32. * default style is used.
  33. */
  34. static GUIWindowFrame* create(const GUIOptions& options, const String& styleName = StringUtil::BLANK);
  35. /**
  36. * @brief Sets whether the frame should be displayed in focus or unfocused state.
  37. */
  38. void setFocused(bool focused);
  39. protected:
  40. ~GUIWindowFrame();
  41. GUIWindowFrame(const String& styleName, const GUIDimensions& dimensions);
  42. };
  43. }