Gecko:2DGraphicsSketch: Difference between revisions

Jump to navigation Jump to search
Line 86: Line 86:
== Clips ==
== Clips ==


Logically a Clip is the intersection of zero or more Paths, but we special-case rectangular Clips since they're very common.
Logically a Clip is the intersection of zero or more Paths, but we should special-case rectangular Clips since they're very common.


''We treat Clips in a similar way to Paths: lightweight, not-heap-allocated wrappers around platform object pointers.'' Clips are immutable once created. (You can however overwrite one Clip value with another.)
''We treat Clips in a similar way to Paths: lightweight, not-heap-allocated wrappers around platform object pointers.'' Clips are immutable once created. (You can however overwrite one Clip value with another.)
1,295

edits

Navigation menu