KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Private Member Functions | Private Attributes | List of all members
NotifierWindowBorder Class Reference

#include <NotifierWindowBorder.h>

Public Member Functions

int baseLine () const
 
QRect bodyRect () const
 
QRect captionRect () const
 
QRect closeRect () const
 
void draw (QPainter *, bool b=false)
 
int height () const
 
 NotifierWindowBorder (QSize=QSize(WDG_MIN_WIDTH, WDG_MIN_HEIGHT))
 
QRect rect () const
 
void resetIcons ()
 
void resize (int w, int h)
 
void resize (QSize r)
 
void setCloseIcon (int state)
 
void setGeometry (QRect r)
 
void setGeometry (QPoint p, QSize s)
 
void setHeight (int h)
 
void setPics (bool b=false)
 
void setPoint (int x, int y)
 
void setWidth (int w)
 
QRect titleRect () const
 
int width () const
 
int x () const
 
int y () const
 
 ~NotifierWindowBorder ()
 

Private Member Functions

void loadImages ()
 
void recalculatePositions ()
 

Private Attributes

QRect m_bodyRect
 
QRect m_captionRect
 
QRect m_closeIconRect
 
int m_eIconState
 
int m_iRctHeight
 
int m_iRctWidth
 
QPixmap * m_pixCaptionBKG
 
QPixmap m_pixCaptionBKG_HL
 
QPixmap m_pixCaptionBKG_N
 
QPixmap * m_pixCaptionDX
 
QPixmap m_pixCaptionDX_HL
 
QPixmap m_pixCaptionDX_N
 
QPixmap * m_pixCaptionSX
 
QPixmap m_pixCaptionSX_HL
 
QPixmap m_pixCaptionSX_N
 
QPixmap * m_pixDWN
 
QPixmap m_pixDWN_HL
 
QPixmap m_pixDWN_N
 
QPixmap * m_pixDWNDX
 
QPixmap m_pixDWNDX_HL
 
QPixmap m_pixDWNDX_N
 
QPixmap * m_pixDWNSX
 
QPixmap m_pixDWNSX_HL
 
QPixmap m_pixDWNSX_N
 
QPixmap * m_pixDX
 
QPixmap m_pixDX_HL
 
QPixmap m_pixDX_N
 
QPixmap * m_pixIconClose
 
QPixmap * m_pixIconClose_clicked
 
QPixmap m_pixIconClose_clicked_HL
 
QPixmap m_pixIconClose_clicked_N
 
QPixmap * m_pixIconClose_out
 
QPixmap m_pixIconClose_out_HL
 
QPixmap m_pixIconClose_out_N
 
QPixmap * m_pixIconClose_over
 
QPixmap m_pixIconClose_over_HL
 
QPixmap m_pixIconClose_over_N
 
QPixmap * m_pixSX
 
QPixmap m_pixSX_HL
 
QPixmap m_pixSX_N
 
QPoint m_pnt
 
QRect m_rct
 
QRect m_titleRect
 

Constructor & Destructor Documentation

NotifierWindowBorder::NotifierWindowBorder ( QSize  s = QSize(WDG_MIN_WIDTHWDG_MIN_HEIGHT))

References loadImages(), and resize().

NotifierWindowBorder::~NotifierWindowBorder ( )
default

Member Function Documentation

int NotifierWindowBorder::baseLine ( ) const
inline

References height(), and y().

QRect NotifierWindowBorder::bodyRect ( ) const
inline

References m_bodyRect.

Referenced by NotifierWindow::NotifierWindow().

QRect NotifierWindowBorder::captionRect ( ) const
inline
QRect NotifierWindowBorder::closeRect ( ) const
inline
void NotifierWindowBorder::draw ( QPainter *  p,
bool  b = false 
)
int NotifierWindowBorder::height ( ) const
inline

References m_rct.

Referenced by baseLine(), and NotifierWindow::paintEvent().

void NotifierWindowBorder::loadImages ( )
private
void NotifierWindowBorder::recalculatePositions ( )
private
QRect NotifierWindowBorder::rect ( ) const
inline

References m_rct.

Referenced by NotifierWindow::mousePressEvent().

void NotifierWindowBorder::resetIcons ( )

References setCloseIcon(), and WDG_ICON_OUT.

Referenced by NotifierWindow::leaveEvent().

void NotifierWindowBorder::resize ( int  w,
int  h 
)
inline
void NotifierWindowBorder::resize ( QSize  r)
inline

References setHeight(), and setWidth().

void NotifierWindowBorder::setCloseIcon ( int  state)
void NotifierWindowBorder::setGeometry ( QRect  r)
inline
void NotifierWindowBorder::setGeometry ( QPoint  p,
QSize  s 
)
inline

References setHeight(), setPoint(), and setWidth().

void NotifierWindowBorder::setHeight ( int  h)

References h, m_iRctHeight, and recalculatePositions().

Referenced by resize(), and setGeometry().

void NotifierWindowBorder::setPics ( bool  b = false)
void NotifierWindowBorder::setPoint ( int  x,
int  y 
)
inline

References m_pnt, and m_rct.

Referenced by setGeometry().

void NotifierWindowBorder::setWidth ( int  w)

References m_iRctWidth, recalculatePositions(), and w.

Referenced by resize(), and setGeometry().

