/// <summary> /// Constructs a new set of GUI elements for inspecting the auto exposure settings object. /// </summary> /// <param name="settings">Initial values to assign to the GUI elements.</param> /// <param name="layout">Layout to append the GUI elements to.</param> public AutoExposureSettingsGUI(AutoExposureSettings settings, GUILayout layout) { this.settings = settings; histogramLog2MinField.OnChanged += x => { this.settings.HistogramLog2Min = x; MarkAsModified(); ConfirmModify(); }; histogramLog2MaxField.OnChanged += x => { this.settings.HistogramLog2Max = x; MarkAsModified(); ConfirmModify(); }; histogramPctLowField.OnChanged += x => { this.settings.HistogramPctLow = x; MarkAsModified(); ConfirmModify(); }; histogramPctHighField.OnChanged += x => { this.settings.HistogramPctHigh = x; MarkAsModified(); ConfirmModify(); }; minEyeAdaptationField.OnChanged += x => { this.settings.MinEyeAdaptation = x; MarkAsModified(); ConfirmModify(); }; maxEyeAdaptationField.OnChanged += x => { this.settings.MaxEyeAdaptation = x; MarkAsModified(); ConfirmModify(); }; eyeAdaptationSpeedUpField.OnChanged += x => { this.settings.EyeAdaptationSpeedUp = x; MarkAsModified(); ConfirmModify(); }; eyeAdaptationSpeedDownField.OnChanged += x => { this.settings.EyeAdaptationSpeedDown = x; MarkAsModified(); ConfirmModify(); }; layout.AddElement(histogramLog2MinField); layout.AddElement(histogramLog2MaxField); layout.AddElement(histogramPctLowField); layout.AddElement(histogramPctHighField); layout.AddElement(minEyeAdaptationField); layout.AddElement(maxEyeAdaptationField); layout.AddElement(eyeAdaptationSpeedUpField); layout.AddElement(eyeAdaptationSpeedDownField); }
private static extern void Internal_setautoExposure(IntPtr thisPtr, AutoExposureSettings value);
private static extern void Internal_AutoExposureSettings(AutoExposureSettings managedInstance);