[][src]Struct core_graphics::event::CGEvent

pub struct CGEvent(_);

Implementations

impl CGEvent[src]

pub fn type_id() -> CFTypeID[src]

pub fn new(source: CGEventSource) -> Result<CGEvent, ()>[src]

pub fn new_keyboard_event(
    source: CGEventSource,
    keycode: CGKeyCode,
    keydown: bool
) -> Result<CGEvent, ()>
[src]

pub fn new_mouse_event(
    source: CGEventSource,
    mouse_type: CGEventType,
    mouse_cursor_position: CGPoint,
    mouse_button: CGMouseButton
) -> Result<CGEvent, ()>
[src]

pub fn post(&self, tap_location: CGEventTapLocation)[src]

pub fn location(&self) -> CGPoint[src]

pub fn set_flags(&self, flags: CGEventFlags)[src]

pub fn get_flags(&self) -> CGEventFlags[src]

pub fn set_type(&self, event_type: CGEventType)[src]

pub fn get_type(&self) -> CGEventType[src]

pub fn set_string_from_utf16_unchecked(&self, buf: &[u16])[src]

pub fn set_string(&self, string: &str)[src]

pub fn get_integer_value_field(&self, field: CGEventField) -> i64[src]

pub fn set_integer_value_field(&self, field: CGEventField, value: i64)[src]

pub fn get_double_value_field(&self, field: CGEventField) -> f64[src]

pub fn set_double_value_field(&self, field: CGEventField, value: f64)[src]

Trait Implementations

impl AsRef<CGEventRef> for CGEvent[src]

impl Borrow<CGEventRef> for CGEvent[src]

impl Clone for CGEvent[src]

impl Deref for CGEvent[src]

type Target = CGEventRef

The resulting type after dereferencing.

impl DerefMut for CGEvent[src]

impl Drop for CGEvent[src]

Auto Trait Implementations

impl RefUnwindSafe for CGEvent

impl !Send for CGEvent

impl !Sync for CGEvent

impl Unpin for CGEvent

impl UnwindSafe for CGEvent

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.