3#if !defined(__XTD_DRAWING_NATIVE_LIBRARY__)
4#error "Do not include this file: Internal use only"
13#include <xtd/drawing_native_export.hpp>
20 namespace drawing_2d {
22 class conical_gradient_brush;
23 class linear_gradient_brush;
24 class radial_gradient_brush;
92 static void linear_gradient(
intptr brush,
int32 x1,
int32 y1,
int32 x2,
int32 y2,
const std::vector<std::tuple<xtd::byte, xtd::byte, xtd::byte, xtd::byte, float>>&
colors,
float angle);
104 static void radial_gradient(
intptr brush,
int32 center_x,
int32 center_y,
int32 focal_x,
int32 focal_y,
const std::vector<std::tuple<xtd::byte, xtd::byte, xtd::byte, xtd::byte, float>>&
colors,
float radius);
Defines objects used to fill the interiors of graphical shapes such as rectangles,...
Definition brush.hpp:33
colors for all the standard colors. This class cannot be inherited.
Definition colors.hpp:26
Encapsulates a xtd::drawing::brush with a conical gradient. This class cannot be inherited.
Definition conical_gradient_brush.hpp:35
Defines a rectangular xtd::drawing::brush with a hatch style, a foreground color, and a background co...
Definition hatch_brush.hpp:32
Encapsulates a xtd::drawing::brush with a linear gradient. This class cannot be inherited.
Definition linear_gradient_brush.hpp:31
Encapsulates a xtd::drawing::brush with a radial gradient. This class cannot be inherited.
Definition radial_gradient_brush.hpp:30
Contains brush native API.
Definition brush.hpp:41
static intptr create()
Creates brush.
static void linear_gradient(intptr brush, int32 x1, int32 y1, int32 x2, int32 y2, const std::vector< std::tuple< xtd::byte, xtd::byte, xtd::byte, xtd::byte, float > > &colors, float angle)
Sets linear gradient brush.
static void radial_gradient(intptr brush, int32 center_x, int32 center_y, int32 focal_x, int32 focal_y, const std::vector< std::tuple< xtd::byte, xtd::byte, xtd::byte, xtd::byte, float > > &colors, float radius)
Sets radial gradient brush.
static void destroy(intptr brush)
Destroys brush.
static void texture(intptr brush, intptr texture)
Sets texturebrush.
static void conical_gradient(intptr brush, int32 center_x, int32 center_y, const std::vector< std::tuple< xtd::byte, xtd::byte, xtd::byte, xtd::byte, float > > &colors, float angle)
Sets conical gradient brush.
static void solid(intptr brush, xtd::byte a, xtd::byte r, xtd::byte g, xtd::byte b)
Sets solid color brush.
Defines a xtd::drawing::brush of a single color. Brushes are used to fill graphics shapes,...
Definition solid_brush.hpp:30
Each property of the xtd::drawing::texture_brush class is a xtd::drawing::brush object that uses an i...
Definition texture_brush.hpp:29
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10