Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
skia.AutoTArray_SynthProvider Class Reference

Public Member Functions

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

Public Attributes

 valobj
 
 dataType
 
 fCount
 
 fValue
 
 dataSize
 

Detailed Description

Definition at line 86 of file skia.py.

Constructor & Destructor Documentation

◆ __init__()

skia.AutoTArray_SynthProvider.__init__ (   self,
  valobj,
  dict 
)

Definition at line 88 of file skia.py.

88 def __init__(self, valobj, dict):
89 self.valobj = valobj
90

Member Function Documentation

◆ get_child_at_index()

skia.AutoTArray_SynthProvider.get_child_at_index (   self,
  index 
)

Definition at line 106 of file skia.py.

106 def get_child_at_index(self, index):
107 if index < 0:
108 return None
109 if index >= self.num_children():
110 return None
111
112 try:
113 offset = index * self.dataSize
114 return self.fValue.CreateChildAtOffset('[' + str(index) + ']',
115 offset, self.dataType)
116 except:
117 return None
118

◆ get_child_index()

skia.AutoTArray_SynthProvider.get_child_index (   self,
  name 
)

Definition at line 100 of file skia.py.

100 def get_child_index(self, name):
101 try:
102 return int(name.lstrip('[').rstrip(']'))
103 except:
104 return -1
105
Type::kYUV Type::kRGBA() int(0.7 *637)

◆ has_children()

skia.AutoTArray_SynthProvider.has_children (   self)

Definition at line 131 of file skia.py.

131 def has_children(self):
132 return True
133
134

◆ num_children()

skia.AutoTArray_SynthProvider.num_children (   self)

Definition at line 91 of file skia.py.

91 def num_children(self):
92 try:
93 count = self.fCount.GetValueAsSigned(0)
94 count = max(count, 0)
95 count = min(count, 10000)
96 return count
97 except:
98 return 0
99
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()

skia.AutoTArray_SynthProvider.update (   self)

Definition at line 119 of file skia.py.

119 def update(self):
120 try:
121 self.fCount = self.valobj.GetChildMemberWithName('fCount')
122 fArray = self.valobj.GetChildMemberWithName('fArray')
123 # These lookups rely on implementation details of unique_ptr and __compressed_pair.
124 ptr = fArray.GetChildMemberWithName('__ptr_')
125 self.fValue = ptr.GetChildMemberWithName('__value_')
126 self.dataType = self.fValue.GetType().GetPointeeType()
127 self.dataSize = self.dataType.GetByteSize()
128 except:
129 pass
130

Member Data Documentation

◆ dataSize

skia.AutoTArray_SynthProvider.dataSize

Definition at line 127 of file skia.py.

◆ dataType

skia.AutoTArray_SynthProvider.dataType

Definition at line 115 of file skia.py.

◆ fCount

skia.AutoTArray_SynthProvider.fCount

Definition at line 121 of file skia.py.

◆ fValue

skia.AutoTArray_SynthProvider.fValue

Definition at line 125 of file skia.py.

◆ valobj

skia.AutoTArray_SynthProvider.valobj

Definition at line 89 of file skia.py.


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