bWidgets
Core widget toolkit designed for Blender
bwPaintEngine.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
#include "
bwRectangle.h
"
6
7
namespace
bWidgets
{
8
9
enum class
TextAlignment
;
10
31
class
bwPaintEngine
{
32
public
:
33
virtual
~bwPaintEngine
() =
default
;
34
45
virtual
void
setupViewport
(
const
bwRectanglePixel
& rect,
const
class
bwColor
& clear_color) = 0;
46
47
virtual
void
enableMask
(
const
bwRectanglePixel
& rect) = 0;
48
55
virtual
void
drawPolygon
(
const
class
bwPainter
& painter,
const
class
bwPolygon
& polygon) = 0;
62
virtual
void
drawText
(
const
class
bwPainter
& painter,
63
const
std::string& text,
64
const
bwRectanglePixel
& rect,
65
const
TextAlignment
alignment) = 0;
72
virtual
void
drawIcon
(
const
class
bwPainter
& painter,
73
const
class
bwIconInterface
& icon_interface,
74
const
bwRectanglePixel
& rect) = 0;
75
};
76
77
}
// namespace bWidgets
bwRectangle.h
bWidgets::bwColor
Definition:
bwColor.h:5
bWidgets::bwIconInterface
Interface to reference icons from within bWidgets.
Definition:
bwIconInterface.h:22
bWidgets::bwPaintEngine
Main interface to implement any drawing of geometry or text.
Definition:
bwPaintEngine.h:31
bWidgets::bwPaintEngine::setupViewport
virtual void setupViewport(const bwRectanglePixel &rect, const class bwColor &clear_color)=0
bWidgets::bwPaintEngine::drawText
virtual void drawText(const class bwPainter &painter, const std::string &text, const bwRectanglePixel &rect, const TextAlignment alignment)=0
bWidgets::bwPaintEngine::~bwPaintEngine
virtual ~bwPaintEngine()=default
bWidgets::bwPaintEngine::drawPolygon
virtual void drawPolygon(const class bwPainter &painter, const class bwPolygon &polygon)=0
bWidgets::bwPaintEngine::enableMask
virtual void enableMask(const bwRectanglePixel &rect)=0
bWidgets::bwPaintEngine::drawIcon
virtual void drawIcon(const class bwPainter &painter, const class bwIconInterface &icon_interface, const bwRectanglePixel &rect)=0
bWidgets::bwPainter
Definition:
bwPainter.h:40
bWidgets::bwPolygon
Definition:
bwPolygon.h:11
bWidgets::bwRectangle< int >
bWidgets
Definition:
bwContext.h:3
bWidgets::TextAlignment
TextAlignment
Definition:
bwPainter.h:27
bwidgets
bwPaintEngine.h
Generated by
1.9.3