FLImaging
7.8.25.3
Toggle main menu visibility
FLImagingFoundation
FLImagingGUI
GUISliderOwnerDrawnDraggableSpin.h
1
#pragma once
2
#include "GUISliderOwnerDrawn.h"
3
4
namespace
FLImaging
5
{
6
namespace
GUI
7
{
8
template
<
typename
T>
9
class
FL_EXPORT CGUISliderOwnerDrawnDraggableSpin :
public
CGUISliderOwnerDrawnBase
10
{
11
public
:
25
CGUISliderOwnerDrawnDraggableSpin(CWnd* pParentWnd, EOrientation eOrientation = EOrientation_Horizontal);
26
34
virtual
~CGUISliderOwnerDrawnDraggableSpin();
35
47
virtual
const
CResult CalcSliderRegion(CRect* pRect)
override
;
48
58
virtual
void
Draw(CDC* pDC)
const override
;
59
71
void
SetRangeMin(T tMin,
bool
bRedraw =
false
);
72
84
void
SetRangeMax(T tMax,
bool
bRedraw =
false
);
85
99
void
SetRange(T tMin, T tMax,
bool
bRedraw =
false
);
100
110
T GetRangeMax()
const
;
111
121
T GetRangeMin()
const
;
122
134
void
GetRange(T& tMin, T& tMax)
const
;
135
147
void
SetUnit(T tUnit,
bool
bRedraw =
false
);
148
157
T GetUnit()
const
;
158
172
void
SetValue(T tValue,
bool
bRedraw,
bool
bSendMessage =
true
);
173
185
void
IncreaseValue(T tValue,
bool
bRedraw);
186
198
void
DecreaseValue(T tValue,
bool
bRedraw);
199
211
void
IncreaseTick(int32_t i32Tick,
bool
bRedraw);
212
224
void
DecreaseTick(int32_t i32Tick,
bool
bRedraw);
225
237
void
IncreasePos(int32_t i32PosDelta,
bool
bRedraw);
238
250
void
DecreasePos(int32_t i32PosDelta,
bool
bRedraw);
251
261
T GetValue()
const
;
262
270
virtual
void
UpdateSlider()
override
;
271
283
T GetRemainder(T tValue)
const
;
284
296
virtual
void
OnMouseWheel(
const
CPoint& ptPoint,
bool
bUpWheel);
297
virtual
void
OnLButtonDown(
const
CPoint& ptPoint)
override
;
298
virtual
void
OnLButtonUp(
const
CPoint& ptPoint)
override
;
299
virtual
void
OnMouseMove(
const
CPoint& ptPoint)
override
;
300
301
virtual
void
ShowText
(
bool
bShow =
true
);
302
virtual
bool
IsTextVisible()
const
;
303
313
virtual
void
SetSpinIcon(ESpinIcon eSpinIcon = ESpinIcon_UpDownArrow_Triangle);
314
324
virtual
ESpinIcon
GetSpinIcon()
const
;
325
339
virtual
void
SetDragValuePerPixel(
double
f64DragValuePerPixel);
340
350
virtual
double
GetDragValuePerPixel()
const
;
351
371
virtual
bool
IsDragValuePerPixelSet()
const
;
372
373
virtual
ESliderArea
HitTest(
const
CPoint& ptPoint)
const override
;
374
virtual
void
SetHitArea(ESliderArea eHitArea,
bool
bRedraw =
true
)
override
;
375
376
protected
:
377
virtual
void
SetPos(int32_t i32Pos,
bool
bSetValue,
bool
bSendMsg,
bool
bRedraw)
override
;
378
379
protected
:
380
T m_tRangeMin;
// Range min
381
T m_tRangeMax;
// Range max
382
mutable
T m_tValue;
// current value
383
T m_tUnit;
384
bool
m_bShowText;
385
ESpinIcon
m_eSpinIcon;
386
CRect m_arrRtSpin[2];
// Spin Ctrl
387
int32_t m_i32SpinState;
388
double
m_f64DragValuePerPixel;
// Drag sensitivity
389
bool
m_bDragValuePerPixelSet;
390
};
391
}
392
}
FLImaging::GUI
Definition
D2DObject.h:12
FLImaging::GUI::ESpinIcon
ESpinIcon
Icons for the spin control button.
Definition
DefinitionsGUI.h:14668
FLImaging::GUI::ESliderArea
ESliderArea
Scroll Bar Area.
Definition
DefinitionsGUI.h:14511
FLImagingCLR::GUI::EMenuItemImageFigure::ShowText
@ ShowText
Show the text(figure name, figure text) on image.
Definition
DefinitionsGUI.h:4140
FLImaging
Generated on
for FLImaging by
1.17.0