BsGUIWindowFrame.h 1.8 KB

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