mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41:14 +00:00
Remove ComponentVtable::input_event
And the custom handling of the mouse grabber
This commit is contained in:
parent
845627c6b4
commit
8a64f10e84
69 changed files with 213 additions and 469 deletions
|
@ -13,7 +13,6 @@ LICENSE END */
|
|||
|
||||
use crate::eventloop::ComponentWindow;
|
||||
use crate::graphics::Rect;
|
||||
use crate::input::{InputEventResult, MouseEvent};
|
||||
use crate::item_tree::{ItemVisitorVTable, TraversalOrder, VisitChildrenResult};
|
||||
use crate::items::ItemVTable;
|
||||
use crate::layout::LayoutInfo;
|
||||
|
@ -45,13 +44,6 @@ pub struct ComponentVTable {
|
|||
/// Apply the layout to all the items in the component, and set the geometry of the root to the given rect
|
||||
pub apply_layout: extern "C" fn(core::pin::Pin<VRef<ComponentVTable>>, Rect),
|
||||
|
||||
/// input event
|
||||
pub input_event: extern "C" fn(
|
||||
core::pin::Pin<VRef<ComponentVTable>>,
|
||||
MouseEvent,
|
||||
&ComponentWindow,
|
||||
) -> InputEventResult,
|
||||
|
||||
/// in-place destructor (for VRc)
|
||||
pub drop_in_place: unsafe fn(VRefMut<ComponentVTable>) -> vtable::Layout,
|
||||
/// dealloc function (for VRc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue