Enum compositing::windowing::WindowEvent [] [src]

pub enum WindowEvent {
    Idle,
    Refresh,
    Resize,
    TouchpadPressure(TypedPoint2D<f32, DevicePixel>, f32TouchpadPressurePhase),
    LoadUrl(TopLevelBrowsingContextIdServoUrl),
    MouseWindowEventClass(MouseWindowEvent),
    MouseWindowMoveEventClass(TypedPoint2D<f32, DevicePixel>),
    Touch(TouchEventTypeTouchIdTypedPoint2D<f32, DevicePixel>),
    Scroll(ScrollLocationTypedPoint2D<i32, DevicePixel>, TouchEventType),
    Zoom(f32),
    PinchZoom(f32),
    ResetZoom,
    Navigation(TopLevelBrowsingContextIdTraversalDirection),
    Quit,
    KeyEvent(Option<char>, KeyKeyStateKeyModifiers),
    Reload(TopLevelBrowsingContextId),
    NewBrowser(ServoUrlIpcSender<TopLevelBrowsingContextId>),
    CloseBrowser(TopLevelBrowsingContextId),
    SelectBrowser(TopLevelBrowsingContextId),
    ToggleWebRenderDebug(WebRenderDebugOption),
}

Events that the windowing system sends to Servo.

Variants

Sent when no message has arrived, but the event loop was kicked for some reason (perhaps by another Servo subsystem).

FIXME(pcwalton): This is kind of ugly and may not work well with multiprocess Servo. It's possible that this should be something like CompositorMessageWindowEvent(compositor_thread::Msg) instead.

Sent when part of the window is marked dirty and needs to be redrawn. Before sending this message, the window must make the same GL context as in PrepareRenderingEvent current.

Sent when the window is resized.

Touchpad Pressure

Sent when a new URL is to be loaded.

Sent when a mouse hit test is to be performed.

Sent when a mouse move.

Touch event: type, identifier, point

Sent when the user scrolls. The first point is the delta and the second point is the origin.

Sent when the user zooms.

Simulated "pinch zoom" gesture for non-touch platforms (e.g. ctrl-scrollwheel).

Sent when the user resets zoom to default.

Sent when the user uses chrome navigation (i.e. backspace or shift-backspace).

Sent when the user quits the application

Sent when a key input state changes

Sent when Ctr+R/Apple+R is called to reload the current page.

Create a new top level browsing context

Close a top level browsing context

Make a top level browsing context visible, hiding the previous visible one.

Toggles a debug flag in WebRender

Trait Implementations

impl Clone for WindowEvent
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for WindowEvent
[src]

[src]

Formats the value using the given formatter. Read more