iced-yoda/wgpu/src/text.rs

40 lines
788 B
Rust
Raw Normal View History

pub use iced_native::text::Hit;
2019-11-22 22:14:24 +01:00
#[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)
}
2021-08-21 10:31:26 -07:00
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
2021-08-21 10:31:26 -07:00
}
pub fn trim_measurement_cache(&mut self) {}
}