Position insertion point in input field with mouse

This commit is contained in:
Florian Merz 2017-01-11 09:04:03 +01:00
parent c784bc6944
commit b40db5b55d
9 changed files with 219 additions and 50 deletions

View file

@ -39,6 +39,8 @@ pub trait LayoutRPC {
fn margin_style(&self) -> MarginStyleResponse;
fn nodes_from_point(&self, page_point: Point2D<f32>, client_point: Point2D<f32>) -> Vec<UntrustedNodeAddress>;
fn text_index(&self) -> TextIndexResponse;
}
pub struct ContentBoxResponse(pub Rect<Au>);
@ -92,3 +94,6 @@ impl MarginStyleResponse {
}
}
}
#[derive(Clone)]
pub struct TextIndexResponse(pub Option<usize>);