BsGUIWindowFrame.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsEditorPrerequisites.h"
  5. #include "GUI/BsGUITexture.h"
  6. #include "2D/BsImageSprite.h"
  7. namespace bs
  8. {
  9. /** @addtogroup GUI-Editor-Internal
  10. * @{
  11. */
  12. /** GUI element used for displaying a border on an editor window edge. */
  13. class GUIWindowFrame : public GUITexture
  14. {
  15. public:
  16. /** Returns type name of the GUI element used for finding GUI element styles. */
  17. static const String& getGUITypeName();
  18. /**
  19. * Creates a new GUI window frame element.
  20. *
  21. * @param[in] styleName Optional style to use for the element. Style will be retrieved from GUISkin of the
  22. * GUIWidget the element is used on. If not specified default style is used.
  23. */
  24. static GUIWindowFrame* create(const String& styleName = StringUtil::BLANK);
  25. /**
  26. * Creates a new GUI window frame element.
  27. *
  28. * @param[in] 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[in] styleName Optional style to use for the element. Style will be retrieved from GUISkin of the
  31. * GUIWidget the element is used on. If not specified default style is used.
  32. */
  33. static GUIWindowFrame* create(const GUIOptions& options, const String& styleName = StringUtil::BLANK);
  34. /** Sets whether the frame should be displayed in focus or unfocused state. */
  35. void setFocused(bool focused);
  36. protected:
  37. ~GUIWindowFrame();
  38. GUIWindowFrame(const String& styleName, const GUIDimensions& dimensions);
  39. };
  40. /** @} */
  41. }