Flutter Engine
The Flutter Engine
lib
ui
window
pointer_data_packet.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef FLUTTER_LIB_UI_WINDOW_POINTER_DATA_PACKET_H_
6
#define FLUTTER_LIB_UI_WINDOW_POINTER_DATA_PACKET_H_
7
8
#include <cstring>
9
#include <vector>
10
11
#include "flutter/fml/macros.h"
12
#include "flutter/lib/ui/window/pointer_data.h"
13
14
namespace
flutter
{
15
16
class
PointerDataPacket
{
17
public
:
18
explicit
PointerDataPacket
(
size_t
count
);
19
PointerDataPacket
(uint8_t*
data
,
size_t
num_bytes);
20
~PointerDataPacket
();
21
22
void
SetPointerData
(
size_t
i
,
const
PointerData
&
data
);
23
PointerData
GetPointerData
(
size_t
i
)
const
;
24
size_t
GetLength
()
const
;
25
const
std::vector<uint8_t>&
data
()
const
{
return
data_; }
26
27
private
:
28
std::vector<uint8_t> data_;
29
30
FML_DISALLOW_COPY_AND_ASSIGN(
PointerDataPacket
);
31
};
32
33
}
// namespace flutter
34
35
#endif
// FLUTTER_LIB_UI_WINDOW_POINTER_DATA_PACKET_H_
count
int count
Definition:
FontMgrTest.cpp:50
flutter::PointerDataPacket
Definition:
pointer_data_packet.h:16
flutter::PointerDataPacket::GetLength
size_t GetLength() const
Definition:
pointer_data_packet.cc:32
flutter::PointerDataPacket::~PointerDataPacket
~PointerDataPacket()
flutter::PointerDataPacket::GetPointerData
PointerData GetPointerData(size_t i) const
Definition:
pointer_data_packet.cc:25
flutter::PointerDataPacket::PointerDataPacket
PointerDataPacket(size_t count)
Definition:
pointer_data_packet.cc:12
flutter::PointerDataPacket::data
const std::vector< uint8_t > & data() const
Definition:
pointer_data_packet.h:25
flutter::PointerDataPacket::SetPointerData
void SetPointerData(size_t i, const PointerData &data)
Definition:
pointer_data_packet.cc:20
i
int i
Definition:
fl_socket_accessible.cc:18
flutter
Definition:
asset_manager.cc:10
flutter::PointerData
Definition:
pointer_data.h:38
Generated on Sun Jun 23 2024 21:55:06 for Flutter Engine by
1.9.4