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
//! Built-in views provided by vizia.

mod avatar;
mod badge;
mod button;
mod checkbox;
mod chip;
mod combobox;
mod datepicker;
mod dialog;
mod divider;
mod dropdown;
mod element;
mod image;
mod knob;
mod label;
mod list;
mod markdown;
mod menu;
pub mod normalized_map;
mod picklist;
mod popup;
mod progressbar;
mod radio;
mod rating;
mod scrollbar;
mod scrollview;
mod slider;
mod spinbox;
mod stack;
mod switch;
mod tabview;
mod textbox;
mod toggle_button;
mod tooltip;
mod virtual_list;
mod xypad;

pub use crate::binding::Binding;
pub use avatar::*;
pub use badge::*;
pub use button::{Button, ButtonGroup, ButtonModifiers, ButtonVariant};
pub use checkbox::Checkbox;
pub use chip::*;
pub use combobox::*;
pub use datepicker::Datepicker;
pub use dialog::*;
pub use divider::*;
pub use dropdown::Dropdown;
pub use element::Element;
pub use image::*;
pub use knob::{ArcTrack, Knob, KnobMode, TickKnob, Ticks};
pub use label::Label;
pub use list::*;
pub use markdown::*;
pub use menu::*;
pub use picklist::{PickList, ScrollList};
pub use popup::*;
pub use progressbar::ProgressBar;
pub use radio::RadioButton;
pub use rating::Rating;
pub use scrollbar::Scrollbar;
pub use scrollview::{ScrollEvent, ScrollView};
pub use slider::{NamedSlider, Slider};
pub use spinbox::{Spinbox, SpinboxEvent, SpinboxIcons};
pub use stack::{HStack, VStack, ZStack};
pub use switch::Switch;
pub use tabview::{TabEvent, TabPair, TabView};
pub use textbox::{TextEvent, Textbox};
pub use toggle_button::{ToggleButton, ToggleButtonModifiers};
pub use tooltip::Tooltip;
pub use virtual_list::*;
pub use xypad::XYPad;

use crate::prelude::Data;

/// The orientation of a widget, such as a slider or scrollbar
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Data)]
pub enum Orientation {
    #[default]
    Horizontal,
    Vertical,
}