documumentation_examples_map.txt 85 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107
  1. This file contains a mapping from where these documumentation examples
  2. should be inserted into the headers.
  3. ###########################################################################
  4. [AutoCanvasRestore_SkCanvas_star]
  5. SkAutoCanvasRestore
  6. SkAutoCanvasRestore(SkCanvas* canvas, bool doSave);
  7. [AutoCanvasRestore_restore]
  8. SkAutoCanvasRestore
  9. void restore();
  10. [Bitmap_ComputeIsOpaque]
  11. SkBitmap
  12. static bool ComputeIsOpaque(const SkBitmap& bm);
  13. [Bitmap_empty_constructor]
  14. SkBitmap
  15. SkBitmap();
  16. [Bitmap_move_SkBitmap]
  17. SkBitmap
  18. SkBitmap(SkBitmap&& src);
  19. [Bitmap_copy_const_SkBitmap]
  20. SkBitmap
  21. SkBitmap(const SkBitmap& src);
  22. [Bitmap_allocN32Pixels]
  23. SkBitmap
  24. void allocN32Pixels(int width, int height, bool isOpaque = false);
  25. [Bitmap_HeapAllocator_allocPixelRef]
  26. SkBitmap
  27. bool allocPixelRef(SkBitmap* bitmap) override;
  28. [Bitmap_allocPixels_3]
  29. SkBitmap
  30. void allocPixels();
  31. [Bitmap_allocPixels_4]
  32. SkBitmap
  33. void allocPixels(Allocator* allocator);
  34. [Bitmap_allocPixels_2]
  35. SkBitmap
  36. void allocPixels(const SkImageInfo& info);
  37. [Bitmap_allocPixels]
  38. SkBitmap
  39. void allocPixels(const SkImageInfo& info, size_t rowBytes);
  40. [Bitmap_allocPixelsFlags]
  41. SkBitmap
  42. void allocPixelsFlags(const SkImageInfo& info, uint32_t flags);
  43. [Pixmap_alphaType]
  44. SkBitmap
  45. SkAlphaType alphaType() const;
  46. [Bitmap_bounds]
  47. SkBitmap
  48. SkIRect bounds() const;
  49. [Bitmap_bytesPerPixel]
  50. SkBitmap
  51. int bytesPerPixel() const;
  52. [Bitmap_colorSpace]
  53. SkBitmap
  54. SkColorSpace* colorSpace() const;
  55. [Bitmap_colorType]
  56. SkBitmap
  57. SkColorType colorType() const;
  58. [Bitmap_computeByteSize]
  59. SkBitmap
  60. size_t computeByteSize() const;
  61. [Bitmap_dimensions]
  62. SkBitmap
  63. SkISize dimensions() const;
  64. [Bitmap_drawsNothing]
  65. SkBitmap
  66. bool drawsNothing() const;
  67. [Bitmap_empty]
  68. SkBitmap
  69. bool empty() const;
  70. [Bitmap_erase]
  71. SkBitmap
  72. void erase(SkColor c, const SkIRect& area) const;
  73. [Bitmap_eraseARGB]
  74. SkBitmap
  75. void eraseARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) const;
  76. [Bitmap_eraseColor]
  77. SkBitmap
  78. void eraseColor(SkColor c) const;
  79. [Bitmap_extractAlpha]
  80. SkBitmap
  81. bool extractAlpha(SkBitmap* dst) const;
  82. [Bitmap_extractAlpha_3]
  83. SkBitmap
  84. bool extractAlpha(SkBitmap* dst, const SkPaint* paint, Allocator* allocator, SkIPoint* offset) const;
  85. [Bitmap_extractAlpha_2]
  86. SkBitmap
  87. bool extractAlpha(SkBitmap* dst, const SkPaint* paint, SkIPoint* offset) const;
  88. [Bitmap_extractSubset]
  89. SkBitmap
  90. bool extractSubset(SkBitmap* dst, const SkIRect& subset) const;
  91. [Bitmap_getAddr]
  92. SkBitmap
  93. void* getAddr(int x, int y) const;
  94. [Bitmap_getAddr16]
  95. SkBitmap
  96. uint16_t* getAddr16(int x, int y) const;
  97. [Bitmap_getAddr32]
  98. SkBitmap
  99. uint32_t* getAddr32(int x, int y) const;
  100. [Bitmap_getAddr8]
  101. SkBitmap
  102. uint8_t* getAddr8(int x, int y) const;
  103. [Bitmap_getBounds_2]
  104. SkBitmap
  105. void getBounds(SkIRect* bounds) const;
  106. [Bitmap_getBounds]
  107. SkBitmap
  108. void getBounds(SkRect* bounds) const;
  109. [Bitmap_getColor]
  110. SkBitmap
  111. SkColor getColor(int x, int y) const;
  112. [Bitmap_getGenerationID]
  113. SkBitmap
  114. uint32_t getGenerationID() const;
  115. [Bitmap_getPixels]
  116. SkBitmap
  117. void* getPixels() const;
  118. [Bitmap_getSubset]
  119. SkBitmap
  120. SkIRect getSubset() const;
  121. [Bitmap_height]
  122. SkBitmap
  123. int height() const;
  124. [Bitmap_info]
  125. SkBitmap
  126. const SkImageInfo& info() const;
  127. [Bitmap_installPixels_2]
  128. SkBitmap
  129. bool installPixels(const SkImageInfo& info, void* pixels, size_t rowBytes);
  130. [Bitmap_installPixels]
  131. SkBitmap
  132. bool installPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, void (*releaseProc) (void* addr, void* context) , void* context);
  133. [Bitmap_installPixels_3]
  134. SkBitmap
  135. bool installPixels(const SkPixmap& pixmap);
  136. [Bitmap_isImmutable]
  137. SkBitmap
  138. bool isImmutable() const;
  139. [Bitmap_isNull]
  140. SkBitmap
  141. bool isNull() const;
  142. [Bitmap_isOpaque]
  143. SkBitmap
  144. bool isOpaque() const;
  145. [Bitmap_isVolatile]
  146. SkBitmap
  147. bool isVolatile() const;
  148. [Bitmap_notifyPixelsChanged]
  149. SkBitmap
  150. void notifyPixelsChanged() const;
  151. [Bitmap_move_operator]
  152. SkBitmap
  153. SkBitmap& operator=(SkBitmap&& src);
  154. [Bitmap_copy_operator]
  155. SkBitmap
  156. SkBitmap& operator=(const SkBitmap& src);
  157. [Bitmap_peekPixels]
  158. SkBitmap
  159. bool peekPixels(SkPixmap* pixmap) const;
  160. [Bitmap_pixelRef]
  161. SkBitmap
  162. SkPixelRef* pixelRef() const;
  163. [Bitmap_pixelRefOrigin]
  164. SkBitmap
  165. SkIPoint pixelRefOrigin() const;
  166. [Bitmap_pixmap]
  167. SkBitmap
  168. const SkPixmap& pixmap() const;
  169. [Bitmap_readPixels]
  170. SkBitmap
  171. bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX, int srcY) const;
  172. [Bitmap_readPixels_3]
  173. SkBitmap
  174. bool readPixels(const SkPixmap& dst) const;
  175. [Bitmap_readPixels_2]
  176. SkBitmap
  177. bool readPixels(const SkPixmap& dst, int srcX, int srcY) const;
  178. [Bitmap_readyToDraw]
  179. SkBitmap
  180. bool readyToDraw() const;
  181. [Bitmap_refColorSpace]
  182. SkBitmap
  183. sk_sp<SkColorSpace> refColorSpace() const;
  184. [Bitmap_reset]
  185. SkBitmap
  186. void reset();
  187. [Bitmap_rowBytes]
  188. SkBitmap
  189. size_t rowBytes() const;
  190. [Bitmap_rowBytesAsPixels]
  191. SkBitmap
  192. int rowBytesAsPixels() const;
  193. [Bitmap_setAlphaType]
  194. SkBitmap
  195. bool setAlphaType(SkAlphaType alphaType);
  196. [Bitmap_setImmutable]
  197. SkBitmap
  198. void setImmutable();
  199. [Bitmap_setInfo]
  200. SkBitmap
  201. bool setInfo(const SkImageInfo& imageInfo, size_t rowBytes = 0);
  202. [Bitmap_setIsVolatile]
  203. SkBitmap
  204. void setIsVolatile(bool isVolatile);
  205. [Bitmap_setPixelRef]
  206. SkBitmap
  207. void setPixelRef(sk_sp<SkPixelRef> pixelRef, int dx, int dy);
  208. [Bitmap_setPixels]
  209. SkBitmap
  210. void setPixels(void* pixels);
  211. [Bitmap_shiftPerPixel]
  212. SkBitmap
  213. int shiftPerPixel() const;
  214. [Bitmap_swap]
  215. SkBitmap
  216. void swap(SkBitmap& other);
  217. [Bitmap_tryAllocN32Pixels]
  218. SkBitmap
  219. bool tryAllocN32Pixels(int width, int height, bool isOpaque = false);
  220. [Bitmap_tryAllocPixels_3]
  221. SkBitmap
  222. bool tryAllocPixels();
  223. [Bitmap_tryAllocPixels_4]
  224. SkBitmap
  225. bool tryAllocPixels(Allocator* allocator);
  226. [Bitmap_tryAllocPixels_2]
  227. SkBitmap
  228. bool tryAllocPixels(const SkImageInfo& info);
  229. [Bitmap_tryAllocPixels]
  230. SkBitmap
  231. bool tryAllocPixels(const SkImageInfo& info, size_t rowBytes);
  232. [Bitmap_tryAllocPixelsFlags]
  233. SkBitmap
  234. bool tryAllocPixelsFlags(const SkImageInfo& info, uint32_t flags);
  235. [Bitmap_width]
  236. SkBitmap
  237. int width() const;
  238. [Bitmap_writePixels_2]
  239. SkBitmap
  240. bool writePixels(const SkPixmap& src);
  241. [Bitmap_writePixels]
  242. SkBitmap
  243. bool writePixels(const SkPixmap& src, int dstX, int dstY);
  244. [BlendMode_Name]
  245. SkBlendMode
  246. const char* SkBlendMode_Name(SkBlendMode blendMode);
  247. [Clear]
  248. [Color]
  249. [Color_Burn]
  250. [Color_Dodge]
  251. [Darken]
  252. [Difference]
  253. [Dst]
  254. [Dst_Atop]
  255. [Dst_In]
  256. [Dst_Out]
  257. [Dst_Over]
  258. [Exclusion]
  259. [Hard_Light]
  260. [Hue]
  261. [Lighten]
  262. [Luminosity]
  263. [Modulate]
  264. [Multiply]
  265. [Overlay]
  266. [Plus]
  267. [Saturation]
  268. [Screen]
  269. [Soft_Light]
  270. [Src]
  271. [Src_Atop]
  272. [Src_In]
  273. [Src_Out]
  274. [Src_Over]
  275. [Xor]
  276. SkBlendMode
  277. enum class SkBlendMode { kClear, kSrc, kDst, kSrcOver, kDstOver, kSrcIn, kDstIn, kSrcOut, kDstOut, kSrcATop, kDstATop, kXor, kPlus, kModulate, kScreen, kLastCoeffMode = kScreen, kOverlay, kDarken, kLighten, kColorDodge, kColorBurn, kHardLight, kSoftLight, kDifference, kExclusion, kMultiply, kLastSeparableMode = kMultiply, kHue, kSaturation, kColor, kLuminosity, kLastMode = kLuminosity, }; const char* SkBlendMode_Name(SkBlendMode blendMode);
  278. [Canvas_MakeRasterDirect]
  279. SkCanvas
  280. static std::unique_ptr<SkCanvas> MakeRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes, const SkSurfaceProps* props = nullptr);
  281. [Canvas_MakeRasterDirectN32]
  282. SkCanvas
  283. static std::unique_ptr<SkCanvas> MakeRasterDirectN32(int width, int height, SkPMColor* pixels, size_t rowBytes);
  284. [Canvas_SaveLayerRec]
  285. SkCanvas
  286. struct SaveLayerRec { SaveLayerRec(); SaveLayerRec(const SkRect* bounds, const SkPaint* paint, SaveLayerFlags saveLayerFlags = 0); SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop, SaveLayerFlags saveLayerFlags); const SkRect* fBounds = nullptr; const SkPaint* fPaint = nullptr; const SkImageFilter* fBackdrop = nullptr; const SkImage* fClipMask = nullptr; const SkMatrix* fClipMatrix = nullptr; SaveLayerFlags fSaveLayerFlags = 0; };
  287. [Canvas_SaveLayerRec_SaveLayerRec]
  288. SkCanvas
  289. SaveLayerRec();
  290. [Canvas_SaveLayerRec_const_SkRect_star_const_SkPaint_star]
  291. SkCanvas
  292. SaveLayerRec(const SkRect* bounds, const SkPaint* paint, SaveLayerFlags saveLayerFlags = 0);
  293. [Canvas_SaveLayerRec_const_SkRect_star_const_SkPaint_star_const_SkImageFilter_star]
  294. SkCanvas
  295. SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop, SaveLayerFlags saveLayerFlags);
  296. [Canvas_copy_const_SkBitmap]
  297. SkCanvas
  298. explicit SkCanvas(const SkBitmap& bitmap);
  299. [Canvas_empty_constructor]
  300. SkCanvas
  301. SkCanvas();
  302. [Canvas_const_SkBitmap_const_SkSurfaceProps]
  303. SkCanvas
  304. SkCanvas(const SkBitmap& bitmap, const SkSurfaceProps& props);
  305. [Canvas_int_int_const_SkSurfaceProps_star]
  306. SkCanvas
  307. SkCanvas(int width, int height, const SkSurfaceProps* props = nullptr);
  308. [Canvas_accessTopLayerPixels_a]
  309. [Canvas_accessTopLayerPixels_b]
  310. SkCanvas
  311. void* accessTopLayerPixels(SkImageInfo* info, size_t* rowBytes, SkIPoint* origin = nullptr);
  312. [Canvas_accessTopRasterHandle]
  313. SkCanvas
  314. SkRasterHandleAllocator::Handle accessTopRasterHandle() const;
  315. [Canvas_clear]
  316. SkCanvas
  317. void clear(SkColor color);
  318. [Canvas_clipPath_2]
  319. SkCanvas
  320. void clipPath(const SkPath& path, SkClipOp op);
  321. [Canvas_clipPath]
  322. SkCanvas
  323. void clipPath(const SkPath& path, SkClipOp op, bool doAntiAlias);
  324. [Canvas_clipPath_3]
  325. SkCanvas
  326. void clipPath(const SkPath& path, bool doAntiAlias = false);
  327. [Canvas_clipRRect_2]
  328. SkCanvas
  329. void clipRRect(const SkRRect& rrect, SkClipOp op);
  330. [Canvas_clipRRect]
  331. SkCanvas
  332. void clipRRect(const SkRRect& rrect, SkClipOp op, bool doAntiAlias);
  333. [Canvas_clipRRect_3]
  334. SkCanvas
  335. void clipRRect(const SkRRect& rrect, bool doAntiAlias = false);
  336. [Canvas_clipRect_2]
  337. SkCanvas
  338. void clipRect(const SkRect& rect, SkClipOp op);
  339. [Canvas_clipRect]
  340. SkCanvas
  341. void clipRect(const SkRect& rect, SkClipOp op, bool doAntiAlias);
  342. [Canvas_clipRect_3]
  343. SkCanvas
  344. void clipRect(const SkRect& rect, bool doAntiAlias = false);
  345. [Canvas_clipRegion]
  346. SkCanvas
  347. void clipRegion(const SkRegion& deviceRgn, SkClipOp op = SkClipOp::kIntersect);
  348. [Canvas_concat]
  349. SkCanvas
  350. void concat(const SkMatrix& matrix);
  351. [Canvas_drawAnnotation_2]
  352. SkCanvas
  353. void drawAnnotation(const SkRect& rect, const char key[], SkData* value);
  354. [Canvas_drawAnnotation_2]
  355. SkCanvas
  356. void drawAnnotation(const SkRect& rect, const char key[], const sk_sp<SkData>& value);
  357. [Canvas_drawArc_a]
  358. [Canvas_drawArc_b]
  359. SkCanvas
  360. void drawArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const SkPaint& paint);
  361. [Canvas_drawAtlas]
  362. SkCanvas
  363. void drawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect tex[], const SkColor colors[], int count, SkBlendMode mode, const SkRect* cullRect, const SkPaint* paint);
  364. [Canvas_drawAtlas_3]
  365. SkCanvas
  366. void drawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect tex[], int count, const SkRect* cullRect, const SkPaint* paint);
  367. [Canvas_drawAtlas_2]
  368. SkCanvas
  369. void drawAtlas(const sk_sp<SkImage>& atlas, const SkRSXform xform[], const SkRect tex[], const SkColor colors[], int count, SkBlendMode mode, const SkRect* cullRect, const SkPaint* paint);
  370. [Canvas_drawAtlas_4]
  371. SkCanvas
  372. void drawAtlas(const sk_sp<SkImage>& atlas, const SkRSXform xform[], const SkRect tex[], int count, const SkRect* cullRect, const SkPaint* paint);
  373. [Canvas_drawBitmap]
  374. SkCanvas
  375. void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, const SkPaint* paint = nullptr);
  376. [Canvas_drawBitmapLattice]
  377. SkCanvas
  378. void drawBitmapLattice(const SkBitmap& bitmap, const Lattice& lattice, const SkRect& dst, const SkPaint* paint = nullptr);
  379. [Canvas_drawBitmapNine]
  380. SkCanvas
  381. void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, const SkRect& dst, const SkPaint* paint = nullptr);
  382. [Canvas_drawBitmapRect_2]
  383. SkCanvas
  384. void drawBitmapRect(const SkBitmap& bitmap, const SkIRect& isrc, const SkRect& dst, const SkPaint* paint, SrcRectConstraint constraint = kStrict_SrcRectConstraint);
  385. [Canvas_drawBitmapRect_3]
  386. SkCanvas
  387. void drawBitmapRect(const SkBitmap& bitmap, const SkRect& dst, const SkPaint* paint, SrcRectConstraint constraint = kStrict_SrcRectConstraint);
  388. [Canvas_drawBitmapRect]
  389. SkCanvas
  390. void drawBitmapRect(const SkBitmap& bitmap, const SkRect& src, const SkRect& dst, const SkPaint* paint, SrcRectConstraint constraint = kStrict_SrcRectConstraint);
  391. [Canvas_drawCircle_2]
  392. SkCanvas
  393. void drawCircle(SkPoint center, SkScalar radius, const SkPaint& paint);
  394. [Canvas_drawCircle]
  395. SkCanvas
  396. void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint& paint);
  397. [Canvas_drawColor]
  398. SkCanvas
  399. void drawColor(SkColor color, SkBlendMode mode = SkBlendMode::kSrcOver);
  400. [Canvas_drawDRRect_a]
  401. [Canvas_drawDRRect_b]
  402. SkCanvas
  403. void drawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint);
  404. [Canvas_drawDrawable_2]
  405. SkCanvas
  406. void drawDrawable(SkDrawable* drawable, SkScalar x, SkScalar y);
  407. [Canvas_drawDrawable]
  408. SkCanvas
  409. void drawDrawable(SkDrawable* drawable, const SkMatrix* matrix = nullptr);
  410. [Canvas_drawIRect]
  411. SkCanvas
  412. void drawIRect(const SkIRect& rect, const SkPaint& paint);
  413. [Canvas_drawImage]
  414. SkCanvas
  415. void drawImage(const SkImage* image, SkScalar left, SkScalar top, const SkPaint* paint = nullptr);
  416. [Canvas_drawImage_2]
  417. SkCanvas
  418. void drawImage(const sk_sp<SkImage>& image, SkScalar left, SkScalar top, const SkPaint* paint = nullptr);
  419. [Canvas_drawImageNine]
  420. SkCanvas
  421. void drawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst, const SkPaint* paint = nullptr);
  422. [Canvas_drawImageNine]
  423. SkCanvas
  424. void drawImageNine(const SkImage* image, const SkIRect& center, const SkRect& dst, const SkPaint* paint = nullptr);
  425. [Canvas_drawImageNine_2]
  426. SkCanvas
  427. void drawImageNine(const sk_sp<SkImage>& image, const SkIRect& center, const SkRect& dst, const SkPaint* paint = nullptr);
  428. [Canvas_drawImageRect_2]
  429. SkCanvas
  430. void drawImageRect(const SkImage* image, const SkIRect& isrc, const SkRect& dst, const SkPaint* paint, SrcRectConstraint constraint = kStrict_SrcRectConstraint);
  431. [Canvas_drawImageRect_3]
  432. SkCanvas
  433. void drawImageRect(const SkImage* image, const SkRect& dst, const SkPaint* paint);
  434. [Canvas_drawImageRect]
  435. SkCanvas
  436. void drawImageRect(const SkImage* image, const SkRect& src, const SkRect& dst, const SkPaint* paint, SrcRectConstraint constraint = kStrict_SrcRectConstraint);
  437. [Canvas_drawImageRect_5]
  438. SkCanvas
  439. void drawImageRect(const sk_sp<SkImage>& image, const SkIRect& isrc, const SkRect& dst, const SkPaint* paint, SrcRectConstraint constraint = kStrict_SrcRectConstraint);
  440. [Canvas_drawImageRect_6]
  441. SkCanvas
  442. void drawImageRect(const sk_sp<SkImage>& image, const SkRect& dst, const SkPaint* paint);
  443. [Canvas_drawImageRect_4]
  444. SkCanvas
  445. void drawImageRect(const sk_sp<SkImage>& image, const SkRect& src, const SkRect& dst, const SkPaint* paint, SrcRectConstraint constraint = kStrict_SrcRectConstraint);
  446. [Canvas_drawLine_2]
  447. SkCanvas
  448. void drawLine(SkPoint p0, SkPoint p1, const SkPaint& paint);
  449. [Canvas_drawLine]
  450. SkCanvas
  451. void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint& paint);
  452. [Canvas_drawOval]
  453. SkCanvas
  454. void drawOval(const SkRect& oval, const SkPaint& paint);
  455. [Canvas_drawPaint]
  456. SkCanvas
  457. void drawPaint(const SkPaint& paint);
  458. [Canvas_drawPatch]
  459. SkCanvas
  460. void drawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkBlendMode mode, const SkPaint& paint);
  461. [Canvas_drawPatch_2_a]
  462. [Canvas_drawPatch_2_b]
  463. SkCanvas
  464. void drawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], const SkPaint& paint);
  465. [Canvas_drawPath]
  466. SkCanvas
  467. void drawPath(const SkPath& path, const SkPaint& paint);
  468. [Canvas_drawPicture_2]
  469. SkCanvas
  470. void drawPicture(const SkPicture* picture);
  471. [Canvas_drawPicture_3]
  472. SkCanvas
  473. void drawPicture(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint);
  474. [Canvas_drawPicture_2]
  475. SkCanvas
  476. void drawPicture(const sk_sp<SkPicture>& picture);
  477. [Canvas_drawPicture_4]
  478. SkCanvas
  479. void drawPicture(const sk_sp<SkPicture>& picture, const SkMatrix* matrix, const SkPaint* paint);
  480. [Canvas_drawPoint_2]
  481. SkCanvas
  482. void drawPoint(SkPoint p, const SkPaint& paint);
  483. [Canvas_drawPoint]
  484. SkCanvas
  485. void drawPoint(SkScalar x, SkScalar y, const SkPaint& paint);
  486. [Canvas_drawPoints]
  487. SkCanvas
  488. void drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint& paint);
  489. [Canvas_drawPosText]
  490. SkCanvas
  491. void drawPosText(const void* text, size_t byteLength, const SkPoint pos[], const SkPaint& paint);
  492. [Canvas_drawPosTextH]
  493. SkCanvas
  494. void drawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], SkScalar constY, const SkPaint& paint);
  495. [Canvas_drawRRect]
  496. SkCanvas
  497. void drawRRect(const SkRRect& rrect, const SkPaint& paint);
  498. [Canvas_drawRect]
  499. SkCanvas
  500. void drawRect(const SkRect& rect, const SkPaint& paint);
  501. [Canvas_drawRegion]
  502. SkCanvas
  503. void drawRegion(const SkRegion& region, const SkPaint& paint);
  504. [Canvas_drawRoundRect]
  505. SkCanvas
  506. void drawRoundRect(const SkRect& rect, SkScalar rx, SkScalar ry, const SkPaint& paint);
  507. [Canvas_drawString_2]
  508. SkCanvas
  509. void drawString(const SkString& string, SkScalar x, SkScalar y, const SkPaint& paint);
  510. [Canvas_drawString]
  511. SkCanvas
  512. void drawString(const char* string, SkScalar x, SkScalar y, const SkPaint& paint);
  513. [Canvas_drawText]
  514. SkCanvas
  515. void drawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, const SkPaint& paint);
  516. [Canvas_drawTextBlob]
  517. SkCanvas
  518. void drawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint);
  519. [Canvas_drawTextBlob_2]
  520. SkCanvas
  521. void drawTextBlob(const sk_sp<SkTextBlob>& blob, SkScalar x, SkScalar y, const SkPaint& paint);
  522. [Canvas_drawTextRSXform]
  523. SkCanvas
  524. void drawTextRSXform(const void* text, size_t byteLength, const SkRSXform xform[], const SkRect* cullRect, const SkPaint& paint);
  525. [Canvas_drawVertices]
  526. SkCanvas
  527. void drawVertices(const SkVertices* vertices, SkBlendMode mode, const SkPaint& paint);
  528. [Canvas_drawVertices_2]
  529. SkCanvas
  530. void drawVertices(const sk_sp<SkVertices>& vertices, SkBlendMode mode, const SkPaint& paint);
  531. [Canvas_PointMode]
  532. SkCanvas
  533. enum PointMode { kPoints_PointMode, kLines_PointMode, kPolygon_PointMode, };
  534. [Canvas_kInitWithPrevious_SaveLayerFlag]
  535. SkCanvas
  536. enum SaveLayerFlagsSet { kPreserveLCDText_SaveLayerFlag = 1 << 1, kInitWithPrevious_SaveLayerFlag = 1 << 2, };
  537. [Canvas_SrcRectConstraint]
  538. SkCanvas
  539. enum SrcRectConstraint { kStrict_SrcRectConstraint, kFast_SrcRectConstraint, };
  540. [Canvas_getBaseLayerSize]
  541. SkCanvas
  542. virtual SkISize getBaseLayerSize() const;
  543. [Canvas_getDeviceClipBounds]
  544. SkCanvas
  545. SkIRect getDeviceClipBounds() const;
  546. [Canvas_getDeviceClipBounds_2]
  547. SkCanvas
  548. bool getDeviceClipBounds(SkIRect* bounds) const;
  549. [Canvas_getGrContext]
  550. SkCanvas
  551. virtual GrContext* getGrContext();
  552. [Canvas_getLocalClipBounds]
  553. SkCanvas
  554. SkRect getLocalClipBounds() const;
  555. [Canvas_getLocalClipBounds_2]
  556. SkCanvas
  557. bool getLocalClipBounds(SkRect* bounds) const;
  558. [Canvas_getProps]
  559. SkCanvas
  560. bool getProps(SkSurfaceProps* props) const;
  561. [Canvas_getSaveCount]
  562. SkCanvas
  563. int getSaveCount() const;
  564. [Canvas_getTotalMatrix]
  565. [Clip]
  566. SkCanvas
  567. const SkMatrix& getTotalMatrix() const;
  568. [Canvas_imageInfo]
  569. SkCanvas
  570. SkImageInfo imageInfo() const;
  571. [Canvas_isClipEmpty]
  572. SkCanvas
  573. virtual bool isClipEmpty() const;
  574. [Canvas_isClipRect]
  575. SkCanvas
  576. virtual bool isClipRect() const;
  577. [Canvas_makeSurface]
  578. SkCanvas
  579. sk_sp<SkSurface> makeSurface(const SkImageInfo& info, const SkSurfaceProps* props = nullptr);
  580. [Canvas_peekPixels]
  581. SkCanvas
  582. bool peekPixels(SkPixmap* pixmap);
  583. [Canvas_quickReject_2]
  584. SkCanvas
  585. bool quickReject(const SkPath& path) const;
  586. [Canvas_quickReject]
  587. SkCanvas
  588. bool quickReject(const SkRect& rect) const;
  589. [Canvas_readPixels_3]
  590. SkCanvas
  591. bool readPixels(const SkBitmap& bitmap, int srcX, int srcY);
  592. [Canvas_readPixels_a]
  593. [Canvas_readPixels_b]
  594. SkCanvas
  595. bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX, int srcY);
  596. [Canvas_readPixels_2]
  597. SkCanvas
  598. bool readPixels(const SkPixmap& pixmap, int srcX, int srcY);
  599. [Canvas_resetMatrix]
  600. SkCanvas
  601. void resetMatrix();
  602. [Canvas_restore]
  603. SkCanvas
  604. void restore();
  605. [Canvas_restoreToCount]
  606. SkCanvas
  607. void restoreToCount(int saveCount);
  608. [Canvas_rotate]
  609. SkCanvas
  610. void rotate(SkScalar degrees);
  611. [Canvas_rotate_2]
  612. SkCanvas
  613. void rotate(SkScalar degrees, SkScalar px, SkScalar py);
  614. [Canvas_save]
  615. SkCanvas
  616. int save();
  617. [Canvas_saveLayer_3]
  618. SkCanvas
  619. int saveLayer(const SaveLayerRec& layerRec);
  620. [Canvas_saveLayer_2]
  621. SkCanvas
  622. int saveLayer(const SkRect& bounds, const SkPaint* paint);
  623. [Canvas_saveLayer]
  624. SkCanvas
  625. int saveLayer(const SkRect* bounds, const SkPaint* paint);
  626. [Canvas_saveLayerAlpha]
  627. SkCanvas
  628. int saveLayerAlpha(const SkRect* bounds, U8CPU alpha);
  629. [Canvas_saveLayerPreserveLCDTextRequests]
  630. SkCanvas
  631. int saveLayerPreserveLCDTextRequests(const SkRect* bounds, const SkPaint* paint);
  632. [Canvas_scale]
  633. SkCanvas
  634. void scale(SkScalar sx, SkScalar sy);
  635. [Canvas_setMatrix]
  636. SkCanvas
  637. void setMatrix(const SkMatrix& matrix);
  638. [Canvas_skew]
  639. SkCanvas
  640. void skew(SkScalar sx, SkScalar sy);
  641. [Canvas_translate]
  642. SkCanvas
  643. void translate(SkScalar dx, SkScalar dy);
  644. [Canvas_writePixels_2]
  645. [State_Stack_a]
  646. [State_Stack_b]
  647. SkCanvas
  648. bool writePixels(const SkBitmap& bitmap, int x, int y);
  649. [Canvas_writePixels]
  650. SkCanvas
  651. bool writePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes, int x, int y);
  652. [Canvas_destructor]
  653. SkCanvas
  654. virtual ~SkCanvas();
  655. [ColorGetA]
  656. SkColor
  657. #define SkColorGetA(color) (((color) >> 24) & 0xFF) color;
  658. [ColorGetB]
  659. SkColor
  660. #define SkColorGetB(color) (((color) >> 0) & 0xFF) color;
  661. [ColorGetG]
  662. SkColor
  663. #define SkColorGetG(color) (((color) >> 8) & 0xFF) color;
  664. [ColorGetR]
  665. SkColor
  666. #define SkColorGetR(color) (((color) >> 16) & 0xFF) color;
  667. [ColorSetA]
  668. SkColor
  669. static constexpr inline SkColor SkColorSetA(SkColor c, U8CPU a);
  670. [ColorSetRGB]
  671. SkColor
  672. #define SkColorSetRGB(r, g, b) SkColorSetARGB(0xFF, r, g, b) r g b;
  673. [ColorSetARGB]
  674. SkColor
  675. static constexpr inline SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b);
  676. [ColorToHSV]
  677. SkColor
  678. static void SkColorToHSV(SkColor color, SkScalar hsv[3]);
  679. [HSVToColor]
  680. SkColor
  681. SkColor SkHSVToColor(U8CPU alpha, const SkScalar hsv[3]);
  682. [HSVToColor_2]
  683. SkColor
  684. static SkColor SkHSVToColor(const SkScalar hsv[3]);
  685. [PreMultiplyARGB]
  686. SkColor
  687. SkPMColor SkPreMultiplyARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b);
  688. [PreMultiplyColor]
  689. SkColor
  690. SkPMColor SkPreMultiplyColor(SkColor c);
  691. [RGBToHSV]
  692. SkColor
  693. void SkRGBToHSV(U8CPU red, U8CPU green, U8CPU blue, SkScalar hsv[3]);
  694. [Alpha_Constants_a]
  695. [Alpha_Constants_b]
  696. SkColor
  697. constexpr SkAlpha SK_AlphaTRANSPARENT = 0x00; constexpr SkAlpha SK_AlphaOPAQUE = 0xFF;
  698. [Color_Constants_a]
  699. [Color_Constants_b]
  700. [Color_Constants_c]
  701. [Color_Constants_d]
  702. SkColor
  703. constexpr SkColor SK_ColorTRANSPARENT; constexpr SkColor SK_ColorBLACK; constexpr SkColor SK_ColorDKGRAY; constexpr SkColor SK_ColorGRAY; constexpr SkColor SK_ColorLTGRAY; constexpr SkColor SK_ColorWHITE; constexpr SkColor SK_ColorRED; constexpr SkColor SK_ColorGREEN; constexpr SkColor SK_ColorBLUE; constexpr SkColor SK_ColorYELLOW; constexpr SkColor SK_ColorCYAN; constexpr SkColor SK_ColorMAGENTA;
  704. [RGBA4f_FromColor]
  705. SkColor4f
  706. static SkRGBA4f FromColor(SkColor color);
  707. [RGBA4f_notequal1_operator]
  708. SkColor4f
  709. bool operator!=(const SkRGBA4f& other) const;
  710. [RGBA4f_equal1_operator]
  711. SkColor4f
  712. bool operator==(const SkRGBA4f& other) const;
  713. [RGBA4f_toSkColor]
  714. SkColor4f
  715. SkColor toSkColor() const;
  716. [RGBA4f_vec]
  717. SkColor4f
  718. const float* vec() const;
  719. [RGBA4f_vec_2]
  720. SkColor4f
  721. float* vec();
  722. [Font_breakText]
  723. SkFont
  724. size_t breakText(const void* text, size_t length, SkTextEncoding encoding, SkScalar maxWidth, SkScalar* measuredWidth = nullptr) const;
  725. [IPoint_Make]
  726. SkIPoint
  727. static constexpr SkIPoint Make(int32_t x, int32_t y);
  728. [IPoint_equals]
  729. SkIPoint
  730. bool equals(int32_t x, int32_t y) const;
  731. [IPoint_isZero]
  732. SkIPoint
  733. bool isZero() const;
  734. [IPoint_notequal_operator]
  735. SkIPoint
  736. bool operator!=(const SkIPoint& a, const SkIPoint& b);
  737. [IPoint_add_operator]
  738. SkIPoint
  739. SkIPoint operator+(const SkIPoint& a, const SkIVector& b);
  740. [IPoint_addto_operator]
  741. SkIPoint
  742. void operator+=(const SkIVector& v);
  743. [IPoint_minus_operator]
  744. SkIPoint
  745. SkIPoint operator-() const;
  746. [IPoint_subtract_operator]
  747. SkIPoint
  748. SkIVector operator-(const SkIPoint& a, const SkIPoint& b);
  749. [IPoint_subtractfrom_operator]
  750. SkIPoint
  751. void operator-=(const SkIVector& v);
  752. [IPoint_equal_operator]
  753. SkIPoint
  754. bool operator==(const SkIPoint& a, const SkIPoint& b);
  755. [IPoint_set]
  756. SkIPoint
  757. void set(int32_t x, int32_t y);
  758. [IPoint_x]
  759. SkIPoint
  760. int32_t x() const;
  761. [IPoint_y]
  762. SkIPoint
  763. int32_t y() const;
  764. [IRect_EmptyIRect]
  765. SkIRect
  766. static const SkIRect& EmptyIRect();
  767. [IRect_Intersects]
  768. SkIRect
  769. static bool Intersects(const SkIRect& a, const SkIRect& b);
  770. [IRect_IntersectsNoEmptyCheck]
  771. SkIRect
  772. static bool IntersectsNoEmptyCheck(const SkIRect& a, const SkIRect& b);
  773. [IRect_MakeEmpty]
  774. SkIRect
  775. static constexpr SkIRect MakeEmpty();
  776. [IRect_MakeLTRB]
  777. SkIRect
  778. static constexpr SkIRect MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b);
  779. [IRect_MakeSize]
  780. SkIRect
  781. static constexpr SkIRect MakeSize(const SkISize& size);
  782. [IRect_MakeWH]
  783. SkIRect
  784. static constexpr SkIRect MakeWH(int32_t w, int32_t h);
  785. [IRect_MakeXYWH]
  786. SkIRect
  787. static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h);
  788. [IRect_adjust]
  789. SkIRect
  790. void adjust(int32_t dL, int32_t dT, int32_t dR, int32_t dB);
  791. [IRect_bottom]
  792. SkIRect
  793. int32_t bottom() const;
  794. [IRect_contains_3]
  795. SkIRect
  796. bool contains(const SkIRect& r) const;
  797. [IRect_contains_4]
  798. SkIRect
  799. bool contains(const SkRect& r) const;
  800. [IRect_contains_2]
  801. SkIRect
  802. bool contains(int32_t left, int32_t top, int32_t right, int32_t bottom) const;
  803. [IRect_contains]
  804. SkIRect
  805. bool contains(int32_t x, int32_t y) const;
  806. [IRect_containsNoEmptyCheck_2]
  807. SkIRect
  808. bool containsNoEmptyCheck(const SkIRect& r) const;
  809. [IRect_containsNoEmptyCheck]
  810. SkIRect
  811. bool containsNoEmptyCheck(int32_t left, int32_t top, int32_t right, int32_t bottom) const;
  812. [IRect_height]
  813. SkIRect
  814. int32_t height() const;
  815. [IRect_height64]
  816. SkIRect
  817. int64_t height64() const;
  818. [IRect_inset]
  819. SkIRect
  820. void inset(int32_t dx, int32_t dy);
  821. [IRect_intersect_2]
  822. SkIRect
  823. bool intersect(const SkIRect& a, const SkIRect& b);
  824. [IRect_intersect]
  825. SkIRect
  826. bool intersect(const SkIRect& r);
  827. [IRect_intersect_3]
  828. SkIRect
  829. bool intersect(int32_t left, int32_t top, int32_t right, int32_t bottom);
  830. [IRect_intersectNoEmptyCheck]
  831. SkIRect
  832. bool intersectNoEmptyCheck(const SkIRect& a, const SkIRect& b);
  833. [IRect_isEmpty]
  834. SkIRect
  835. bool isEmpty() const;
  836. [IRect_isEmpty64]
  837. SkIRect
  838. bool isEmpty64() const;
  839. [IRect_join_2]
  840. SkIRect
  841. void join(const SkIRect& r);
  842. [IRect_join]
  843. SkIRect
  844. void join(int32_t left, int32_t top, int32_t right, int32_t bottom);
  845. [IRect_left]
  846. SkIRect
  847. int32_t left() const;
  848. [IRect_makeInset]
  849. SkIRect
  850. SkIRect makeInset(int32_t dx, int32_t dy) const;
  851. [IRect_makeOffset]
  852. SkIRect
  853. SkIRect makeOffset(int32_t dx, int32_t dy) const;
  854. [IRect_makeOutset]
  855. SkIRect
  856. SkIRect makeOutset(int32_t dx, int32_t dy) const;
  857. [IRect_makeSorted]
  858. SkIRect
  859. SkIRect makeSorted() const;
  860. [IRect_offset_2]
  861. SkIRect
  862. void offset(const SkIPoint& delta);
  863. [IRect_offset]
  864. SkIRect
  865. void offset(int32_t dx, int32_t dy);
  866. [IRect_offsetTo]
  867. SkIRect
  868. void offsetTo(int32_t newX, int32_t newY);
  869. [IRect_notequal_operator]
  870. SkIRect
  871. bool operator!=(const SkIRect& a, const SkIRect& b);
  872. [IRect_equal_operator]
  873. SkIRect
  874. bool operator==(const SkIRect& a, const SkIRect& b);
  875. [IRect_outset]
  876. SkIRect
  877. void outset(int32_t dx, int32_t dy);
  878. [IRect_right]
  879. SkIRect
  880. int32_t right() const;
  881. [IRect_set]
  882. SkIRect
  883. void set(int32_t left, int32_t top, int32_t right, int32_t bottom);
  884. [IRect_setEmpty]
  885. SkIRect
  886. void setEmpty();
  887. [IRect_setLTRB]
  888. SkIRect
  889. void setLTRB(int32_t left, int32_t top, int32_t right, int32_t bottom);
  890. [IRect_setXYWH]
  891. SkIRect
  892. void setXYWH(int32_t x, int32_t y, int32_t width, int32_t height);
  893. [IRect_size]
  894. SkIRect
  895. SkISize size() const;
  896. [IRect_sort]
  897. SkIRect
  898. void sort();
  899. [IRect_top]
  900. SkIRect
  901. int32_t top() const;
  902. [IRect_width]
  903. SkIRect
  904. int32_t width() const;
  905. [IRect_width64]
  906. SkIRect
  907. int64_t width64() const;
  908. [IRect_x]
  909. SkIRect
  910. int32_t x() const;
  911. [IRect_y]
  912. SkIRect
  913. int32_t y() const;
  914. [Image_MakeBackendTextureFromSkImage]
  915. SkImage
  916. static bool MakeBackendTextureFromSkImage(GrContext* context, sk_sp<SkImage> image, GrBackendTexture* backendTexture, BackendTextureReleaseProc* backendTextureReleaseProc);
  917. [Image_MakeCrossContextFromEncoded]
  918. SkImage
  919. static sk_sp<SkImage> MakeCrossContextFromEncoded(GrContext* context, sk_sp<SkData> data, bool buildMips, SkColorSpace* dstColorSpace, bool limitToMaxTextureSize = false);
  920. [Image_MakeCrossContextFromPixmap]
  921. SkImage
  922. static sk_sp<SkImage> MakeCrossContextFromPixmap(GrContext* context, const SkPixmap& pixmap, bool buildMips, SkColorSpace* dstColorSpace, bool limitToMaxTextureSize = false);
  923. [Image_MakeFromAdoptedTexture]
  924. SkImage
  925. static sk_sp<SkImage> MakeFromAdoptedTexture(GrContext* context, const GrBackendTexture& backendTexture, GrSurfaceOrigin surfaceOrigin, SkColorType colorType, SkAlphaType alphaType = kPremul_SkAlphaType, sk_sp<SkColorSpace> colorSpace = nullptr);
  926. [Image_MakeFromBitmap]
  927. SkImage
  928. static sk_sp<SkImage> MakeFromBitmap(const SkBitmap& bitmap);
  929. [Image_MakeFromEncoded]
  930. SkImage
  931. static sk_sp<SkImage> MakeFromEncoded(sk_sp<SkData> encoded, const SkIRect* subset = nullptr);
  932. [Image_MakeFromGenerator]
  933. SkImage
  934. static sk_sp<SkImage> MakeFromGenerator(std::unique_ptr<SkImageGenerator> imageGenerator, const SkIRect* subset = nullptr);
  935. [Image_MakeFromPicture]
  936. SkImage
  937. static sk_sp<SkImage> MakeFromPicture(sk_sp<SkPicture> picture, const SkISize& dimensions, const SkMatrix* matrix, const SkPaint* paint, BitDepth bitDepth, sk_sp<SkColorSpace> colorSpace);
  938. [Image_MakeFromRaster]
  939. SkImage
  940. static sk_sp<SkImage> MakeFromRaster(const SkPixmap& pixmap, RasterReleaseProc rasterReleaseProc, ReleaseContext releaseContext);
  941. [Image_MakeFromTexture]
  942. SkImage
  943. static sk_sp<SkImage> MakeFromTexture(GrContext* context, const GrBackendTexture& backendTexture, GrSurfaceOrigin origin, SkColorType colorType, SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace);
  944. [Image_MakeFromTexture_2]
  945. SkImage
  946. static sk_sp<SkImage> MakeFromTexture(GrContext* context, const GrBackendTexture& backendTexture, GrSurfaceOrigin origin, SkColorType colorType, SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace, TextureReleaseProc textureReleaseProc, ReleaseContext releaseContext);
  947. [Image_MakeRasterCopy]
  948. SkImage
  949. static sk_sp<SkImage> MakeRasterCopy(const SkPixmap& pixmap);
  950. [Image_MakeRasterData]
  951. SkImage
  952. static sk_sp<SkImage> MakeRasterData(const SkImageInfo& info, sk_sp<SkData> pixels, size_t rowBytes);
  953. [Image_alphaType]
  954. SkImage
  955. SkAlphaType alphaType() const;
  956. [Image_bounds]
  957. SkImage
  958. SkIRect bounds() const;
  959. [Image_colorSpace]
  960. SkImage
  961. SkColorSpace* colorSpace() const;
  962. [Image_colorType]
  963. SkImage
  964. SkColorType colorType() const;
  965. [Image_dimensions]
  966. SkImage
  967. SkISize dimensions() const;
  968. [Image_encodeToData_2]
  969. SkImage
  970. sk_sp<SkData> encodeToData() const;
  971. [Image_encodeToData]
  972. SkImage
  973. sk_sp<SkData> encodeToData(SkEncodedImageFormat encodedImageFormat, int quality) const;
  974. [Image_getBackendTexture]
  975. SkImage
  976. GrBackendTexture getBackendTexture(bool flushPendingGrContextIO, GrSurfaceOrigin* origin = nullptr) const;
  977. [Image_height]
  978. SkImage
  979. int height() const;
  980. [Image_isAlphaOnly]
  981. SkImage
  982. bool isAlphaOnly() const;
  983. [Image_isLazyGenerated_a]
  984. [Image_isLazyGenerated_b]
  985. SkImage
  986. bool isLazyGenerated() const;
  987. [Image_isOpaque]
  988. SkImage
  989. bool isOpaque() const;
  990. [Image_isTextureBacked]
  991. SkImage
  992. bool isTextureBacked() const;
  993. [Image_isValid]
  994. SkImage
  995. bool isValid(GrContext* context) const;
  996. [Image_makeColorSpace]
  997. SkImage
  998. sk_sp<SkImage> makeColorSpace(sk_sp<SkColorSpace> target) const;
  999. [Image_makeNonTextureImage]
  1000. SkImage
  1001. sk_sp<SkImage> makeNonTextureImage() const;
  1002. [Image_makeRasterImage]
  1003. SkImage
  1004. sk_sp<SkImage> makeRasterImage() const;
  1005. [Image_makeShader]
  1006. SkImage
  1007. sk_sp<SkShader> makeShader(SkShader::TileMode tileMode1, SkShader::TileMode tileMode2, const SkMatrix* localMatrix = nullptr) const;
  1008. [Image_makeShader_2]
  1009. SkImage
  1010. sk_sp<SkShader> makeShader(const SkMatrix* localMatrix = nullptr) const;
  1011. [Image_makeSubset]
  1012. SkImage
  1013. sk_sp<SkImage> makeSubset(const SkIRect& subset) const;
  1014. [Image_makeTextureImage]
  1015. SkImage
  1016. sk_sp<SkImage> makeTextureImage(GrContext* context, SkColorSpace* dstColorSpace, GrMipMapped mipMapped = GrMipMapped::kNo) const;
  1017. [Image_makeWithFilter]
  1018. SkImage
  1019. sk_sp<SkImage> makeWithFilter(const SkImageFilter* filter, const SkIRect& subset, const SkIRect& clipBounds, SkIRect* outSubset, SkIPoint* offset) const;
  1020. [Image_peekPixels]
  1021. SkImage
  1022. bool peekPixels(SkPixmap* pixmap) const;
  1023. [Image_readPixels]
  1024. SkImage
  1025. bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX, int srcY, CachingHint cachingHint = kAllow_CachingHint) const;
  1026. [Image_readPixels_2]
  1027. SkImage
  1028. bool readPixels(const SkPixmap& dst, int srcX, int srcY, CachingHint cachingHint = kAllow_CachingHint) const;
  1029. [Image_refColorSpace]
  1030. SkImage
  1031. sk_sp<SkColorSpace> refColorSpace() const;
  1032. [Image_refEncodedData]
  1033. SkImage
  1034. sk_sp<SkData> refEncodedData() const;
  1035. [Image_scalePixels]
  1036. SkImage
  1037. bool scalePixels(const SkPixmap& dst, SkFilterQuality filterQuality, CachingHint cachingHint = kAllow_CachingHint) const;
  1038. [Image_uniqueID]
  1039. SkImage
  1040. uint32_t uniqueID() const;
  1041. [Image_width]
  1042. SkImage
  1043. int width() const;
  1044. [ImageInfo_ByteSizeOverflowed]
  1045. SkImageInfo
  1046. static bool ByteSizeOverflowed(size_t byteSize);
  1047. [ImageInfo_Make]
  1048. SkImageInfo
  1049. static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at, sk_sp<SkColorSpace> cs = nullptr);
  1050. [ImageInfo_MakeA8]
  1051. SkImageInfo
  1052. static SkImageInfo MakeA8(int width, int height);
  1053. [ImageInfo_MakeN32]
  1054. SkImageInfo
  1055. static SkImageInfo MakeN32(int width, int height, SkAlphaType at, sk_sp<SkColorSpace> cs = nullptr);
  1056. [ImageInfo_MakeN32Premul_2]
  1057. SkImageInfo
  1058. static SkImageInfo MakeN32Premul(const SkISize& size);
  1059. [ImageInfo_MakeN32Premul]
  1060. SkImageInfo
  1061. static SkImageInfo MakeN32Premul(int width, int height, sk_sp<SkColorSpace> cs = nullptr);
  1062. [ImageInfo_MakeS32]
  1063. SkImageInfo
  1064. static SkImageInfo MakeS32(int width, int height, SkAlphaType at);
  1065. [ImageInfo_MakeUnknown_2]
  1066. SkImageInfo
  1067. static SkImageInfo MakeUnknown();
  1068. [ImageInfo_MakeUnknown]
  1069. SkImageInfo
  1070. static SkImageInfo MakeUnknown(int width, int height);
  1071. [ColorTypeBytesPerPixel]
  1072. SkImageInfo
  1073. int SkColorTypeBytesPerPixel(SkColorType ct);
  1074. [ColorTypeIsAlwaysOpaque]
  1075. SkImageInfo
  1076. bool SkColorTypeIsAlwaysOpaque(SkColorType ct);
  1077. [ColorTypeValidateAlphaType]
  1078. SkImageInfo
  1079. bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, SkAlphaType* canonical = nullptr);
  1080. [ImageInfo_empty_constructor]
  1081. SkImageInfo
  1082. SkImageInfo();
  1083. [ImageInfo_alphaType]
  1084. SkImageInfo
  1085. SkAlphaType alphaType() const;
  1086. [ImageInfo_bounds]
  1087. SkImageInfo
  1088. SkIRect bounds() const;
  1089. [ImageInfo_bytesPerPixel]
  1090. SkImageInfo
  1091. int bytesPerPixel() const;
  1092. [ImageInfo_colorSpace]
  1093. SkImageInfo
  1094. SkColorSpace* colorSpace() const;
  1095. [ImageInfo_colorType]
  1096. SkImageInfo
  1097. SkColorType colorType() const;
  1098. [ImageInfo_computeByteSize]
  1099. SkImageInfo
  1100. size_t computeByteSize(size_t rowBytes) const;
  1101. [ImageInfo_computeMinByteSize]
  1102. SkImageInfo
  1103. size_t computeMinByteSize() const;
  1104. [ImageInfo_computeOffset]
  1105. SkImageInfo
  1106. size_t computeOffset(int x, int y, size_t rowBytes) const;
  1107. [ImageInfo_dimensions]
  1108. SkImageInfo
  1109. SkISize dimensions() const;
  1110. [Alpha_Type_Opaque]
  1111. SkImageInfo
  1112. enum SkAlphaType { kUnknown_SkAlphaType, kOpaque_SkAlphaType, kPremul_SkAlphaType, kUnpremul_SkAlphaType, kLastEnum_SkAlphaType = kUnpremul_SkAlphaType, };
  1113. [Color_Type_ARGB_4444]
  1114. [Color_Type_Alpha_8]
  1115. [Color_Type_BGRA_8888]
  1116. [Color_Type_Gray_8]
  1117. [Color_Type_RGBA_1010102]
  1118. [Color_Type_RGBA_8888]
  1119. [Color_Type_RGBA_F16]
  1120. [Color_Type_RGB_101010]
  1121. [Color_Type_RGB_565]
  1122. [Color_Type_RGB_888]
  1123. SkImageInfo
  1124. enum SkColorType { kUnknown_SkColorType, kAlpha_8_SkColorType, kRGB_565_SkColorType, kARGB_4444_SkColorType, kRGBA_8888_SkColorType, kRGB_888x_SkColorType, kBGRA_8888_SkColorType, kRGBA_1010102_SkColorType, kRGB_101010x_SkColorType, kGray_8_SkColorType, kRGBA_F16_SkColorType, kRGBA_F32_SkColorType, kLastEnum_SkColorType = kRGBA_F32_SkColorType, kN32_SkColorType = kBGRA_8888_SkColorType, kN32_SkColorType = kRGBA_8888_SkColorType, };
  1125. [ImageInfo_gammaCloseToSRGB]
  1126. SkImageInfo
  1127. bool gammaCloseToSRGB() const;
  1128. [ImageInfo_height]
  1129. SkImageInfo
  1130. int height() const;
  1131. [ImageInfo_isEmpty]
  1132. SkImageInfo
  1133. bool isEmpty() const;
  1134. [ImageInfo_isOpaque]
  1135. SkImageInfo
  1136. bool isOpaque() const;
  1137. [ImageInfo_makeAlphaType]
  1138. SkImageInfo
  1139. SkImageInfo makeAlphaType(SkAlphaType newAlphaType) const;
  1140. [ImageInfo_makeColorSpace]
  1141. SkImageInfo
  1142. SkImageInfo makeColorSpace(sk_sp<SkColorSpace> cs) const;
  1143. [ImageInfo_makeColorType]
  1144. SkImageInfo
  1145. SkImageInfo makeColorType(SkColorType newColorType) const;
  1146. [ImageInfo_makeWH]
  1147. SkImageInfo
  1148. SkImageInfo makeWH(int newWidth, int newHeight) const;
  1149. [ImageInfo_minRowBytes]
  1150. SkImageInfo
  1151. size_t minRowBytes() const;
  1152. [ImageInfo_minRowBytes64]
  1153. SkImageInfo
  1154. uint64_t minRowBytes64() const;
  1155. [ImageInfo_notequal1_operator]
  1156. SkImageInfo
  1157. bool operator!=(const SkImageInfo& other) const;
  1158. [ImageInfo_equal1_operator]
  1159. SkImageInfo
  1160. bool operator==(const SkImageInfo& other) const;
  1161. [ImageInfo_refColorSpace]
  1162. SkImageInfo
  1163. sk_sp<SkColorSpace> refColorSpace() const;
  1164. [ImageInfo_reset]
  1165. SkImageInfo
  1166. void reset();
  1167. [ImageInfo_shiftPerPixel]
  1168. SkImageInfo
  1169. int shiftPerPixel() const;
  1170. [Alpha_Type_Premul]
  1171. SkImageInfo
  1172. stored color = original color * alpha / max alpha;
  1173. [Alpha_Type_Unpremul]
  1174. SkImageInfo
  1175. stored color = original color * alpha / max alpha;
  1176. [ImageInfo_validRowBytes]
  1177. SkImageInfo
  1178. bool validRowBytes(size_t rowBytes) const;
  1179. [ImageInfo_width]
  1180. SkImageInfo
  1181. int width() const;
  1182. [Matrix_Concat]
  1183. SkMatrix
  1184. static SkMatrix Concat(const SkMatrix& a, const SkMatrix& b);
  1185. [Matrix_I]
  1186. SkMatrix
  1187. static const SkMatrix& I();
  1188. [Matrix_063]
  1189. SkMatrix
  1190. | sx 0 0 | | J K L | | sx*J sx*K sx*L | I(divx, divy) * Matrix = | 0 sy 0 | | M N O | = | sy*M sy*N sy*O | | 0 0 1 | | P Q R | | P Q R |;
  1191. [Matrix_InvalidMatrix]
  1192. SkMatrix
  1193. static const SkMatrix& InvalidMatrix();
  1194. [Matrix_MakeAll]
  1195. SkMatrix
  1196. static SkMatrix MakeAll(SkScalar scaleX, SkScalar skewX, SkScalar transX, SkScalar skewY, SkScalar scaleY, SkScalar transY, SkScalar pers0, SkScalar pers1, SkScalar pers2);
  1197. [Matrix_MakeRectToRect]
  1198. SkMatrix
  1199. static SkMatrix MakeRectToRect(const SkRect& src, const SkRect& dst, ScaleToFit stf);
  1200. [Matrix_MakeScale_2]
  1201. SkMatrix
  1202. static SkMatrix MakeScale(SkScalar scale);
  1203. [Matrix_MakeScale]
  1204. SkMatrix
  1205. static SkMatrix MakeScale(SkScalar sx, SkScalar sy);
  1206. [Matrix_MakeTrans]
  1207. SkMatrix
  1208. static SkMatrix MakeTrans(SkScalar dx, SkScalar dy);
  1209. [Matrix_SetAffineIdentity]
  1210. SkMatrix
  1211. static void SetAffineIdentity(SkScalar affine[6]);
  1212. [Matrix_asAffine]
  1213. SkMatrix
  1214. bool asAffine(SkScalar affine[6]) const;
  1215. [Matrix_cheapEqualTo]
  1216. SkMatrix
  1217. bool cheapEqualTo(const SkMatrix& m) const;
  1218. [Matrix_decomposeScale]
  1219. SkMatrix
  1220. bool decomposeScale(SkSize* scale, SkMatrix* remaining = nullptr) const;
  1221. [Matrix_dirtyMatrixTypeCache]
  1222. SkMatrix
  1223. void dirtyMatrixTypeCache();
  1224. [Matrix_dump]
  1225. SkMatrix
  1226. void dump() const;
  1227. [Matrix_ScaleToFit]
  1228. SkMatrix
  1229. enum ScaleToFit { kFill_ScaleToFit, kStart_ScaleToFit, kCenter_ScaleToFit, kEnd_ScaleToFit, };
  1230. [Matrix_TypeMask]
  1231. SkMatrix
  1232. enum TypeMask { kIdentity_Mask = 0, kTranslate_Mask = 0x01, kScale_Mask = 0x02, kAffine_Mask = 0x04, kPerspective_Mask = 0x08, };
  1233. [Matrix_fixedStepInX]
  1234. SkMatrix
  1235. SkVector fixedStepInX(SkScalar y) const;
  1236. [Matrix_get]
  1237. SkMatrix
  1238. SkScalar get(int index) const;
  1239. [Matrix_get9]
  1240. SkMatrix
  1241. void get9(SkScalar buffer[9]) const;
  1242. [Matrix_getMaxScale]
  1243. SkMatrix
  1244. SkScalar getMaxScale() const;
  1245. [Matrix_getMinMaxScales]
  1246. SkMatrix
  1247. bool getMinMaxScales(SkScalar scaleFactors[2]) const;
  1248. [Matrix_getMinScale]
  1249. SkMatrix
  1250. SkScalar getMinScale() const;
  1251. [Matrix_getPerspX]
  1252. SkMatrix
  1253. SkScalar getPerspX() const;
  1254. [Matrix_getPerspY]
  1255. SkMatrix
  1256. SkScalar getPerspY() const;
  1257. [Matrix_getScaleX]
  1258. SkMatrix
  1259. SkScalar getScaleX() const;
  1260. [Matrix_getScaleY]
  1261. SkMatrix
  1262. SkScalar getScaleY() const;
  1263. [Matrix_getSkewX]
  1264. SkMatrix
  1265. SkScalar getSkewX() const;
  1266. [Matrix_getSkewY]
  1267. SkMatrix
  1268. SkScalar getSkewY() const;
  1269. [Matrix_getTranslateX]
  1270. SkMatrix
  1271. SkScalar getTranslateX() const;
  1272. [Matrix_getTranslateY]
  1273. SkMatrix
  1274. SkScalar getTranslateY() const;
  1275. [Matrix_getType]
  1276. SkMatrix
  1277. TypeMask getType() const;
  1278. [Matrix_hasPerspective]
  1279. SkMatrix
  1280. bool hasPerspective() const;
  1281. [Matrix_invert]
  1282. SkMatrix
  1283. bool invert(SkMatrix* inverse) const;
  1284. [Matrix_isFinite]
  1285. SkMatrix
  1286. bool isFinite() const;
  1287. [Matrix_isFixedStepInX]
  1288. SkMatrix
  1289. bool isFixedStepInX() const;
  1290. [Matrix_isIdentity]
  1291. SkMatrix
  1292. bool isIdentity() const;
  1293. [Matrix_isScaleTranslate]
  1294. SkMatrix
  1295. bool isScaleTranslate() const;
  1296. [Matrix_isSimilarity]
  1297. SkMatrix
  1298. bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
  1299. [Matrix_isTranslate]
  1300. SkMatrix
  1301. bool isTranslate() const;
  1302. [Matrix_mapHomogeneousPoints]
  1303. SkMatrix
  1304. void mapHomogeneousPoints(SkPoint3 dst[], const SkPoint3 src[], int count) const;
  1305. [Matrix_mapPoints]
  1306. SkMatrix
  1307. void mapPoints(SkPoint dst[], const SkPoint src[], int count) const;
  1308. [Matrix_mapPoints_2]
  1309. SkMatrix
  1310. void mapPoints(SkPoint pts[], int count) const;
  1311. [Matrix_mapRadius]
  1312. SkMatrix
  1313. SkScalar mapRadius(SkScalar radius) const;
  1314. [Matrix_mapRect_3]
  1315. SkMatrix
  1316. SkRect mapRect(const SkRect& src) const;
  1317. [Matrix_mapRect]
  1318. SkMatrix
  1319. bool mapRect(SkRect* dst, const SkRect& src) const;
  1320. [Matrix_mapRect_2]
  1321. SkMatrix
  1322. bool mapRect(SkRect* rect) const;
  1323. [Matrix_mapRectScaleTranslate]
  1324. SkMatrix
  1325. void mapRectScaleTranslate(SkRect* dst, const SkRect& src) const;
  1326. [Matrix_mapRectToQuad]
  1327. SkMatrix
  1328. void mapRectToQuad(SkPoint dst[4], const SkRect& rect) const;
  1329. [Matrix_mapVector_2]
  1330. SkMatrix
  1331. SkVector mapVector(SkScalar dx, SkScalar dy) const;
  1332. [Matrix_mapVector]
  1333. SkMatrix
  1334. void mapVector(SkScalar dx, SkScalar dy, SkVector* result) const;
  1335. [Matrix_mapVectors]
  1336. SkMatrix
  1337. void mapVectors(SkVector dst[], const SkVector src[], int count) const;
  1338. [Matrix_mapVectors_2]
  1339. SkMatrix
  1340. void mapVectors(SkVector vecs[], int count) const;
  1341. [Matrix_mapXY_2]
  1342. SkMatrix
  1343. SkPoint mapXY(SkScalar x, SkScalar y) const;
  1344. [Matrix_mapXY]
  1345. SkMatrix
  1346. void mapXY(SkScalar x, SkScalar y, SkPoint* result) const;
  1347. [Matrix_notequal_operator]
  1348. SkMatrix
  1349. bool operator!=(const SkMatrix& a, const SkMatrix& b);
  1350. [Matrix_equal_operator]
  1351. SkMatrix
  1352. bool operator==(const SkMatrix& a, const SkMatrix& b);
  1353. [Matrix_array_operator]
  1354. SkMatrix
  1355. SkScalar operator[](int index) const;
  1356. [Matrix_dirtyMatrixTypeCache]
  1357. SkMatrix
  1358. SkScalar& operator[](int index);
  1359. [Matrix_postConcat]
  1360. SkMatrix
  1361. void postConcat(const SkMatrix& other);
  1362. [Matrix_postRotate_2]
  1363. SkMatrix
  1364. void postRotate(SkScalar degrees);
  1365. [Matrix_postRotate]
  1366. SkMatrix
  1367. void postRotate(SkScalar degrees, SkScalar px, SkScalar py);
  1368. [Matrix_postScale_2]
  1369. SkMatrix
  1370. void postScale(SkScalar sx, SkScalar sy);
  1371. [Matrix_postScale]
  1372. SkMatrix
  1373. void postScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py);
  1374. [Matrix_postSkew_2]
  1375. SkMatrix
  1376. void postSkew(SkScalar kx, SkScalar ky);
  1377. [Matrix_postSkew]
  1378. SkMatrix
  1379. void postSkew(SkScalar kx, SkScalar ky, SkScalar px, SkScalar py);
  1380. [Matrix_postTranslate]
  1381. SkMatrix
  1382. void postTranslate(SkScalar dx, SkScalar dy);
  1383. [Matrix_preConcat]
  1384. SkMatrix
  1385. void preConcat(const SkMatrix& other);
  1386. [Matrix_preRotate_2]
  1387. SkMatrix
  1388. void preRotate(SkScalar degrees);
  1389. [Matrix_preRotate]
  1390. SkMatrix
  1391. void preRotate(SkScalar degrees, SkScalar px, SkScalar py);
  1392. [Matrix_preScale_2]
  1393. SkMatrix
  1394. void preScale(SkScalar sx, SkScalar sy);
  1395. [Matrix_preScale]
  1396. SkMatrix
  1397. void preScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py);
  1398. [Matrix_preSkew_2]
  1399. SkMatrix
  1400. void preSkew(SkScalar kx, SkScalar ky);
  1401. [Matrix_preSkew]
  1402. SkMatrix
  1403. void preSkew(SkScalar kx, SkScalar ky, SkScalar px, SkScalar py);
  1404. [Matrix_preTranslate]
  1405. SkMatrix
  1406. void preTranslate(SkScalar dx, SkScalar dy);
  1407. [Matrix_preservesAxisAlignment]
  1408. SkMatrix
  1409. bool preservesAxisAlignment() const;
  1410. [Matrix_preservesRightAngles]
  1411. SkMatrix
  1412. bool preservesRightAngles(SkScalar tol = SK_ScalarNearlyZero) const;
  1413. [Matrix_rectStaysRect]
  1414. SkMatrix
  1415. bool rectStaysRect() const;
  1416. [Matrix_reset]
  1417. SkMatrix
  1418. void reset();
  1419. [Matrix_set]
  1420. SkMatrix
  1421. void set(int index, SkScalar value);
  1422. [Matrix_set9]
  1423. SkMatrix
  1424. void set9(const SkScalar buffer[9]);
  1425. [Matrix_setAffine]
  1426. SkMatrix
  1427. void setAffine(const SkScalar affine[6]);
  1428. [Matrix_setAll]
  1429. SkMatrix
  1430. void setAll(SkScalar scaleX, SkScalar skewX, SkScalar transX, SkScalar skewY, SkScalar scaleY, SkScalar transY, SkScalar persp0, SkScalar persp1, SkScalar persp2);
  1431. [Matrix_setConcat]
  1432. SkMatrix
  1433. void setConcat(const SkMatrix& a, const SkMatrix& b);
  1434. [Matrix_setIdentity]
  1435. SkMatrix
  1436. void setIdentity();
  1437. [Matrix_setPerspX]
  1438. SkMatrix
  1439. void setPerspX(SkScalar v);
  1440. [Matrix_setPerspY]
  1441. SkMatrix
  1442. void setPerspY(SkScalar v);
  1443. [Matrix_setPolyToPoly]
  1444. SkMatrix
  1445. bool setPolyToPoly(const SkPoint src[], const SkPoint dst[], int count);
  1446. [Matrix_setRSXform]
  1447. SkMatrix
  1448. SkMatrix& setRSXform(const SkRSXform& rsxForm);
  1449. [Matrix_setRectToRect]
  1450. SkMatrix
  1451. bool setRectToRect(const SkRect& src, const SkRect& dst, ScaleToFit stf);
  1452. [Matrix_setRotate_2]
  1453. SkMatrix
  1454. void setRotate(SkScalar degrees);
  1455. [Matrix_setRotate]
  1456. SkMatrix
  1457. void setRotate(SkScalar degrees, SkScalar px, SkScalar py);
  1458. [Matrix_setScale_2]
  1459. SkMatrix
  1460. void setScale(SkScalar sx, SkScalar sy);
  1461. [Matrix_setScale]
  1462. SkMatrix
  1463. void setScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py);
  1464. [Matrix_setScaleTranslate]
  1465. SkMatrix
  1466. void setScaleTranslate(SkScalar sx, SkScalar sy, SkScalar tx, SkScalar ty);
  1467. [Matrix_setScaleX]
  1468. SkMatrix
  1469. void setScaleX(SkScalar v);
  1470. [Matrix_setScaleY]
  1471. SkMatrix
  1472. void setScaleY(SkScalar v);
  1473. [Matrix_setSinCos_2]
  1474. SkMatrix
  1475. void setSinCos(SkScalar sinValue, SkScalar cosValue);
  1476. [Matrix_setSinCos]
  1477. SkMatrix
  1478. void setSinCos(SkScalar sinValue, SkScalar cosValue, SkScalar px, SkScalar py);
  1479. [Matrix_setSkew_2]
  1480. SkMatrix
  1481. void setSkew(SkScalar kx, SkScalar ky);
  1482. [Matrix_setSkew]
  1483. SkMatrix
  1484. void setSkew(SkScalar kx, SkScalar ky, SkScalar px, SkScalar py);
  1485. [Matrix_setSkewX]
  1486. SkMatrix
  1487. void setSkewX(SkScalar v);
  1488. [Matrix_setSkewY]
  1489. SkMatrix
  1490. void setSkewY(SkScalar v);
  1491. [Matrix_setTranslate]
  1492. SkMatrix
  1493. void setTranslate(SkScalar dx, SkScalar dy);
  1494. [Matrix_setTranslate_2]
  1495. SkMatrix
  1496. void setTranslate(const SkVector& v);
  1497. [Matrix_setTranslateX]
  1498. SkMatrix
  1499. void setTranslateX(SkScalar v);
  1500. [Matrix_setTranslateY]
  1501. SkMatrix
  1502. void setTranslateY(SkScalar v);
  1503. [MemberIndex]
  1504. SkMatrix
  1505. static constexpr int kMScaleX = 0; static constexpr int kMSkewX = 1; static constexpr int kMTransX = 2; static constexpr int kMSkewY = 3; static constexpr int kMScaleY = 4; static constexpr int kMTransY = 5; static constexpr int kMPersp0 = 6; static constexpr int kMPersp1 = 7; static constexpr int kMPersp2 = 8;
  1506. [Paint_empty_constructor]
  1507. SkPaint
  1508. SkPaint();
  1509. [Paint_move_SkPaint]
  1510. SkPaint
  1511. SkPaint(SkPaint&& paint);
  1512. [Paint_copy_const_SkPaint]
  1513. SkPaint
  1514. SkPaint(const SkPaint& paint);
  1515. [Paint_containsText]
  1516. SkPaint
  1517. bool containsText(const void* text, size_t byteLength) const;
  1518. [Paint_countText]
  1519. SkPaint
  1520. int countText(const void* text, size_t byteLength) const;
  1521. [Paint_getAlpha]
  1522. SkPaint
  1523. uint8_t getAlpha() const;
  1524. [Paint_getBlendMode]
  1525. SkPaint
  1526. SkBlendMode getBlendMode() const;
  1527. [Paint_getColor]
  1528. SkPaint
  1529. SkColor getColor() const;
  1530. [Paint_getColor4f]
  1531. SkPaint
  1532. SkColor4f getColor4f() const;
  1533. [Paint_getColorFilter]
  1534. SkPaint
  1535. SkColorFilter* getColorFilter() const;
  1536. [Paint_getDrawLooper]
  1537. SkPaint
  1538. SkDrawLooper* getDrawLooper() const;
  1539. [Paint_getFillPath_2]
  1540. [Shader_Methods_a]
  1541. [Shader_Methods_b]
  1542. SkPaint
  1543. bool getFillPath(const SkPath& src, SkPath* dst) const;
  1544. [Paint_getFillPath]
  1545. SkPaint
  1546. bool getFillPath(const SkPath& src, SkPath* dst, const SkRect* cullRect, SkScalar resScale = 1) const;
  1547. [Paint_getFilterQuality]
  1548. SkPaint
  1549. SkFilterQuality getFilterQuality() const;
  1550. [Paint_getFlags]
  1551. SkPaint
  1552. uint32_t getFlags() const;
  1553. [Paint_getFontMetrics]
  1554. SkPaint
  1555. SkScalar getFontMetrics(SkFontMetrics* metrics) const;
  1556. [Paint_getFontSpacing]
  1557. SkPaint
  1558. SkScalar getFontSpacing() const;
  1559. [Paint_getHash]
  1560. SkPaint
  1561. uint32_t getHash() const;
  1562. [Paint_getHinting]
  1563. SkPaint
  1564. SkFontHinting getHinting() const;
  1565. [Paint_getImageFilter]
  1566. SkPaint
  1567. SkImageFilter* getImageFilter() const;
  1568. [Paint_getMaskFilter]
  1569. SkPaint
  1570. SkMaskFilter* getMaskFilter() const;
  1571. [Paint_getPathEffect]
  1572. SkPaint
  1573. SkPathEffect* getPathEffect() const;
  1574. [Paint_getPosTextPath]
  1575. SkPaint
  1576. void getPosTextPath(const void* text, size_t length, const SkPoint pos[], SkPath* path) const;
  1577. [Paint_getShader]
  1578. SkPaint
  1579. SkShader* getShader() const;
  1580. [Paint_getStrokeCap]
  1581. SkPaint
  1582. Cap getStrokeCap() const;
  1583. [Paint_getStrokeJoin]
  1584. SkPaint
  1585. Join getStrokeJoin() const;
  1586. [Paint_getStrokeMiter]
  1587. SkPaint
  1588. SkScalar getStrokeMiter() const;
  1589. [Paint_getStrokeWidth]
  1590. SkPaint
  1591. SkScalar getStrokeWidth() const;
  1592. [Paint_getStyle]
  1593. SkPaint
  1594. Style getStyle() const;
  1595. [Paint_getTextEncoding]
  1596. SkPaint
  1597. SkTextEncoding getTextEncoding() const;
  1598. [Paint_getTextPath]
  1599. SkPaint
  1600. void getTextPath(const void* text, size_t length, SkScalar x, SkScalar y, SkPath* path) const;
  1601. [Paint_getTextScaleX]
  1602. SkPaint
  1603. SkScalar getTextScaleX() const;
  1604. [Paint_getTextSize]
  1605. SkPaint
  1606. SkScalar getTextSize() const;
  1607. [Paint_getTextSkewX]
  1608. SkPaint
  1609. SkScalar getTextSkewX() const;
  1610. [Paint_getTextWidths]
  1611. SkPaint
  1612. int getTextWidths(const void* text, size_t byteLength, SkScalar widths[], SkRect bounds[] = nullptr) const;
  1613. [Paint_getTypeface]
  1614. SkPaint
  1615. SkTypeface* getTypeface() const;
  1616. [Paint_isAntiAlias]
  1617. SkPaint
  1618. bool isAntiAlias() const;
  1619. [Paint_isAutohinted]
  1620. SkPaint
  1621. bool isAutohinted() const;
  1622. [Paint_isDither]
  1623. SkPaint
  1624. bool isDither() const;
  1625. [Paint_isEmbeddedBitmapText]
  1626. SkPaint
  1627. bool isEmbeddedBitmapText() const;
  1628. [Paint_isFakeBoldText]
  1629. SkPaint
  1630. bool isFakeBoldText() const;
  1631. [Paint_isLCDRenderText]
  1632. SkPaint
  1633. bool isLCDRenderText() const;
  1634. [Paint_isLinearText]
  1635. SkPaint
  1636. bool isLinearText() const;
  1637. [Paint_setBlendMode]
  1638. SkPaint
  1639. bool isSrcOver() const;
  1640. [Paint_isSubpixelText]
  1641. SkPaint
  1642. bool isSubpixelText() const;
  1643. [Paint_measureText_2]
  1644. SkPaint
  1645. SkScalar measureText(const void* text, size_t length) const;
  1646. [Paint_measureText]
  1647. SkPaint
  1648. SkScalar measureText(const void* text, size_t length, SkRect* bounds) const;
  1649. [Paint_nothingToDraw]
  1650. SkPaint
  1651. bool nothingToDraw() const;
  1652. [Paint_notequal_operator]
  1653. SkPaint
  1654. bool operator!=(const SkPaint& a, const SkPaint& b);
  1655. [Paint_move_operator]
  1656. SkPaint
  1657. SkPaint& operator=(SkPaint&& paint);
  1658. [Paint_copy_operator]
  1659. SkPaint
  1660. SkPaint& operator=(const SkPaint& paint);
  1661. [Paint_equal_operator]
  1662. SkPaint
  1663. bool operator==(const SkPaint& a, const SkPaint& b);
  1664. [Paint_refColorFilter]
  1665. SkPaint
  1666. sk_sp<SkColorFilter> refColorFilter() const;
  1667. [Paint_refDrawLooper]
  1668. SkPaint
  1669. sk_sp<SkDrawLooper> refDrawLooper() const;
  1670. [Paint_refImageFilter]
  1671. SkPaint
  1672. sk_sp<SkImageFilter> refImageFilter() const;
  1673. [Paint_refMaskFilter]
  1674. SkPaint
  1675. sk_sp<SkMaskFilter> refMaskFilter() const;
  1676. [Paint_refPathEffect]
  1677. SkPaint
  1678. sk_sp<SkPathEffect> refPathEffect() const;
  1679. [Paint_refShader]
  1680. SkPaint
  1681. sk_sp<SkShader> refShader() const;
  1682. [Paint_refTypeface]
  1683. SkPaint
  1684. sk_sp<SkTypeface> refTypeface() const;
  1685. [Paint_reset]
  1686. SkPaint
  1687. void reset();
  1688. [Paint_setARGB]
  1689. SkPaint
  1690. void setARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b);
  1691. [Paint_setAlpha]
  1692. SkPaint
  1693. void setAlpha(U8CPU a);
  1694. [Dither_a]
  1695. [Dither_b]
  1696. [Paint_setAntiAlias]
  1697. SkPaint
  1698. void setAntiAlias(bool aa);
  1699. [Fake_Bold]
  1700. [Paint_setAutohinted]
  1701. SkPaint
  1702. void setAutohinted(bool useAutohinter);
  1703. [Paint_setBlendMode]
  1704. [Path_Effect_Methods]
  1705. SkPaint
  1706. void setBlendMode(SkBlendMode mode);
  1707. [Paint_setColor]
  1708. SkPaint
  1709. void setColor(SkColor color);
  1710. [Paint_setColor4f]
  1711. SkPaint
  1712. void setColor4f(const SkColor4f& color, SkColorSpace* colorSpace);
  1713. [Blend_Mode_Methods]
  1714. [Paint_setColorFilter]
  1715. SkPaint
  1716. void setColorFilter(sk_sp<SkColorFilter> colorFilter);
  1717. [Device_Text]
  1718. [Paint_setDither]
  1719. SkPaint
  1720. void setDither(bool dither);
  1721. [Paint_setDrawLooper]
  1722. [Text_Size]
  1723. SkPaint
  1724. void setDrawLooper(sk_sp<SkDrawLooper> drawLooper);
  1725. [Paint_setEmbeddedBitmapText]
  1726. SkPaint
  1727. void setEmbeddedBitmapText(bool useEmbeddedBitmapText);
  1728. [Filter_Quality_Methods]
  1729. [Paint_setFakeBoldText]
  1730. SkPaint
  1731. void setFakeBoldText(bool fakeBoldText);
  1732. [Color_Methods]
  1733. [Paint_setFilterQuality]
  1734. SkPaint
  1735. void setFilterQuality(SkFilterQuality quality);
  1736. [Anti_Alias]
  1737. [Paint_setFlags]
  1738. SkPaint
  1739. void setFlags(uint32_t flags);
  1740. [Paint_setHinting]
  1741. SkPaint
  1742. void setHinting(SkFontHinting hintingLevel);
  1743. [Draw_Looper_Methods]
  1744. [Paint_setImageFilter]
  1745. SkPaint
  1746. void setImageFilter(sk_sp<SkImageFilter> imageFilter);
  1747. [Paint_setLCDRenderText]
  1748. SkPaint
  1749. void setLCDRenderText(bool lcdText);
  1750. [Paint_setLinearText]
  1751. SkPaint
  1752. void setLinearText(bool linearText);
  1753. [Paint_setMaskFilter]
  1754. [Typeface_Methods]
  1755. SkPaint
  1756. void setMaskFilter(sk_sp<SkMaskFilter> maskFilter);
  1757. [Mask_Filter_Methods]
  1758. [Paint_setPathEffect]
  1759. SkPaint
  1760. void setPathEffect(sk_sp<SkPathEffect> pathEffect);
  1761. [Color_Filter_Methods]
  1762. [Paint_setShader]
  1763. SkPaint
  1764. void setShader(sk_sp<SkShader> shader);
  1765. [Paint_setStrokeCap_a]
  1766. [Paint_setStrokeCap_b]
  1767. SkPaint
  1768. void setStrokeCap(Cap cap);
  1769. [Paint_setStrokeJoin]
  1770. SkPaint
  1771. void setStrokeJoin(Join join);
  1772. [Paint_setStrokeMiter]
  1773. SkPaint
  1774. void setStrokeMiter(SkScalar miter);
  1775. [Miter_Limit]
  1776. [Paint_setStrokeWidth]
  1777. SkPaint
  1778. void setStrokeWidth(SkScalar width);
  1779. [Paint_setStyle]
  1780. [Stroke_Width]
  1781. SkPaint
  1782. void setStyle(Style style);
  1783. [Paint_setSubpixelText]
  1784. SkPaint
  1785. void setSubpixelText(bool subpixelText);
  1786. [Paint_setTextEncoding]
  1787. SkPaint
  1788. void setTextEncoding(SkTextEncoding encoding);
  1789. [Paint_setTextScaleX]
  1790. [Text_Skew_X]
  1791. SkPaint
  1792. void setTextScaleX(SkScalar scaleX);
  1793. [Paint_setTextSize]
  1794. [Text_Scale_X]
  1795. SkPaint
  1796. void setTextSize(SkScalar textSize);
  1797. [Paint_setTextSkewX]
  1798. [Text_Encoding]
  1799. SkPaint
  1800. void setTextSkewX(SkScalar skewX);
  1801. [Image_Filter_Methods]
  1802. [Paint_setTypeface]
  1803. SkPaint
  1804. void setTypeface(sk_sp<SkTypeface> typeface);
  1805. [Paint_053]
  1806. SkPaint
  1807. static constexpr int kCapCount = kLast_Cap + 1;
  1808. [Paint_057]
  1809. SkPaint
  1810. static constexpr int kJoinCount = kLast_Join + 1;
  1811. [Paint_textToGlyphs]
  1812. SkPaint
  1813. int textToGlyphs(const void* text, size_t byteLength, SkGlyphID glyphs[]) const;
  1814. [Path_ConvertConicToQuads]
  1815. SkPath
  1816. static int ConvertConicToQuads(const SkPoint& p0, const SkPoint& p1, const SkPoint& p2, SkScalar w, SkPoint pts[], int pow2);
  1817. [Path_ConvertToNonInverseFillType]
  1818. SkPath
  1819. static FillType ConvertToNonInverseFillType(FillType fill);
  1820. [Path_IsCubicDegenerate]
  1821. SkPath
  1822. static bool IsCubicDegenerate(const SkPoint& p1, const SkPoint& p2, const SkPoint& p3, const SkPoint& p4, bool exact);
  1823. [Path_IsInverseFillType]
  1824. SkPath
  1825. static bool IsInverseFillType(FillType fill);
  1826. [Path_IsLineDegenerate]
  1827. SkPath
  1828. static bool IsLineDegenerate(const SkPoint& p1, const SkPoint& p2, bool exact);
  1829. [Path_IsQuadDegenerate]
  1830. SkPath
  1831. static bool IsQuadDegenerate(const SkPoint& p1, const SkPoint& p2, const SkPoint& p3, bool exact);
  1832. [Path_Iter_Iter]
  1833. SkPath
  1834. Iter();
  1835. [Path_Iter_const_SkPath]
  1836. SkPath
  1837. Iter(const SkPath& path, bool forceClose);
  1838. [Path_empty_constructor]
  1839. SkPath
  1840. SkPath();
  1841. [Path_copy_const_SkPath]
  1842. SkPath
  1843. SkPath(const SkPath& path);
  1844. [Path_addArc]
  1845. SkPath
  1846. SkPath& addArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle);
  1847. [Path_addCircle]
  1848. SkPath
  1849. SkPath& addCircle(SkScalar x, SkScalar y, SkScalar radius, Direction dir = kCW_Direction);
  1850. [Path_addOval]
  1851. SkPath
  1852. SkPath& addOval(const SkRect& oval, Direction dir = kCW_Direction);
  1853. [Path_addOval_2]
  1854. SkPath
  1855. SkPath& addOval(const SkRect& oval, Direction dir, unsigned start);
  1856. [Path_addPath_2]
  1857. SkPath
  1858. SkPath& addPath(const SkPath& src, AddPathMode mode = kAppend_AddPathMode);
  1859. [Path_addPath]
  1860. SkPath
  1861. SkPath& addPath(const SkPath& src, SkScalar dx, SkScalar dy, AddPathMode mode = kAppend_AddPathMode);
  1862. [Path_addPath_3]
  1863. SkPath
  1864. SkPath& addPath(const SkPath& src, const SkMatrix& matrix, AddPathMode mode = kAppend_AddPathMode);
  1865. [Path_addPoly]
  1866. SkPath
  1867. SkPath& addPoly(const SkPoint pts[], int count, bool close);
  1868. [Path_addPoly_2]
  1869. SkPath
  1870. SkPath& addPoly(const std::initializer_list<SkPoint>& list, bool close);
  1871. [Path_addRRect]
  1872. SkPath
  1873. SkPath& addRRect(const SkRRect& rrect, Direction dir = kCW_Direction);
  1874. [Path_addRRect_2]
  1875. SkPath
  1876. SkPath& addRRect(const SkRRect& rrect, Direction dir, unsigned start);
  1877. [Path_addRect_3]
  1878. SkPath
  1879. SkPath& addRect(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom, Direction dir = kCW_Direction);
  1880. [Path_addRect]
  1881. SkPath
  1882. SkPath& addRect(const SkRect& rect, Direction dir = kCW_Direction);
  1883. [Path_addRect_2]
  1884. SkPath
  1885. SkPath& addRect(const SkRect& rect, Direction dir, unsigned start);
  1886. [Path_addRoundRect]
  1887. SkPath
  1888. SkPath& addRoundRect(const SkRect& rect, SkScalar rx, SkScalar ry, Direction dir = kCW_Direction);
  1889. [Path_addRoundRect_2]
  1890. SkPath
  1891. SkPath& addRoundRect(const SkRect& rect, const SkScalar radii[], Direction dir = kCW_Direction);
  1892. [Path_arcTo_4]
  1893. SkPath
  1894. SkPath& arcTo(SkScalar rx, SkScalar ry, SkScalar xAxisRotate, ArcSize largeArc, Direction sweep, SkScalar x, SkScalar y);
  1895. [Path_arcTo_2_a]
  1896. [Path_arcTo_2_b]
  1897. [Path_arcTo_2_c]
  1898. SkPath
  1899. SkPath& arcTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar radius);
  1900. [Path_arcTo_3]
  1901. SkPath
  1902. SkPath& arcTo(const SkPoint p1, const SkPoint p2, SkScalar radius);
  1903. [Path_rArcTo]
  1904. SkPath
  1905. SkPath& arcTo(const SkPoint r, SkScalar xAxisRotate, ArcSize largeArc, Direction sweep, const SkPoint xy);
  1906. [Path_arcTo]
  1907. SkPath
  1908. SkPath& arcTo(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, bool forceMoveTo);
  1909. [Path_close]
  1910. SkPath
  1911. SkPath& close();
  1912. [Path_computeTightBounds]
  1913. SkPath
  1914. SkRect computeTightBounds() const;
  1915. [Path_conicTo]
  1916. SkPath
  1917. SkPath& conicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar w);
  1918. [Path_conicTo_2]
  1919. SkPath
  1920. SkPath& conicTo(const SkPoint& p1, const SkPoint& p2, SkScalar w);
  1921. [Path_Iter_conicWeight]
  1922. [Path_RawIter_conicWeight]
  1923. SkPath
  1924. SkScalar conicWeight() const;
  1925. [Path_conservativelyContainsRect]
  1926. SkPath
  1927. bool conservativelyContainsRect(const SkRect& rect) const;
  1928. [Path_contains]
  1929. SkPath
  1930. bool contains(SkScalar x, SkScalar y) const;
  1931. [Path_countPoints]
  1932. SkPath
  1933. int countPoints() const;
  1934. [Path_countVerbs]
  1935. SkPath
  1936. int countVerbs() const;
  1937. [Path_cubicTo]
  1938. SkPath
  1939. SkPath& cubicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y3);
  1940. [Path_cubicTo_2]
  1941. SkPath
  1942. SkPath& cubicTo(const SkPoint& p1, const SkPoint& p2, const SkPoint& p3);
  1943. [Path_dump_2]
  1944. SkPath
  1945. void dump() const;
  1946. [Path_dump]
  1947. SkPath
  1948. void dump(SkWStream* stream, bool forceClose, bool dumpAsHex) const;
  1949. [Path_dumpHex]
  1950. SkPath
  1951. void dumpHex() const;
  1952. [Path_AddPathMode]
  1953. SkPath
  1954. enum AddPathMode { kAppend_AddPathMode, kExtend_AddPathMode, };
  1955. [Path_ArcSize]
  1956. SkPath
  1957. enum ArcSize { kSmall_ArcSize, kLarge_ArcSize, };
  1958. [Path_Convexity]
  1959. SkPath
  1960. enum Convexity : uint8_t { kUnknown_Convexity, kConvex_Convexity, kConcave_Convexity, };
  1961. [Path_Direction]
  1962. SkPath
  1963. enum Direction : int { kCW_Direction, kCCW_Direction, };
  1964. [Path_FillType_a]
  1965. [Path_FillType_b]
  1966. SkPath
  1967. enum FillType { kWinding_FillType, kEvenOdd_FillType, kInverseWinding_FillType, kInverseEvenOdd_FillType, };
  1968. [Path_SegmentMask]
  1969. SkPath
  1970. enum SegmentMask { kLine_SegmentMask = 1 << 0, kQuad_SegmentMask = 1 << 1, kConic_SegmentMask = 1 << 2, kCubic_SegmentMask = 1 << 3, };
  1971. [Path_Verb]
  1972. SkPath
  1973. enum Verb { kMove_Verb, kLine_Verb, kQuad_Verb, kConic_Verb, kCubic_Verb, kClose_Verb, kDone_Verb, };
  1974. [Path_getBounds]
  1975. SkPath
  1976. const SkRect& getBounds() const;
  1977. [Path_getConvexity]
  1978. SkPath
  1979. Convexity getConvexity() const;
  1980. [Path_getConvexityOrUnknown]
  1981. SkPath
  1982. Convexity getConvexityOrUnknown() const;
  1983. [Path_getFillType]
  1984. SkPath
  1985. FillType getFillType() const;
  1986. [Path_getGenerationID]
  1987. SkPath
  1988. uint32_t getGenerationID() const;
  1989. [Path_getLastPt]
  1990. SkPath
  1991. bool getLastPt(SkPoint* lastPt) const;
  1992. [Path_getPoint]
  1993. SkPath
  1994. SkPoint getPoint(int index) const;
  1995. [Path_getPoints]
  1996. SkPath
  1997. int getPoints(SkPoint points[], int max) const;
  1998. [Path_getSegmentMasks]
  1999. SkPath
  2000. uint32_t getSegmentMasks() const;
  2001. [Path_getVerbs]
  2002. SkPath
  2003. int getVerbs(uint8_t verbs[], int max) const;
  2004. [Path_incReserve]
  2005. SkPath
  2006. void incReserve(int extraPtCount);
  2007. [Path_interpolate]
  2008. SkPath
  2009. bool interpolate(const SkPath& ending, SkScalar weight, SkPath* out) const;
  2010. [Path_Iter_isCloseLine]
  2011. SkPath
  2012. bool isCloseLine() const;
  2013. [Path_Iter_isClosedContour]
  2014. SkPath
  2015. bool isClosedContour() const;
  2016. [Path_Iter]
  2017. SkPath
  2018. class Iter { Iter(); Iter(const SkPath& path, bool forceClose); void setPath(const SkPath& path, bool forceClose); Verb next(SkPoint pts[4], bool doConsumeDegenerates = true, bool exact = false); SkScalar conicWeight() const; bool isCloseLine() const; bool isClosedContour() const; };
  2019. [Path_isConvex]
  2020. SkPath
  2021. bool isConvex() const;
  2022. [Path_isEmpty]
  2023. SkPath
  2024. bool isEmpty() const;
  2025. [Path_isFinite]
  2026. SkPath
  2027. bool isFinite() const;
  2028. [Path_isInterpolatable]
  2029. SkPath
  2030. bool isInterpolatable(const SkPath& compare) const;
  2031. [Path_isInverseFillType_2]
  2032. SkPath
  2033. bool isInverseFillType() const;
  2034. [Path_isLastContourClosed]
  2035. SkPath
  2036. bool isLastContourClosed() const;
  2037. [Path_isLine]
  2038. SkPath
  2039. bool isLine(SkPoint line[2]) const;
  2040. [Path_isNestedFillRects]
  2041. SkPath
  2042. bool isNestedFillRects(SkRect rect[2], Direction dirs[2] = nullptr) const;
  2043. [Path_isOval]
  2044. SkPath
  2045. bool isOval(SkRect* bounds) const;
  2046. [Path_isRRect]
  2047. SkPath
  2048. bool isRRect(SkRRect* rrect) const;
  2049. [Path_isRect]
  2050. SkPath
  2051. bool isRect(SkRect* rect, bool* isClosed = nullptr, Direction* direction = nullptr) const;
  2052. [Path_isVolatile]
  2053. SkPath
  2054. bool isVolatile() const;
  2055. [Path_lineTo]
  2056. SkPath
  2057. SkPath& lineTo(SkScalar x, SkScalar y);
  2058. [Path_lineTo_2]
  2059. SkPath
  2060. SkPath& lineTo(const SkPoint& p);
  2061. [Path_moveTo]
  2062. SkPath
  2063. SkPath& moveTo(SkScalar x, SkScalar y);
  2064. [Path_moveTo_2]
  2065. SkPath
  2066. SkPath& moveTo(const SkPoint& p);
  2067. [Path_RawIter_next]
  2068. SkPath
  2069. Verb next(SkPoint pts[4]);
  2070. [Path_Iter_next]
  2071. SkPath
  2072. Verb next(SkPoint pts[4], bool doConsumeDegenerates = true, bool exact = false);
  2073. [Path_offset_2]
  2074. SkPath
  2075. void offset(SkScalar dx, SkScalar dy);
  2076. [Path_offset]
  2077. SkPath
  2078. void offset(SkScalar dx, SkScalar dy, SkPath* dst) const;
  2079. [Path_notequal_operator]
  2080. SkPath
  2081. bool operator!=(const SkPath& a, const SkPath& b);
  2082. [Path_copy_operator]
  2083. SkPath
  2084. SkPath& operator=(const SkPath& path);
  2085. [Path_equal_operator]
  2086. SkPath
  2087. bool operator==(const SkPath& a, const SkPath& b);
  2088. [Path_RawIter_peek]
  2089. SkPath
  2090. Verb peek() const;
  2091. [Path_quadTo]
  2092. SkPath
  2093. SkPath& quadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2);
  2094. [Path_quadTo_2]
  2095. SkPath
  2096. SkPath& quadTo(const SkPoint& p1, const SkPoint& p2);
  2097. [Path_rArcTo]
  2098. SkPath
  2099. SkPath& rArcTo(SkScalar rx, SkScalar ry, SkScalar xAxisRotate, ArcSize largeArc, Direction sweep, SkScalar dx, SkScalar dy);
  2100. [Cubic]
  2101. [Path_rConicTo]
  2102. SkPath
  2103. SkPath& rConicTo(SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2, SkScalar w);
  2104. [Arc]
  2105. [Path_rCubicTo]
  2106. SkPath
  2107. SkPath& rCubicTo(SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2, SkScalar dx3, SkScalar dy3);
  2108. [Path_rLineTo]
  2109. [Quad_a]
  2110. [Quad_b]
  2111. SkPath
  2112. SkPath& rLineTo(SkScalar dx, SkScalar dy);
  2113. [Path_rMoveTo]
  2114. SkPath
  2115. SkPath& rMoveTo(SkScalar dx, SkScalar dy);
  2116. [Conic_Weight_a]
  2117. [Conic_Weight_b]
  2118. [Conic_Weight_c]
  2119. [Path_rQuadTo]
  2120. SkPath
  2121. SkPath& rQuadTo(SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2);
  2122. [Path_readFromMemory]
  2123. SkPath
  2124. size_t readFromMemory(const void* buffer, size_t length);
  2125. [Path_reset]
  2126. SkPath
  2127. SkPath& reset();
  2128. [Path_reverseAddPath]
  2129. SkPath
  2130. SkPath& reverseAddPath(const SkPath& src);
  2131. [Path_rewind]
  2132. SkPath
  2133. SkPath& rewind();
  2134. [Path_serialize]
  2135. SkPath
  2136. sk_sp<SkData> serialize() const;
  2137. [Path_setConvexity]
  2138. SkPath
  2139. void setConvexity(Convexity convexity);
  2140. [Path_setFillType]
  2141. SkPath
  2142. void setFillType(FillType ft);
  2143. [Path_setIsVolatile]
  2144. SkPath
  2145. void setIsVolatile(bool isVolatile);
  2146. [Path_setLastPt]
  2147. SkPath
  2148. void setLastPt(SkScalar x, SkScalar y);
  2149. [Path_setLastPt_2]
  2150. SkPath
  2151. void setLastPt(const SkPoint& p);
  2152. [Path_Iter_setPath]
  2153. SkPath
  2154. void setPath(const SkPath& path, bool forceClose);
  2155. [Path_swap]
  2156. SkPath
  2157. void swap(SkPath& other);
  2158. [Path_toggleInverseFillType]
  2159. SkPath
  2160. void toggleInverseFillType();
  2161. [Path_transform_2]
  2162. SkPath
  2163. void transform(const SkMatrix& matrix);
  2164. [Path_transform]
  2165. SkPath
  2166. void transform(const SkMatrix& matrix, SkPath* dst) const;
  2167. [Path_updateBoundsCache]
  2168. SkPath
  2169. void updateBoundsCache() const;
  2170. [Path_writeToMemory]
  2171. SkPath
  2172. size_t writeToMemory(void* buffer) const;
  2173. [Path_destructor]
  2174. SkPath
  2175. ~SkPath();
  2176. [Picture_MakeFromData]
  2177. SkPicture
  2178. static sk_sp<SkPicture> MakeFromData(const SkData* data, const SkDeserialProcs* procs = nullptr);
  2179. [Picture_serialize_2]
  2180. SkPicture
  2181. static sk_sp<SkPicture> MakeFromData(const void* data, size_t size, const SkDeserialProcs* procs = nullptr);
  2182. [Picture_MakeFromStream]
  2183. SkPicture
  2184. static sk_sp<SkPicture> MakeFromStream(SkStream* stream, const SkDeserialProcs* procs = nullptr);
  2185. [Picture_MakePlaceholder]
  2186. SkPicture
  2187. static sk_sp<SkPicture> MakePlaceholder(SkRect cull);
  2188. [Picture_AbortCallback_abort]
  2189. SkPicture
  2190. virtual bool abort() = 0;
  2191. [Picture_approximateBytesUsed]
  2192. SkPicture
  2193. virtual size_t approximateBytesUsed() const = 0;
  2194. [Picture_approximateOpCount]
  2195. SkPicture
  2196. virtual int approximateOpCount() const = 0;
  2197. [Picture_cullRect]
  2198. SkPicture
  2199. virtual SkRect cullRect() const = 0;
  2200. [Picture_playback]
  2201. SkPicture
  2202. virtual void playback(SkCanvas* canvas, AbortCallback* callback = nullptr) const = 0;
  2203. [Picture_serialize]
  2204. SkPicture
  2205. sk_sp<SkData> serialize(const SkSerialProcs* procs = nullptr) const;
  2206. [Picture_serialize_2]
  2207. SkPicture
  2208. void serialize(SkWStream* stream, const SkSerialProcs* procs = nullptr) const;
  2209. [Picture_uniqueID]
  2210. SkPicture
  2211. uint32_t uniqueID() const;
  2212. [Pixmap_empty_constructor]
  2213. SkPixmap
  2214. SkPixmap();
  2215. [Pixmap_const_SkImageInfo_const_star]
  2216. SkPixmap
  2217. SkPixmap(const SkImageInfo& info, const void* addr, size_t rowBytes);
  2218. [Pixmap_addr]
  2219. SkPixmap
  2220. const void* addr() const;
  2221. [Pixmap_addr_2]
  2222. SkPixmap
  2223. const void* addr(int x, int y) const;
  2224. [Pixmap_addr16]
  2225. SkPixmap
  2226. const uint16_t* addr16() const;
  2227. [Pixmap_addr16_2]
  2228. SkPixmap
  2229. const uint16_t* addr16(int x, int y) const;
  2230. [Pixmap_addr32]
  2231. SkPixmap
  2232. const uint32_t* addr32() const;
  2233. [Pixmap_addr32_2]
  2234. SkPixmap
  2235. const uint32_t* addr32(int x, int y) const;
  2236. [Pixmap_addr64]
  2237. SkPixmap
  2238. const uint64_t* addr64() const;
  2239. [Pixmap_addr64_2]
  2240. SkPixmap
  2241. const uint64_t* addr64(int x, int y) const;
  2242. [Pixmap_addr8]
  2243. SkPixmap
  2244. const uint8_t* addr8() const;
  2245. [Pixmap_addr8_2]
  2246. SkPixmap
  2247. const uint8_t* addr8(int x, int y) const;
  2248. [Pixmap_addrF16]
  2249. SkPixmap
  2250. const uint16_t* addrF16() const;
  2251. [Pixmap_addrF16_2]
  2252. SkPixmap
  2253. const uint16_t* addrF16(int x, int y) const;
  2254. [Pixmap_alphaType]
  2255. SkPixmap
  2256. SkAlphaType alphaType() const;
  2257. [Pixmap_bounds]
  2258. SkPixmap
  2259. SkIRect bounds() const;
  2260. [Pixmap_colorSpace]
  2261. SkPixmap
  2262. SkColorSpace* colorSpace() const;
  2263. [Pixmap_colorType]
  2264. SkPixmap
  2265. SkColorType colorType() const;
  2266. [Pixmap_computeByteSize]
  2267. SkPixmap
  2268. size_t computeByteSize() const;
  2269. [Pixmap_computeIsOpaque]
  2270. SkPixmap
  2271. bool computeIsOpaque() const;
  2272. [Pixmap_erase_2]
  2273. SkPixmap
  2274. bool erase(SkColor color) const;
  2275. [Pixmap_erase]
  2276. SkPixmap
  2277. bool erase(SkColor color, const SkIRect& subset) const;
  2278. [Pixmap_erase_3]
  2279. SkPixmap
  2280. bool erase(const SkColor4f& color, const SkIRect* subset = nullptr) const;
  2281. [Pixmap_extractSubset]
  2282. SkPixmap
  2283. bool extractSubset(SkPixmap* subset, const SkIRect& area) const;
  2284. [Pixmap_getColor]
  2285. SkPixmap
  2286. SkColor getColor(int x, int y) const;
  2287. [Pixmap_height]
  2288. SkPixmap
  2289. int height() const;
  2290. [Pixmap_info]
  2291. SkPixmap
  2292. const SkImageInfo& info() const;
  2293. [Pixmap_isOpaque]
  2294. SkPixmap
  2295. bool isOpaque() const;
  2296. [Pixmap_readPixels]
  2297. SkPixmap
  2298. bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes) const;
  2299. [Pixmap_readPixels_2]
  2300. SkPixmap
  2301. bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX, int srcY) const;
  2302. [Pixmap_readPixels_4]
  2303. SkPixmap
  2304. bool readPixels(const SkPixmap& dst) const;
  2305. [Pixmap_readPixels_3]
  2306. SkPixmap
  2307. bool readPixels(const SkPixmap& dst, int srcX, int srcY) const;
  2308. [Pixmap_reset]
  2309. SkPixmap
  2310. void reset();
  2311. [Pixmap_reset_2]
  2312. SkPixmap
  2313. void reset(const SkImageInfo& info, const void* addr, size_t rowBytes);
  2314. [Pixmap_rowBytes]
  2315. SkPixmap
  2316. size_t rowBytes() const;
  2317. [Pixmap_rowBytesAsPixels]
  2318. SkPixmap
  2319. int rowBytesAsPixels() const;
  2320. [Pixmap_scalePixels]
  2321. SkPixmap
  2322. bool scalePixels(const SkPixmap& dst, SkFilterQuality filterQuality) const;
  2323. [Pixmap_setColorSpace]
  2324. SkPixmap
  2325. void setColorSpace(sk_sp<SkColorSpace> colorSpace);
  2326. [Pixmap_shiftPerPixel]
  2327. SkPixmap
  2328. int shiftPerPixel() const;
  2329. [Pixmap_width]
  2330. SkPixmap
  2331. int width() const;
  2332. [Pixmap_writable_addr]
  2333. SkPixmap
  2334. void* writable_addr() const;
  2335. [Pixmap_writable_addr_2]
  2336. SkPixmap
  2337. void* writable_addr(int x, int y) const;
  2338. [Pixmap_writable_addr16]
  2339. SkPixmap
  2340. uint16_t* writable_addr16(int x, int y) const;
  2341. [Pixmap_writable_addr32]
  2342. SkPixmap
  2343. uint32_t* writable_addr32(int x, int y) const;
  2344. [Pixmap_writable_addr64]
  2345. SkPixmap
  2346. uint64_t* writable_addr64(int x, int y) const;
  2347. [Pixmap_writable_addr8]
  2348. SkPixmap
  2349. uint8_t* writable_addr8(int x, int y) const;
  2350. [Pixmap_writable_addrF16]
  2351. SkPixmap
  2352. uint16_t* writable_addrF16(int x, int y) const;
  2353. [Point_CrossProduct]
  2354. SkPoint
  2355. static SkScalar CrossProduct(const SkVector& a, const SkVector& b);
  2356. [Point_Distance]
  2357. SkPoint
  2358. static SkScalar Distance(const SkPoint& a, const SkPoint& b);
  2359. [Point_DotProduct]
  2360. SkPoint
  2361. static SkScalar DotProduct(const SkVector& a, const SkVector& b);
  2362. [Point_Length]
  2363. SkPoint
  2364. static SkScalar Length(SkScalar x, SkScalar y);
  2365. [Point_Make]
  2366. SkPoint
  2367. static constexpr SkPoint Make(SkScalar x, SkScalar y);
  2368. [Point_Normalize]
  2369. SkPoint
  2370. static SkScalar Normalize(SkVector* vec);
  2371. [Point_Offset_2]
  2372. SkPoint
  2373. static void Offset(SkPoint points[], int count, SkScalar dx, SkScalar dy);
  2374. [Point_Offset]
  2375. SkPoint
  2376. static void Offset(SkPoint points[], int count, const SkVector& offset);
  2377. [Point_cross]
  2378. SkPoint
  2379. SkScalar cross(const SkVector& vec) const;
  2380. [Point_distanceToOrigin]
  2381. SkPoint
  2382. SkScalar distanceToOrigin() const;
  2383. [Point_dot]
  2384. SkPoint
  2385. SkScalar dot(const SkVector& vec) const;
  2386. [Point_equals]
  2387. SkPoint
  2388. bool equals(SkScalar x, SkScalar y) const;
  2389. [Point_isFinite]
  2390. SkPoint
  2391. bool isFinite() const;
  2392. [Point_isZero]
  2393. SkPoint
  2394. bool isZero() const;
  2395. [Point_iset_2]
  2396. SkPoint
  2397. void iset(const SkIPoint& p);
  2398. [Point_iset]
  2399. SkPoint
  2400. void iset(int32_t x, int32_t y);
  2401. [Point_length_2]
  2402. SkPoint
  2403. SkScalar length() const;
  2404. [Point_negate]
  2405. SkPoint
  2406. void negate();
  2407. [Point_normalize_2]
  2408. SkPoint
  2409. bool normalize();
  2410. [Point_offset_3]
  2411. SkPoint
  2412. void offset(SkScalar dx, SkScalar dy);
  2413. [Point_notequal_operator]
  2414. SkPoint
  2415. bool operator!=(const SkPoint& a, const SkPoint& b);
  2416. [Point_multiply_operator]
  2417. SkPoint
  2418. SkPoint operator*(SkScalar scale) const;
  2419. [Point_multiplyby_operator]
  2420. SkPoint
  2421. SkPoint& operator*=(SkScalar scale);
  2422. [Point_add_operator]
  2423. SkPoint
  2424. SkPoint operator+(const SkPoint& a, const SkVector& b);
  2425. [Point_addto_operator]
  2426. SkPoint
  2427. void operator+=(const SkVector& v);
  2428. [Point_minus_operator]
  2429. SkPoint
  2430. SkPoint operator-() const;
  2431. [Point_subtract_operator]
  2432. SkPoint
  2433. SkVector operator-(const SkPoint& a, const SkPoint& b);
  2434. [Point_subtractfrom_operator]
  2435. SkPoint
  2436. void operator-=(const SkVector& v);
  2437. [Point_equal_operator]
  2438. SkPoint
  2439. bool operator==(const SkPoint& a, const SkPoint& b);
  2440. [Point_scale]
  2441. SkPoint
  2442. void scale(SkScalar scale, SkPoint* dst) const;
  2443. [Point_scale_2]
  2444. SkPoint
  2445. void scale(SkScalar value);
  2446. [Point_set]
  2447. SkPoint
  2448. void set(SkScalar x, SkScalar y);
  2449. [Point_setAbs]
  2450. SkPoint
  2451. void setAbs(const SkPoint& pt);
  2452. [Point_setLength]
  2453. SkPoint
  2454. bool setLength(SkScalar length);
  2455. [Point_setLength_2]
  2456. SkPoint
  2457. bool setLength(SkScalar x, SkScalar y, SkScalar length);
  2458. [Point_setNormalize]
  2459. SkPoint
  2460. bool setNormalize(SkScalar x, SkScalar y);
  2461. [Point_x]
  2462. SkPoint
  2463. SkScalar x() const;
  2464. [Point_y]
  2465. SkPoint
  2466. SkScalar y() const;
  2467. [RRect_MakeEmpty]
  2468. SkRRect
  2469. static SkRRect MakeEmpty();
  2470. [RRect_MakeOval]
  2471. SkRRect
  2472. static SkRRect MakeOval(const SkRect& oval);
  2473. [RRect_MakeRect]
  2474. SkRRect
  2475. static SkRRect MakeRect(const SkRect& r);
  2476. [RRect_MakeRectXY]
  2477. SkRRect
  2478. static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
  2479. [RRect_empty_constructor]
  2480. SkRRect
  2481. SkRRect();
  2482. [RRect_copy_const_SkRRect]
  2483. SkRRect
  2484. SkRRect(const SkRRect& rrect);
  2485. [RRect_contains]
  2486. SkRRect
  2487. bool contains(const SkRect& rect) const;
  2488. [RRect_dump_2]
  2489. SkRRect
  2490. void dump() const;
  2491. [RRect_dump]
  2492. SkRRect
  2493. void dump(bool asHex) const;
  2494. [RRect_dumpHex]
  2495. SkRRect
  2496. void dumpHex() const;
  2497. [RRect_Corner]
  2498. SkRRect
  2499. enum Corner { kUpperLeft_Corner, kUpperRight_Corner, kLowerRight_Corner, kLowerLeft_Corner, };
  2500. [RRect_Type]
  2501. SkRRect
  2502. enum Type { kEmpty_Type, kRect_Type, kOval_Type, kSimple_Type, kNinePatch_Type, kComplex_Type, kLastType = kComplex_Type, };
  2503. [RRect_getBounds]
  2504. SkRRect
  2505. const SkRect& getBounds() const;
  2506. [RRect_getSimpleRadii]
  2507. SkRRect
  2508. SkVector getSimpleRadii() const;
  2509. [RRect_getType]
  2510. SkRRect
  2511. Type getType() const;
  2512. [RRect_height]
  2513. SkRRect
  2514. SkScalar height() const;
  2515. [RRect_inset_2]
  2516. SkRRect
  2517. void inset(SkScalar dx, SkScalar dy);
  2518. [RRect_inset]
  2519. SkRRect
  2520. void inset(SkScalar dx, SkScalar dy, SkRRect* dst) const;
  2521. [RRect_isComplex]
  2522. SkRRect
  2523. bool isComplex() const;
  2524. [RRect_isEmpty]
  2525. SkRRect
  2526. bool isEmpty() const;
  2527. [RRect_isNinePatch]
  2528. SkRRect
  2529. bool isNinePatch() const;
  2530. [RRect_isOval]
  2531. SkRRect
  2532. bool isOval() const;
  2533. [RRect_isRect]
  2534. SkRRect
  2535. bool isRect() const;
  2536. [RRect_isSimple]
  2537. SkRRect
  2538. bool isSimple() const;
  2539. [RRect_isValid]
  2540. SkRRect
  2541. bool isValid() const;
  2542. [RRect_makeOffset]
  2543. SkRRect
  2544. SkRRect makeOffset(SkScalar dx, SkScalar dy) const;
  2545. [RRect_offset]
  2546. SkRRect
  2547. void offset(SkScalar dx, SkScalar dy);
  2548. [RRect_notequal_operator]
  2549. SkRRect
  2550. bool operator!=(const SkRRect& a, const SkRRect& b);
  2551. [RRect_copy_operator]
  2552. SkRRect
  2553. SkRRect& operator=(const SkRRect& rrect);
  2554. [RRect_equal_operator]
  2555. SkRRect
  2556. bool operator==(const SkRRect& a, const SkRRect& b);
  2557. [RRect_outset_2]
  2558. SkRRect
  2559. void outset(SkScalar dx, SkScalar dy);
  2560. [RRect_outset]
  2561. SkRRect
  2562. void outset(SkScalar dx, SkScalar dy, SkRRect* dst) const;
  2563. [RRect_radii]
  2564. SkRRect
  2565. SkVector radii(Corner corner) const;
  2566. [RRect_readFromMemory]
  2567. SkRRect
  2568. size_t readFromMemory(const void* buffer, size_t length);
  2569. [RRect_rect]
  2570. SkRRect
  2571. const SkRect& rect() const;
  2572. [RRect_setEmpty]
  2573. SkRRect
  2574. void setEmpty();
  2575. [RRect_setNinePatch]
  2576. SkRRect
  2577. void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, SkScalar rightRad, SkScalar bottomRad);
  2578. [RRect_setOval]
  2579. SkRRect
  2580. void setOval(const SkRect& oval);
  2581. [RRect_setRect]
  2582. SkRRect
  2583. void setRect(const SkRect& rect);
  2584. [RRect_setRectRadii]
  2585. SkRRect
  2586. void setRectRadii(const SkRect& rect, const SkVector radii[4]);
  2587. [RRect_setRectXY]
  2588. SkRRect
  2589. void setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
  2590. [RRect_transform]
  2591. SkRRect
  2592. bool transform(const SkMatrix& matrix, SkRRect* dst) const;
  2593. [RRect_type_2]
  2594. SkRRect
  2595. Type type() const;
  2596. [RRect_width]
  2597. SkRRect
  2598. SkScalar width() const;
  2599. [RRect_writeToMemory]
  2600. SkRRect
  2601. size_t writeToMemory(void* buffer) const;
  2602. [Rect_Intersects]
  2603. SkRect
  2604. static bool Intersects(const SkRect& a, const SkRect& b);
  2605. [Rect_Make_2]
  2606. SkRect
  2607. static SkRect Make(const SkIRect& irect);
  2608. [Rect_Make]
  2609. SkRect
  2610. static SkRect Make(const SkISize& size);
  2611. [Rect_MakeEmpty]
  2612. SkRect
  2613. static constexpr SkRect MakeEmpty();
  2614. [Rect_MakeIWH]
  2615. SkRect
  2616. static SkRect MakeIWH(int w, int h);
  2617. [Rect_MakeLTRB]
  2618. SkRect
  2619. static constexpr SkRect MakeLTRB(SkScalar l, SkScalar t, SkScalar r, SkScalar b);
  2620. [Rect_MakeSize]
  2621. SkRect
  2622. static constexpr SkRect MakeSize(const SkSize& size);
  2623. [Rect_MakeWH]
  2624. SkRect
  2625. static constexpr SkRect MakeWH(SkScalar w, SkScalar h);
  2626. [Rect_MakeXYWH]
  2627. SkRect
  2628. static constexpr SkRect MakeXYWH(SkScalar x, SkScalar y, SkScalar w, SkScalar h);
  2629. [Rect_asScalars]
  2630. SkRect
  2631. const SkScalar* asScalars() const;
  2632. [Rect_bottom]
  2633. SkRect
  2634. SkScalar bottom() const;
  2635. [Rect_centerX]
  2636. SkRect
  2637. SkScalar centerX() const;
  2638. [Rect_centerY]
  2639. SkRect
  2640. SkScalar centerY() const;
  2641. [Rect_contains]
  2642. SkRect
  2643. bool contains(SkScalar x, SkScalar y) const;
  2644. [Rect_contains_3]
  2645. SkRect
  2646. bool contains(const SkIRect& r) const;
  2647. [Rect_contains_2]
  2648. SkRect
  2649. bool contains(const SkRect& r) const;
  2650. [Rect_dump_2]
  2651. SkRect
  2652. void dump() const;
  2653. [Rect_dump]
  2654. SkRect
  2655. void dump(bool asHex) const;
  2656. [Rect_dumpHex]
  2657. SkRect
  2658. void dumpHex() const;
  2659. [Rect_height]
  2660. SkRect
  2661. SkScalar height() const;
  2662. [Rect_inset]
  2663. SkRect
  2664. void inset(SkScalar dx, SkScalar dy);
  2665. [Rect_intersect_2]
  2666. SkRect
  2667. bool intersect(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom);
  2668. [Rect_intersect_3]
  2669. SkRect
  2670. bool intersect(const SkRect& a, const SkRect& b);
  2671. [Rect_intersect]
  2672. SkRect
  2673. bool intersect(const SkRect& r);
  2674. [Rect_intersects_3]
  2675. SkRect
  2676. bool intersects(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) const;
  2677. [Rect_intersects_2]
  2678. SkRect
  2679. bool intersects(const SkRect& r) const;
  2680. [Rect_isEmpty]
  2681. SkRect
  2682. bool isEmpty() const;
  2683. [Rect_isFinite]
  2684. SkRect
  2685. bool isFinite() const;
  2686. [Rect_isSorted]
  2687. SkRect
  2688. bool isSorted() const;
  2689. [Rect_iset]
  2690. SkRect
  2691. void iset(int left, int top, int right, int bottom);
  2692. [Rect_isetWH]
  2693. SkRect
  2694. void isetWH(int width, int height);
  2695. [Rect_join]
  2696. SkRect
  2697. void join(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom);
  2698. [Rect_join_2]
  2699. SkRect
  2700. void join(const SkRect& r);
  2701. [Rect_joinNonEmptyArg]
  2702. SkRect
  2703. void joinNonEmptyArg(const SkRect& r);
  2704. [Rect_joinPossiblyEmptyRect]
  2705. SkRect
  2706. void joinPossiblyEmptyRect(const SkRect& r);
  2707. [Rect_left]
  2708. SkRect
  2709. SkScalar left() const;
  2710. [Rect_makeInset]
  2711. SkRect
  2712. SkRect makeInset(SkScalar dx, SkScalar dy) const;
  2713. [Rect_makeOffset]
  2714. SkRect
  2715. SkRect makeOffset(SkScalar dx, SkScalar dy) const;
  2716. [Rect_makeOutset]
  2717. SkRect
  2718. SkRect makeOutset(SkScalar dx, SkScalar dy) const;
  2719. [Rect_makeSorted]
  2720. SkRect
  2721. SkRect makeSorted() const;
  2722. [Rect_offset]
  2723. SkRect
  2724. void offset(SkScalar dx, SkScalar dy);
  2725. [Rect_offset_2]
  2726. SkRect
  2727. void offset(const SkPoint& delta);
  2728. [Rect_offsetTo]
  2729. SkRect
  2730. void offsetTo(SkScalar newX, SkScalar newY);
  2731. [Rect_notequal_operator]
  2732. SkRect
  2733. bool operator!=(const SkRect& a, const SkRect& b);
  2734. [Rect_equal_operator]
  2735. SkRect
  2736. bool operator==(const SkRect& a, const SkRect& b);
  2737. [Rect_outset]
  2738. SkRect
  2739. void outset(SkScalar dx, SkScalar dy);
  2740. [Rect_right]
  2741. SkRect
  2742. SkScalar right() const;
  2743. [Rect_round_2]
  2744. SkRect
  2745. SkIRect round() const;
  2746. [Rect_round]
  2747. SkRect
  2748. void round(SkIRect* dst) const;
  2749. [Rect_roundIn]
  2750. SkRect
  2751. void roundIn(SkIRect* dst) const;
  2752. [Rect_roundOut_3]
  2753. SkRect
  2754. SkIRect roundOut() const;
  2755. [Rect_roundOut]
  2756. SkRect
  2757. void roundOut(SkIRect* dst) const;
  2758. [Rect_roundOut_2]
  2759. SkRect
  2760. void roundOut(SkRect* dst) const;
  2761. [Rect_set_2]
  2762. SkRect
  2763. void set(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom);
  2764. [Rect_set]
  2765. SkRect
  2766. void set(const SkIRect& src);
  2767. [Rect_set_3]
  2768. SkRect
  2769. void set(const SkPoint pts[], int count);
  2770. [Rect_set_4]
  2771. SkRect
  2772. void set(const SkPoint& p0, const SkPoint& p1);
  2773. [Rect_setBounds]
  2774. SkRect
  2775. void setBounds(const SkPoint pts[], int count);
  2776. [Rect_setBoundsCheck]
  2777. SkRect
  2778. bool setBoundsCheck(const SkPoint pts[], int count);
  2779. [Rect_setBoundsNoCheck]
  2780. SkRect
  2781. void setBoundsNoCheck(const SkPoint pts[], int count);
  2782. [Rect_setEmpty]
  2783. SkRect
  2784. void setEmpty();
  2785. [Rect_setLTRB]
  2786. SkRect
  2787. void setLTRB(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom);
  2788. [Rect_setWH]
  2789. SkRect
  2790. void setWH(SkScalar width, SkScalar height);
  2791. [Rect_setXYWH]
  2792. SkRect
  2793. void setXYWH(SkScalar x, SkScalar y, SkScalar width, SkScalar height);
  2794. [Rect_sort]
  2795. SkRect
  2796. void sort();
  2797. [Rect_toQuad]
  2798. SkRect
  2799. void toQuad(SkPoint quad[4]) const;
  2800. [Rect_top]
  2801. SkRect
  2802. SkScalar top() const;
  2803. [Rect_width]
  2804. SkRect
  2805. SkScalar width() const;
  2806. [Rect_x]
  2807. SkRect
  2808. SkScalar x() const;
  2809. [Rect_y]
  2810. SkRect
  2811. SkScalar y() const;
  2812. [Region_Cliperator_const_SkRegion_const_SkIRect]
  2813. SkRegion
  2814. Cliperator(const SkRegion& region, const SkIRect& clip);
  2815. [Region_Iterator_Iterator]
  2816. SkRegion
  2817. Iterator();
  2818. [Region_Iterator_copy_const_SkRegion]
  2819. SkRegion
  2820. Iterator(const SkRegion& region);
  2821. [Region_copy_const_SkIRect]
  2822. SkRegion
  2823. explicit SkRegion(const SkIRect& rect);
  2824. [Region_empty_constructor]
  2825. SkRegion
  2826. SkRegion();
  2827. [Region_copy_const_SkRegion]
  2828. SkRegion
  2829. SkRegion(const SkRegion& region);
  2830. [Region_Spanerator_const_SkRegion_int_int_int]
  2831. SkRegion
  2832. Spanerator(const SkRegion& region, int y, int left, int right);
  2833. [Region_computeRegionComplexity]
  2834. SkRegion
  2835. int computeRegionComplexity() const;
  2836. [Region_contains_2]
  2837. SkRegion
  2838. bool contains(const SkIRect& other) const;
  2839. [Region_contains_3]
  2840. SkRegion
  2841. bool contains(const SkRegion& other) const;
  2842. [Region_contains]
  2843. SkRegion
  2844. bool contains(int32_t x, int32_t y) const;
  2845. [Region_Iterator_done]
  2846. SkRegion
  2847. bool done() const;
  2848. [Region_Cliperator_done]
  2849. SkRegion
  2850. bool done();
  2851. [Region_Op]
  2852. SkRegion
  2853. enum Op { kDifference_Op, kIntersect_Op, kUnion_Op, kXOR_Op, kReverseDifference_Op, kReplace_Op, kLastOp = kReplace_Op, };
  2854. [Region_getBoundaryPath]
  2855. SkRegion
  2856. bool getBoundaryPath(SkPath* path) const;
  2857. [Region_getBounds]
  2858. SkRegion
  2859. const SkIRect& getBounds() const;
  2860. [Region_intersects]
  2861. SkRegion
  2862. bool intersects(const SkIRect& rect) const;
  2863. [Region_intersects_2]
  2864. SkRegion
  2865. bool intersects(const SkRegion& other) const;
  2866. [Region_isComplex]
  2867. SkRegion
  2868. bool isComplex() const;
  2869. [Region_isEmpty]
  2870. SkRegion
  2871. bool isEmpty() const;
  2872. [Region_isRect]
  2873. SkRegion
  2874. bool isRect() const;
  2875. [Region_Spanerator_next]
  2876. SkRegion
  2877. bool next(int* left, int* right);
  2878. [Region_Cliperator_next]
  2879. SkRegion
  2880. void next();
  2881. [Region_Iterator_next]
  2882. SkRegion
  2883. void next();
  2884. [Region_op_1]
  2885. SkRegion
  2886. bool op(const SkIRect& rect, Op op);
  2887. [Region_op_4]
  2888. SkRegion
  2889. bool op(const SkIRect& rect, const SkRegion& rgn, Op op);
  2890. [Region_op_3]
  2891. SkRegion
  2892. bool op(const SkRegion& rgn, Op op);
  2893. [Region_op_5]
  2894. SkRegion
  2895. bool op(const SkRegion& rgn, const SkIRect& rect, Op op);
  2896. [Region_op_6]
  2897. SkRegion
  2898. bool op(const SkRegion& rgna, const SkRegion& rgnb, Op op);
  2899. [Region_op_2]
  2900. SkRegion
  2901. bool op(int left, int top, int right, int bottom, Op op);
  2902. [Region_notequal1_operator]
  2903. SkRegion
  2904. bool operator!=(const SkRegion& other) const;
  2905. [Region_copy_operator]
  2906. SkRegion
  2907. SkRegion& operator=(const SkRegion& region);
  2908. [Region_equal1_operator]
  2909. SkRegion
  2910. bool operator==(const SkRegion& other) const;
  2911. [Region_quickContains]
  2912. SkRegion
  2913. bool quickContains(const SkIRect& r) const;
  2914. [Region_quickContains_2]
  2915. SkRegion
  2916. bool quickContains(int32_t left, int32_t top, int32_t right, int32_t bottom) const;
  2917. [Region_quickReject]
  2918. SkRegion
  2919. bool quickReject(const SkIRect& rect) const;
  2920. [Region_quickReject_2]
  2921. SkRegion
  2922. bool quickReject(const SkRegion& rgn) const;
  2923. [Region_readFromMemory]
  2924. SkRegion
  2925. size_t readFromMemory(const void* buffer, size_t length);
  2926. [Region_Cliperator_rect]
  2927. [Region_Iterator_rect]
  2928. SkRegion
  2929. const SkIRect& rect() const;
  2930. [Region_Iterator_reset]
  2931. SkRegion
  2932. void reset(const SkRegion& region);
  2933. [Region_Iterator_rewind]
  2934. SkRegion
  2935. bool rewind();
  2936. [Region_Iterator_rgn]
  2937. SkRegion
  2938. const SkRegion* rgn() const;
  2939. [Region_set]
  2940. SkRegion
  2941. bool set(const SkRegion& src);
  2942. [Region_setEmpty]
  2943. SkRegion
  2944. bool setEmpty();
  2945. [Region_setPath]
  2946. SkRegion
  2947. bool setPath(const SkPath& path, const SkRegion& clip);
  2948. [Region_setRect]
  2949. SkRegion
  2950. bool setRect(const SkIRect& rect);
  2951. [Region_setRect_2]
  2952. SkRegion
  2953. bool setRect(int32_t left, int32_t top, int32_t right, int32_t bottom);
  2954. [Region_setRects]
  2955. SkRegion
  2956. bool setRects(const SkIRect rects[], int count);
  2957. [Region_setRegion]
  2958. SkRegion
  2959. bool setRegion(const SkRegion& region);
  2960. [Region_swap]
  2961. SkRegion
  2962. void swap(SkRegion& other);
  2963. [Region_translate]
  2964. SkRegion
  2965. void translate(int dx, int dy);
  2966. [Region_translate_2]
  2967. SkRegion
  2968. void translate(int dx, int dy, SkRegion* dst) const;
  2969. [Region_writeToMemory]
  2970. SkRegion
  2971. size_t writeToMemory(void* buffer) const;
  2972. [Region_destructor]
  2973. SkRegion
  2974. ~SkRegion();
  2975. [Surface_MakeFromBackendTexture]
  2976. SkSurface
  2977. static sk_sp<SkSurface> MakeFromBackendTexture(GrContext* context, const GrBackendTexture& backendTexture, GrSurfaceOrigin origin, int sampleCnt, SkColorType colorType, sk_sp<SkColorSpace> colorSpace, const SkSurfaceProps* surfaceProps);
  2978. [Surface_MakeFromBackendTextureAsRenderTarget]
  2979. SkSurface
  2980. static sk_sp<SkSurface> MakeFromBackendTextureAsRenderTarget(GrContext* context, const GrBackendTexture& backendTexture, GrSurfaceOrigin origin, int sampleCnt, SkColorType colorType, sk_sp<SkColorSpace> colorSpace, const SkSurfaceProps* surfaceProps);
  2981. [Surface_MakeNull]
  2982. SkSurface
  2983. static sk_sp<SkSurface> MakeNull(int width, int height);
  2984. [Surface_MakeRaster_2]
  2985. SkSurface
  2986. static sk_sp<SkSurface> MakeRaster(const SkImageInfo& imageInfo, const SkSurfaceProps* props = nullptr);
  2987. [Surface_MakeRaster]
  2988. SkSurface
  2989. static sk_sp<SkSurface> MakeRaster(const SkImageInfo& imageInfo, size_t rowBytes, const SkSurfaceProps* surfaceProps);
  2990. [Surface_MakeRasterDirect]
  2991. SkSurface
  2992. static sk_sp<SkSurface> MakeRasterDirect(const SkImageInfo& imageInfo, void* pixels, size_t rowBytes, const SkSurfaceProps* surfaceProps = nullptr);
  2993. [Surface_MakeRasterDirectReleaseProc]
  2994. SkSurface
  2995. static sk_sp<SkSurface> MakeRasterDirectReleaseProc(const SkImageInfo& imageInfo, void* pixels, size_t rowBytes, void (*releaseProc) (void* pixels, void* context) , void* context, const SkSurfaceProps* surfaceProps = nullptr);
  2996. [Surface_MakeRasterN32Premul]
  2997. SkSurface
  2998. static sk_sp<SkSurface> MakeRasterN32Premul(int width, int height, const SkSurfaceProps* surfaceProps = nullptr);
  2999. [Surface_MakeRenderTarget_3]
  3000. SkSurface
  3001. static sk_sp<SkSurface> MakeRenderTarget(GrContext* context, SkBudgeted budgeted, const SkImageInfo& imageInfo);
  3002. [Surface_MakeRenderTarget]
  3003. SkSurface
  3004. static sk_sp<SkSurface> MakeRenderTarget(GrContext* context, SkBudgeted budgeted, const SkImageInfo& imageInfo, int sampleCount, GrSurfaceOrigin surfaceOrigin, const SkSurfaceProps* surfaceProps, bool shouldCreateWithMips = false);
  3005. [Surface_MakeRenderTarget_2]
  3006. SkSurface
  3007. static sk_sp<SkSurface> MakeRenderTarget(GrContext* context, SkBudgeted budgeted, const SkImageInfo& imageInfo, int sampleCount, const SkSurfaceProps* props);
  3008. [Surface_characterize]
  3009. SkSurface
  3010. bool characterize(SkSurfaceCharacterization* characterization) const;
  3011. [Surface_draw_2]
  3012. SkSurface
  3013. bool draw(SkDeferredDisplayList* deferredDisplayList);
  3014. [Surface_draw]
  3015. SkSurface
  3016. void draw(SkCanvas* canvas, SkScalar x, SkScalar y, const SkPaint* paint);
  3017. [Surface_notifyContentWillChange]
  3018. SkSurface
  3019. uint32_t generationID();
  3020. [Surface_getCanvas]
  3021. SkSurface
  3022. SkCanvas* getCanvas();
  3023. [Surface_height]
  3024. SkSurface
  3025. int height() const;
  3026. [Surface_makeImageSnapshot]
  3027. SkSurface
  3028. sk_sp<SkImage> makeImageSnapshot();
  3029. [Surface_makeImageSnapshot_2]
  3030. SkSurface
  3031. sk_sp<SkImage> makeImageSnapshot(const SkIRect& bounds);
  3032. [Surface_makeSurface]
  3033. SkSurface
  3034. sk_sp<SkSurface> makeSurface(const SkImageInfo& imageInfo);
  3035. [Surface_notifyContentWillChange]
  3036. SkSurface
  3037. void notifyContentWillChange(ContentChangeMode mode);
  3038. [Surface_peekPixels]
  3039. SkSurface
  3040. bool peekPixels(SkPixmap* pixmap);
  3041. [Surface_props]
  3042. SkSurface
  3043. const SkSurfaceProps& props() const;
  3044. [Surface_readPixels_3]
  3045. SkSurface
  3046. bool readPixels(const SkBitmap& dst, int srcX, int srcY);
  3047. [Surface_readPixels_2]
  3048. SkSurface
  3049. bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX, int srcY);
  3050. [Surface_readPixels]
  3051. SkSurface
  3052. bool readPixels(const SkPixmap& dst, int srcX, int srcY);
  3053. [Surface_width]
  3054. SkSurface
  3055. int width() const;
  3056. [Surface_writePixels_2]
  3057. SkSurface
  3058. void writePixels(const SkBitmap& src, int dstX, int dstY);
  3059. [Surface_writePixels]
  3060. SkSurface
  3061. void writePixels(const SkPixmap& src, int dstX, int dstY);
  3062. [TextBlob_Deserialize]
  3063. SkTextBlob
  3064. static sk_sp<SkTextBlob> Deserialize(const void* data, size_t size, const SkDeserialProcs& procs);
  3065. [TextBlob_MakeFromString]
  3066. SkTextBlob
  3067. static sk_sp<SkTextBlob> MakeFromString(const char* string, const SkFont& font, SkTextEncoding encoding = SkTextEncoding::kUTF8);
  3068. [TextBlob_MakeFromText]
  3069. SkTextBlob
  3070. static sk_sp<SkTextBlob> MakeFromText(const void* text, size_t byteLength, const SkFont& font, SkTextEncoding encoding = SkTextEncoding::kUTF8);
  3071. [TextBlob_bounds]
  3072. SkTextBlob
  3073. const SkRect& bounds() const;
  3074. [TextBlob_getIntercepts]
  3075. SkTextBlob
  3076. int getIntercepts(const SkScalar bounds[2], SkScalar intervals[], const SkPaint* paint = nullptr) const;
  3077. [TextBlob_serialize]
  3078. SkTextBlob
  3079. size_t serialize(const SkSerialProcs& procs, void* memory, size_t memory_size) const;
  3080. [TextBlob_serialize_2]
  3081. SkTextBlob
  3082. sk_sp<SkData> serialize(const SkSerialProcs& procs) const;
  3083. [TextBlob_uniqueID]
  3084. SkTextBlob
  3085. uint32_t uniqueID() const;
  3086. [TextBlobBuilder_empty_constructor]
  3087. SkTextBlobBuilder
  3088. SkTextBlobBuilder();
  3089. [TextBlobBuilder_allocRun]
  3090. SkTextBlobBuilder
  3091. const RunBuffer& allocRun(const SkFont& font, int count, SkScalar x, SkScalar y, const SkRect* bounds = nullptr);
  3092. [TextBlobBuilder_allocRunPos]
  3093. SkTextBlobBuilder
  3094. const RunBuffer& allocRunPos(const SkFont& font, int count, const SkRect* bounds = nullptr);
  3095. [TextBlobBuilder_allocRunPosH]
  3096. SkTextBlobBuilder
  3097. const RunBuffer& allocRunPosH(const SkFont& font, int count, SkScalar y, const SkRect* bounds = nullptr);
  3098. [TextBlobBuilder_make]
  3099. SkTextBlobBuilder
  3100. sk_sp<SkTextBlob> make();