windows: Refactor clipboard implementation (#14347)
This PR provides a similar implementation to the macOS clipboard implementation, adds support for metadata and includes tests. Release Notes: - N/A
This commit is contained in:
parent
ba09eabfba
commit
315692d112
7 changed files with 180 additions and 35 deletions
|
@ -406,6 +406,8 @@ pub(crate) trait PlatformTextSystem: Send + Sync {
|
|||
raster_bounds: Bounds<DevicePixels>,
|
||||
) -> Result<(Size<DevicePixels>, Vec<u8>)>;
|
||||
fn layout_line(&self, text: &str, font_size: Pixels, runs: &[FontRun]) -> LineLayout;
|
||||
#[cfg(target_os = "windows")]
|
||||
fn destroy(&self);
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Hash, Clone)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue