Struct core_graphics::event::CGEvent [−][src]
pub struct CGEvent(_);
Implementations
pub fn new_keyboard_event(
source: CGEventSource,
keycode: CGKeyCode,
keydown: bool
) -> Result<CGEvent, ()>
pub fn new_mouse_event(
source: CGEventSource,
mouse_type: CGEventType,
mouse_cursor_position: CGPoint,
mouse_button: CGMouseButton
) -> Result<CGEvent, ()>
Trait Implementations
Performs the conversion.
Immutably borrows from an owned value. Read more
type Target = CGEventRef
type Target = CGEventRef
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Auto Trait Implementations
impl RefUnwindSafe for CGEvent
impl UnwindSafe for CGEvent
Blanket Implementations
Mutably borrows from an owned value. Read more