Enum pax_engine::api::Fill
source · pub enum Fill {
Solid(Color),
LinearGradient(LinearGradient),
RadialGradient(RadialGradient),
}Variants§
Implementations§
source§impl Fill
impl Fill
pub fn to_unit_point(_: (Size, Size), _: (f64, f64)) -> UnitPoint
pub fn to_piet_gradient_stops(stops: Vec<GradientStop>) -> Vec<GradientStop>
pub fn linearGradient( start: (Size, Size), end: (Size, Size), stops: Vec<GradientStop>, ) -> Fill
Trait Implementations§
source§impl<'de> Deserialize<'de> for Fill
impl<'de> Deserialize<'de> for Fill
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Fill, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Fill, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl HelperFunctions for Fill
impl HelperFunctions for Fill
source§impl Interpolatable for Fill
impl Interpolatable for Fill
source§impl Reflectable for Fill
impl Reflectable for Fill
source§fn get_import_path() -> String
fn get_import_path() -> String
The import path is the fully namespace-qualified path for a type, like and a Vec. In both cases of Vec,
the import_path will remain the same.
std::vec::Vec
This is distinct from type_id ONLY when the type has generics, like Vec, where
the type_id is distinct across a Vecfn get_self_pascal_identifier() -> String
fn get_type_id() -> TypeId
fn parse_to_manifest( ctx: ParsingContext, ) -> (ParsingContext, Vec<PropertyDefinition>)
fn get_iterable_type_id() -> Option<TypeId>
source§impl Serialize for Fill
impl Serialize for Fill
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl ToPaxValue for Fill
impl ToPaxValue for Fill
fn to_pax_value(self) -> PaxValue
impl StructuralPartialEq for Fill
Auto Trait Implementations§
impl Freeze for Fill
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin for Fill
impl UnwindSafe for Fill
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.