umya_spreadsheet/structs/drawing/
fill_rectangle.rs

1// a:fillRect
2use crate::writer::driver::*;
3use quick_xml::events::BytesStart;
4use quick_xml::Reader;
5use quick_xml::Writer;
6use std::io::Cursor;
7
8#[derive(Clone, Default, Debug)]
9pub struct FillRectangle {
10    bottom: usize,
11    left: usize,
12    right: usize,
13    top: usize,
14}
15impl FillRectangle {
16    #[inline]
17    pub fn get_bottom(&self) -> &usize {
18        &self.bottom
19    }
20
21    #[inline]
22    pub fn set_bottom(&mut self, value: usize) {
23        self.bottom = value;
24    }
25
26    #[inline]
27    pub fn get_left(&self) -> &usize {
28        &self.left
29    }
30
31    #[inline]
32    pub fn set_left(&mut self, value: usize) {
33        self.left = value;
34    }
35
36    #[inline]
37    pub fn get_right(&self) -> &usize {
38        &self.right
39    }
40
41    #[inline]
42    pub fn set_right(&mut self, value: usize) {
43        self.right = value;
44    }
45
46    #[inline]
47    pub fn get_top(&self) -> &usize {
48        &self.top
49    }
50
51    #[inline]
52    pub fn set_top(&mut self, value: usize) {
53        self.top = value;
54    }
55
56    #[inline]
57    pub(crate) fn set_attributes<R: std::io::BufRead>(
58        &mut self,
59        _reader: &mut Reader<R>,
60        _e: &BytesStart,
61    ) {
62    }
63
64    #[inline]
65    pub(crate) fn write_to(&self, writer: &mut Writer<Cursor<Vec<u8>>>) {
66        // a:fillRect
67        write_start_tag(writer, "a:fillRect", vec![], true);
68    }
69}