public GraphicsBindingOpenGLESAndroidKHR
        (
            StructureType?type = StructureType.TypeGraphicsBindingOpenglESAndroidKhr,
            void *next         = null,
            nint?display       = null,
            nint?config        = null,
            nint?context       = null
        ) : this()
        {
            if (type is not null)
            {
                Type = type.Value;
            }

            if (next is not null)
            {
                Next = next;
            }

            if (display is not null)
            {
                Display = display.Value;
            }

            if (config is not null)
            {
                Config = config.Value;
            }

            if (context is not null)
            {
                Context = context.Value;
            }
        }
Example #2
0
        public ExportMemoryWin32HandleInfoKHR
        (
            StructureType?sType = StructureType.ExportMemoryWin32HandleInfoKhr,
            void *pNext         = null,
            nint *pAttributes   = null,
            int?dwAccess        = null,
            nint?name           = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (pAttributes is not null)
            {
                PAttributes = pAttributes;
            }

            if (dwAccess is not null)
            {
                DwAccess = dwAccess.Value;
            }

            if (name is not null)
            {
                Name = name.Value;
            }
        }
        public StreamDescriptorSurfaceCreateInfoGGP
        (
            StructureType?sType   = StructureType.StreamDescriptorSurfaceCreateInfoGgp,
            void *pNext           = null,
            uint?flags            = null,
            nint?streamDescriptor = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (streamDescriptor is not null)
            {
                StreamDescriptor = streamDescriptor.Value;
            }
        }
        public ImagePipeSurfaceCreateInfoFUCHSIA
        (
            StructureType?sType  = StructureType.ImagepipeSurfaceCreateInfoFuchsia,
            void *pNext          = null,
            uint?flags           = null,
            nint?imagePipeHandle = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (imagePipeHandle is not null)
            {
                ImagePipeHandle = imagePipeHandle.Value;
            }
        }
Example #5
0
        public DeviceCreationParameters
        (
            uint?adapterOrdinal = null,
            Devtype?deviceType  = null,
            nint?hFocusWindow   = null,
            uint?behaviorFlags  = null
        ) : this()
        {
            if (adapterOrdinal is not null)
            {
                AdapterOrdinal = adapterOrdinal.Value;
            }

            if (deviceType is not null)
            {
                DeviceType = deviceType.Value;
            }

            if (hFocusWindow is not null)
            {
                HFocusWindow = hFocusWindow.Value;
            }

            if (behaviorFlags is not null)
            {
                BehaviorFlags = behaviorFlags.Value;
            }
        }
        public XlibSurfaceCreateInfoKHR
        (
            StructureType?sType = StructureType.XlibSurfaceCreateInfoKhr,
            void *pNext         = null,
            uint?flags          = null,
            nint *dpy           = null,
            nint?window         = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (dpy is not null)
            {
                Dpy = dpy;
            }

            if (window is not null)
            {
                Window = window.Value;
            }
        }
Example #7
0
        public DirectFBSurfaceCreateInfoEXT
        (
            StructureType?sType = StructureType.DirectfbSurfaceCreateInfoExt,
            void *pNext         = null,
            uint?flags          = null,
            nint?dfb            = null,
            nint?surface        = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (dfb is not null)
            {
                Dfb = dfb.Value;
            }

            if (surface is not null)
            {
                Surface = surface.Value;
            }
        }
        public XcbSurfaceCreateInfoKHR
        (
            StructureType?sType = StructureType.XcbSurfaceCreateInfoKhr,
            void *pNext         = null,
            uint?flags          = null,
            nint *connection    = null,
            nint?window         = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (connection is not null)
            {
                Connection = connection;
            }

            if (window is not null)
            {
                Window = window.Value;
            }
        }
Example #9
0
        public OutputDesc
        (
            Silk.NET.Maths.Rectangle <int>?desktopCoordinates = null,
            int?attachedToDesktop = null,
            ModeRotation?rotation = null,
            nint?monitor          = null
        ) : this()
        {
            if (desktopCoordinates is not null)
            {
                DesktopCoordinates = desktopCoordinates.Value;
            }

            if (attachedToDesktop is not null)
            {
                AttachedToDesktop = attachedToDesktop.Value;
            }

            if (rotation is not null)
            {
                Rotation = rotation.Value;
            }

            if (monitor is not null)
            {
                Monitor = monitor.Value;
            }
        }
        public GraphicsBindingOpenGLWin32KHR
        (
            StructureType?type = StructureType.TypeGraphicsBindingOpenglWin32Khr,
            void *next         = null,
            nint?hDC           = null,
            nint?hGlrc         = null
        ) : this()
        {
            if (type is not null)
            {
                Type = type.Value;
            }

            if (next is not null)
            {
                Next = next;
            }

            if (hDC is not null)
            {
                HDC = hDC.Value;
            }

            if (hGlrc is not null)
            {
                HGlrc = hGlrc.Value;
            }
        }
        public ImportMemoryZirconHandleInfoFUCHSIA
        (
            StructureType?sType = StructureType.ImportMemoryZirconHandleInfoFuchsia,
            void *pNext         = null,
            ExternalMemoryHandleTypeFlags?handleType = null,
            nint?handle = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (handleType is not null)
            {
                HandleType = handleType.Value;
            }

            if (handle is not null)
            {
                Handle = handle.Value;
            }
        }
        public ReasonContextReasonDetailed
        (
            nint?localizedReasonModule = null,
            uint?localizedReasonId     = null,
            uint?reasonStringCount     = null,
            char **reasonStrings       = null
        ) : this()
        {
            if (localizedReasonModule is not null)
            {
                LocalizedReasonModule = localizedReasonModule.Value;
            }

            if (localizedReasonId is not null)
            {
                LocalizedReasonId = localizedReasonId.Value;
            }

            if (reasonStringCount is not null)
            {
                ReasonStringCount = reasonStringCount.Value;
            }

            if (reasonStrings is not null)
            {
                ReasonStrings = reasonStrings;
            }
        }
        public ImportMemoryWin32HandleInfoKHR
        (
            StructureType?sType = StructureType.ImportMemoryWin32HandleInfoKhr,
            void *pNext         = null,
            ExternalMemoryHandleTypeFlags?handleType = null,
            nint?handle = null,
            nint?name   = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (handleType is not null)
            {
                HandleType = handleType.Value;
            }

            if (handle is not null)
            {
                Handle = handle.Value;
            }

            if (name is not null)
            {
                Name = name.Value;
            }
        }
Example #14
0
 protected void SetNumberValue(NSString key, nint?value)
 {
     if (NullCheckAndRemoveKey(key, !value.HasValue))
     {
         Dictionary [key] = new NSNumber(value.Value);
     }
 }
Example #15
0
        public Win32SurfaceCreateInfoKHR
        (
            StructureType?sType = StructureType.Win32SurfaceCreateInfoKhr,
            void *pNext         = null,
            uint?flags          = null,
            nint?hinstance      = null,
            nint?hwnd           = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (hinstance is not null)
            {
                Hinstance = hinstance.Value;
            }

            if (hwnd is not null)
            {
                Hwnd = hwnd.Value;
            }
        }
Example #16
0
        void AddNewAccount(string website, string account, string password, nint?index = null)
        {
            DataSource.AddRecord(new Record(website, account, password, DatabaseConnection), index);
            indexToEdit = null;

            PushView();
        }
Example #17
0
        public OutputDesc1
        (
            Silk.NET.Maths.Rectangle <int>?desktopCoordinates = null,
            int?attachedToDesktop       = null,
            ModeRotation?rotation       = null,
            nint?monitor                = null,
            uint?bitsPerColor           = null,
            ColorSpaceType?colorSpace   = null,
            float?minLuminance          = null,
            float?maxLuminance          = null,
            float?maxFullFrameLuminance = null
        ) : this()
        {
            if (desktopCoordinates is not null)
            {
                DesktopCoordinates = desktopCoordinates.Value;
            }

            if (attachedToDesktop is not null)
            {
                AttachedToDesktop = attachedToDesktop.Value;
            }

            if (rotation is not null)
            {
                Rotation = rotation.Value;
            }

            if (monitor is not null)
            {
                Monitor = monitor.Value;
            }

            if (bitsPerColor is not null)
            {
                BitsPerColor = bitsPerColor.Value;
            }

            if (colorSpace is not null)
            {
                ColorSpace = colorSpace.Value;
            }

            if (minLuminance is not null)
            {
                MinLuminance = minLuminance.Value;
            }

            if (maxLuminance is not null)
            {
                MaxLuminance = maxLuminance.Value;
            }

            if (maxFullFrameLuminance is not null)
            {
                MaxFullFrameLuminance = maxFullFrameLuminance.Value;
            }
        }
