Struct core_graphics::event::CGEvent
[−]
pub struct CGEvent(_);
Methods
impl CGEvent
[src]
fn type_id() -> CFTypeID
[src]
fn new(source: CGEventSource) -> Result<CGEvent, ()>
[src]
fn new_keyboard_event(
source: CGEventSource,
keycode: CGKeyCode,
keydown: bool
) -> Result<CGEvent, ()>
[src]
source: CGEventSource,
keycode: CGKeyCode,
keydown: bool
) -> Result<CGEvent, ()>
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, ()>
fn post(&self, tap_location: CGEventTapLocation)
[src]
fn location(&self) -> CGPoint
[src]
fn set_flags(&self, flags: CGEventFlags)
[src]
fn get_flags(&self) -> CGEventFlags
[src]
fn set_type(&self, event_type: CGEventType)
[src]
fn get_type(&self) -> CGEventType
[src]
fn set_string_from_utf16_unchecked(&self, buf: &[u16])
[src]
fn set_string(&self, string: &str)
[src]
fn get_integer_value_field(&self, field: CGEventField) -> i64
[src]
fn set_integer_value_field(&self, field: CGEventField, value: i64)
[src]
fn get_double_value_field(&self, field: CGEventField) -> f64
[src]
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.