tpLink类
SingleGUI
2025-07-05
继承关系
基础信息
头文件: | include <tpLink.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | tpChildWidget |
派生类: |
Public 成员函数
tpLink(tpChildWidget *parent) | ||
---|---|---|
~tpLink() | ||
setAutoFit(bool enable=true) | ||
setNormalColor(int32_t color=tpColors::Blue) | ||
setNormalColor(tpColors &color) | ||
setHoverColor(int32_t color=tpColors::Red) | ||
setHoverColor(tpColors &color) | ||
setDownColor(int32_t color=tpColors::Black) | ||
setDownColor(tpColors &color) | ||
setText(const char *text) | ||
setText(std::string &text) | ||
virtual tpFont * | font() | |
setRect(tpRect &rect) | ||
setRect(tpRect *rect) | ||
setRect(ItpRect &rect) | ||
setRect(ItpRect *rect) | ||
setRect(int32_t x, int32_t y, int32_t w, int32_t h) | ||
declare_signal(onClicked, bool) | ||
onMouseKeyEvent(tpMouseKeyEvent *event) | ||
onMouseMotionEvent(tpMouseMotionEvent *event) | ||
onLeaveEvent(tpObjectLeaveEvent *event) | ||
onPaintEvent(tpObjectPaintEvent *event) | 绘制事件,禁止在该函数调用 paint和update函数 |
成员函数说明
tpLink::tpLink(tpChildWidget *parent)
暂无注释...
virtual
tpLink::~tpLink()
暂无注释...
virtual
void tpLink::setAutoFit(bool enable=true)
暂无注释...
virtual
void tpLink::setNormalColor(int32_t color=tpColors::Blue)
暂无注释...
virtual
void tpLink::setNormalColor(tpColors &color)
暂无注释...
virtual
void tpLink::setHoverColor(int32_t color=tpColors::Red)
暂无注释...
virtual
void tpLink::setHoverColor(tpColors &color)
暂无注释...
virtual
void tpLink::setDownColor(int32_t color=tpColors::Black)
暂无注释...
virtual
void tpLink::setDownColor(tpColors &color)
暂无注释...
virtual
void tpLink::setText(const char *text)
暂无注释...
virtual
void tpLink::setText(std::string &text)
暂无注释...
virtual
tpFont * tpLink::font()
暂无注释...
virtual
void tpLink::setRect(tpRect &rect)
暂无注释...
virtual
void tpLink::setRect(tpRect *rect)
暂无注释...
virtual
void tpLink::setRect(ItpRect &rect)
暂无注释...
virtual
void tpLink::setRect(ItpRect *rect)
暂无注释...
virtual
void tpLink::setRect(int32_t x, int32_t y, int32_t w, int32_t h)
暂无注释...
tpLink::declare_signal(onClicked, bool)
暂无注释...
virtual
bool tpLink::onMouseKeyEvent(tpMouseKeyEvent *event)
暂无注释...
virtual
bool tpLink::onMouseMotionEvent(tpMouseMotionEvent *event)
暂无注释...
virtual
bool tpLink::onLeaveEvent(tpObjectLeaveEvent *event)
暂无注释...
virtual
bool tpLink::onPaintEvent(tpObjectPaintEvent *event)
点击查看...
绘制事件,禁止在该函数调用 paint和update函数
返回值:
返回true继续执行子控件绘制