GUIFramework
1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
TrackbarControlAdditionalCreationData.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
AdditionalCreationData.h
"
4
#include "
Components/Trackbars/HorizontalTrackbarControl.h
"
5
#include "
Components/Trackbars/VerticalTrackbarControl.h
"
6
7
namespace
gui_framework
8
{
9
namespace
utility
10
{
12
template
<>
13
class
GUI_FRAMEWORK_API
AdditionalCreationData
<
HorizontalTrackbarControl
>
14
{
15
protected
:
16
bool
autoTicks
;
17
HorizontalTrackbarControl::horizontalTickPosition
position
;
18
bool
selectionRange
;
19
bool
noTicks
;
20
21
public
:
22
AdditionalCreationData
(
bool
autoTicks =
true
,
HorizontalTrackbarControl::horizontalTickPosition
position = HorizontalTrackbarControl::horizontalTickPosition::bottom,
bool
selectionRange =
false
,
bool
noTicks =
false
);
23
24
virtual
std::any getData()
const
;
25
26
virtual
~AdditionalCreationData
() =
default
;
27
};
28
30
template
<>
31
class
GUI_FRAMEWORK_API
AdditionalCreationData
<
VerticalTrackbarControl
>
32
{
33
protected
:
34
bool
autoTicks
;
35
VerticalTrackbarControl::verticalTickPosition
position
;
36
bool
selectionRange
;
37
bool
noTicks
;
38
39
public
:
40
AdditionalCreationData
(
bool
autoTicks =
true
,
VerticalTrackbarControl::verticalTickPosition
position = VerticalTrackbarControl::verticalTickPosition::left,
bool
selectionRange =
false
,
bool
noTicks =
false
);
41
42
virtual
std::any getData()
const
;
43
44
virtual
~AdditionalCreationData
() =
default
;
45
};
46
}
47
}
AdditionalCreationData.h
GUI_FRAMEWORK_API
#define GUI_FRAMEWORK_API
Definition
GUIFrameworkConstants.h:103
HorizontalTrackbarControl.h
VerticalTrackbarControl.h
gui_framework::HorizontalTrackbarControl
Standard horizontal trackbar control.
Definition
HorizontalTrackbarControl.h:9
gui_framework::HorizontalTrackbarControl::horizontalTickPosition
horizontalTickPosition
Definition
HorizontalTrackbarControl.h:12
gui_framework::VerticalTrackbarControl
Standard vertical trackbar control.
Definition
VerticalTrackbarControl.h:9
gui_framework::VerticalTrackbarControl::verticalTickPosition
verticalTickPosition
Definition
VerticalTrackbarControl.h:12
gui_framework::utility::AdditionalCreationData< HorizontalTrackbarControl >::autoTicks
bool autoTicks
Definition
TrackbarControlAdditionalCreationData.h:16
gui_framework::utility::AdditionalCreationData< HorizontalTrackbarControl >::position
HorizontalTrackbarControl::horizontalTickPosition position
Definition
TrackbarControlAdditionalCreationData.h:17
gui_framework::utility::AdditionalCreationData< HorizontalTrackbarControl >::noTicks
bool noTicks
Definition
TrackbarControlAdditionalCreationData.h:19
gui_framework::utility::AdditionalCreationData< HorizontalTrackbarControl >::~AdditionalCreationData
virtual ~AdditionalCreationData()=default
gui_framework::utility::AdditionalCreationData< HorizontalTrackbarControl >::selectionRange
bool selectionRange
Definition
TrackbarControlAdditionalCreationData.h:18
gui_framework::utility::AdditionalCreationData< VerticalTrackbarControl >::~AdditionalCreationData
virtual ~AdditionalCreationData()=default
gui_framework::utility::AdditionalCreationData< VerticalTrackbarControl >::position
VerticalTrackbarControl::verticalTickPosition position
Definition
TrackbarControlAdditionalCreationData.h:35
gui_framework::utility::AdditionalCreationData< VerticalTrackbarControl >::noTicks
bool noTicks
Definition
TrackbarControlAdditionalCreationData.h:37
gui_framework::utility::AdditionalCreationData< VerticalTrackbarControl >::autoTicks
bool autoTicks
Definition
TrackbarControlAdditionalCreationData.h:34
gui_framework::utility::AdditionalCreationData< VerticalTrackbarControl >::selectionRange
bool selectionRange
Definition
TrackbarControlAdditionalCreationData.h:36
gui_framework::utility::AdditionalCreationData
Base templated class for component creators.
Definition
AdditionalCreationData.h:12
gui_framework
Definition
BaseComponent.cpp:21
GUIFramework
src
Utility
AdditionalCreationData
TrackbarControlAdditionalCreationData.h
Generated by
1.12.0