summaryrefslogtreecommitdiffstats
path: root/src/native.rs
blob: fcb50d43e04de98815605b91d22c44c5e2e19d40 (plain) (blame)
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
pub use iced_winit::{
    Align, Background, Color, Command, Font, HorizontalAlignment, Length,
    VerticalAlignment,
};

pub mod widget {
    pub mod button {
        pub type Button<'a, Message> =
            iced_winit::Button<'a, Message, iced_wgpu::Renderer>;

        pub use iced_winit::button::State;
    }

    pub mod scrollable {
        pub type Scrollable<'a, Message> =
            iced_winit::Scrollable<'a, Message, iced_wgpu::Renderer>;

        pub use iced_winit::scrollable::State;
    }

    pub mod text_input {
        pub use iced_winit::text_input::{State, TextInput};
    }

    pub mod slider {
        pub use iced_winit::slider::{Slider, State};
    }

    pub use iced_winit::{Checkbox, Image, Radio, Text};

    #[doc(no_inline)]
    pub use {
        button::Button, scrollable::Scrollable, slider::Slider,
        text_input::TextInput,
    };

    pub type Column<'a, Message> =
        iced_winit::Column<'a, Message, iced_wgpu::Renderer>;

    pub type Row<'a, Message> =
        iced_winit::Row<'a, Message, iced_wgpu::Renderer>;

    pub type Container<'a, Message> =
        iced_winit::Container<'a, Message, iced_wgpu::Renderer>;
}

#[doc(no_inline)]
pub use widget::*;

pub type Element<'a, Message> =
    iced_winit::Element<'a, Message, iced_wgpu::Renderer>;