2021-08-26 14:41:33 +07:00
|
|
|
pub use iced_native::text::Hit;
|
|
|
|
|
|
2019-11-22 22:14:24 +01:00
|
|
|
#[derive(Debug)]
|
2023-01-06 23:29:38 +01:00
|
|
|
pub struct Pipeline;
|
2019-11-13 03:54:36 +01:00
|
|
|
|
|
|
|
|
impl Pipeline {
|
2020-02-24 20:08:40 +01:00
|
|
|
pub fn new(
|
2023-01-06 23:29:38 +01:00
|
|
|
_device: &wgpu::Device,
|
|
|
|
|
_format: wgpu::TextureFormat,
|
|
|
|
|
_default_font: Option<&[u8]>,
|
|
|
|
|
_multithreading: bool,
|
2020-02-24 20:08:40 +01:00
|
|
|
) -> Self {
|
2023-01-06 23:29:38 +01:00
|
|
|
Pipeline
|
2019-11-13 03:54:36 +01:00
|
|
|
}
|
|
|
|
|
|
2019-11-13 07:22:21 +01:00
|
|
|
pub fn measure(
|
|
|
|
|
&self,
|
2023-01-06 23:29:38 +01:00
|
|
|
_content: &str,
|
|
|
|
|
_size: f32,
|
|
|
|
|
_font: iced_native::Font,
|
|
|
|
|
_bounds: iced_native::Size,
|
2019-11-13 07:22:21 +01:00
|
|
|
) -> (f32, f32) {
|
2023-01-06 23:29:38 +01:00
|
|
|
(0.0, 0.0)
|
2019-11-13 03:54:36 +01:00
|
|
|
}
|
|
|
|
|
|
2021-08-21 10:31:26 -07:00
|
|
|
pub fn hit_test(
|
|
|
|
|
&self,
|
2023-01-06 23:29:38 +01:00
|
|
|
_content: &str,
|
|
|
|
|
_size: f32,
|
|
|
|
|
_font: iced_native::Font,
|
|
|
|
|
_bounds: iced_native::Size,
|
|
|
|
|
_point: iced_native::Point,
|
|
|
|
|
_nearest_only: bool,
|
2021-09-15 14:49:13 +07:00
|
|
|
) -> Option<Hit> {
|
2023-01-06 23:29:38 +01:00
|
|
|
None
|
2021-08-21 10:31:26 -07:00
|
|
|
}
|
|
|
|
|
|
2023-01-06 23:29:38 +01:00
|
|
|
pub fn trim_measurement_cache(&mut self) {}
|
2019-11-13 03:54:36 +01:00
|
|
|
}
|