Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
SkSGNode.h File Reference
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/private/base/SkAssert.h"
#include <cstdint>
#include <vector>

Go to the source code of this file.

Classes

class  sksg::Node
 

Namespaces

namespace  sksg
 

Macros

#define SG_ATTRIBUTE(attr_name, attr_type, attr_container)
 
#define SG_MAPPED_ATTRIBUTE(attr_name, attr_type, attr_container)
 

Macro Definition Documentation

◆ SG_ATTRIBUTE

#define SG_ATTRIBUTE (   attr_name,
  attr_type,
  attr_container 
)
Value:
const attr_type& get##attr_name() const { return attr_container; } \
void set##attr_name(const attr_type& v) { \
if (attr_container == v) return; \
attr_container = v; \
this->invalidate(); \
} \
void set##attr_name(attr_type&& v) { \
if (attr_container == v) return; \
attr_container = std::move(v); \
this->invalidate(); \
}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not set
Definition switches.h:76

Definition at line 100 of file SkSGNode.h.

101 { return attr_container; } \
102 void set##attr_name(const attr_type& v) { \
103 if (attr_container == v) return; \
104 attr_container = v; \
105 this->invalidate(); \
106 } \
107 void set##attr_name(attr_type&& v) { \
108 if (attr_container == v) return; \
109 attr_container = std::move(v); \
110 this->invalidate(); \
111 }

◆ SG_MAPPED_ATTRIBUTE

#define SG_MAPPED_ATTRIBUTE (   attr_name,
  attr_type,
  attr_container 
)
Value:
attr_type get##attr_name() const { return attr_container.get##attr_name(); } \
void set##attr_name(const attr_type& v) { \
if (attr_container.get##attr_name() == v) return; \
attr_container.set##attr_name(v); \
this->invalidate(); \
} \
void set##attr_name(attr_type&& v) { \
if (attr_container.get##attr_name() == v) return; \
attr_container.set##attr_name(std::move(v)); \
this->invalidate(); \
}

Definition at line 113 of file SkSGNode.h.

114 { return attr_container.get##attr_name(); } \
115 void set##attr_name(const attr_type& v) { \
116 if (attr_container.get##attr_name() == v) return; \
117 attr_container.set##attr_name(v); \
118 this->invalidate(); \
119 } \
120 void set##attr_name(attr_type&& v) { \
121 if (attr_container.get##attr_name() == v) return; \
122 attr_container.set##attr_name(std::move(v)); \
123 this->invalidate(); \
124 }