Batch #14924 by Stingor: 0 byte-identical, 1 confirmed by peer review. - fn_11250 UIScrollBar::Configure: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Toshiro, raiken Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_LISTS_UISCROLLBAR_H
|
|
#define RAGNAROK_SOURCE_UI_LISTS_UISCROLLBAR_H
|
|
|
|
#include "UI/Window/UIWindow.h"
|
|
|
|
class UIScrollBar : public UIWindow {
|
|
public:
|
|
UIScrollBar();
|
|
~UIScrollBar() override;
|
|
void Resize(int width, int height) override;
|
|
bool IsTransmitMouseInput() override;
|
|
void Paint() override;
|
|
void OnLBtnDown(int x, int y) override;
|
|
void OnLBtnDblClk(int x, int y) override;
|
|
void OnMouseMove(int x, int y) override;
|
|
void ResetCursor(int x, int y) override;
|
|
void OnLBtnUp(int x, int y) override;
|
|
void OnRBtnUp(int x, int y) override;
|
|
void OnWheel(int value) override;
|
|
virtual int ThumbLength();
|
|
int ThumbOffset();
|
|
int Position();
|
|
int Travel();
|
|
int Part(int x, int y);
|
|
void Configure(int x, int y, int vertical, int length);
|
|
void Configure(int x, int y, int length, int vertical, int arrowLength, int thickness);
|
|
void SetPosition(int value);
|
|
void SetRange(int maximum, int visible, int total);
|
|
|
|
/* 007C */ int state;
|
|
/* 0080 */ int maximum;
|
|
/* 0084 */ int position;
|
|
/* 0088 */ int vertical;
|
|
/* 008C */ int pressX;
|
|
/* 0090 */ int pressY;
|
|
/* 0094 */ int dragAmount;
|
|
/* 0098 */ int total;
|
|
/* 009C */ int visible;
|
|
/* 00A0 */ int arrowLength;
|
|
/* 00A4 */ int thickness;
|
|
/* 00A8 */ int minimumThumb;
|
|
/* 00AC */ int horizontalStep;
|
|
/* 00B0 */ int verticalStep;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(UIScrollBar) == sizeof(UIWindow) + 0x38);
|
|
#endif
|
|
|
|
#endif
|