@@ -53,23 +53,155 @@ pub fn manual_screen_clear() {
53
53
}
54
54
}
55
55
56
- use include_gif:: include_gif;
57
-
58
56
pub const BLANK : [ u8 ; 1024 ] = [ 0u8 ; 1024 ] ;
59
57
60
- pub const BACK : Glyph = Glyph :: from_include ( include_gif ! ( "icons/badge_back.gif" ) ) ;
61
- pub const CHECKMARK : Glyph = Glyph :: from_include ( include_gif ! ( "icons/badge_check.gif" ) ) ;
62
- pub const COGGLE : Glyph = Glyph :: from_include ( include_gif ! ( "icons/icon_coggle.gif" ) ) ;
63
- pub const CROSS : Glyph = Glyph :: from_include ( include_gif ! ( "icons/icon_cross_badge.gif" ) ) ;
64
- pub const DOWN_ARROW : Glyph = Glyph :: from_include ( include_gif ! ( "icons/icon_down.gif" ) ) ;
65
- pub const LEFT_ARROW : Glyph = Glyph :: from_include ( include_gif ! ( "icons/icon_left.gif" ) ) ;
66
- pub const RIGHT_ARROW : Glyph = Glyph :: from_include ( include_gif ! ( "icons/icon_right.gif" ) ) ;
67
- pub const UP_ARROW : Glyph = Glyph :: from_include ( include_gif ! ( "icons/icon_up.gif" ) ) ;
68
- pub const CERTIFICATE : Glyph = Glyph :: from_include ( include_gif ! ( "icons/icon_certificate.gif" ) ) ;
69
- pub const CROSSMARK : Glyph = Glyph :: from_include ( include_gif ! ( "icons/icon_crossmark.gif" ) ) ;
70
- pub const DASHBOARD : Glyph = Glyph :: from_include ( include_gif ! ( "icons/icon_dashboard.gif" ) ) ;
71
- pub const DASHBOARD_X : Glyph = Glyph :: from_include ( include_gif ! ( "icons/icon_dashboard_x.gif" ) ) ;
72
- pub const EYE : Glyph = Glyph :: from_include ( include_gif ! ( "icons/icon_eye.gif" ) ) ;
73
- pub const PROCESSING : Glyph = Glyph :: from_include ( include_gif ! ( "icons/icon_processing.gif" ) ) ;
74
- pub const VALIDATE_14 : Glyph = Glyph :: from_include ( include_gif ! ( "icons/icon_validate_14.gif" ) ) ;
75
- pub const WARNING : Glyph = Glyph :: from_include ( include_gif ! ( "icons/icon_warning.gif" ) ) ;
58
+ extern "C" {
59
+ /// The bitmap for the back icon.
60
+ pub static C_icon_back_bitmap : [ u8 ; 25 ] ;
61
+ }
62
+ pub static BACK : Glyph = Glyph {
63
+ bitmap : unsafe { & C_icon_back_bitmap } ,
64
+ width : ledger_secure_sdk_sys:: GLYPH_icon_back_WIDTH ,
65
+ height : ledger_secure_sdk_sys:: GLYPH_icon_back_HEIGHT ,
66
+ inverted : false ,
67
+ } ;
68
+ extern "C" {
69
+ /// The bitmap for the back_x icon.
70
+ pub static C_icon_back_x_bitmap : [ u8 ; 25 ] ;
71
+ }
72
+ pub static BACK_X : Glyph = Glyph {
73
+ bitmap : unsafe { & C_icon_back_x_bitmap } ,
74
+ width : ledger_secure_sdk_sys:: GLYPH_icon_back_x_WIDTH ,
75
+ height : ledger_secure_sdk_sys:: GLYPH_icon_back_x_HEIGHT ,
76
+ inverted : false ,
77
+ } ;
78
+ extern "C" {
79
+ /// The bitmap for the coggle icon.
80
+ pub static C_icon_coggle_bitmap : [ u8 ; 25 ] ;
81
+ }
82
+ pub static COGGLE : Glyph = Glyph {
83
+ bitmap : unsafe { & C_icon_coggle_bitmap } ,
84
+ width : ledger_secure_sdk_sys:: GLYPH_icon_coggle_WIDTH ,
85
+ height : ledger_secure_sdk_sys:: GLYPH_icon_coggle_HEIGHT ,
86
+ inverted : false ,
87
+ } ;
88
+ extern "C" {
89
+ /// The bitmap for the processing icon.
90
+ pub static C_icon_down_bitmap : [ u8 ; 25 ] ;
91
+ }
92
+ pub static DOWN_ARROW : Glyph = Glyph {
93
+ bitmap : unsafe { & C_icon_down_bitmap } ,
94
+ width : ledger_secure_sdk_sys:: GLYPH_icon_down_WIDTH ,
95
+ height : ledger_secure_sdk_sys:: GLYPH_icon_down_HEIGHT ,
96
+ inverted : false ,
97
+ } ;
98
+ extern "C" {
99
+ /// The bitmap for the left arrow icon.
100
+ pub static C_icon_left_bitmap : [ u8 ; 25 ] ;
101
+ }
102
+ pub static LEFT_ARROW : Glyph = Glyph {
103
+ bitmap : unsafe { & C_icon_left_bitmap } ,
104
+ width : ledger_secure_sdk_sys:: GLYPH_icon_left_WIDTH ,
105
+ height : ledger_secure_sdk_sys:: GLYPH_icon_left_HEIGHT ,
106
+ inverted : false ,
107
+ } ;
108
+ extern "C" {
109
+ /// The bitmap for the right arrow icon.
110
+ pub static C_icon_right_bitmap : [ u8 ; 25 ] ;
111
+ }
112
+ pub static RIGHT_ARROW : Glyph = Glyph {
113
+ bitmap : unsafe { & C_icon_right_bitmap } ,
114
+ width : ledger_secure_sdk_sys:: GLYPH_icon_right_WIDTH ,
115
+ height : ledger_secure_sdk_sys:: GLYPH_icon_right_HEIGHT ,
116
+ inverted : false ,
117
+ } ;
118
+ extern "C" {
119
+ /// The bitmap for the up arrow icon.
120
+ pub static C_icon_up_bitmap : [ u8 ; 25 ] ;
121
+ }
122
+ pub static UP_ARROW : Glyph = Glyph {
123
+ bitmap : unsafe { & C_icon_up_bitmap } ,
124
+ width : ledger_secure_sdk_sys:: GLYPH_icon_up_WIDTH ,
125
+ height : ledger_secure_sdk_sys:: GLYPH_icon_up_HEIGHT ,
126
+ inverted : false ,
127
+ } ;
128
+ extern "C" {
129
+ /// The bitmap for the certificate icon.
130
+ pub static C_icon_certificate_bitmap : [ u8 ; 25 ] ;
131
+ }
132
+ pub static CERTIFICATE : Glyph = Glyph {
133
+ bitmap : unsafe { & C_icon_certificate_bitmap } ,
134
+ width : ledger_secure_sdk_sys:: GLYPH_icon_certificate_WIDTH ,
135
+ height : ledger_secure_sdk_sys:: GLYPH_icon_certificate_HEIGHT ,
136
+ inverted : false ,
137
+ } ;
138
+ extern "C" {
139
+ /// The bitmap for the crossmark icon.
140
+ pub static C_icon_crossmark_bitmap : [ u8 ; 25 ] ;
141
+ }
142
+ pub static CROSSMARK : Glyph = Glyph {
143
+ bitmap : unsafe { & C_icon_crossmark_bitmap } ,
144
+ width : ledger_secure_sdk_sys:: GLYPH_icon_crossmark_WIDTH ,
145
+ height : ledger_secure_sdk_sys:: GLYPH_icon_crossmark_HEIGHT ,
146
+ inverted : false ,
147
+ } ;
148
+ extern "C" {
149
+ /// The bitmap for the dashboard icon.
150
+ pub static C_icon_dashboard_bitmap : [ u8 ; 25 ] ;
151
+ }
152
+ pub static DASHBOARD : Glyph = Glyph {
153
+ bitmap : unsafe { & C_icon_dashboard_bitmap } ,
154
+ width : ledger_secure_sdk_sys:: GLYPH_icon_dashboard_WIDTH ,
155
+ height : ledger_secure_sdk_sys:: GLYPH_icon_dashboard_HEIGHT ,
156
+ inverted : false ,
157
+ } ;
158
+ extern "C" {
159
+ /// The bitmap for the dashboard x icon.
160
+ pub static C_icon_dashboard_x_bitmap : [ u8 ; 25 ] ;
161
+ }
162
+ pub static DASHBOARD_X : Glyph = Glyph {
163
+ bitmap : unsafe { & C_icon_dashboard_x_bitmap } ,
164
+ width : ledger_secure_sdk_sys:: GLYPH_icon_dashboard_x_WIDTH ,
165
+ height : ledger_secure_sdk_sys:: GLYPH_icon_dashboard_x_HEIGHT ,
166
+ inverted : false ,
167
+ } ;
168
+ extern "C" {
169
+ /// The bitmap for the eye icon.
170
+ pub static C_icon_eye_bitmap : [ u8 ; 25 ] ;
171
+ }
172
+ pub static EYE : Glyph = Glyph {
173
+ bitmap : unsafe { & C_icon_eye_bitmap } ,
174
+ width : ledger_secure_sdk_sys:: GLYPH_icon_eye_WIDTH ,
175
+ height : ledger_secure_sdk_sys:: GLYPH_icon_eye_HEIGHT ,
176
+ inverted : false ,
177
+ } ;
178
+ extern "C" {
179
+ /// The bitmap for the processing icon.
180
+ pub static C_icon_processing_bitmap : [ u8 ; 25 ] ;
181
+ }
182
+ pub static PROCESSING : Glyph = Glyph {
183
+ bitmap : unsafe { & C_icon_processing_bitmap } ,
184
+ width : ledger_secure_sdk_sys:: GLYPH_icon_processing_WIDTH ,
185
+ height : ledger_secure_sdk_sys:: GLYPH_icon_processing_HEIGHT ,
186
+ inverted : false ,
187
+ } ;
188
+ extern "C" {
189
+ /// The bitmap for the validate icon.
190
+ pub static C_icon_validate_14_bitmap : [ u8 ; 25 ] ;
191
+ }
192
+ pub static VALIDATE_14 : Glyph = Glyph {
193
+ bitmap : unsafe { & C_icon_validate_14_bitmap } ,
194
+ width : ledger_secure_sdk_sys:: GLYPH_icon_validate_14_WIDTH ,
195
+ height : ledger_secure_sdk_sys:: GLYPH_icon_validate_14_HEIGHT ,
196
+ inverted : false ,
197
+ } ;
198
+ extern "C" {
199
+ /// The bitmap for the warning icon.
200
+ pub static C_icon_warning_bitmap : [ u8 ; 25 ] ;
201
+ }
202
+ pub static WARNING : Glyph = Glyph {
203
+ bitmap : unsafe { & C_icon_warning_bitmap } ,
204
+ width : ledger_secure_sdk_sys:: GLYPH_icon_warning_WIDTH ,
205
+ height : ledger_secure_sdk_sys:: GLYPH_icon_warning_HEIGHT ,
206
+ inverted : false ,
207
+ } ;
0 commit comments