Example #18
0
        public void RefillRecord(Record record, nint index)
        {
            NewAccountButton.Title    = "Edit Record";
            websiteField.StringValue  = record.Website;
            accountField.StringValue  = record.AccountName;
            passwordField.StringValue = record.Password;

            indexToEdit = index;
        }
Example #19
0
 public CommandBuffer
 (
     nint?handle = null
 ) : this()
 {
     if (handle is not null)
     {
         Handle = handle.Value;
     }
 }
Example #20
0
 public Queue
 (
     nint?handle = null
 ) : this()
 {
     if (handle is not null)
     {
         Handle = handle.Value;
     }
 }
Example #21
0
 public Instance
 (
     nint?handle = null
 ) : this()
 {
     if (handle is not null)
     {
         Handle = handle.Value;
     }
 }
 public PhysicalDevice
 (
     nint?handle = null
 ) : this()
 {
     if (handle is not null)
     {
         Handle = handle.Value;
     }
 }
 public void AddRecord(Record record, nint?index)
 {
     if (index.HasValue)
     {
         Records.Insert((int)index.Value, record);
     }
     else
     {
         Records.Add(record);
     }
 }
Example #24
0
    public bool TryGetPointer(out nint?value)
    {
        if (nodeKind != ESIR_NodeKind.ValuePointer)
        {
            value = null;
            return(false);
        }

        value = (nint)nodeValue.ValuePointer;
        return(true);
    }
Example #25
0
		void BufferingStarted ()
		{
			nint task = 0;
			task = UIApplication.SharedApplication.BeginBackgroundTask (() => {
				LoggingService.LogInfo ("Background task '{0}' expired", task);
				if (task == backgroundTask.GetValueOrDefault ())
					backgroundTask = null;
			});
			LoggingService.LogInfo ("Started background task '{0}'", task);
			backgroundTask = task;
		}
Example #26
0
		async void BufferingCompleted ()
		{
			if (backgroundTask.HasValue) {
				var task = backgroundTask.Value;
				backgroundTask = null;

				await Task.Delay (TimeSpan.FromSeconds (10));
				LoggingService.LogInfo ("Ended background task '{0}'", task);
				UIApplication.SharedApplication.EndBackgroundTask (task);
			}
		}
        public GraphicsBindingOpenGLXcbKHR
        (
            StructureType?type = StructureType.TypeGraphicsBindingOpenglXcbKhr,
            void *next         = null,
            nint *connection   = null,
            uint?screenNumber  = null,
            nint?fbconfigid    = null,
            nint?visualid      = null,
            nint?glxDrawable   = null,
            nint?glxContext    = null
        ) : this()
        {
            if (type is not null)
            {
                Type = type.Value;
            }

            if (next is not null)
            {
                Next = next;
            }

            if (connection is not null)
            {
                Connection = connection;
            }

            if (screenNumber is not null)
            {
                ScreenNumber = screenNumber.Value;
            }

            if (fbconfigid is not null)
            {
                Fbconfigid = fbconfigid.Value;
            }

            if (visualid is not null)
            {
                Visualid = visualid.Value;
            }

            if (glxDrawable is not null)
            {
                GlxDrawable = glxDrawable.Value;
            }

            if (glxContext is not null)
            {
                GlxContext = glxContext.Value;
            }
        }
Example #28
0
        public SwapChainDesc
        (
            ModeDesc?bufferDesc   = null,
            SampleDesc?sampleDesc = null,
            uint?bufferUsage      = null,
            uint?bufferCount      = null,
            nint?outputWindow     = null,
            int?windowed          = null,
            SwapEffect?swapEffect = null,
            uint?flags            = null
        ) : this()
        {
            if (bufferDesc is not null)
            {
                BufferDesc = bufferDesc.Value;
            }

            if (sampleDesc is not null)
            {
                SampleDesc = sampleDesc.Value;
            }

            if (bufferUsage is not null)
            {
                BufferUsage = bufferUsage.Value;
            }

            if (bufferCount is not null)
            {
                BufferCount = bufferCount.Value;
            }

            if (outputWindow is not null)
            {
                OutputWindow = outputWindow.Value;
            }

            if (windowed is not null)
            {
                Windowed = windowed.Value;
            }

            if (swapEffect is not null)
            {
                SwapEffect = swapEffect.Value;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }
        }
Example #29
0
        public Dx9SurfaceInfoKhr
        (
            void *resource    = null,
            nint?sharedHandle = null
        ) : this()
        {
            if (resource is not null)
            {
                Resource = resource;
            }

            if (sharedHandle is not null)
            {
                SharedHandle = sharedHandle.Value;
            }
        }
Example #30
0
        public ImportSemaphoreWin32HandleInfoKHR
        (
            StructureType?sType        = StructureType.ImportSemaphoreWin32HandleInfoKhr,
            void *pNext                = null,
            Semaphore?semaphore        = null,
            SemaphoreImportFlags?flags = null,
            ExternalSemaphoreHandleTypeFlags?handleType = null,
            nint?handle = null,
            nint?name   = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (semaphore is not null)
            {
                Semaphore = semaphore.Value;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (handleType is not null)
            {
                HandleType = handleType.Value;
            }

            if (handle is not null)
            {
                Handle = handle.Value;
            }

            if (name is not null)
            {
                Name = name.Value;
            }
        }
Example #31
0
        public GraphicsBindingOpenGLXlibKHR
        (
            StructureType?type = StructureType.TypeGraphicsBindingOpenglXlibKhr,
            void *next         = null,
            nint *xDisplay     = null,
            uint?visualid      = null,
            nint?glxFbconfig   = null,
            nint?glxDrawable   = null,
            nint?glxContext    = null
        ) : this()
        {
            if (type is not null)
            {
                Type = type.Value;
            }

            if (next is not null)
            {
                Next = next;
            }

            if (xDisplay is not null)
            {
                XDisplay = xDisplay;
            }

            if (visualid is not null)
            {
                Visualid = visualid.Value;
            }

            if (glxFbconfig is not null)
            {
                GlxFbconfig = glxFbconfig.Value;
            }

            if (glxDrawable is not null)
            {
                GlxDrawable = glxDrawable.Value;
            }

            if (glxContext is not null)
            {
                GlxContext = glxContext.Value;
            }
        }
        public ImportFenceWin32HandleInfoKHR
        (
            StructureType?sType    = StructureType.ImportFenceWin32HandleInfoKhr,
            void *pNext            = null,
            Fence?fence            = null,
            FenceImportFlags?flags = null,
            ExternalFenceHandleTypeFlags?handleType = null,
            nint?handle = null,
            nint?name   = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (fence is not null)
            {
                Fence = fence.Value;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (handleType is not null)
            {
                HandleType = handleType.Value;
            }

            if (handle is not null)
            {
                Handle = handle.Value;
            }

            if (name is not null)
            {
                Name = name.Value;
            }
        }
Example #33
0
		public void DeactivateActiveSnapshotImage ()
		{
			if (inActionExtension) {
				extensionActiveSnapshotIndex = null;
			} else {
				activeSnapshotImageLocalIdentifier = null;
				ActiveSnapshotImageStore = null; // check
			}
		}
Example #34
0
 public FixedPanel(nint? width, nint? height, params Style[] styles)
     : base(styles)
 {
     this.fixedWidth = width;
     this.fixedHeight = height;
 }
Example #35
0
		// override used by action extension
		public void SetActiveSnapshotImage (nint index)
		{
			if (index < extensionSnapshotImages.Count) {
				extensionActiveSnapshotIndex = index;
			} else {
				extensionActiveSnapshotIndex = null;
			}
			//extensionActiveSnapshotIndex = (index < extensionSnapshotImages.Count) ? index : null;
		}