aboutsummaryrefslogtreecommitdiff
path: root/src/svg/style.rs
diff options
context:
space:
mode:
authorArne Dußin2020-12-21 01:22:15 +0100
committerArne Dußin2020-12-21 21:15:55 +0100
commitd7e9c3cc46d616c2fcd1a6e9f73adbb79c6570b4 (patch)
treee5633f4d3b18472922c943d759e9f58722ba4405 /src/svg/style.rs
parent48f321a80970ebeb8374072b1d2e0a4d297aa348 (diff)
downloadgraf_karto-d7e9c3cc46d616c2fcd1a6e9f73adbb79c6570b4.tar.gz
graf_karto-d7e9c3cc46d616c2fcd1a6e9f73adbb79c6570b4.zip
Add previously missing docs where appropriate
Diffstat (limited to 'src/svg/style.rs')
-rw-r--r--src/svg/style.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/svg/style.rs b/src/svg/style.rs
index 78b800d..7a0110e 100644
--- a/src/svg/style.rs
+++ b/src/svg/style.rs
@@ -1,3 +1,8 @@
+//! Style options for SVG components.
+//!
+//! For information on SVG styles, pleas see the SVG documentation.
+// TODO: There should be a lib available that can be integrated into the program
+
use raylib::ffi::Color;
use std::str::FromStr;
@@ -32,6 +37,7 @@ pub fn colour_from_html(html: &str) -> Option<Color> {
/// The style of the end of the stroke.
/// See [stroke-line-cap property](https://www.w3.org/TR/SVG11/painting.html#StrokeLinecapProperty)
/// in the SVG Documentation.
+#[allow(missing_docs)]
pub enum StrokeLineCap {
Butt,
Round,
@@ -41,6 +47,7 @@ pub enum StrokeLineCap {
/// The style of the joining corners of the stroke.
/// See [stroke-line-join property](https://www.w3.org/TR/SVG11/painting.html#StrokeLinejoinProperty)
/// in the SVG Documentation
+#[allow(missing_docs)]
pub enum StrokeLineJoin {
Miter,
Round,
@@ -48,6 +55,7 @@ pub enum StrokeLineJoin {
}
/// The style of a path drawing instruction.
+#[allow(missing_docs)]
pub struct Style {
pub fill: Option<Color>,
pub stroke: Color,