diff options
| author | Matthew Collins <[email protected]> | 2018-02-24 12:52:45 +0000 |
|---|---|---|
| committer | Matthew Collins <[email protected]> | 2018-02-24 12:52:45 +0000 |
| commit | dfbbc13d91a77a2052c8ad02c559e08d86bb7ebf (patch) | |
| tree | f7e35082d58bf89ae5c1751b99e22d366742d8da /steamworks-sys | |
| parent | Initial work on lobbies + A clean up (diff) | |
| download | archived-steamworks-rs-dfbbc13d91a77a2052c8ad02c559e08d86bb7ebf.tar.xz archived-steamworks-rs-dfbbc13d91a77a2052c8ad02c559e08d86bb7ebf.zip | |
Add a way to move notifications
Diffstat (limited to 'steamworks-sys')
| -rw-r--r-- | steamworks-sys/src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/steamworks-sys/src/lib.rs b/steamworks-sys/src/lib.rs index 1173b34..604d12e 100644 --- a/steamworks-sys/src/lib.rs +++ b/steamworks-sys/src/lib.rs @@ -61,6 +61,14 @@ pub struct LobbyMatchList { } #[repr(C)] +pub enum NotificationPosition { + TopLeft = 0, + TopRight = 1, + BottomLeft = 2, + BottomRight = 3, +} + +#[repr(C)] #[derive(Debug, Ord, PartialOrd, Eq, PartialEq)] pub enum SResult { Ok = 1, @@ -220,6 +228,7 @@ extern "C" { pub fn SteamAPI_ISteamUtils_GetAppID(instance: *mut ISteamUtils) -> u32; pub fn SteamAPI_ISteamUtils_GetSteamUILanguage(instance: *mut ISteamUtils) -> *const c_char; pub fn SteamAPI_ISteamUtils_IsAPICallCompleted(instance: *mut ISteamUtils, api_call: SteamAPICall, failed: *mut bool) -> bool; + pub fn SteamAPI_ISteamUtils_SetOverlayNotificationPosition(instance: *mut ISteamUtils, position: NotificationPosition); pub fn SteamAPI_ISteamApps_BIsAppInstalled(instance: *mut ISteamApps, app_id: AppId) -> u8; pub fn SteamAPI_ISteamApps_BIsDlcInstalled(instance: *mut ISteamApps, app_id: AppId) -> u8; |