Struct core_graphics::event::CGEvent
[−]
pub struct CGEvent(_);
Methods
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]
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, ()>[src]
source: CGEventSource,
mouse_type: CGEventType,
mouse_cursor_position: CGPoint,
mouse_button: CGMouseButton
) -> Result<CGEvent, ()>
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 Drop for CGEvent
impl Clone for CGEvent
fn clone(&self) -> CGEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Deref for CGEvent
type Target = CGEventRef
The resulting type after dereferencing.
fn deref(&self) -> &CGEventRef
Dereferences the value.
impl DerefMut for CGEvent
fn deref_mut(&mut self) -> &mut CGEventRef
Mutably dereferences the value.
impl Borrow<CGEventRef> for CGEvent
fn borrow(&self) -> &CGEventRef
Immutably borrows from an owned value. Read more
impl AsRef<CGEventRef> for CGEvent
fn as_ref(&self) -> &CGEventRef
Performs the conversion.