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
6namespace bWidgets {
7
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,
26
27 auto calcPointColor(const class bwPoint& point, const bwRectanglePixel& bounding_box) const
28 -> bwColor;
29
32};
33
34} // namespace bWidgets
Definition: bwColor.h:5
Simple class for calculating colors for gradient fills.
Definition: bwGradient.h:14
auto calcPointColor(const class bwPoint &point, const bwRectanglePixel &bounding_box) const -> bwColor
Definition: bwGradient.cc:22
bwColor begin
Definition: bwGradient.h:30
Direction
Definition: bwGradient.h:16
Direction direction
Definition: bwGradient.h:31
bwColor end
Definition: bwGradient.h:30
Definition: bwPoint.h:7
Definition: bwContext.h:3