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