/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#[path = "common/boilerplate.rs"] mod boilerplate;
usecrate::boilerplate::{Example, HandyDandyRectBuilder}; use euclid::vec2; use webrender::ShaderPrecacheFlags; use webrender::api::*; use webrender::render_api::*; use webrender::api::units::*;
impl Example for App { // Make this the only example to test all shaders for compile errors. const PRECACHE_SHADER_FLAGS: ShaderPrecacheFlags = ShaderPrecacheFlags::FULL_COMPILE;
iffalse { // draw box shadow? let simple_box_bounds = (20, 200).by(50, 50); let offset = vec2(10.0, 10.0); let color = ColorF::new(1.0, 1.0, 1.0, 1.0); let blur_radius = 0.0; let spread_radius = 0.0; let simple_border_radius = 8.0; let box_shadow_type = BoxShadowClipMode::Inset;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.