mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Move the GraphicsWindow to the graphics backend
This commit is contained in:
parent
41910f6694
commit
ab08502c77
6 changed files with 620 additions and 589 deletions
|
@ -11,14 +11,16 @@ LICENSE END */
|
|||
use std::{cell::RefCell, collections::HashMap, rc::Rc};
|
||||
|
||||
use sixtyfps_corelib::graphics::{
|
||||
Color, Font, FontRequest, GraphicsBackend, GraphicsWindow, Point, Rect, RenderingCache,
|
||||
Resource,
|
||||
Color, Font, FontRequest, GraphicsBackend, Point, Rect, RenderingCache, Resource,
|
||||
};
|
||||
use sixtyfps_corelib::item_rendering::{CachedRenderingData, ItemRenderer};
|
||||
use sixtyfps_corelib::items::Item;
|
||||
use sixtyfps_corelib::window::ComponentWindow;
|
||||
use sixtyfps_corelib::{Property, SharedString, SharedVector};
|
||||
|
||||
mod graphics_window;
|
||||
use graphics_window::*;
|
||||
|
||||
type CanvasRc = Rc<RefCell<femtovg::Canvas<femtovg::renderer::OpenGl>>>;
|
||||
type RenderingCacheRc = Rc<RefCell<RenderingCache<Option<GPUCachedData>>>>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue