[librsvg: 1/23] LightSource doesn't need to be public
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 1/23] LightSource doesn't need to be public
- Date: Thu, 11 Mar 2021 23:12:24 +0000 (UTC)
commit 509a5129047067f5a8a8840c78a08707385b6b9d
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Mar 11 11:28:05 2021 -0600
LightSource doesn't need to be public
src/filters/lighting.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/filters/lighting.rs b/src/filters/lighting.rs
index 3ce86a4e..68ab634a 100644
--- a/src/filters/lighting.rs
+++ b/src/filters/lighting.rs
@@ -35,7 +35,7 @@ enum UntransformedLightSource {
}
/// A light source with affine transformations applied.
-pub enum LightSource {
+enum LightSource {
Distant {
azimuth: f64,
elevation: f64,
@@ -179,7 +179,7 @@ pub struct FeDistantLight {
}
impl FeDistantLight {
- pub fn transform(&self) -> LightSource {
+ fn transform(&self) -> LightSource {
LightSource::Distant {
azimuth: self.azimuth,
elevation: self.elevation,
@@ -211,7 +211,7 @@ pub struct FePointLight {
}
impl FePointLight {
- pub fn transform(&self, paffine: Transform) -> LightSource {
+ fn transform(&self, paffine: Transform) -> LightSource {
let (x, y) = paffine.transform_point(self.x, self.y);
let z = transform_dist(paffine, self.z);
@@ -251,7 +251,7 @@ pub struct FeSpotLight {
}
impl FeSpotLight {
- pub fn transform(&self, paffine: Transform) -> LightSource {
+ fn transform(&self, paffine: Transform) -> LightSource {
let (x, y) = paffine.transform_point(self.x, self.y);
let z = transform_dist(paffine, self.z);
let (points_at_x, points_at_y) =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]