[−][src]Struct oox::shared::drawingml::shapeprops::LinearShadeProperties
Fields
angle: Option<PositiveFixedAngle>
Specifies the direction of color change for the gradient. To define this angle, let its value be x measured clockwise. Then ( -sin x, cos x ) is a vector parallel to the line of constant color in the gradient fill.
scaled: Option<bool>
Whether the gradient angle scales with the fill region. Mathematically, if this flag is true, then the gradient vector ( cos x , sin x ) is scaled by the width (w) and height (h) of the fill region, so that the vector becomes ( w cos x, h sin x ) (before normalization). Observe that now if the gradient angle is 45 degrees, the gradient vector is ( w, h ), which goes from top-left to bottom-right of the fill region. If this flag is false, the gradient angle is independent of the fill region and is not scaled using the manipulation described above. So a 45-degree gradient angle always give a gradient band whose line of constant color is parallel to the vector (1, -1).
Methods
impl LinearShadeProperties
[src]
pub fn from_xml_element(xml_node: &XmlNode) -> Result<Self>
[src]
Trait Implementations
impl Clone for LinearShadeProperties
[src]
fn clone(&self) -> LinearShadeProperties
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LinearShadeProperties
[src]
impl Default for LinearShadeProperties
[src]
fn default() -> LinearShadeProperties
[src]
impl PartialEq<LinearShadeProperties> for LinearShadeProperties
[src]
fn eq(&self, other: &LinearShadeProperties) -> bool
[src]
fn ne(&self, other: &LinearShadeProperties) -> bool
[src]
impl StructuralPartialEq for LinearShadeProperties
[src]
Auto Trait Implementations
impl RefUnwindSafe for LinearShadeProperties
impl Send for LinearShadeProperties
impl Sync for LinearShadeProperties
impl Unpin for LinearShadeProperties
impl UnwindSafe for LinearShadeProperties
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,