public void Set(SetDisplayPreferenceOptions other)
 {
     if (other != null)
     {
         m_ApiVersion         = UIInterface.SetdisplaypreferenceApiLatest;
         NotificationLocation = other.NotificationLocation;
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Define any preferences for any display settings.
        /// </summary>
        /// <param name="options">Structure containing any options that are needed to set</param>
        /// <returns>
        /// <see cref="Result.Success" /> If the overlay has been notified about the request.
        /// <see cref="Result.InvalidParameters" /> If any of the options are incorrect.
        /// <see cref="Result.NotConfigured" /> If the overlay is not properly configured.
        /// <see cref="Result.NoChange" /> If the preferences did not change.
        /// </returns>
        public Result SetDisplayPreference(SetDisplayPreferenceOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <SetDisplayPreferenceOptionsInternal, SetDisplayPreferenceOptions>(ref optionsAddress, options);

            var funcResult = EOS_UI_SetDisplayPreference(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }