Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
skia.SkSpan_SynthProvider Class Reference

Public Member Functions

def __init__ (self, valobj, dict)
 
def num_children (self)
 
def get_child_index (self, name)
 
def get_child_at_index (self, index)
 
def update (self)
 
def has_children (self)
 

Public Attributes

 valobj
 
 fPtr
 
 fSize
 
 dataType
 
 dataSize
 

Detailed Description

Definition at line 135 of file skia.py.

Constructor & Destructor Documentation

◆ __init__()

def skia.SkSpan_SynthProvider.__init__ (   self,
  valobj,
  dict 
)

Definition at line 137 of file skia.py.

137 def __init__(self, valobj, dict):
138 self.valobj = valobj
139

Member Function Documentation

◆ get_child_at_index()

def skia.SkSpan_SynthProvider.get_child_at_index (   self,
  index 
)

Definition at line 155 of file skia.py.

155 def get_child_at_index(self, index):
156 if index < 0:
157 return None
158 if index >= self.num_children():
159 return None
160
161 try:
162 offset = index * self.dataSize
163 return self.fPtr.CreateChildAtOffset('[' + str(index) + ']',
164 offset, self.dataType)
165 except:
166 return None
167

◆ get_child_index()

def skia.SkSpan_SynthProvider.get_child_index (   self,
  name 
)

Definition at line 149 of file skia.py.

149 def get_child_index(self, name):
150 try:
151 return int(name.lstrip('[').rstrip(']'))
152 except:
153 return -1
154

◆ has_children()

def skia.SkSpan_SynthProvider.has_children (   self)

Definition at line 177 of file skia.py.

177 def has_children(self):
178 return True
179
180
181

◆ num_children()

def skia.SkSpan_SynthProvider.num_children (   self)

Definition at line 140 of file skia.py.

140 def num_children(self):
141 try:
142 count = self.fSize.GetValueAsSigned(0)
143 count = max(count, 0)
144 count = min(count, 10000)
145 return count
146 except:
147 return 0
148
static float max(float r, float g, float b)
Definition: hsl.cpp:49
static float min(float r, float g, float b)
Definition: hsl.cpp:48

◆ update()

def skia.SkSpan_SynthProvider.update (   self)

Definition at line 168 of file skia.py.

168 def update(self):
169 try:
170 self.fPtr = self.valobj.GetChildMemberWithName('fPtr')
171 self.fSize = self.valobj.GetChildMemberWithName('fSize')
172 self.dataType = self.fPtr.GetType().GetPointeeType()
173 self.dataSize = self.dataType.GetByteSize()
174 except:
175 pass
176
static Dart_TypedData_Type GetType(intptr_t class_id)
Definition: update.py:1

Member Data Documentation

◆ dataSize

skia.SkSpan_SynthProvider.dataSize

Definition at line 173 of file skia.py.

◆ dataType

skia.SkSpan_SynthProvider.dataType

Definition at line 172 of file skia.py.

◆ fPtr

skia.SkSpan_SynthProvider.fPtr

Definition at line 170 of file skia.py.

◆ fSize

skia.SkSpan_SynthProvider.fSize

Definition at line 171 of file skia.py.

◆ valobj

skia.SkSpan_SynthProvider.valobj

Definition at line 138 of file skia.py.


The documentation for this class was generated from the following file: