DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dstyle.h 文件参考
#include <dtkwidget_global.h>
#include <DPalette>
#include <DDciIcon>
#include <DGuiApplicationHelper>
#include <QCommonStyle>
#include <QPainter>
#include <QIconEngine>
#include <QStyleOption>
#include <QApplication>

浏览源代码.

class  Dtk::Widget::DStyle
 DStyle 提供了一个 Dtk 控件的基础类. 更多...
 
class  Dtk::Widget::DStyleHelper
 
class  Dtk::Widget::DStylePainter
 
class  Dtk::Widget::DStyledIconEngine
 DStyledIconEngine一个修改的 QIconEngine 类. 更多...
 

宏定义

#define ENABLE_ANIMATIONS   DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::HasAnimations)
 
#define ENABLE_ANIMATION_BUTTONBOX   (!qEnvironmentVariableIsSet("DTK_DISABLE_ANIMATION_BUTTONBOX"))
 
#define ENABLE_ANIMATION_MESSAGE   (!qEnvironmentVariableIsSet("DTK_DISABLE_ANIMATION_MESSAGE"))
 
#define ENABLE_ANIMATION_LISTVIEWBOUNCE   (!qEnvironmentVariableIsSet("DTK_DISABLE_ANIMATION_LISTVIREBOUNCE"))
 
#define ENABLE_ANIMATION_SEARCH   (!qEnvironmentVariableIsSet("DTK_DISABLE_ANIMATION_SEARCH"))
 
#define ENABLE_ANIMATION_SWITCHBUTTON   (!qEnvironmentVariableIsSet("DTK_DISABLE_ANIMATION_SWITCHBUTTON"))
 
#define ENABLE_ANIMATION_PROGRESSBAR   (!qEnvironmentVariableIsSet("DTK_DISABLE_ANIMATION_PROGRESSBAR"))
 
#define ENABLE_ANIMATION_RADIOBUTTON   (!qEnvironmentVariableIsSet("DTK_DISABLE_ANIMATION_RADIOBUTTON"))
 
#define ENABLE_ANIMATION_CHECKBOX   (!qEnvironmentVariableIsSet("DTK_DISABLE_ANIMATION_CHECKBOX"))
 

枚举

enum  Corner { TopLeftCorner = 0x00001 , TopRightCorner = 0x00002 , BottomLeftCorner = 0x00004 , BottomRightCorner = 0x00008 }
 

函数

void Dtk::Widget::DDrawUtils::drawShadow (QPainter *pa, const QRect &rect, qreal xRadius, qreal yRadius, const QColor &sc, qreal radius, const QPoint &offset)
 
void Dtk::Widget::DDrawUtils::drawShadow (QPainter *pa, const QRect &rect, const QPainterPath &path, const QColor &sc, int radius, const QPoint &offset)
 
void Dtk::Widget::DDrawUtils::drawRoundedRect (QPainter *pa, const QRect &rect, qreal xRadius, qreal yRadius, Corners corners, Qt::SizeMode mode=Qt::AbsoluteSize)
 
void Dtk::Widget::DDrawUtils::drawFork (QPainter *pa, const QRectF &rect, const QColor &color, int width=2)
 
void Dtk::Widget::DDrawUtils::drawMark (QPainter *pa, const QRectF &rect, const QColor &boxInside, const QColor &boxOutside, const int penWidth, const int outLineLeng=2)
 
void Dtk::Widget::DDrawUtils::drawBorder (QPainter *pa, const QRectF &rect, const QBrush &brush, int borderWidth, int radius)
 
void Dtk::Widget::DDrawUtils::drawArrow (QPainter *pa, const QRectF &rect, const QColor &color, Qt::ArrowType arrow, int width=2)
 
void Dtk::Widget::DDrawUtils::drawPlus (QPainter *painter, const QRectF &rect, const QColor &color, qreal width)
 
void Dtk::Widget::DDrawUtils::drawSubtract (QPainter *painter, const QRectF &rect, const QColor &color, qreal width)
 
void Dtk::Widget::DDrawUtils::drawForkElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawArrowElement (Qt::ArrowType arrow, QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawDecreaseElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawIncreaseElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawMarkElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawSelectElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawEditElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawExpandElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawReduceElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawLockElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawUnlockElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawMediaVolumeElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawMediaVolumeFullElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawMediaVolumeMutedElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawMediaVolumeLeftElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawMediaVolumeRightElement (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawArrowEnter (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawArrowLeave (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawArrowNext (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawArrowPrev (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawShowPassword (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawHidePassword (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawCloseButton (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawIndicatorMajuscule (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawIndicatorUnchecked (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawIndicatorChecked (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawDeleteButton (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawAddButton (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawTitleBarIcon (QPainter *pa, const QRectF &rect, const QString &iconName)
 
void Dtk::Widget::DDrawUtils::drawTitleBarMenuButton (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawTitleBarMinButton (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawTitleBarMaxButton (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawTitleBarCloseButton (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawTitleBarNormalButton (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawTitleQuitFullButton (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawArrowUp (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawArrowDown (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawArrowLeft (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawArrowRight (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawArrowBack (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawArrowForward (QPainter *pa, const QRectF &rect)
 
void Dtk::Widget::DDrawUtils::drawLineEditClearButton (QPainter *pa, const QRectF &rect)