Move the ItemRenderer to the item_rendering module

This commit is contained in:
Olivier Goffart 2021-01-06 10:19:39 +01:00 committed by Simon Hausmann
parent b0fd400cd1
commit c7ff67d0fc
7 changed files with 50 additions and 51 deletions

View file

@ -10,12 +10,12 @@ LICENSE END */
use std::{cell::RefCell, rc::Rc};
use sixtyfps_corelib::eventloop::ComponentWindow;
use sixtyfps_corelib::graphics::{
Color, GraphicsBackend, GraphicsWindow, Point, Rect, RenderingCache, Resource,
};
use sixtyfps_corelib::item_rendering::CachedRenderingData;
use sixtyfps_corelib::item_rendering::{CachedRenderingData, ItemRenderer};
use sixtyfps_corelib::items::Item;
use sixtyfps_corelib::{eventloop::ComponentWindow, items::ItemRenderer};
use sixtyfps_corelib::{Property, SharedVector};
type CanvasRc = Rc<RefCell<femtovg::Canvas<femtovg::renderer::OpenGl>>>;

View file

@ -32,8 +32,8 @@ use sixtyfps_corelib::graphics::{Point, Rect};
use sixtyfps_corelib::input::{
FocusEvent, InputEventResult, KeyEvent, KeyEventResult, MouseEvent, MouseEventType,
};
use sixtyfps_corelib::item_rendering::CachedRenderingData;
use sixtyfps_corelib::items::{Item, ItemConsts, ItemRc, ItemRenderer, ItemVTable};
use sixtyfps_corelib::item_rendering::{CachedRenderingData, ItemRenderer};
use sixtyfps_corelib::items::{Item, ItemConsts, ItemRc, ItemVTable};
use sixtyfps_corelib::layout::LayoutInfo;
use sixtyfps_corelib::rtti::*;
use sixtyfps_corelib::{Callback, ItemVTable_static, Property, SharedString, SharedVector};