bWidgets
Core widget toolkit designed for Blender
bwGradient.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
bwColor.h
"
4
#include "
bwRectangle.h
"
5
6
namespace
bWidgets
{
7
14
class
bwGradient
{
15
public
:
16
enum class
Direction
{
17
TOP_BOTTOM,
18
LEFT_RIGHT,
19
};
20
21
bwGradient
() =
default
;
22
explicit
bwGradient
(
const
bwColor
& base_color,
23
float
shade_begin,
24
float
shade_end,
25
Direction
direction
=
Direction::TOP_BOTTOM
);
26
27
auto
calcPointColor
(
const
class
bwPoint
& point,
const
bwRectanglePixel
& bounding_box)
const
28
->
bwColor
;
29
30
bwColor
begin
,
end
;
31
Direction
direction
{
Direction::TOP_BOTTOM
};
32
};
33
34
}
// namespace bWidgets
bwColor.h
bwRectangle.h
bWidgets::bwColor
Definition:
bwColor.h:5
bWidgets::bwGradient
Simple class for calculating colors for gradient fills.
Definition:
bwGradient.h:14
bWidgets::bwGradient::calcPointColor
auto calcPointColor(const class bwPoint &point, const bwRectanglePixel &bounding_box) const -> bwColor
Definition:
bwGradient.cc:22
bWidgets::bwGradient::bwGradient
bwGradient()=default
bWidgets::bwGradient::begin
bwColor begin
Definition:
bwGradient.h:30
bWidgets::bwGradient::Direction
Direction
Definition:
bwGradient.h:16
bWidgets::bwGradient::Direction::TOP_BOTTOM
@ TOP_BOTTOM
bWidgets::bwGradient::direction
Direction direction
Definition:
bwGradient.h:31
bWidgets::bwGradient::end
bwColor end
Definition:
bwGradient.h:30
bWidgets::bwPoint
Definition:
bwPoint.h:7
bWidgets::bwRectangle< int >
bWidgets
Definition:
bwContext.h:3
bwidgets
generics
bwGradient.h
Generated by
1.9.3