igor::iWidgetTheme Class Referenceabstract

#include <iWidgetTheme.h>

Inherited by igor::iWidgetDefaultTheme.

Public Member Functions

 iWidgetTheme ()=default
 
virtual ~iWidgetTheme ()=default
 
virtual void draw (iWidgetPicturePtr widget)=0
 
virtual void draw (iWidgetSpacerPtr widget)=0
 
virtual void draw (iWidgetButtonPtr widget)=0
 
virtual void draw (iWidgetLabelPtr widget)=0
 
virtual void draw (iWidgetCheckBoxPtr widget)=0
 
virtual void draw (iWidgetTextEditPtr widget)=0
 
virtual void draw (iDialogPtr dialog)=0
 
virtual void draw (iWidgetColorPtr widget)=0
 
virtual void draw (iWidgetGroupBoxPtr widget)=0
 
virtual void draw (iWidgetLineTextEditPtr widget)=0
 
virtual void draw (iWidgetNumberChooserPtr widget)=0
 
virtual void draw (iWidgetSelectBoxPtr widget)=0
 
virtual void draw (iWidgetSliderPtr widget)=0
 
virtual void drawSelection (const iaRectanglef &rect)=0
 
virtual void drawDrag (const iaVector2f &pos, const iDrag &drag)=0
 
virtual float32 getDialogTitleHeight () const =0
 
virtual float32 getDialogFrameWidth () const =0
 
virtual float32 getFontSize () const =0
 
virtual iTextureFontPtr getFont () const =0
 
virtual void drawTooltip (const iaVector2f &pos, const iaString &text)=0
 
virtual void drawGridCell (const iaRectanglef &rect, iWidgetState state)=0
 
virtual void drawGridHighlight (const iaRectanglef &rect)=0
 
virtual void drawGridSelection (const iaRectanglef &rect)=0
 
virtual void drawGraphFrame (const iaRectanglef &rect, iWidgetState state, bool enabled)=0
 
virtual void drawGraphGridlines (const iaRectanglef &rect, float32 lineWidth, const std::vector< iaVector2f > &verticalLines, const std::vector< iaVector2f > &horizontalLines, bool enabled)=0
 
virtual void drawGraphLabels (const iaRectanglef &rect, const std::vector< iaVector2f > &verticalLines, const std::vector< iaVector2f > &horizontalLines, bool enabled)=0
 
virtual void drawGraph (const iaRectanglef &rect, const iaColor4f &lineColor, const iaColor4f &pointColor, float32 lineWidth, float32 pointSize, const std::vector< iaVector2f > &points)=0
 
virtual void drawButton (const iaRectanglef &rect, const iaString &text, iHorizontalAlignment align, iVerticalAlignment valign, iTexturePtr texture, iTexturePtr icon, iWidgetState state, bool enabled, bool checked)=0
 
virtual void drawButton (const iaRectanglef &rect, const iaColor4f &color, iWidgetState state, bool enabled, bool checked)=0
 
virtual void drawGradient (const iaRectanglef &rect, const iaKeyFrameGraphColor4f &gradient)=0
 
virtual void drawBackgroundFrame (const iaRectanglef &rect, iWidgetState state, bool enabled)=0
 

Detailed Description

base widget theme

Constructor & Destructor Documentation

◆ iWidgetTheme()

igor::iWidgetTheme::iWidgetTheme ( )
default

does nothing

◆ ~iWidgetTheme()

virtual igor::iWidgetTheme::~iWidgetTheme ( )
virtualdefault

does nothing

Member Function Documentation

◆ draw() [1/13]

virtual void igor::iWidgetTheme::draw ( iDialogPtr  dialog)
pure virtual

draw dialog

Parameters
widgetthe widget to draw

Implemented in igor::iWidgetDefaultTheme.

◆ draw() [2/13]

virtual void igor::iWidgetTheme::draw ( iWidgetButtonPtr  widget)
pure virtual

draw widget button

Parameters
widgetthe widget to draw

Implemented in igor::iWidgetDefaultTheme.

◆ draw() [3/13]

virtual void igor::iWidgetTheme::draw ( iWidgetCheckBoxPtr  widget)
pure virtual

draw widget check box

Parameters
widgetthe widget to draw

Implemented in igor::iWidgetDefaultTheme.

◆ draw() [4/13]

virtual void igor::iWidgetTheme::draw ( iWidgetColorPtr  widget)
pure virtual

draw color widget

Parameters
widgetthe widget to draw

Implemented in igor::iWidgetDefaultTheme.

◆ draw() [5/13]

virtual void igor::iWidgetTheme::draw ( iWidgetGroupBoxPtr  widget)
pure virtual

draw widget group box

Parameters
widgetthe widget to draw

Implemented in igor::iWidgetDefaultTheme.

◆ draw() [6/13]

virtual void igor::iWidgetTheme::draw ( iWidgetLabelPtr  widget)
pure virtual

draw widget label

Parameters
widgetthe widget to draw

Implemented in igor::iWidgetDefaultTheme.

◆ draw() [7/13]

virtual void igor::iWidgetTheme::draw ( iWidgetLineTextEditPtr  widget)
pure virtual

draw widget line text edit

Parameters
widgetthe widget to draw

Implemented in igor::iWidgetDefaultTheme.

◆ draw() [8/13]

virtual void igor::iWidgetTheme::draw ( iWidgetNumberChooserPtr  widget)
pure virtual

draw widget number chooser

Parameters
widgetthe widget to draw

Implemented in igor::iWidgetDefaultTheme.

◆ draw() [9/13]

virtual void igor::iWidgetTheme::draw ( iWidgetPicturePtr  widget)
pure virtual

draw widget picture

Parameters
widgetthe widget to draw

Implemented in igor::iWidgetDefaultTheme.

