| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsEditorPrerequisites.h"
- #include "GUI/BsGUITexture.h"
- #include "2D/BsImageSprite.h"
- namespace bs
- {
- /** @addtogroup GUI-Editor-Internal
- * @{
- */
- /** GUI element used for displaying a border on an editor window edge. */
- class GUIWindowFrame : public GUITexture
- {
- public:
- /** Returns type name of the GUI element used for finding GUI element styles. */
- static const String& getGUITypeName();
- /**
- * Creates a new GUI window frame element.
- *
- * @param[in] styleName Optional style to use for the element. Style will be retrieved from GUISkin of the
- * GUIWidget the element is used on. If not specified default style is used.
- */
- static GUIWindowFrame* create(const String& styleName = StringUtil::BLANK);
- /**
- * Creates a new GUI window frame element.
- *
- * @param[in] options Options that allow you to control how is the element positioned and sized.
- * This will override any similar options set by style.
- * @param[in] styleName Optional style to use for the element. Style will be retrieved from GUISkin of the
- * GUIWidget the element is used on. If not specified default style is used.
- */
- static GUIWindowFrame* create(const GUIOptions& options, const String& styleName = StringUtil::BLANK);
- /** Sets whether the frame should be displayed in focus or unfocused state. */
- void setFocused(bool focused);
- protected:
- ~GUIWindowFrame();
- GUIWindowFrame(const String& styleName, const GUIDimensions& dimensions);
- };
- /** @} */
- }
|