Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
14namespace flutter {
15
17 public:
18 explicit PointerDataPacket(size_t count);
19 PointerDataPacket(uint8_t* data, size_t num_bytes);
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
31};
32
33} // namespace flutter
34
35#endif // FLUTTER_LIB_UI_WINDOW_POINTER_DATA_PACKET_H_
int count
PointerData GetPointerData(size_t i) const
const std::vector< uint8_t > & data() const
void SetPointerData(size_t i, const PointerData &data)
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27