Flutter Engine
 
Loading...
Searching...
No Matches
paint.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_PAINTING_PAINT_H_
6#define FLUTTER_LIB_UI_PAINTING_PAINT_H_
7
10#include "third_party/dart/runtime/include/dart_api.h"
11
12namespace flutter {
13
14class Paint {
15 public:
16 Paint(Dart_Handle paint_objects, Dart_Handle paint_data);
17
18 const DlPaint* paint(DlPaint& paint,
19 const DisplayListAttributeFlags& flags,
20 DlTileMode tile_mode) const;
21
22 bool isNull() const { return Dart_IsNull(paint_data_); }
23 bool isNotNull() const { return !Dart_IsNull(paint_data_); }
24
25 private:
26 Dart_Handle paint_objects_;
27 Dart_Handle paint_data_;
28};
29
30} // namespace flutter
31
32#endif // FLUTTER_LIB_UI_PAINTING_PAINT_H_
bool isNotNull() const
Definition paint.h:23
const DlPaint * paint(DlPaint &paint, const DisplayListAttributeFlags &flags, DlTileMode tile_mode) const
Definition paint.cc:85
bool isNull() const
Definition paint.h:22