Flutter Engine
flutter::PointerDataPacket Class Reference

#include <pointer_data_packet.h>

Public Member Functions

 PointerDataPacket (size_t count)
 
 PointerDataPacket (uint8_t *data, size_t num_bytes)
 
 ~PointerDataPacket ()
 
void SetPointerData (size_t i, const PointerData &data)
 
const std::vector< uint8_t > & data () const
 

Detailed Description

Definition at line 16 of file pointer_data_packet.h.

Constructor & Destructor Documentation

◆ PointerDataPacket() [1/2]

flutter::PointerDataPacket::PointerDataPacket ( size_t  count)
explicit

Definition at line 11 of file pointer_data_packet.cc.

12  : data_(count * sizeof(PointerData)) {}

◆ PointerDataPacket() [2/2]

flutter::PointerDataPacket::PointerDataPacket ( uint8_t *  data,
size_t  num_bytes 
)

Definition at line 14 of file pointer_data_packet.cc.

References ~PointerDataPacket().

15  : data_(data, data + num_bytes) {}
const std::vector< uint8_t > & data() const

◆ ~PointerDataPacket()

flutter::PointerDataPacket::~PointerDataPacket ( )
default

Referenced by PointerDataPacket().

Member Function Documentation

◆ data()

const std::vector<uint8_t>& flutter::PointerDataPacket::data ( ) const
inline

Definition at line 23 of file pointer_data_packet.h.

Referenced by flutter::Window::DispatchPointerDataPacket().

23 { return data_; }

◆ SetPointerData()

void flutter::PointerDataPacket::SetPointerData ( size_t  i,
const PointerData data 
)

Definition at line 19 of file pointer_data_packet.cc.

19  {
20  memcpy(&data_[i * sizeof(PointerData)], &data, sizeof(PointerData));
21 }
const std::vector< uint8_t > & data() const

The documentation for this class was generated from the following files: