bWidgets
Core widget toolkit designed for Blender
bWidgets::bwPainter Class Reference

#include <bwPainter.h>

+ Collaboration diagram for bWidgets::bwPainter:

Public Types

enum class  DrawType { FILLED , OUTLINE , LINE }
 

Public Member Functions

 bwPainter ()
 
void drawPolygon (const bwPolygon &poly)
 
void drawText (const std::string &text, const bwRectanglePixel &rectangle, const TextAlignment align) const
 
void drawIcon (const bwIconInterface &, const bwRectanglePixel &) const
 
void setActiveColor (const bwColor &color)
 
auto getActiveColor () const -> const bwColor &
 
auto getVertexColor (const size_t vertex_index) const -> const bwColor &
 
void setContentMask (const bwRectanglePixel &value)
 
auto getContentMask () const -> const bwRectanglePixel &
 
void enableGradient (const bwGradient &gradient)
 
auto isGradientEnabled () const -> bool
 
void drawTextAndIcon (const std::string &text, const bwIconInterface *icon, const bwRectanglePixel &rectangle, const TextAlignment alignment, float dpi_fac) const
 
void drawRoundbox (const bwRectanglePixel &rect, unsigned int corners, const float radius)
 
void drawRectangle (const bwRectanglePixel &rect)
 
void drawRoundboxWidgetBase (const bwWidgetBaseStyle &base_style, const bwStyle &style, const bwRectanglePixel &rectangle, const bwGradient &gradient, const float radius)
 
void drawCheckMark (const bwRectanglePixel &rect)
 
void drawTriangle (const bwRectanglePixel &rect, Direction direction)
 
void drawLine (const bwPoint &from, const bwPoint &to)
 

Public Attributes

bool use_antialiasing {false}
 
DrawType active_drawtype
 

Static Public Attributes

static std::unique_ptr< bwPaintEngines_paint_engine = nullptr
 

Member Enumeration Documentation

◆ DrawType

enum class bWidgets::bwPainter::DrawType
strong
Enumerator
FILLED 
OUTLINE 
LINE 

Constructor & Destructor Documentation

◆ bwPainter()

bWidgets::bwPainter::bwPainter ( )

Member Function Documentation

◆ drawCheckMark()

void bWidgets::bwPainter::drawCheckMark ( const bwRectanglePixel rect)

◆ drawIcon()

void bWidgets::bwPainter::drawIcon ( const bwIconInterface icon_interface,
const bwRectanglePixel rect 
) const

◆ drawLine()

void bWidgets::bwPainter::drawLine ( const bwPoint from,
const bwPoint to 
)

◆ drawPolygon()

void bWidgets::bwPainter::drawPolygon ( const bwPolygon poly)

◆ drawRectangle()

void bWidgets::bwPainter::drawRectangle ( const bwRectanglePixel rect)

◆ drawRoundbox()

void bWidgets::bwPainter::drawRoundbox ( const bwRectanglePixel rect,
unsigned int  corners,
const float  radius 
)

◆ drawRoundboxWidgetBase()

void bWidgets::bwPainter::drawRoundboxWidgetBase ( const bwWidgetBaseStyle base_style,
const bwStyle style,
const bwRectanglePixel rectangle,
const bwGradient gradient,
const float  radius 
)

◆ drawText()

void bWidgets::bwPainter::drawText ( const std::string &  text,
const bwRectanglePixel rectangle,
const TextAlignment  align 
) const

◆ drawTextAndIcon()

void bWidgets::bwPainter::drawTextAndIcon ( const std::string &  text,
const bwIconInterface icon,
const bwRectanglePixel rectangle,
const TextAlignment  alignment,
float  dpi_fac 
) const

◆ drawTriangle()

void bWidgets::bwPainter::drawTriangle ( const bwRectanglePixel rect,
Direction  direction 
)

◆ enableGradient()

void bWidgets::bwPainter::enableGradient ( const bwGradient gradient)

◆ getActiveColor()

auto bWidgets::bwPainter::getActiveColor ( ) const -> const bwColor&

◆ getContentMask()

auto bWidgets::bwPainter::getContentMask ( ) const -> const bwRectanglePixel&

◆ getVertexColor()

auto bWidgets::bwPainter::getVertexColor ( const size_t  vertex_index) const -> const bwColor&

◆ isGradientEnabled()

bool bWidgets::bwPainter::isGradientEnabled ( ) const -> bool

◆ setActiveColor()

void bWidgets::bwPainter::setActiveColor ( const bwColor color)

◆ setContentMask()

void bWidgets::bwPainter::setContentMask ( const bwRectanglePixel value)

Member Data Documentation

◆ active_drawtype

DrawType bWidgets::bwPainter::active_drawtype

◆ s_paint_engine

std::unique_ptr< bwPaintEngine > bWidgets::bwPainter::s_paint_engine = nullptr
static

◆ use_antialiasing

bool bWidgets::bwPainter::use_antialiasing {false}

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