tpScrollBar类
SingleGUI
2025-07-05
继承关系
基础信息
头文件: | include <tpScrollBar.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | tpChildWidget |
派生类: |
信号
信号名称 | 参数 | 描述 |
---|---|---|
onScroll | tpScroll *, int32_t, int32_t, int32_t, double |
Public 成员函数
tpScrollBar(tpChildWidget *parent, bool horizontal=tpScroll::TP_SCROLL_HORIZONTAL) | ||
---|---|---|
~tpScrollBar() | ||
setRect(tpRect &rect) | ||
setRect(tpRect *rect) | ||
setRect(ItpRect &rect) | ||
setRect(ItpRect *rect) | ||
setRect(int32_t x, int32_t y, uint32_t w, uint32_t h) | ||
setLinePerPage(int32_t lines=20) | ||
pages() | ||
pageIndex() | ||
setMaxRange(int32_t max=100) | ||
zoomRange(int32_t delta=0) | ||
setPosition(int32_t position) | ||
setPercent(double percent) | ||
position() | ||
percent() | ||
setNormalBarColor(uint32_t color=tpColors::LightGray) | ||
setNormalBarColor(tpColors &color) | ||
setHoverBarColor(uint32_t color=tpColors::Grey) | ||
setHoverBarColor(tpColors &color) | ||
setDownBarColor(uint32_t color=tpColors::DarkGoldenrod) | ||
setDownBarColor(tpColors &color) | ||
setLineColor(uint32_t color=tpColors::White) | ||
setLineColor(tpColors &color) | ||
onMouseKeyEvent(tpMouseKeyEvent *event) |