class MouseInputReport
Defined at line 2369 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
`MouseReport` gives the relative movement of the mouse and currently
pressed buttons. Relative means the movement seen between the previous
report and this report. The client is responsible for tracking this and
converting it to absolute movement.
At least one of the fields below must be present.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
MouseInputReport & set_movement_x (int64_t _value)
MouseInputReport & set_movement_y (int64_t _value)
MouseInputReport & set_scroll_v (int64_t _value)
MouseInputReport & set_scroll_h (int64_t _value)
MouseInputReport & set_pressed_buttons (::std::vector<uint8_t> _value)
MouseInputReport & set_position_x (int64_t _value)
MouseInputReport & set_position_y (int64_t _value)
void MouseInputReport ()
void MouseInputReport (MouseInputReport && other)
void ~MouseInputReport ()
MouseInputReport & operator= (MouseInputReport && other)
::std::unique_ptr<MouseInputReport> New ()
void Encode (::fidl::Encoder *_encoder,size_t_offset,std::optional< ::fidl::HandleInformation>maybe_handle_info)
void Decode (::fidl::Decoder *_decoder,MouseInputReport *_value,size_t_offset)
zx_status_t Clone (MouseInputReport * _result)
const int64_t & movement_x ()
Relative X positional displacement.
Optional. Present iff the mouse reports relative X movement.
Must not co-exist with `position_x` and `position_y`.
Defined at line 2379 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_movement_x ()
Defined at line 2383 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
int64_t * mutable_movement_x ()
Relative X positional displacement.
Optional. Present iff the mouse reports relative X movement.
Must not co-exist with `position_x` and `position_y`.
Defined at line 2391 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_movement_x ()
Defined at line 2399 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const int64_t & movement_y ()
Relative Y positional displacement.
Optional. Present iff the mouse reports relative Y movement.
Must not co-exist with `position_x` and `position_y`.
Defined at line 2411 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_movement_y ()
Defined at line 2415 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
int64_t * mutable_movement_y ()
Relative Y positional displacement.
Optional. Present iff the mouse reports relative Y movement.
Must not co-exist with `position_x` and `position_y`.
Defined at line 2423 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_movement_y ()
Defined at line 2431 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const int64_t & scroll_v ()
Relative vertical scrolling displacement.
Optional. Present iff the mouse reports relative vertical scroll.
Defined at line 2442 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_scroll_v ()
Defined at line 2446 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
int64_t * mutable_scroll_v ()
Relative vertical scrolling displacement.
Optional. Present iff the mouse reports relative vertical scroll.
Defined at line 2453 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_scroll_v ()
Defined at line 2461 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const int64_t & scroll_h ()
Relative horizontal scrolling displacement.
Optional. Present iff the mouse reports relative horizontal scroll.
Defined at line 2472 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_scroll_h ()
Defined at line 2476 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
int64_t * mutable_scroll_h ()
Relative horizontal scrolling displacement.
Optional. Present iff the mouse reports relative horizontal scroll.
Defined at line 2483 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_scroll_h ()
Defined at line 2491 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const ::std::vector<uint8_t> & pressed_buttons ()
A list of currently pressed buttons.
Optional. Empty iff no button is pressed. Present iff the mouse reports
button state.
Defined at line 2503 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_pressed_buttons ()
Defined at line 2507 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
::std::vector<uint8_t> * mutable_pressed_buttons ()
A list of currently pressed buttons.
Optional. Empty iff no button is pressed. Present iff the mouse reports
button state.
Defined at line 2515 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_pressed_buttons ()
Defined at line 2523 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const int64_t & position_x ()
The position of X.
The main use of position is from virtual mice like over VNC.
Optional. Present iff the mouse reports absolute X position.
Must not co-exist with `movement_x` and `movement_y`.
Defined at line 2536 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_position_x ()
Defined at line 2540 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
int64_t * mutable_position_x ()
The position of X.
The main use of position is from virtual mice like over VNC.
Optional. Present iff the mouse reports absolute X position.
Must not co-exist with `movement_x` and `movement_y`.
Defined at line 2549 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_position_x ()
Defined at line 2557 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const int64_t & position_y ()
The position of Y.
The main use of position is from virtual mice like over VNC.
Optional. Present iff the mouse reports absolute Y position.
Must not co-exist with `movement_x` and `movement_y`.
Defined at line 2570 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_position_y ()
Defined at line 2574 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
int64_t * mutable_position_y ()
The position of Y.
The main use of position is from virtual mice like over VNC.
Optional. Present iff the mouse reports absolute Y position.
Must not co-exist with `movement_x` and `movement_y`.
Defined at line 2583 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_position_y ()
Defined at line 2591 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h