ManaPlus
src
gui
widgets
scrollarea.h
Go to the documentation of this file.
1
/*
2
* The ManaPlus Client
3
* Copyright (C) 2004-2009 The Mana World Development Team
4
* Copyright (C) 2009-2010 The Mana Developers
5
* Copyright (C) 2011-2019 The ManaPlus Developers
6
* Copyright (C) 2019-2021 Andrei Karas
7
*
8
* This file is part of The ManaPlus Client.
9
*
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
19
*
20
* You should have received a copy of the GNU General Public License
21
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
*/
23
24
/* _______ __ __ __ ______ __ __ _______ __ __
25
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
26
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
27
* / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / /
28
* / /_// /\ / /_// / // / // /_/_ / / // / // /\_/ / // / | / /
29
* /______/ //______/ //_/ //_____/\ /_/ //_/ //_/ //_/ //_/ /|_/ /
30
* \______\/ \______\/ \_\/ \_____\/ \_\/ \_\/ \_\/ \_\/ \_\/ \_\/
31
*
32
* Copyright (c) 2004 - 2008 Olof Naessén and Per Larsson
33
*
34
*
35
* Per Larsson a.k.a finalman
36
* Olof Naessén a.k.a jansem/yakslem
37
*
38
* Visit: http://guichan.sourceforge.net
39
*
40
* License: (BSD)
41
* Redistribution and use in source and binary forms, with or without
42
* modification, are permitted provided that the following conditions
43
* are met:
44
* 1. Redistributions of source code must retain the above copyright
45
* notice, this list of conditions and the following disclaimer.
46
* 2. Redistributions in binary form must reproduce the above copyright
47
* notice, this list of conditions and the following disclaimer in
48
* the documentation and/or other materials provided with the
49
* distribution.
50
* 3. Neither the name of Guichan nor the names of its contributors may
51
* be used to endorse or promote products derived from this software
52
* without specific prior written permission.
53
*
54
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
55
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
56
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
57
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
58
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
59
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
60
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
61
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
62
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
63
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
64
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
65
*/
66
67
#ifndef GUI_WIDGETS_SCROLLAREA_H
68
#define GUI_WIDGETS_SCROLLAREA_H
69
70
#include "
gui/widgets/basiccontainer.h
"
71
72
#include "
enums/simpletypes/opaque.h
"
73
74
#include "
listeners/mouselistener.h
"
75
#include "
listeners/widgetlistener.h
"
76
77
#include "
localconsts.h
"
78
79
class
Image
;
80
class
ImageCollection
;
81
91
class
ScrollArea
final
:
public
BasicContainer
,
92
public
MouseListener
,
93
public
WidgetListener
94
{
95
public
:
105
enum
ScrollPolicy
106
{
107
SHOW_ALWAYS
= 0,
108
SHOW_NEVER
,
109
SHOW_AUTO
110
};
111
112
ScrollArea
(
Widget2
*
const
widget2,
113
Widget
*
const
widget,
114
const
Opaque
opaque,
115
const
std::string &skin);
116
117
A_DELETE_COPY
(
ScrollArea
)
118
119
122
~ScrollArea
()
override
final
;
123
128
void
logic
()
override
final
;
129
133
void
updateAlpha
();
134
138
void
draw
(
Graphics
*const graphics)
override
final
A_NONNULL
(2);
139
140
void
safeDraw
(
Graphics
*const graphics)
override
final
A_NONNULL
(2);
141
145
void
drawFrame
(
Graphics
*const graphics)
override
final
A_NONNULL
(2);
146
147
void
safeDrawFrame
(
Graphics
*const graphics)
override
final
148
A_NONNULL
(2);
149
153
void
setOpaque
(
Opaque
opaque);
154
158
bool
isOpaque
() const
noexcept2
A_WARN_UNUSED
159
{
return
mOpaque
==
Opaque_true
; }
160
164
void
mouseMoved
(
MouseEvent
& event)
override
final
;
165
169
void
mouseEntered
(
MouseEvent
& event)
override
final
;
170
174
void
mouseExited
(
MouseEvent
& event)
override
final
;
175
176
void
mousePressed
(
MouseEvent
& event)
override
final
;
177
178
void
mouseReleased
(
MouseEvent
& event)
override
final
;
179
180
void
mouseDragged
(
MouseEvent
&event)
override
final
;
181
182
void
widgetResized
(
const
Event
&event)
override
final
;
183
184
void
widgetMoved
(
const
Event
&event)
override
final
;
185
186
Rect
getVerticalBarDimension
()
const
;
187
188
Rect
getHorizontalBarDimension
()
const
;
189
190
Rect
getVerticalMarkerDimension
();
191
192
Rect
getHorizontalMarkerDimension
();
193
194
Rect
getUpButtonDimension
()
const
;
195
196
Rect
getDownButtonDimension
()
const
;
197
198
Rect
getLeftButtonDimension
()
const
;
199
200
Rect
getRightButtonDimension
()
const
;
201
207
void
setContent
(
Widget
* widget);
208
214
Widget
*
getContent
();
215
222
void
setHorizontalScrollPolicy
(
const
ScrollPolicy
hPolicy);
223
230
ScrollPolicy
getHorizontalScrollPolicy
()
const
231
{
return
mHPolicy
; }
232
239
void
setVerticalScrollPolicy
(
const
ScrollPolicy
vPolicy);
240
247
ScrollPolicy
getVerticalScrollPolicy
()
const
248
{
return
mVPolicy
; }
249
257
void
setScrollPolicy
(
const
ScrollPolicy
hPolicy,
258
const
ScrollPolicy
vPolicy);
259
266
void
setVerticalScrollAmount
(
const
int
vScroll);
267
274
int
getVerticalScrollAmount
()
const
275
{
return
mVScroll
; }
276
283
void
setHorizontalScrollAmount
(
int
hScroll);
284
291
int
getHorizontalScrollAmount
()
const
292
{
return
mHScroll
; }
293
301
void
setScrollAmount
(
const
int
hScroll,
const
int
vScroll);
302
308
int
getHorizontalMaxScroll
();
309
315
int
getVerticalMaxScroll
();
316
323
void
setScrollbarWidth
(
const
int
width);
324
331
int
getScrollbarWidth
()
const
332
{
return
mScrollbarWidth
; }
333
341
void
setLeftButtonScrollAmount
(
const
int
amount)
342
{
mLeftButtonScrollAmount
= amount; }
343
351
void
setRightButtonScrollAmount
(
const
int
amount)
352
{
mRightButtonScrollAmount
= amount; }
353
361
void
setUpButtonScrollAmount
(
const
int
amount)
362
{
mUpButtonScrollAmount
= amount; }
363
371
void
setDownButtonScrollAmount
(
const
int
amount)
372
{
mDownButtonScrollAmount
= amount; }
373
381
int
getLeftButtonScrollAmount
()
const
382
{
return
mLeftButtonScrollAmount
; }
383
391
int
getRightButtonScrollAmount
()
const
392
{
return
mRightButtonScrollAmount
; }
393
401
int
getUpButtonScrollAmount
()
const
402
{
return
mUpButtonScrollAmount
; }
403
411
int
getDownButtonScrollAmount
()
const
412
{
return
mDownButtonScrollAmount
; }
413
414
void
showWidgetPart
(
Widget
*
const
widget,
415
const
Rect
&area)
override
final
;
416
417
Rect
getChildrenArea
()
override
final
;
418
419
Widget
*
getWidgetAt
(
int
x
,
int
y
)
override
final
;
420
421
void
setWidth
(
int
width);
422
423
void
setHeight
(
int
height);
424
425
void
setDimension
(const
Rect
& dimension);
426
427
void
mouseWheelMovedUp
(
MouseEvent
& event)
override
final
;
428
429
void
mouseWheelMovedDown
(
MouseEvent
& event)
override
final
;
430
431
bool
isSelectable
() const
noexcept2
override
final
A_WARN_UNUSED
;
432
433
protected:
434
enum
BUTTON_DIR
435
{
436
UP
= 0,
437
DOWN
,
438
LEFT
,
439
RIGHT
,
440
BUTTONS_DIR
441
};
442
446
void
init
(std::string skinName);
447
451
void
checkPolicies
();
452
453
void
drawButton
(
Graphics
*
const
graphics,
454
const
BUTTON_DIR
dir)
A_NONNULL
(2);
455
void
calcButton
(
Graphics
*
const
graphics,
456
const
BUTTON_DIR
dir)
A_NONNULL
(2);
457
void
drawVBar
(
Graphics
*
const
graphics)
const
A_NONNULL
(2);
458
void
drawHBar
(
Graphics
*
const
graphics)
const
A_NONNULL
(2);
459
void
drawVMarker
(
Graphics
*
const
graphics)
A_NONNULL
(2);
460
void
drawHMarker
(
Graphics
*
const
graphics)
A_NONNULL
(2);
461
462
void
calcVBar
(
const
Graphics
*
const
graphics)
A_NONNULL
(2);
463
void
calcHBar
(
const
Graphics
*
const
graphics)
A_NONNULL
(2);
464
void
calcVMarker
(
Graphics
*
const
graphics)
A_NONNULL
(2);
465
void
calcHMarker
(
Graphics
*
const
graphics)
A_NONNULL
(2);
466
467
Image
*
getImageByState
(
Rect
&dim,
const
BUTTON_DIR
dir);
468
469
void
updateCalcFlag
(
const
Graphics
*
const
graphics)
A_NONNULL
(2);
470
471
static
int
instances
;
472
static
float
mAlpha
;
473
static
bool
mShowButtons
;
474
static
int
mMarkerSize
;
475
static
int
mScrollbarSize
;
476
static
ImageRect
background
;
477
static
ImageRect
vMarker
;
478
static
ImageRect
vMarkerHi
;
479
static
ImageRect
vBackground
;
480
static
ImageRect
hBackground
;
481
static
Image
*
buttons
[4][2];
482
483
ImageCollection
*
mVertexes
A_NONNULLPOINTER
;
484
ImageCollection
*
mVertexes2
A_NONNULLPOINTER
;
485
489
ScrollPolicy
mHPolicy
;
490
494
ScrollPolicy
mVPolicy
;
495
499
int
mVScroll
;
500
504
int
mHScroll
;
505
509
int
mScrollbarWidth
;
510
514
int
mUpButtonScrollAmount
;
515
519
int
mDownButtonScrollAmount
;
520
524
int
mLeftButtonScrollAmount
;
525
529
int
mRightButtonScrollAmount
;
530
534
int
mHorizontalMarkerDragOffset
;
535
539
int
mVerticalMarkerDragOffset
;
540
541
int
mX
;
542
int
mY
;
543
int
mClickX
;
544
int
mClickY
;
545
int
mXOffset
;
546
int
mYOffset
;
547
int
mDrawWidth
;
548
int
mDrawHeight
;
549
553
bool
mVBarVisible
;
554
558
bool
mHBarVisible
;
559
563
bool
mUpButtonPressed
;
564
568
bool
mDownButtonPressed
;
569
573
bool
mLeftButtonPressed
;
574
578
bool
mRightButtonPressed
;
579
583
bool
mIsVerticalMarkerDragged
;
584
588
bool
mIsHorizontalMarkerDragged
;
589
594
Opaque
mOpaque
;
595
596
bool
mHasMouse
;
597
};
598
599
#endif
// GUI_WIDGETS_SCROLLAREA_H
basiccontainer.h
BasicContainer
Definition:
basiccontainer.h:81
Event
Definition:
event.h:79
Graphics
Definition:
graphics.h:109
ImageCollection
Definition:
imagecollection.h:32
ImageRect
Definition:
imagerect.h:32
Image
MouseEvent
Definition:
mouseevent.h:81
MouseListener
Definition:
mouselistener.h:78
Rect
Definition:
rect.h:74
ScrollArea
Definition:
scrollarea.h:94
ScrollArea::getScrollbarWidth
int getScrollbarWidth() const
Definition:
scrollarea.h:331
ScrollArea::mDrawHeight
int mDrawHeight
Definition:
scrollarea.h:548
ScrollArea::vMarkerHi
static ImageRect vMarkerHi
Definition:
scrollarea.h:478
ScrollArea::getHorizontalMarkerDimension
Rect getHorizontalMarkerDimension()
Definition:
scrollarea.cpp:1073
ScrollArea::mLeftButtonPressed
bool mLeftButtonPressed
Definition:
scrollarea.h:573
ScrollArea::mRightButtonPressed
bool mRightButtonPressed
Definition:
scrollarea.h:578
ScrollArea::isSelectable
bool isSelectable() const
Definition:
scrollarea.cpp:1478
ScrollArea::setVerticalScrollPolicy
void setVerticalScrollPolicy(const ScrollPolicy vPolicy)
Definition:
scrollarea.cpp:1221
ScrollArea::setVerticalScrollAmount
void setVerticalScrollAmount(const int vScroll)
Definition:
scrollarea.cpp:1235
ScrollArea::drawVBar
void drawVBar(Graphics *const graphics) const
Definition:
scrollarea.cpp:557
ScrollArea::calcVBar
void calcVBar(const Graphics *const graphics)
Definition:
scrollarea.cpp:580
ScrollArea::getHorizontalScrollPolicy
ScrollPolicy getHorizontalScrollPolicy() const
Definition:
scrollarea.h:230
ScrollArea::mDrawWidth
int mDrawWidth
Definition:
scrollarea.h:547
ScrollArea::getWidgetAt
Widget * getWidgetAt(int x, int y)
Definition:
scrollarea.cpp:1334
ScrollArea::setScrollPolicy
void setScrollPolicy(const ScrollPolicy hPolicy, const ScrollPolicy vPolicy)
Definition:
scrollarea.cpp:1227
ScrollArea::mX
int mX
Definition:
scrollarea.h:541
ScrollArea::mIsHorizontalMarkerDragged
bool mIsHorizontalMarkerDragged
Definition:
scrollarea.h:588
ScrollArea::safeDraw
void safeDraw(Graphics *const graphics)
Definition:
scrollarea.cpp:398
ScrollArea::mHPolicy
ScrollPolicy mHPolicy
Definition:
scrollarea.h:489
ScrollArea::calcHBar
void calcHBar(const Graphics *const graphics)
Definition:
scrollarea.cpp:635
ScrollArea::mDownButtonPressed
bool mDownButtonPressed
Definition:
scrollarea.h:568
ScrollArea::mVScroll
int mVScroll
Definition:
scrollarea.h:499
ScrollArea::getVerticalMaxScroll
int getVerticalMaxScroll()
Definition:
scrollarea.cpp:1283
ScrollArea::mYOffset
int mYOffset
Definition:
scrollarea.h:546
ScrollArea::hBackground
static ImageRect hBackground
Definition:
scrollarea.h:480
ScrollArea::mHScroll
int mHScroll
Definition:
scrollarea.h:504
ScrollArea::~ScrollArea
~ScrollArea()
Definition:
scrollarea.cpp:150
ScrollArea::mVPolicy
ScrollPolicy mVPolicy
Definition:
scrollarea.h:494
ScrollArea::mouseExited
void mouseExited(MouseEvent &event)
Definition:
scrollarea.cpp:754
ScrollArea::getDownButtonScrollAmount
int getDownButtonScrollAmount() const
Definition:
scrollarea.h:411
ScrollArea::setUpButtonScrollAmount
void setUpButtonScrollAmount(const int amount)
Definition:
scrollarea.h:361
ScrollArea::setHorizontalScrollPolicy
void setHorizontalScrollPolicy(const ScrollPolicy hPolicy)
Definition:
scrollarea.cpp:1215
ScrollArea::vMarker
static ImageRect vMarker
Definition:
scrollarea.h:477
ScrollArea::ScrollPolicy
ScrollPolicy
Definition:
scrollarea.h:106
ScrollArea::SHOW_ALWAYS
@ SHOW_ALWAYS
Definition:
scrollarea.h:107
ScrollArea::SHOW_AUTO
@ SHOW_AUTO
Definition:
scrollarea.h:109
ScrollArea::SHOW_NEVER
@ SHOW_NEVER
Definition:
scrollarea.h:108
ScrollArea::mouseMoved
void mouseMoved(MouseEvent &event)
Definition:
scrollarea.cpp:743
ScrollArea::mouseEntered
void mouseEntered(MouseEvent &event)
Definition:
scrollarea.cpp:749
ScrollArea::mOpaque
Opaque mOpaque
Definition:
scrollarea.h:594
ScrollArea::getLeftButtonDimension
Rect getLeftButtonDimension() const
Definition:
scrollarea.cpp:1163
ScrollArea::calcButton
void calcButton(Graphics *const graphics, const BUTTON_DIR dir)
Definition:
scrollarea.cpp:544
ScrollArea::getVerticalBarDimension
Rect getVerticalBarDimension() const
Definition:
scrollarea.cpp:975
ScrollArea::getLeftButtonScrollAmount
int getLeftButtonScrollAmount() const
Definition:
scrollarea.h:381
ScrollArea::mClickX
int mClickX
Definition:
scrollarea.h:543
ScrollArea::draw
void draw(Graphics *const graphics)
Definition:
scrollarea.cpp:344
ScrollArea::updateAlpha
void updateAlpha()
Definition:
scrollarea.cpp:320
ScrollArea::mScrollbarWidth
int mScrollbarWidth
Definition:
scrollarea.h:509
ScrollArea::safeDrawFrame
void safeDrawFrame(Graphics *const graphics)
Definition:
scrollarea.cpp:480
ScrollArea::mouseReleased
void mouseReleased(MouseEvent &event)
Definition:
scrollarea.cpp:861
ScrollArea::getRightButtonScrollAmount
int getRightButtonScrollAmount() const
Definition:
scrollarea.h:391
ScrollArea::setRightButtonScrollAmount
void setRightButtonScrollAmount(const int amount)
Definition:
scrollarea.h:351
ScrollArea::mMarkerSize
static int mMarkerSize
Definition:
scrollarea.h:474
ScrollArea::mXOffset
int mXOffset
Definition:
scrollarea.h:545
ScrollArea::mAlpha
static float mAlpha
Definition:
scrollarea.h:472
ScrollArea::mIsVerticalMarkerDragged
bool mIsVerticalMarkerDragged
Definition:
scrollarea.h:583
ScrollArea::mousePressed
void mousePressed(MouseEvent &event)
Definition:
scrollarea.cpp:776
ScrollArea::mLeftButtonScrollAmount
int mLeftButtonScrollAmount
Definition:
scrollarea.h:524
ScrollArea::mClickY
int mClickY
Definition:
scrollarea.h:544
ScrollArea::mRightButtonScrollAmount
int mRightButtonScrollAmount
Definition:
scrollarea.h:529
ScrollArea::drawVMarker
void drawVMarker(Graphics *const graphics)
Definition:
scrollarea.cpp:666
ScrollArea::mHasMouse
bool mHasMouse
Definition:
scrollarea.h:596
ScrollArea::getHorizontalBarDimension
Rect getHorizontalBarDimension() const
Definition:
scrollarea.cpp:995
ScrollArea::background
static ImageRect background
Definition:
scrollarea.h:476
ScrollArea::setDownButtonScrollAmount
void setDownButtonScrollAmount(const int amount)
Definition:
scrollarea.h:371
ScrollArea::setScrollAmount
void setScrollAmount(const int hScroll, const int vScroll)
Definition:
scrollarea.cpp:1260
ScrollArea::setWidth
void setWidth(int width)
Definition:
scrollarea.cpp:1342
ScrollArea::drawFrame
void drawFrame(Graphics *const graphics)
Definition:
scrollarea.cpp:456
ScrollArea::setContent
void setContent(Widget *widget)
Definition:
scrollarea.cpp:1191
ScrollArea::mVertexes2
ImageCollection * mVertexes2
Definition:
scrollarea.h:484
ScrollArea::widgetResized
void widgetResized(const Event &event)
Definition:
scrollarea.cpp:759
ScrollArea::mouseDragged
void mouseDragged(MouseEvent &event)
Definition:
scrollarea.cpp:933
ScrollArea::getContent
Widget * getContent()
Definition:
scrollarea.cpp:1207
ScrollArea::instances
static int instances
Definition:
scrollarea.h:471
ScrollArea::mVertexes
ImageCollection * mVertexes
Definition:
scrollarea.h:483
ScrollArea::getDownButtonDimension
Rect getDownButtonDimension() const
Definition:
scrollarea.cpp:1144
ScrollArea::getImageByState
Image * getImageByState(Rect &dim, const BUTTON_DIR dir)
Definition:
scrollarea.cpp:503
ScrollArea::widgetMoved
void widgetMoved(const Event &event)
Definition:
scrollarea.cpp:771
ScrollArea::isOpaque
bool isOpaque() const
Definition:
scrollarea.h:158
ScrollArea::checkPolicies
void checkPolicies()
Definition:
scrollarea.cpp:1382
ScrollArea::mUpButtonPressed
bool mUpButtonPressed
Definition:
scrollarea.h:563
ScrollArea::mUpButtonScrollAmount
int mUpButtonScrollAmount
Definition:
scrollarea.h:514
ScrollArea::calcVMarker
void calcVMarker(Graphics *const graphics)
Definition:
scrollarea.cpp:684
ScrollArea::init
void init(std::string skinName)
Definition:
scrollarea.cpp:182
ScrollArea::mHorizontalMarkerDragOffset
int mHorizontalMarkerDragOffset
Definition:
scrollarea.h:534
ScrollArea::getVerticalScrollAmount
int getVerticalScrollAmount() const
Definition:
scrollarea.h:274
ScrollArea::logic
void logic()
Definition:
scrollarea.cpp:273
ScrollArea::mHBarVisible
bool mHBarVisible
Definition:
scrollarea.h:558
ScrollArea::ScrollArea
ScrollArea(Widget2 *const widget2, Widget *const widget, const Opaque opaque, const std::string &skin)
Definition:
scrollarea.cpp:105
ScrollArea::mVerticalMarkerDragOffset
int mVerticalMarkerDragOffset
Definition:
scrollarea.h:539
ScrollArea::getUpButtonDimension
Rect getUpButtonDimension() const
Definition:
scrollarea.cpp:1135
ScrollArea::mouseWheelMovedUp
void mouseWheelMovedUp(MouseEvent &event)
Definition:
scrollarea.cpp:1360
ScrollArea::drawHBar
void drawHBar(Graphics *const graphics) const
Definition:
scrollarea.cpp:607
ScrollArea::mScrollbarSize
static int mScrollbarSize
Definition:
scrollarea.h:475
ScrollArea::setHeight
void setHeight(int height)
Definition:
scrollarea.cpp:1348
ScrollArea::getUpButtonScrollAmount
int getUpButtonScrollAmount() const
Definition:
scrollarea.h:401
ScrollArea::setScrollbarWidth
void setScrollbarWidth(const int width)
Definition:
scrollarea.cpp:1302
ScrollArea::mouseWheelMovedDown
void mouseWheelMovedDown(MouseEvent &event)
Definition:
scrollarea.cpp:1371
ScrollArea::mDownButtonScrollAmount
int mDownButtonScrollAmount
Definition:
scrollarea.h:519
ScrollArea::calcHMarker
void calcHMarker(Graphics *const graphics)
Definition:
scrollarea.cpp:723
ScrollArea::vBackground
static ImageRect vBackground
Definition:
scrollarea.h:479
ScrollArea::BUTTON_DIR
BUTTON_DIR
Definition:
scrollarea.h:435
ScrollArea::UP
@ UP
Definition:
scrollarea.h:436
ScrollArea::BUTTONS_DIR
@ BUTTONS_DIR
Definition:
scrollarea.h:440
ScrollArea::LEFT
@ LEFT
Definition:
scrollarea.h:438
ScrollArea::DOWN
@ DOWN
Definition:
scrollarea.h:437
ScrollArea::RIGHT
@ RIGHT
Definition:
scrollarea.h:439
ScrollArea::setHorizontalScrollAmount
void setHorizontalScrollAmount(int hScroll)
Definition:
scrollarea.cpp:1248
ScrollArea::mShowButtons
static bool mShowButtons
Definition:
scrollarea.h:473
ScrollArea::getChildrenArea
Rect getChildrenArea()
Definition:
scrollarea.cpp:1322
ScrollArea::mY
int mY
Definition:
scrollarea.h:542
ScrollArea::drawHMarker
void drawHMarker(Graphics *const graphics)
Definition:
scrollarea.cpp:704
ScrollArea::setOpaque
void setOpaque(Opaque opaque)
Definition:
scrollarea.cpp:497
ScrollArea::getVerticalMarkerDimension
Rect getVerticalMarkerDimension()
Definition:
scrollarea.cpp:1015
ScrollArea::setLeftButtonScrollAmount
void setLeftButtonScrollAmount(const int amount)
Definition:
scrollarea.h:341
ScrollArea::showWidgetPart
void showWidgetPart(Widget *const widget, const Rect &area)
Definition:
scrollarea.cpp:1308
ScrollArea::getVerticalScrollPolicy
ScrollPolicy getVerticalScrollPolicy() const
Definition:
scrollarea.h:247
ScrollArea::updateCalcFlag
void updateCalcFlag(const Graphics *const graphics)
Definition:
scrollarea.cpp:430
ScrollArea::getHorizontalMaxScroll
int getHorizontalMaxScroll()
Definition:
scrollarea.cpp:1266
ScrollArea::getHorizontalScrollAmount
int getHorizontalScrollAmount() const
Definition:
scrollarea.h:291
ScrollArea::setDimension
void setDimension(const Rect &dimension)
Definition:
scrollarea.cpp:1354
ScrollArea::drawButton
void drawButton(Graphics *const graphics, const BUTTON_DIR dir)
Definition:
scrollarea.cpp:534
ScrollArea::mVBarVisible
bool mVBarVisible
Definition:
scrollarea.h:553
ScrollArea::getRightButtonDimension
Rect getRightButtonDimension() const
Definition:
scrollarea.cpp:1172
ScrollArea::buttons
static Image * buttons[4][2]
Definition:
scrollarea.h:481
Widget2
Definition:
widget2.h:37
WidgetListener
Definition:
widgetlistener.h:81
Widget
Definition:
widget.h:99
y
y
Definition:
graphics_calcImageRect.hpp:73
x
x
Definition:
graphics_calcImageRect.hpp:73
localconsts.h
override
#define override
Definition:
localconsts.h:47
A_WARN_UNUSED
#define A_WARN_UNUSED
Definition:
localconsts.h:161
A_NONNULL
#define A_NONNULL(...)
Definition:
localconsts.h:168
A_NONNULLPOINTER
#define A_NONNULLPOINTER
Definition:
localconsts.h:266
noexcept2
#define noexcept2
Definition:
localconsts.h:50
final
#define final
Definition:
localconsts.h:46
A_DELETE_COPY
#define A_DELETE_COPY(func)
Definition:
localconsts.h:53
mouselistener.h
opaque.h
Opaque_true
const bool Opaque_true
Definition:
opaque.h:30
Opaque
bool Opaque
Definition:
opaque.h:30
widgetlistener.h
Generated on Wed Mar 17 2021 19:19:06 for ManaPlus by
1.9.1