libgpac
Documentation of the core library of GPAC
|
import"evg.idl";
Public Member Functions | |
SolidBrush () | |
LinearGradient () | |
RadialGradient () | |
void | set_color (Color color) |
void | set_color (DOMString color) |
void | set_color (unsigned long r, unsigned long g, unsigned long b, unsigned long a) |
void | set_colorf (Colorf color) |
void | set_colorf (double r, double g, double b, double a) |
DOMString | get_color () |
void | set_alpha (unsigned long alpha) |
void | set_alphaf (double alpha) |
double | get_alphaf () |
void | set_points (Point2D start, optional Point2D end={0, 0}) |
void | set_points (Point2D center, Point2D focal, Point2D radius) |
void | set_stop (double pos, DOMString color) |
void | set_stop (double pos, Color color) |
void | set_stop (double pos, unsigned long r, unsigned long g, unsigned long b, unsigned long a) |
void | set_stopf (double pos, Colorf color) |
void | set_stopf (double pos, double r, double g, double b, double a) |
Data Fields | |
writeonly unsigned long | pad |
writeonly unsigned long | cmx |
attribute Matrix2D | mx |
attribute readonly boolean | solid_brush |
attribute boolean | auto_mx |
interface object to solid brush, linear gradient and radial gradient stencils
Stencil::SolidBrush | ( | ) |
constructor for solid color stencil
Stencil::LinearGradient | ( | ) |
constructor for linear gradient stencil
Stencil::RadialGradient | ( | ) |
constructor for radial gradient stencil
void Stencil::set_color | ( | Color | color | ) |
set color for solid brush stencil
color | the color to set |
void Stencil::set_color | ( | DOMString | color | ) |
set color for solid brush stencil
color | an HTML/SVG color name or an HTML color value formatted as $RRGGBB, #RRGGBB or 0xRRGGBB |
void Stencil::set_color | ( | unsigned long | r, |
unsigned long | g, | ||
unsigned long | b, | ||
unsigned long | a | ||
) |
set color for solid brush stencil - see gf_evg_stencil_set_brush_color.
r | red value, between 0 and 255 |
g | green value, between 0 and 255 |
b | blue value, between 0 and 255 |
a | alpha value, between 0 and 255 |
void Stencil::set_colorf | ( | Colorf | color | ) |
set color for solid brush stencil
color | the color to set |
void Stencil::set_colorf | ( | double | r, |
double | g, | ||
double | b, | ||
double | a | ||
) |
set color for solid brush stencil
r | red value, between 0.0 and 1.0 |
g | green value, between 0.0 and 1.0 |
b | blue value, between 0.0 and 1.0 |
a | alpha value, between 0.0 and 1.0 |
DOMString Stencil::get_color | ( | ) |
get color for solid brush stencil
void Stencil::set_alpha | ( | unsigned long | alpha | ) |
sets alpha value for stencil. The alpha is multiplied with the alpha component of the solid brush or gradient color
alpha | the alpha to set, between 0 and 255 |
void Stencil::set_alphaf | ( | double | alpha | ) |
sets alpha value for stencil. The alpha is multiplied with the alpha component of the solid brush or gradient color
alpha | the alpha to set, between 0.0 and 1.0 |
double Stencil::get_alphaf | ( | ) |
gets alpha value for stencil
sets linear gradient start and end point. If end point is omitted, sets gradient line betwee {0,0} and start. Coordinates are given in surface coordinates, not object coordinates. See gf_evg_stencil_set_linear_gradient
start | gradient line start point |
end | gradient line end point |
sets radial graident center, focal and radius points - see gf_evg_stencil_set_radial_gradient
center | coordinates of center |
focal | coordinates of focal |
radius | size of horizintal and vertical radius |
void Stencil::set_stop | ( | double | pos, |
DOMString | color | ||
) |
defines a new stop color for the gradient. Stops must be declared in order on the gradient. See gf_evg_stencil_push_gradient_interpolation
pos | position between 0.0 and 1.0 |
color | an HTML/SVG color name or an HTML color value formatted as $RRGGBB, #RRGGBB or 0xRRGGBB |
void Stencil::set_stop | ( | double | pos, |
Color | color | ||
) |
defines a new stop color for the gradient. Stops must be declared in order on the gradient. See gf_evg_stencil_push_gradient_interpolation
pos | position between 0.0 and 1.0 |
color | a color object |
void Stencil::set_stop | ( | double | pos, |
unsigned long | r, | ||
unsigned long | g, | ||
unsigned long | b, | ||
unsigned long | a | ||
) |
defines a new stop color for the gradient. Stops must be declared in order on the gradient. See gf_evg_stencil_push_gradient_interpolation
pos | position between 0.0 and 1.0 |
r | red value, between 0 and 255 |
g | green value, between 0 and 255 |
b | blue value, between 0 and 255 |
a | alpha value, between 0 and 255 |
void Stencil::set_stopf | ( | double | pos, |
Colorf | color | ||
) |
defines a new stop color for the gradient. Stops must be declared in order on the gradient. See gf_evg_stencil_push_gradient_interpolation
pos | position between 0.0 and 1.0 |
color | a color object |
void Stencil::set_stopf | ( | double | pos, |
double | r, | ||
double | g, | ||
double | b, | ||
double | a | ||
) |
defines a new stop color for the gradient. Stops must be declared in order on the gradient. See gf_evg_stencil_push_gradient_interpolation
pos | position between 0.0 and 1.0 |
r | red value, between 0.0 and 1.0 |
g | green value, between 0.0 and 1.0 |
b | blue value, between 0.0 and 1.0 |
a | alpha value, between 0.0 and 1.0 |
writeonly unsigned long Stencil::pad |
padding mode of gradient - see gf_evg_stencil_set_gradient_mode
writeonly unsigned long Stencil::cmx |
color matrix for gradient stencils. Setting to null resets the matrix
attribute Matrix2D Stencil::mx |
matrix for gradient stencils. Setting to null resets the matrix
attribute readonly boolean Stencil::solid_brush |
true if stencil is a solid color brush, false for gradient stencils
attribute boolean Stencil::auto_mx |
automatic matrix mode, see gf_evg_stencil_set_auto_matrix