fluffl/gui/components/
origin.rs1use super::*;
2
3
4#[derive(Default)]
5pub struct OriginState {
6 common: GuiCommonState,
7}
8
9impl OriginState {
10 pub fn new() -> Self {
11 Self {
12 common: GuiCommonState::new().with_flags(component_flags::VISIBLE),
13 }
14 }
15}
16
17impl GuiComponent for OriginState {
18
19 fn common(&self) -> &GuiCommonState {
20 &self.common
21 }
22
23 fn common_mut(&mut self) -> &mut GuiCommonState {
24 &mut self.common
25 }
26
27 fn as_any(&self) -> &dyn Any {
28 self
29 }
30
31 fn as_any_mut(&mut self) -> &mut dyn Any {
32 self
33 }
34
35 fn render_entry<'a>(
36 &mut self,
37 _gl: &GlowGL,
38 _state: RenderState<'a>,
39 _text_writer: &mut TextWriter,
40 ) {
41 }
43
44 fn render_exit<'a>(
45 &mut self,
46 _gl: &GlowGL,
47 _state: RenderState<'a>,
48 _text_writer: &mut TextWriter,
49 ) {
50 }
52}