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
8
#include "
flutter/display_list/display_list.h
"
9
#include "
flutter/display_list/dl_op_flags.h
"
10
#include "third_party/dart/runtime/include/dart_api.h"
11
12
namespace
flutter
{
13
14
class
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_
flutter::DisplayListAttributeFlags
Definition
dl_op_flags.h:163
flutter::DlPaint
Definition
dl_paint.h:46
flutter::Paint::isNotNull
bool isNotNull() const
Definition
paint.h:23
flutter::Paint::paint
const DlPaint * paint(DlPaint &paint, const DisplayListAttributeFlags &flags, DlTileMode tile_mode) const
Definition
paint.cc:85
flutter::Paint::isNull
bool isNull() const
Definition
paint.h:22
display_list.h
dl_op_flags.h
flutter
Definition
asset_manager.cc:10
flutter::DlTileMode
DlTileMode
Definition
dl_tile_mode.h:13
impeller::Paint
Definition
paint.h:27
lib
ui
painting
paint.h
Generated on Thu Nov 6 2025 16:11:24 for Flutter Engine by
1.9.8