◆ draw() [10/13]

virtual void igor::iWidgetTheme::draw ( iWidgetSelectBoxPtr  widget)
pure virtual

draw widget select box

Parameters
widgetthe widget to draw

Implemented in igor::iWidgetDefaultTheme.

◆ draw() [11/13]

virtual void igor::iWidgetTheme::draw ( iWidgetSliderPtr  widget)
pure virtual

draw widget slider

Parameters
widgetthe widget to draw

Implemented in igor::iWidgetDefaultTheme.

◆ draw() [12/13]

virtual void igor::iWidgetTheme::draw ( iWidgetSpacerPtr  widget)
pure virtual

draw widget spacer

Parameters
widgetthe widget to draw

Implemented in igor::iWidgetDefaultTheme.

◆ draw() [13/13]

virtual void igor::iWidgetTheme::draw ( iWidgetTextEditPtr  widget)
pure virtual

draw widget text edit

Parameters
widgetthe widget to draw

Implemented in igor::iWidgetDefaultTheme.

◆ drawBackgroundFrame()

virtual void igor::iWidgetTheme::drawBackgroundFrame ( const iaRectanglef rect,
iWidgetState  state,
bool  enabled 
)
pure virtual

Implemented in igor::iWidgetDefaultTheme.

◆ drawButton() [1/2]

virtual void igor::iWidgetTheme::drawButton ( const iaRectanglef rect,
const iaColor4f color,
iWidgetState  state,
bool  enabled,
bool  checked 
)
pure virtual

Implemented in igor::iWidgetDefaultTheme.

◆ drawButton() [2/2]

virtual void igor::iWidgetTheme::drawButton ( const iaRectanglef rect,
const iaString text,
iHorizontalAlignment  align,
iVerticalAlignment  valign,
iTexturePtr  texture,
iTexturePtr  icon,
iWidgetState  state,
bool  enabled,
bool  checked 
)
pure virtual

Implemented in igor::iWidgetDefaultTheme.

◆ drawDrag()

virtual void igor::iWidgetTheme::drawDrag ( const iaVector2f pos,
const iDrag drag 
)
pure virtual

draw drag icon

Parameters
posthe position of the drag icon
dragthe drag information to draw

Implemented in igor::iWidgetDefaultTheme.

◆ drawGradient()

virtual void igor::iWidgetTheme::drawGradient ( const iaRectanglef rect,
const iaKeyFrameGraphColor4f gradient 
)
pure virtual

Implemented in igor::iWidgetDefaultTheme.

◆ drawGraph()

virtual void igor::iWidgetTheme::drawGraph ( const iaRectanglef rect,
const iaColor4f lineColor,
const iaColor4f pointColor,
float32  lineWidth,
float32  pointSize,
const std::vector< iaVector2f > &  points 
)
pure virtual

Implemented in igor::iWidgetDefaultTheme.

◆ drawGraphFrame()

virtual void igor::iWidgetTheme::drawGraphFrame ( const iaRectanglef rect,
iWidgetState  state,
bool  enabled 
)
pure virtual

Implemented in igor::iWidgetDefaultTheme.

◆ drawGraphGridlines()

virtual void igor::iWidgetTheme::drawGraphGridlines ( const iaRectanglef rect,
float32  lineWidth,
const std::vector< iaVector2f > &  verticalLines,
const std::vector< iaVector2f > &  horizontalLines,
bool  enabled 
)
pure virtual

Implemented in igor::iWidgetDefaultTheme.

◆ drawGraphLabels()

virtual void igor::iWidgetTheme::drawGraphLabels ( const iaRectanglef rect,
const std::vector< iaVector2f > &  verticalLines,
const std::vector< iaVector2f > &  horizontalLines,
bool  enabled 
)
pure virtual

Implemented in igor::iWidgetDefaultTheme.

◆ drawGridCell()

virtual void igor::iWidgetTheme::drawGridCell ( const iaRectanglef rect,
iWidgetState  state 
)
pure virtual

Implemented in igor::iWidgetDefaultTheme.

◆ drawGridHighlight()

virtual void igor::iWidgetTheme::drawGridHighlight ( const iaRectanglef rect)
pure virtual

Implemented in igor::iWidgetDefaultTheme.

◆ drawGridSelection()

virtual void igor::iWidgetTheme::drawGridSelection ( const iaRectanglef rect)
pure virtual

Implemented in igor::iWidgetDefaultTheme.

◆ drawSelection()

virtual void igor::iWidgetTheme::drawSelection ( const iaRectanglef rect)
pure virtual

draw selection box

Parameters
rectthe selection rectangle

Implemented in igor::iWidgetDefaultTheme.

◆ drawTooltip()

virtual void igor::iWidgetTheme::drawTooltip ( const iaVector2f pos,
const iaString text 
)
pure virtual

draw tooltip at given position

Parameters
posthe given position
textthe given tool tip

Implemented in igor::iWidgetDefaultTheme.

◆ getDialogFrameWidth()

virtual float32 igor::iWidgetTheme::getDialogFrameWidth ( ) const
pure virtual
Returns
dialog frame width

Implemented in igor::iWidgetDefaultTheme.

◆ getDialogTitleHeight()

virtual float32 igor::iWidgetTheme::getDialogTitleHeight ( ) const
pure virtual
Returns
dialog title height

Implemented in igor::iWidgetDefaultTheme.

◆ getFont()

virtual iTextureFontPtr igor::iWidgetTheme::getFont ( ) const
pure virtual
Returns
primary font used in this theme

Implemented in igor::iWidgetDefaultTheme.

◆ getFontSize()

virtual float32 igor::iWidgetTheme::getFontSize ( ) const
pure virtual
Returns
scaled font size

Implemented in igor::iWidgetDefaultTheme.


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