1#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
7#![allow(clippy::approx_constant, clippy::type_complexity, clippy::unreadable_literal, clippy::upper_case_acronyms)]
8#![cfg_attr(docsrs, feature(doc_cfg))]
9
10use glib_sys as glib;
11use gobject_sys as gobject;
12use gio_sys as gio;
13use gtk_sys as gtk;
14use gdk_sys as gdk;
15use gdk_pixbuf_sys as gdk_pixbuf;
16use pango_sys as pango;
17use handy_sys as handy;
18
19#[allow(unused_imports)]
20use std::ffi::{c_int, c_char, c_uchar, c_float, c_uint, c_double,
21 c_short, c_ushort, c_long, c_ulong, c_void};
22#[allow(unused_imports)]
23use libc::{size_t, ssize_t, time_t, off_t, intptr_t, uintptr_t, FILE};
24#[cfg(unix)]
25#[allow(unused_imports)]
26use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t};
27
28#[allow(unused_imports)]
29use glib::{gboolean, gconstpointer, gpointer, GType};
30
31pub type PhoshLockscreenPage = c_int;
33pub const PHOSH_LOCKSCREEN_PAGE_INFO: PhoshLockscreenPage = 0;
34pub const PHOSH_LOCKSCREEN_PAGE_EXTRA: PhoshLockscreenPage = 1;
35pub const PHOSH_LOCKSCREEN_PAGE_UNLOCK: PhoshLockscreenPage = 2;
36
37#[derive(Copy, Clone)]
39#[repr(C)]
40pub struct PhoshDBusScreenshotProxyClass {
41 pub parent_class: gio::GDBusProxyClass,
42}
43
44impl ::std::fmt::Debug for PhoshDBusScreenshotProxyClass {
45 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
46 f.debug_struct(&format!("PhoshDBusScreenshotProxyClass @ {self:p}"))
47 .field("parent_class", &self.parent_class)
48 .finish()
49 }
50}
51
52#[repr(C)]
53#[allow(dead_code)]
54pub struct _PhoshDBusScreenshotProxyPrivate {
55 _data: [u8; 0],
56 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
57}
58
59pub type PhoshDBusScreenshotProxyPrivate = _PhoshDBusScreenshotProxyPrivate;
60
61#[derive(Copy, Clone)]
62#[repr(C)]
63pub struct PhoshDBusScreenshotSkeletonClass {
64 pub parent_class: gio::GDBusInterfaceSkeletonClass,
65}
66
67impl ::std::fmt::Debug for PhoshDBusScreenshotSkeletonClass {
68 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
69 f.debug_struct(&format!("PhoshDBusScreenshotSkeletonClass @ {self:p}"))
70 .field("parent_class", &self.parent_class)
71 .finish()
72 }
73}
74
75#[repr(C)]
76#[allow(dead_code)]
77pub struct _PhoshDBusScreenshotSkeletonPrivate {
78 _data: [u8; 0],
79 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
80}
81
82pub type PhoshDBusScreenshotSkeletonPrivate = _PhoshDBusScreenshotSkeletonPrivate;
83
84#[derive(Copy, Clone)]
85#[repr(C)]
86pub struct PhoshLayerSurfaceClass {
87 pub parent_class: gtk::GtkWindowClass,
88 pub configured: Option<unsafe extern "C" fn(*mut PhoshLayerSurface)>,
89 pub _phosh_reserved1: Option<unsafe extern "C" fn()>,
90 pub _phosh_reserved2: Option<unsafe extern "C" fn()>,
91 pub _phosh_reserved3: Option<unsafe extern "C" fn()>,
92 pub _phosh_reserved4: Option<unsafe extern "C" fn()>,
93 pub _phosh_reserved5: Option<unsafe extern "C" fn()>,
94 pub _phosh_reserved6: Option<unsafe extern "C" fn()>,
95 pub _phosh_reserved7: Option<unsafe extern "C" fn()>,
96 pub _phosh_reserved8: Option<unsafe extern "C" fn()>,
97 pub _phosh_reserved9: Option<unsafe extern "C" fn()>,
98}
99
100impl ::std::fmt::Debug for PhoshLayerSurfaceClass {
101 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
102 f.debug_struct(&format!("PhoshLayerSurfaceClass @ {self:p}"))
103 .field("parent_class", &self.parent_class)
104 .field("configured", &self.configured)
105 .field("_phosh_reserved1", &self._phosh_reserved1)
106 .field("_phosh_reserved2", &self._phosh_reserved2)
107 .field("_phosh_reserved3", &self._phosh_reserved3)
108 .field("_phosh_reserved4", &self._phosh_reserved4)
109 .field("_phosh_reserved5", &self._phosh_reserved5)
110 .field("_phosh_reserved6", &self._phosh_reserved6)
111 .field("_phosh_reserved7", &self._phosh_reserved7)
112 .field("_phosh_reserved8", &self._phosh_reserved8)
113 .field("_phosh_reserved9", &self._phosh_reserved9)
114 .finish()
115 }
116}
117
118#[derive(Copy, Clone)]
119#[repr(C)]
120pub struct PhoshLockscreenClass {
121 pub parent_class: PhoshLayerSurfaceClass,
122 pub unlock_submit: Option<unsafe extern "C" fn(*mut PhoshLockscreen)>,
123 pub _phosh_reserved1: Option<unsafe extern "C" fn()>,
124 pub _phosh_reserved2: Option<unsafe extern "C" fn()>,
125 pub _phosh_reserved3: Option<unsafe extern "C" fn()>,
126 pub _phosh_reserved4: Option<unsafe extern "C" fn()>,
127 pub _phosh_reserved5: Option<unsafe extern "C" fn()>,
128 pub _phosh_reserved6: Option<unsafe extern "C" fn()>,
129 pub _phosh_reserved7: Option<unsafe extern "C" fn()>,
130 pub _phosh_reserved8: Option<unsafe extern "C" fn()>,
131 pub _phosh_reserved9: Option<unsafe extern "C" fn()>,
132}
133
134impl ::std::fmt::Debug for PhoshLockscreenClass {
135 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
136 f.debug_struct(&format!("PhoshLockscreenClass @ {self:p}"))
137 .field("parent_class", &self.parent_class)
138 .field("unlock_submit", &self.unlock_submit)
139 .field("_phosh_reserved1", &self._phosh_reserved1)
140 .field("_phosh_reserved2", &self._phosh_reserved2)
141 .field("_phosh_reserved3", &self._phosh_reserved3)
142 .field("_phosh_reserved4", &self._phosh_reserved4)
143 .field("_phosh_reserved5", &self._phosh_reserved5)
144 .field("_phosh_reserved6", &self._phosh_reserved6)
145 .field("_phosh_reserved7", &self._phosh_reserved7)
146 .field("_phosh_reserved8", &self._phosh_reserved8)
147 .field("_phosh_reserved9", &self._phosh_reserved9)
148 .finish()
149 }
150}
151
152#[derive(Copy, Clone)]
153#[repr(C)]
154pub struct PhoshLockscreenManagerClass {
155 pub parent_class: gobject::GObjectClass,
156}
157
158impl ::std::fmt::Debug for PhoshLockscreenManagerClass {
159 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
160 f.debug_struct(&format!("PhoshLockscreenManagerClass @ {self:p}"))
161 .field("parent_class", &self.parent_class)
162 .finish()
163 }
164}
165
166#[derive(Copy, Clone)]
167#[repr(C)]
168pub struct PhoshQuickSettingClass {
169 pub parent_class: gtk::GtkBoxClass,
170 pub _phosh_reserved0: Option<unsafe extern "C" fn()>,
171 pub _phosh_reserved1: Option<unsafe extern "C" fn()>,
172 pub _phosh_reserved2: Option<unsafe extern "C" fn()>,
173 pub _phosh_reserved3: Option<unsafe extern "C" fn()>,
174 pub _phosh_reserved4: Option<unsafe extern "C" fn()>,
175 pub _phosh_reserved5: Option<unsafe extern "C" fn()>,
176 pub _phosh_reserved6: Option<unsafe extern "C" fn()>,
177 pub _phosh_reserved7: Option<unsafe extern "C" fn()>,
178 pub _phosh_reserved8: Option<unsafe extern "C" fn()>,
179 pub _phosh_reserved9: Option<unsafe extern "C" fn()>,
180}
181
182impl ::std::fmt::Debug for PhoshQuickSettingClass {
183 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
184 f.debug_struct(&format!("PhoshQuickSettingClass @ {self:p}"))
185 .field("parent_class", &self.parent_class)
186 .field("_phosh_reserved0", &self._phosh_reserved0)
187 .field("_phosh_reserved1", &self._phosh_reserved1)
188 .field("_phosh_reserved2", &self._phosh_reserved2)
189 .field("_phosh_reserved3", &self._phosh_reserved3)
190 .field("_phosh_reserved4", &self._phosh_reserved4)
191 .field("_phosh_reserved5", &self._phosh_reserved5)
192 .field("_phosh_reserved6", &self._phosh_reserved6)
193 .field("_phosh_reserved7", &self._phosh_reserved7)
194 .field("_phosh_reserved8", &self._phosh_reserved8)
195 .field("_phosh_reserved9", &self._phosh_reserved9)
196 .finish()
197 }
198}
199
200#[derive(Copy, Clone)]
201#[repr(C)]
202pub struct PhoshScreenshotManagerClass {
203 pub parent_class: PhoshDBusScreenshotSkeletonClass,
204}
205
206impl ::std::fmt::Debug for PhoshScreenshotManagerClass {
207 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
208 f.debug_struct(&format!("PhoshScreenshotManagerClass @ {self:p}"))
209 .field("parent_class", &self.parent_class)
210 .finish()
211 }
212}
213
214#[derive(Copy, Clone)]
215#[repr(C)]
216pub struct PhoshShellClass {
217 pub parent_class: gobject::GObjectClass,
218 pub get_lockscreen_type: Option<unsafe extern "C" fn(*mut PhoshShell) -> GType>,
219 pub _phosh_reserved1: Option<unsafe extern "C" fn()>,
220 pub _phosh_reserved2: Option<unsafe extern "C" fn()>,
221 pub _phosh_reserved3: Option<unsafe extern "C" fn()>,
222 pub _phosh_reserved4: Option<unsafe extern "C" fn()>,
223 pub _phosh_reserved5: Option<unsafe extern "C" fn()>,
224 pub _phosh_reserved6: Option<unsafe extern "C" fn()>,
225 pub _phosh_reserved7: Option<unsafe extern "C" fn()>,
226 pub _phosh_reserved8: Option<unsafe extern "C" fn()>,
227 pub _phosh_reserved9: Option<unsafe extern "C" fn()>,
228}
229
230impl ::std::fmt::Debug for PhoshShellClass {
231 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
232 f.debug_struct(&format!("PhoshShellClass @ {self:p}"))
233 .field("parent_class", &self.parent_class)
234 .field("get_lockscreen_type", &self.get_lockscreen_type)
235 .field("_phosh_reserved1", &self._phosh_reserved1)
236 .field("_phosh_reserved2", &self._phosh_reserved2)
237 .field("_phosh_reserved3", &self._phosh_reserved3)
238 .field("_phosh_reserved4", &self._phosh_reserved4)
239 .field("_phosh_reserved5", &self._phosh_reserved5)
240 .field("_phosh_reserved6", &self._phosh_reserved6)
241 .field("_phosh_reserved7", &self._phosh_reserved7)
242 .field("_phosh_reserved8", &self._phosh_reserved8)
243 .field("_phosh_reserved9", &self._phosh_reserved9)
244 .finish()
245 }
246}
247
248#[derive(Copy, Clone)]
249#[repr(C)]
250pub struct PhoshStatusIconClass {
251 pub parent_class: gtk::GtkBinClass,
252 pub idle_init: Option<unsafe extern "C" fn(*mut PhoshStatusIcon)>,
253 pub _phosh_reserved1: Option<unsafe extern "C" fn()>,
254 pub _phosh_reserved2: Option<unsafe extern "C" fn()>,
255 pub _phosh_reserved3: Option<unsafe extern "C" fn()>,
256 pub _phosh_reserved4: Option<unsafe extern "C" fn()>,
257 pub _phosh_reserved5: Option<unsafe extern "C" fn()>,
258 pub _phosh_reserved6: Option<unsafe extern "C" fn()>,
259 pub _phosh_reserved7: Option<unsafe extern "C" fn()>,
260 pub _phosh_reserved8: Option<unsafe extern "C" fn()>,
261 pub _phosh_reserved9: Option<unsafe extern "C" fn()>,
262}
263
264impl ::std::fmt::Debug for PhoshStatusIconClass {
265 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
266 f.debug_struct(&format!("PhoshStatusIconClass @ {self:p}"))
267 .field("parent_class", &self.parent_class)
268 .field("idle_init", &self.idle_init)
269 .field("_phosh_reserved1", &self._phosh_reserved1)
270 .field("_phosh_reserved2", &self._phosh_reserved2)
271 .field("_phosh_reserved3", &self._phosh_reserved3)
272 .field("_phosh_reserved4", &self._phosh_reserved4)
273 .field("_phosh_reserved5", &self._phosh_reserved5)
274 .field("_phosh_reserved6", &self._phosh_reserved6)
275 .field("_phosh_reserved7", &self._phosh_reserved7)
276 .field("_phosh_reserved8", &self._phosh_reserved8)
277 .field("_phosh_reserved9", &self._phosh_reserved9)
278 .finish()
279 }
280}
281
282#[derive(Copy, Clone)]
283#[repr(C)]
284pub struct PhoshStatusPageClass {
285 pub parent_class: gtk::GtkBinClass,
286 pub _phosh_reserved0: Option<unsafe extern "C" fn()>,
287 pub _phosh_reserved1: Option<unsafe extern "C" fn()>,
288 pub _phosh_reserved2: Option<unsafe extern "C" fn()>,
289 pub _phosh_reserved3: Option<unsafe extern "C" fn()>,
290 pub _phosh_reserved4: Option<unsafe extern "C" fn()>,
291 pub _phosh_reserved5: Option<unsafe extern "C" fn()>,
292 pub _phosh_reserved6: Option<unsafe extern "C" fn()>,
293 pub _phosh_reserved7: Option<unsafe extern "C" fn()>,
294 pub _phosh_reserved8: Option<unsafe extern "C" fn()>,
295 pub _phosh_reserved9: Option<unsafe extern "C" fn()>,
296}
297
298impl ::std::fmt::Debug for PhoshStatusPageClass {
299 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
300 f.debug_struct(&format!("PhoshStatusPageClass @ {self:p}"))
301 .field("parent_class", &self.parent_class)
302 .field("_phosh_reserved0", &self._phosh_reserved0)
303 .field("_phosh_reserved1", &self._phosh_reserved1)
304 .field("_phosh_reserved2", &self._phosh_reserved2)
305 .field("_phosh_reserved3", &self._phosh_reserved3)
306 .field("_phosh_reserved4", &self._phosh_reserved4)
307 .field("_phosh_reserved5", &self._phosh_reserved5)
308 .field("_phosh_reserved6", &self._phosh_reserved6)
309 .field("_phosh_reserved7", &self._phosh_reserved7)
310 .field("_phosh_reserved8", &self._phosh_reserved8)
311 .field("_phosh_reserved9", &self._phosh_reserved9)
312 .finish()
313 }
314}
315
316#[derive(Copy, Clone)]
317#[repr(C)]
318pub struct PhoshWallClockClass {
319 pub parent_class: gobject::GObjectClass,
320 pub get_clock: Option<unsafe extern "C" fn(*mut PhoshWallClock, gboolean) -> *const c_char>,
321 pub get_time_t: Option<unsafe extern "C" fn(*mut PhoshWallClock) -> i64>,
322 pub _phosh_reserved2: Option<unsafe extern "C" fn()>,
323 pub _phosh_reserved3: Option<unsafe extern "C" fn()>,
324 pub _phosh_reserved4: Option<unsafe extern "C" fn()>,
325 pub _phosh_reserved5: Option<unsafe extern "C" fn()>,
326 pub _phosh_reserved6: Option<unsafe extern "C" fn()>,
327 pub _phosh_reserved7: Option<unsafe extern "C" fn()>,
328 pub _phosh_reserved8: Option<unsafe extern "C" fn()>,
329 pub _phosh_reserved9: Option<unsafe extern "C" fn()>,
330}
331
332impl ::std::fmt::Debug for PhoshWallClockClass {
333 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
334 f.debug_struct(&format!("PhoshWallClockClass @ {self:p}"))
335 .field("parent_class", &self.parent_class)
336 .field("get_clock", &self.get_clock)
337 .field("get_time_t", &self.get_time_t)
338 .field("_phosh_reserved2", &self._phosh_reserved2)
339 .field("_phosh_reserved3", &self._phosh_reserved3)
340 .field("_phosh_reserved4", &self._phosh_reserved4)
341 .field("_phosh_reserved5", &self._phosh_reserved5)
342 .field("_phosh_reserved6", &self._phosh_reserved6)
343 .field("_phosh_reserved7", &self._phosh_reserved7)
344 .field("_phosh_reserved8", &self._phosh_reserved8)
345 .field("_phosh_reserved9", &self._phosh_reserved9)
346 .finish()
347 }
348}
349
350#[derive(Copy, Clone)]
352#[repr(C)]
353pub struct PhoshLayerSurface {
354 pub parent_instance: gtk::GtkWindow,
355}
356
357impl ::std::fmt::Debug for PhoshLayerSurface {
358 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
359 f.debug_struct(&format!("PhoshLayerSurface @ {self:p}"))
360 .field("parent_instance", &self.parent_instance)
361 .finish()
362 }
363}
364
365#[derive(Copy, Clone)]
366#[repr(C)]
367pub struct PhoshLockscreen {
368 pub parent_instance: PhoshLayerSurface,
369}
370
371impl ::std::fmt::Debug for PhoshLockscreen {
372 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
373 f.debug_struct(&format!("PhoshLockscreen @ {self:p}"))
374 .field("parent_instance", &self.parent_instance)
375 .finish()
376 }
377}
378
379#[repr(C)]
380#[allow(dead_code)]
381pub struct PhoshLockscreenManager {
382 _data: [u8; 0],
383 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
384}
385
386impl ::std::fmt::Debug for PhoshLockscreenManager {
387 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
388 f.debug_struct(&format!("PhoshLockscreenManager @ {self:p}"))
389 .finish()
390 }
391}
392
393#[derive(Copy, Clone)]
394#[repr(C)]
395pub struct PhoshQuickSetting {
396 pub parent_instance: gtk::GtkBox,
397}
398
399impl ::std::fmt::Debug for PhoshQuickSetting {
400 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
401 f.debug_struct(&format!("PhoshQuickSetting @ {self:p}"))
402 .field("parent_instance", &self.parent_instance)
403 .finish()
404 }
405}
406
407#[repr(C)]
408#[allow(dead_code)]
409pub struct PhoshScreenshotManager {
410 _data: [u8; 0],
411 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
412}
413
414impl ::std::fmt::Debug for PhoshScreenshotManager {
415 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
416 f.debug_struct(&format!("PhoshScreenshotManager @ {self:p}"))
417 .finish()
418 }
419}
420
421#[derive(Copy, Clone)]
422#[repr(C)]
423pub struct PhoshShell {
424 pub parent_instance: gobject::GObject,
425}
426
427impl ::std::fmt::Debug for PhoshShell {
428 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
429 f.debug_struct(&format!("PhoshShell @ {self:p}"))
430 .field("parent_instance", &self.parent_instance)
431 .finish()
432 }
433}
434
435#[derive(Copy, Clone)]
436#[repr(C)]
437pub struct PhoshStatusIcon {
438 pub parent_instance: gtk::GtkBin,
439}
440
441impl ::std::fmt::Debug for PhoshStatusIcon {
442 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
443 f.debug_struct(&format!("PhoshStatusIcon @ {self:p}"))
444 .field("parent_instance", &self.parent_instance)
445 .finish()
446 }
447}
448
449#[derive(Copy, Clone)]
450#[repr(C)]
451pub struct PhoshStatusPage {
452 pub parent_instance: gtk::GtkBin,
453}
454
455impl ::std::fmt::Debug for PhoshStatusPage {
456 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
457 f.debug_struct(&format!("PhoshStatusPage @ {self:p}"))
458 .field("parent_instance", &self.parent_instance)
459 .finish()
460 }
461}
462
463#[derive(Copy, Clone)]
464#[repr(C)]
465pub struct PhoshWallClock {
466 pub parent_instance: gobject::GObject,
467}
468
469impl ::std::fmt::Debug for PhoshWallClock {
470 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
471 f.debug_struct(&format!("PhoshWallClock @ {self:p}"))
472 .field("parent_instance", &self.parent_instance)
473 .finish()
474 }
475}
476
477extern "C" {
480
481 pub fn phosh_lockscreen_page_get_type() -> GType;
485
486 pub fn phosh_dbus_screenshot_proxy_get_type() -> GType;
490 pub fn phosh_dbus_screenshot_proxy_new(connection: *mut gio::GDBusConnection, flags: gio::GDBusProxyFlags, name: *const c_char, object_path: *const c_char, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer);
495 pub fn phosh_dbus_screenshot_proxy_new_for_bus(bus_type: gio::GBusType, flags: gio::GDBusProxyFlags, name: *const c_char, object_path: *const c_char, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer);
496
497 pub fn phosh_dbus_screenshot_skeleton_get_type() -> GType;
501 pub fn phosh_layer_surface_get_type() -> GType;
507
508 pub fn phosh_lockscreen_get_type() -> GType;
512 pub fn phosh_lockscreen_add_extra_page(self_: *mut PhoshLockscreen, widget: *mut gtk::GtkWidget);
513 pub fn phosh_lockscreen_clear_pin_entry(self_: *mut PhoshLockscreen);
514 pub fn phosh_lockscreen_get_page(self_: *mut PhoshLockscreen) -> PhoshLockscreenPage;
515 pub fn phosh_lockscreen_get_pin_entry(self_: *mut PhoshLockscreen) -> *const c_char;
516 pub fn phosh_lockscreen_set_default_page(self_: *mut PhoshLockscreen, page: PhoshLockscreenPage);
517 pub fn phosh_lockscreen_set_page(self_: *mut PhoshLockscreen, page: PhoshLockscreenPage);
518 pub fn phosh_lockscreen_set_unlock_status(self_: *mut PhoshLockscreen, status: *const c_char);
519 pub fn phosh_lockscreen_shake_pin_entry(self_: *mut PhoshLockscreen);
520
521 pub fn phosh_lockscreen_manager_get_type() -> GType;
525 pub fn phosh_lockscreen_manager_get_active_time(self_: *mut PhoshLockscreenManager) -> i64;
526 pub fn phosh_lockscreen_manager_get_locked(self_: *mut PhoshLockscreenManager) -> gboolean;
527 pub fn phosh_lockscreen_manager_get_lockscreen(self_: *mut PhoshLockscreenManager) -> *mut PhoshLockscreen;
528 pub fn phosh_lockscreen_manager_get_page(self_: *mut PhoshLockscreenManager) -> PhoshLockscreenPage;
529 pub fn phosh_lockscreen_manager_set_locked(self_: *mut PhoshLockscreenManager, state: gboolean);
530 pub fn phosh_lockscreen_manager_set_page(self_: *mut PhoshLockscreenManager, page: PhoshLockscreenPage) -> gboolean;
531
532 pub fn phosh_quick_setting_get_type() -> GType;
536 pub fn phosh_quick_setting_new(status_page: *mut PhoshStatusPage) -> *mut gtk::GtkWidget;
537 pub fn phosh_quick_setting_get_active(self_: *mut PhoshQuickSetting) -> gboolean;
538 pub fn phosh_quick_setting_get_can_show_status(self_: *mut PhoshQuickSetting) -> gboolean;
539 pub fn phosh_quick_setting_get_long_press_action_name(self_: *mut PhoshQuickSetting) -> *const c_char;
540 pub fn phosh_quick_setting_get_long_press_action_target(self_: *mut PhoshQuickSetting) -> *const c_char;
541 pub fn phosh_quick_setting_get_showing_status(self_: *mut PhoshQuickSetting) -> gboolean;
542 pub fn phosh_quick_setting_get_status_icon(self_: *mut PhoshQuickSetting) -> *mut PhoshStatusIcon;
543 pub fn phosh_quick_setting_get_status_page(self_: *mut PhoshQuickSetting) -> *mut PhoshStatusPage;
544 pub fn phosh_quick_setting_set_active(self_: *mut PhoshQuickSetting, active: gboolean);
545 pub fn phosh_quick_setting_set_can_show_status(self_: *mut PhoshQuickSetting, can_show_status: gboolean);
546 pub fn phosh_quick_setting_set_long_press_action_name(self_: *mut PhoshQuickSetting, action_name: *const c_char);
547 pub fn phosh_quick_setting_set_long_press_action_target(self_: *mut PhoshQuickSetting, action_target: *const c_char);
548 pub fn phosh_quick_setting_set_showing_status(self_: *mut PhoshQuickSetting, showing_status: gboolean);
549 pub fn phosh_quick_setting_set_status_icon(self_: *mut PhoshQuickSetting, status_icon: *mut PhoshStatusIcon);
550 pub fn phosh_quick_setting_set_status_page(self_: *mut PhoshQuickSetting, status_page: *mut PhoshStatusPage);
551
552 pub fn phosh_screenshot_manager_get_type() -> GType;
556 pub fn phosh_screenshot_manager_new() -> *mut PhoshScreenshotManager;
557 pub fn phosh_screenshot_manager_take_screenshot(self_: *mut PhoshScreenshotManager, area: *const gdk::GdkRectangle, filename: *const c_char, copy_to_clipboard: gboolean, include_cursor: gboolean) -> gboolean;
558
559 pub fn phosh_shell_get_type() -> GType;
563 pub fn phosh_shell_new() -> *mut PhoshShell;
564 pub fn phosh_shell_get_default() -> *mut PhoshShell;
565 pub fn phosh_shell_fade_out(self_: *mut PhoshShell, timeout: c_uint);
566 pub fn phosh_shell_get_locked(self_: *mut PhoshShell) -> gboolean;
567 pub fn phosh_shell_get_lockscreen_manager(self_: *mut PhoshShell) -> *mut PhoshLockscreenManager;
568 pub fn phosh_shell_get_lockscreen_type(self_: *mut PhoshShell) -> GType;
569 pub fn phosh_shell_get_screenshot_manager(self_: *mut PhoshShell) -> *mut PhoshScreenshotManager;
570 pub fn phosh_shell_get_usable_area(self_: *mut PhoshShell, x: *mut c_int, y: *mut c_int, width: *mut c_int, height: *mut c_int);
571 pub fn phosh_shell_set_default(self_: *mut PhoshShell);
572
573 pub fn phosh_status_icon_get_type() -> GType;
577 pub fn phosh_status_icon_new() -> *mut gtk::GtkWidget;
578 pub fn phosh_status_icon_get_extra_widget(self_: *mut PhoshStatusIcon) -> *mut gtk::GtkWidget;
579 pub fn phosh_status_icon_get_icon_name(self_: *mut PhoshStatusIcon) -> *mut c_char;
580 pub fn phosh_status_icon_get_icon_size(self_: *mut PhoshStatusIcon) -> gtk::GtkIconSize;
581 pub fn phosh_status_icon_get_info(self_: *mut PhoshStatusIcon) -> *mut c_char;
582 pub fn phosh_status_icon_get_pixel_size(self_: *mut PhoshStatusIcon) -> c_uint;
583 pub fn phosh_status_icon_set_extra_widget(self_: *mut PhoshStatusIcon, widget: *mut gtk::GtkWidget);
584 pub fn phosh_status_icon_set_icon_name(self_: *mut PhoshStatusIcon, icon_name: *const c_char);
585 pub fn phosh_status_icon_set_icon_size(self_: *mut PhoshStatusIcon, size: gtk::GtkIconSize);
586 pub fn phosh_status_icon_set_info(self_: *mut PhoshStatusIcon, info: *const c_char);
587 pub fn phosh_status_icon_set_pixel_size(self_: *mut PhoshStatusIcon, size: c_uint);
588
589 pub fn phosh_status_page_get_type() -> GType;
593 pub fn phosh_status_page_new() -> *mut PhoshStatusPage;
594 pub fn phosh_status_page_get_content(self_: *mut PhoshStatusPage) -> *mut gtk::GtkWidget;
595 pub fn phosh_status_page_get_footer(self_: *mut PhoshStatusPage) -> *mut gtk::GtkWidget;
596 pub fn phosh_status_page_get_header(self_: *mut PhoshStatusPage) -> *mut gtk::GtkWidget;
597 pub fn phosh_status_page_get_title(self_: *mut PhoshStatusPage) -> *const c_char;
598 pub fn phosh_status_page_set_content(self_: *mut PhoshStatusPage, content: *mut gtk::GtkWidget);
599 pub fn phosh_status_page_set_footer(self_: *mut PhoshStatusPage, footer: *mut gtk::GtkWidget);
600 pub fn phosh_status_page_set_header(self_: *mut PhoshStatusPage, header: *mut gtk::GtkWidget);
601 pub fn phosh_status_page_set_title(self_: *mut PhoshStatusPage, title: *const c_char);
602
603 pub fn phosh_wall_clock_get_type() -> GType;
607 pub fn phosh_wall_clock_new() -> *mut PhoshWallClock;
608 pub fn phosh_wall_clock_get_default() -> *mut PhoshWallClock;
609 pub fn phosh_wall_clock_get_clock(self_: *mut PhoshWallClock, time_only: gboolean) -> *const c_char;
610 pub fn phosh_wall_clock_local_date(self_: *mut PhoshWallClock) -> *mut c_char;
611 pub fn phosh_wall_clock_set_default(self_: *mut PhoshWallClock);
612
613 pub fn phosh_dbus_screenshot_get_type() -> GType;
617 pub fn phosh_dbus_screenshot_interface_info() -> *mut gio::GDBusInterfaceInfo;
618 pub fn phosh_dbus_screenshot_override_properties(klass: *mut gobject::GObjectClass, property_id_begin: c_uint) -> c_uint;
619 }