mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Implement IsPointInPath
This commit is contained in:
parent
2af23dc061
commit
789a90a82f
23 changed files with 71 additions and 128 deletions
|
@ -42,6 +42,12 @@ use std::str::FromStr;
|
|||
use std::sync::mpsc::Sender;
|
||||
use util::mem::HeapSizeOf;
|
||||
|
||||
#[derive(Clone, Deserialize, Serialize)]
|
||||
pub enum FillRule {
|
||||
Nonzero,
|
||||
Evenodd,
|
||||
}
|
||||
|
||||
#[derive(Clone, Deserialize, Serialize)]
|
||||
pub enum CanvasMsg {
|
||||
Canvas2d(Canvas2dMsg),
|
||||
|
@ -93,6 +99,7 @@ pub enum Canvas2dMsg {
|
|||
Fill,
|
||||
FillRect(Rect<f32>),
|
||||
GetImageData(Rect<i32>, Size2D<f64>, IpcSender<Vec<u8>>),
|
||||
IsPointInPath(f64, f64, FillRule, IpcSender<bool>),
|
||||
LineTo(Point2D<f32>),
|
||||
MoveTo(Point2D<f32>),
|
||||
PutImageData(Vec<u8>, Point2D<f64>, Size2D<f64>, Rect<f64>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue