We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42cb067 commit 3b111cdCopy full SHA for 3b111cd
Sources/Silica/CGContext.swift
@@ -321,7 +321,8 @@ public final class CGContext {
321
internalState = newState
322
}
323
324
- internal func saveGState() {
+ /// Pushes a copy of the current graphics state onto the graphics state stack for the context.
325
+ public func saveGState() {
326
try! save()
327
328
@@ -341,7 +342,7 @@ public final class CGContext {
341
342
internalState = restoredState
343
344
- @inline(__always)
345
+ /// Sets the current graphics state to the state most recently saved.
346
public func restoreGState() {
347
try! restore()
348
0 commit comments