mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-27 07:37:24 -04:00
4df8ccc871
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN}
* Update configure.py and project.py for new libs structure
* Refactor `#include <dolphin/x.h>` -> `<x.h>`
* Remove `__REVOLUTION_SDK__` forwards from dolphin
* Fix dolphin/ references in revolution
* Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__`
* Always build TRK against dolphin headers
* Resolve revolution SDK header resolution issues
50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
#ifndef JSTUDIOTOOLLIBRARY_SCROLL_H
|
|
#define JSTUDIOTOOLLIBRARY_SCROLL_H
|
|
|
|
#include "JSystem/JStudio/JStudioToolLibrary/visual.h"
|
|
|
|
namespace JStudioToolLibrary {
|
|
struct TScroll {
|
|
TScroll();
|
|
virtual ~TScroll();
|
|
|
|
int getStride() const;
|
|
int getValue() const;
|
|
int getMin() const;
|
|
int getMax() const;
|
|
void setStride(int);
|
|
void setValue_scroll(int);
|
|
void setValue(int);
|
|
void setRange(int, int);
|
|
void setValue_range_(int, int, int);
|
|
|
|
/* 0x04 */ int iValue_;
|
|
/* 0x08 */ int iMin_;
|
|
/* 0x0C */ int iMax_;
|
|
/* 0x10 */ int field_0x10;
|
|
/* 0x14 */ int iStride_;
|
|
};
|
|
|
|
struct TScroll_drawBar : public TScroll {
|
|
void setRectangle(int, int, int, int);
|
|
TRectangle& getRectangle() const;
|
|
JUtility::TColor& getColor_disabled() const;
|
|
JUtility::TColor& getColor_background() const;
|
|
JUtility::TColor& getColor_foreground() const;
|
|
JUtility::TColor& getColor_frame() const;
|
|
|
|
/* 0x18 */ TRectangle oRectangle_;
|
|
/* 0x28 */ JUtility::TColor oColorFrame_;
|
|
/* 0x2C */ JUtility::TColor oColorBackground_;
|
|
/* 0x30 */ JUtility::TColor oColorForeground_;
|
|
/* 0x34 */ JUtility::TColor oColorDisabled_;
|
|
};
|
|
|
|
struct TScroll_drawBar_horizontal : public TScroll_drawBar {
|
|
virtual ~TScroll_drawBar_horizontal();
|
|
virtual void draw(TDrawPrimitive2D*) const;
|
|
};
|
|
}
|
|
|
|
#endif
|