mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
rustfmt modals api
This commit is contained in:
parent
8deb266c45
commit
069b54f86b
1 changed files with 4 additions and 5 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
use gam::modal::*;
|
use gam::modal::*;
|
||||||
#[cfg(feature="ditherpunk")]
|
#[cfg(feature = "ditherpunk")]
|
||||||
use gam::Tile;
|
use gam::Tile;
|
||||||
|
|
||||||
|
|
||||||
pub(crate) const SERVER_NAME_MODALS: &str = "_Modal Dialog Server_";
|
pub(crate) const SERVER_NAME_MODALS: &str = "_Modal Dialog Server_";
|
||||||
|
|
||||||
#[derive(Debug, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize, Copy, Clone)]
|
#[derive(Debug, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize, Copy, Clone)]
|
||||||
|
|
@ -45,7 +44,7 @@ pub struct ManagedNotification {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize, Copy, Clone)]
|
#[derive(Debug, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize, Copy, Clone)]
|
||||||
#[cfg(feature="ditherpunk")]
|
#[cfg(feature = "ditherpunk")]
|
||||||
pub struct ManagedImage {
|
pub struct ManagedImage {
|
||||||
pub token: [u32; 4],
|
pub token: [u32; 4],
|
||||||
pub tiles: [Option<Tile>; 6],
|
pub tiles: [Option<Tile>; 6],
|
||||||
|
|
@ -84,7 +83,7 @@ pub(crate) enum Opcode {
|
||||||
/// simple notification
|
/// simple notification
|
||||||
Notification,
|
Notification,
|
||||||
/// display an image
|
/// display an image
|
||||||
#[cfg(feature="ditherpunk")]
|
#[cfg(feature = "ditherpunk")]
|
||||||
Image,
|
Image,
|
||||||
/// dynamic notification - a simple non-interactive notification that allows its text to be dynamically updated
|
/// dynamic notification - a simple non-interactive notification that allows its text to be dynamically updated
|
||||||
DynamicNotification,
|
DynamicNotification,
|
||||||
|
|
@ -127,7 +126,7 @@ pub(crate) enum Opcode {
|
||||||
RadioReturn,
|
RadioReturn,
|
||||||
CheckBoxReturn,
|
CheckBoxReturn,
|
||||||
NotificationReturn,
|
NotificationReturn,
|
||||||
#[cfg(feature="ditherpunk")]
|
#[cfg(feature = "ditherpunk")]
|
||||||
ImageReturn,
|
ImageReturn,
|
||||||
|
|
||||||
DoUpdateDynamicNotification,
|
DoUpdateDynamicNotification,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue