summaryrefslogtreecommitdiffstats
path: root/wgpu/src/text.rs
blob: 125e6be0a56d98b6c727dc73e19637f149f813a7 (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
pub use iced_native::text::Hit;

#[derive(Debug)]
pub struct Pipeline;

impl Pipeline {
    pub fn new(
        _device: &wgpu::Device,
        _format: wgpu::TextureFormat,
        _default_font: Option<&[u8]>,
        _multithreading: bool,
    ) -> Self {
        Pipeline
    }

    pub fn measure(
        &self,
        _content: &str,
        _size: f32,
        _font: iced_native::Font,
        _bounds: iced_native::Size,
    ) -> (f32, f32) {
        (0.0, 0.0)
    }

    pub fn hit_test(
        &self,
        _content: &str,
        _size: f32,
        _font: iced_native::Font,
        _bounds: iced_native::Size,
        _point: iced_native::Point,
        _nearest_only: bool,
    ) -> Option<Hit> {
        None
    }

    pub fn trim_measurement_cache(&mut self) {}
}