1//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
2//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
3#include "GUI/BsGUIScrollBarVert.h"
4#include "GUI/BsGUIDimensions.h"
5
6namespace bs
7{
8 GUIScrollBarVert::GUIScrollBarVert(bool resizeable, const String& styleName, const GUIDimensions& dimensions)
9 :GUIScrollBar(false, resizeable, styleName, dimensions)
10 {
11
12 }
13
14 GUIScrollBarVert* GUIScrollBarVert::create(const String& styleName)
15 {
16 return new (bs_alloc<GUIScrollBarVert>()) GUIScrollBarVert(false, getStyleName<GUIScrollBarVert>(false, styleName),
17 GUIDimensions::create());
18 }
19
20 GUIScrollBarVert* GUIScrollBarVert::create(bool resizeable, const String& styleName)
21 {
22 return new (bs_alloc<GUIScrollBarVert>()) GUIScrollBarVert(resizeable, getStyleName<GUIScrollBarVert>(resizeable, styleName),
23 GUIDimensions::create());
24 }
25
26 GUIScrollBarVert* GUIScrollBarVert::create(const GUIOptions& options, const String& styleName)
27 {
28 return new (bs_alloc<GUIScrollBarVert>()) GUIScrollBarVert(false, getStyleName<GUIScrollBarVert>(false, styleName),
29 GUIDimensions::create(options));
30 }
31
32 GUIScrollBarVert* GUIScrollBarVert::create(bool resizeable, const GUIOptions& options, const String& styleName)
33 {
34 return new (bs_alloc<GUIScrollBarVert>()) GUIScrollBarVert(resizeable, getStyleName<GUIScrollBarVert>(resizeable, styleName),
35 GUIDimensions::create(options));
36 }
37
38 const String& GUIScrollBarVert::getGUITypeName(bool resizable)
39 {
40 static String typeName = "ScrollBarVert";
41 static String resizableTypeName = "ResizeableScrollBarVert";
42
43 if (resizable)
44 return resizableTypeName;
45 else
46 return typeName;
47 }
48}