mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
IrrlichtMt: import scrollbar changes
This commit is contained in:
@@ -10,6 +10,9 @@
|
||||
|
||||
namespace gui
|
||||
{
|
||||
|
||||
class IGUIScrollBar;
|
||||
|
||||
class CGUIEditBox : public IGUIEditBox
|
||||
{
|
||||
public:
|
||||
@@ -157,6 +160,8 @@ protected:
|
||||
void sendGuiEvent(EGUI_EVENT_TYPE type);
|
||||
//! set text markers
|
||||
void setTextMarkers(s32 begin, s32 end);
|
||||
//! update the vertical scrollBar (visibilty & position)
|
||||
void updateVScrollBar();
|
||||
|
||||
bool processKey(const SEvent &event);
|
||||
//! KEY_LEFT / KEY_RIGHT inputs
|
||||
@@ -193,6 +198,8 @@ protected:
|
||||
s32 CursorPos;
|
||||
s32 HScrollPos, VScrollPos; // scroll position in characters
|
||||
u32 Max;
|
||||
u32 VScrollBarWidth = 0;
|
||||
IGUIScrollBar *VScrollBar = nullptr;
|
||||
|
||||
bool WordWrap = false,
|
||||
MultiLine = false,
|
||||
|
@@ -51,6 +51,11 @@ public:
|
||||
|
||||
//! sets the current position of the scrollbar
|
||||
virtual void setPos(s32 pos) = 0;
|
||||
|
||||
//! For automatic thumb scaling
|
||||
/** Sets the full height (e.g. content to scroll), in pixels.
|
||||
Set to 0 to disable (default). */
|
||||
virtual void setPageSize(s32 size) = 0;
|
||||
};
|
||||
|
||||
} // end namespace gui
|
||||
|
Reference in New Issue
Block a user