Add attributes for canvas shadows.

This commit is contained in:
Hyowon Kim 2015-06-04 17:12:41 +09:00
parent 37fcced0fa
commit 473afdb196
15 changed files with 106 additions and 70 deletions

View file

@ -13,7 +13,7 @@ extern crate gfx_traits;
extern crate layers;
extern crate offscreen_gl_context;
use azure::azure::AzFloat;
use azure::azure::{AzFloat, AzColor};
use azure::azure_hl::{DrawTarget, Pattern, ColorPattern};
use azure::azure_hl::{GradientStop, LinearGradientPattern, RadialGradientPattern, ExtendMode};
use azure::azure_hl::{JoinStyle, CapStyle, CompositionOp};
@ -67,6 +67,10 @@ pub enum Canvas2dMsg {
SetGlobalAlpha(f32),
SetGlobalComposition(CompositionOrBlending),
SetTransform(Matrix2D<f32>),
SetShadowOffsetX(f64),
SetShadowOffsetY(f64),
SetShadowBlur(f64),
SetShadowColor(AzColor),
}
#[derive(Clone)]