mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-18 07:48:02 +08:00
* Add embedable bitmaps * Initial work on blob urls * Finish implementing data url * Fix some bugs * Rename bitmap to image * Fix loading image on document load * Add transform properties for image * Remove some logging * Add image dimensions * Implement system copy and paste * Fix pasting images * Fix test * Address code review Co-authored-by: Keavon Chambers <keavon@keavon.com>
24 lines
614 B
Rust
24 lines
614 B
Rust
use super::layer_panel::LayerMetadata;
|
|
|
|
use graphene::layers::layer_info::Layer;
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[repr(u8)]
|
|
#[derive(Serialize, Deserialize, Clone, Copy, PartialEq, Eq, Debug)]
|
|
pub enum Clipboard {
|
|
Internal,
|
|
|
|
_InternalClipboardCount, // Keep this as the last entry in internal clipboards since it is used for counting the number of enum variants
|
|
|
|
Device,
|
|
}
|
|
|
|
pub const INTERNAL_CLIPBOARD_COUNT: u8 = Clipboard::_InternalClipboardCount as u8;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
|
pub struct CopyBufferEntry {
|
|
pub layer: Layer,
|
|
pub layer_metadata: LayerMetadata,
|
|
}
|