QRect NotifierWindowBorder::titleRect ( ) const
inline

References m_titleRect.

Referenced by NotifierWindow::paintEvent().

int NotifierWindowBorder::width ( ) const
inline

References m_rct.

Referenced by NotifierWindow::paintEvent().

int NotifierWindowBorder::x ( ) const
inline

References m_pnt.

Referenced by NotifierWindow::doHide().

int NotifierWindowBorder::y ( ) const
inline

References m_pnt.

Referenced by baseLine(), and NotifierWindow::doHide().

Member Data Documentation

QRect NotifierWindowBorder::m_bodyRect
private
QRect NotifierWindowBorder::m_captionRect
private
QRect NotifierWindowBorder::m_closeIconRect
private
int NotifierWindowBorder::m_eIconState
private

Referenced by draw(), and setCloseIcon().

int NotifierWindowBorder::m_iRctHeight
private

Referenced by recalculatePositions(), and setHeight().

int NotifierWindowBorder::m_iRctWidth
private

Referenced by recalculatePositions(), and setWidth().

QPixmap* NotifierWindowBorder::m_pixCaptionBKG
private

Referenced by draw(), loadImages(), and setPics().

QPixmap NotifierWindowBorder::m_pixCaptionBKG_HL
private

Referenced by loadImages(), and setPics().

QPixmap NotifierWindowBorder::m_pixCaptionBKG_N
private

Referenced by loadImages(), and setPics().

QPixmap* NotifierWindowBorder::m_pixCaptionDX
private
QPixmap NotifierWindowBorder::m_pixCaptionDX_HL
private

Referenced by loadImages(), and setPics().

QPixmap NotifierWindowBorder::m_pixCaptionDX_N
private

Referenced by loadImages(), and setPics().

QPixmap* NotifierWindowBorder::m_pixCaptionSX
private
QPixmap NotifierWindowBorder::m_pixCaptionSX_HL
private

Referenced by loadImages(), and setPics().

QPixmap NotifierWindowBorder::m_pixCaptionSX_N
private

Referenced by loadImages(), and setPics().

QPixmap* NotifierWindowBorder::m_pixDWN
private

Referenced by draw(), recalculatePositions(), and setPics().

QPixmap NotifierWindowBorder::m_pixDWN_HL
private

Referenced by loadImages(), and setPics().

QPixmap NotifierWindowBorder::m_pixDWN_N
private

Referenced by loadImages(), and setPics().

QPixmap* NotifierWindowBorder::m_pixDWNDX
private

Referenced by draw(), and setPics().

QPixmap NotifierWindowBorder::m_pixDWNDX_HL
private

Referenced by loadImages(), and setPics().

QPixmap NotifierWindowBorder::m_pixDWNDX_N
private

Referenced by loadImages(), and setPics().

QPixmap* NotifierWindowBorder::m_pixDWNSX
private

Referenced by draw(), and setPics().

QPixmap NotifierWindowBorder::m_pixDWNSX_HL
private

Referenced by loadImages(), and setPics().

QPixmap NotifierWindowBorder::m_pixDWNSX_N
private

Referenced by loadImages(), and setPics().

QPixmap* NotifierWindowBorder::m_pixDX
private

Referenced by draw(), and setPics().

QPixmap NotifierWindowBorder::m_pixDX_HL
private

Referenced by loadImages(), and setPics().

QPixmap NotifierWindowBorder::m_pixDX_N
private

Referenced by loadImages(), and setPics().

QPixmap* NotifierWindowBorder::m_pixIconClose
private
QPixmap* NotifierWindowBorder::m_pixIconClose_clicked
private

Referenced by setCloseIcon(), and setPics().

QPixmap NotifierWindowBorder::m_pixIconClose_clicked_HL
private

Referenced by loadImages(), and setPics().

QPixmap NotifierWindowBorder::m_pixIconClose_clicked_N
private

Referenced by loadImages(), and setPics().

QPixmap* NotifierWindowBorder::m_pixIconClose_out
private

Referenced by setCloseIcon(), and setPics().

QPixmap NotifierWindowBorder::m_pixIconClose_out_HL
private

Referenced by loadImages(), and setPics().

QPixmap NotifierWindowBorder::m_pixIconClose_out_N
private

Referenced by loadImages(), and setPics().

QPixmap* NotifierWindowBorder::m_pixIconClose_over
private

Referenced by setCloseIcon(), and setPics().

QPixmap NotifierWindowBorder::m_pixIconClose_over_HL
private

Referenced by loadImages(), and setPics().

QPixmap NotifierWindowBorder::m_pixIconClose_over_N
private

Referenced by loadImages(), and setPics().

QPixmap* NotifierWindowBorder::m_pixSX
private

Referenced by draw(), and setPics().

QPixmap NotifierWindowBorder::m_pixSX_HL
private

Referenced by loadImages(), and setPics().

QPixmap NotifierWindowBorder::m_pixSX_N
private

Referenced by loadImages(), and setPics().

QPoint NotifierWindowBorder::m_pnt
private

Referenced by setPoint(), x(), and y().

QRect NotifierWindowBorder::m_rct
private
QRect NotifierWindowBorder::m_titleRect
private

Referenced by recalculatePositions(), and titleRect().


The documentation for this class was generated from the following files: