1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern "C" {
    pub fn UIGraphicsPopContext();
}

extern "C" {
    pub fn UIRectFill(rect: CGRect);
}

extern "C" {
    pub fn UIRectFrame(rect: CGRect);
}

extern "C" {
    pub fn UIRectClip(rect: CGRect);
}

extern "C" {
    #[deprecated = "Replace usage of UIGraphicsBeginImageContext with UIGraphicsImageRenderer."]
    pub fn UIGraphicsBeginImageContext(size: CGSize);
}

extern "C" {
    #[deprecated = "Replace usage of UIGraphicsBeginImageContextWithOptions with UIGraphicsImageRenderer."]
    pub fn UIGraphicsBeginImageContextWithOptions(size: CGSize, opaque: Bool, scale: CGFloat);
}

extern "C" {
    #[cfg(feature = "UIImage")]
    #[deprecated = "Replace usage of UIGraphicsGetImageFromCurrentImageContext with UIGraphicsImageRendererContext.currentImage."]
    pub fn UIGraphicsGetImageFromCurrentImageContext() -> *mut UIImage;
}

extern "C" {
    #[deprecated = "UIGraphicsEndImageContext should only be used alongside UIGraphicsBeginImageContext[WithOptions]."]
    pub fn UIGraphicsEndImageContext();
}

extern "C" {
    pub fn UIGraphicsBeginPDFContextToFile(
        path: &NSString,
        bounds: CGRect,
        document_info: Option<&NSDictionary>,
    ) -> Bool;
}

extern "C" {
    pub fn UIGraphicsBeginPDFContextToData(
        data: &NSMutableData,
        bounds: CGRect,
        document_info: Option<&NSDictionary>,
    );
}

extern "C" {
    pub fn UIGraphicsEndPDFContext();
}

extern "C" {
    pub fn UIGraphicsBeginPDFPage();
}

extern "C" {
    pub fn UIGraphicsBeginPDFPageWithInfo(bounds: CGRect, page_info: Option<&NSDictionary>);
}

extern "C" {
    pub fn UIGraphicsGetPDFContextBounds() -> CGRect;
}

extern "C" {
    pub fn UIGraphicsSetPDFContextURLForRect(url: &NSURL, rect: CGRect);
}

extern "C" {
    pub fn UIGraphicsAddPDFContextDestinationAtPoint(name: &NSString, point: CGPoint);
}

extern "C" {
    pub fn UIGraphicsSetPDFContextDestinationForRect(name: &NSString, rect: CGRect);
}