1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#[macro_use]
extern crate mopa;

#[cfg(enabled)]
use serde_derive::{Serialize, Deserialize};

#[cfg(enabled)]
#[doc(hidden)]
pub use ringui_derive::*;

#[cfg(enabled)]
pub use button::*;
#[cfg(enabled)]
pub use control_shape::ControlShape;
#[cfg(enabled)]
pub use graph::Graph;
#[cfg(enabled)]
pub use slider::*;
#[cfg(enabled)]
pub use toggle::*;
#[cfg(enabled)]
pub use panel::*;
#[cfg(enabled)]
pub use traits::*;
#[cfg(enabled)]
pub use tabs::*;
#[cfg(enabled)]
pub use textbox::*;
#[cfg(enabled)]
pub use readonly_range::*;
#[cfg(enabled)]
pub use listbox::{ListBox, ListBoxOption, ListBoxMulti, ListBoxBuilder};
#[cfg(enabled)]
pub use parameter_group::ParameterGroup;
#[cfg(enabled)]
pub use group_v::{GroupV, GroupBuilder, Overflow};
#[cfg(enabled)]
pub use scrollbar::{Scrollbar, ScrollbarBuilder};
#[cfg(enabled)]
#[cfg(ttf)]
#[cfg(enabled)]
pub use utils::default_font;
#[cfg(enabled)]
pub use utils::rendered_stream;
#[cfg(enabled)]
#[cfg(enabled)]
pub use label::{Label, LabelBuilder, LabelStyle, LabelValue};
// pub use tree_from_debug::{TreeFromDebug, TreeFromDebugBuilder};
#[cfg(enabled)]
pub use resizable_container::{ResizableContainer, ResizableContainerBuilder};
// pub use tree::{Tree, TreeBuilder};
#[cfg(enabled)]
pub use group_h::{GroupH, GroupHBuilder};
#[cfg(enabled)]
pub use separator::{Separator, SeparatorBuilder, SepH, SepV, FontRelativeSep};
#[cfg(enabled)]
pub use rin_events::{RangedPropertyMut, RangedProperty};
#[cfg(enabled)]
pub use enum_param::EnumParam;
#[cfg(enabled)]
pub use geometry::*;

#[cfg(enabled)]
mod button;
#[cfg(enabled)]
mod control_shape;
#[cfg(enabled)]
mod graph;
#[cfg(enabled)]
mod slider;
#[cfg(enabled)]
mod panel;
#[cfg(enabled)]
mod toggle;
#[cfg(enabled)]
mod traits;
#[cfg(enabled)]
pub mod group_v;
#[cfg(enabled)]
pub mod group_h;
#[cfg(enabled)]
mod tabs;
#[cfg(enabled)]
mod readonly_range;
#[cfg(enabled)]
pub mod utils;
#[cfg(enabled)]
pub mod listbox;
#[cfg(enabled)]
mod textbox;
#[cfg(enabled)]
mod parameter_group;
#[cfg(enabled)]
mod scrollbar;
#[cfg(enabled)]
mod label;
#[cfg(enabled)]
pub mod resizable_container;
#[cfg(enabled)]
mod separator;
#[cfg(enabled)]
pub mod enum_param;
// mod selector;
#[cfg(enabled)]
mod path_viewer;
#[cfg(enabled)]
mod geometry;

#[cfg(enabled)]
#[derive(Serialize, Deserialize, Clone, Copy, Debug)]
pub enum TextAlign{
    Left,
    Right,
    Center,
}

#[cfg(enabled)]
impl Default for TextAlign{
    fn default() -> Self{
        TextAlign::Left
    }
}