コード例 #1
0
        public PresentParameters
        (
            uint?dirtyRectsCount = null,
            Silk.NET.Maths.Rectangle <int> *pDirtyRects  = null,
            Silk.NET.Maths.Rectangle <int> *pScrollRect  = null,
            Silk.NET.Maths.Vector2D <int> *pScrollOffset = null
        ) : this()
        {
            if (dirtyRectsCount is not null)
            {
                DirtyRectsCount = dirtyRectsCount.Value;
            }

            if (pDirtyRects is not null)
            {
                PDirtyRects = pDirtyRects;
            }

            if (pScrollRect is not null)
            {
                PScrollRect = pScrollRect;
            }

            if (pScrollOffset is not null)
            {
                PScrollOffset = pScrollOffset;
            }
        }
コード例 #2
0
        public OutduplPointerShapeInfo
        (
            uint?type   = null,
            uint?width  = null,
            uint?height = null,
            uint?pitch  = null,
            Silk.NET.Maths.Vector2D <long>?hotSpot = null
        ) : this()
        {
            if (type is not null)
            {
                Type = type.Value;
            }

            if (width is not null)
            {
                Width = width.Value;
            }

            if (height is not null)
            {
                Height = height.Value;
            }

            if (pitch is not null)
            {
                Pitch = pitch.Value;
            }

            if (hotSpot is not null)
            {
                HotSpot = hotSpot.Value;
            }
        }
コード例 #3
0
        public OutduplMoveRect
        (
            Silk.NET.Maths.Vector2D <int>?sourcePoint      = null,
            Silk.NET.Maths.Rectangle <int>?destinationRect = null
        ) : this()
        {
            if (sourcePoint is not null)
            {
                SourcePoint = sourcePoint.Value;
            }

            if (destinationRect is not null)
            {
                DestinationRect = destinationRect.Value;
            }
        }
コード例 #4
0
        public OutduplPointerPosition
        (
            Silk.NET.Maths.Vector2D <int>?position = null,
            int?visible = null
        ) : this()
        {
            if (position is not null)
            {
                Position = position.Value;
            }

            if (visible is not null)
            {
                Visible = visible.Value;
            }
        }
コード例 #5
0
        public HDBltStateConstrictionData
        (
            int?enable = null,
            Silk.NET.Maths.Vector2D <int>?size = null
        ) : this()
        {
            if (enable is not null)
            {
                Enable = enable.Value;
            }

            if (size is not null)
            {
                Size = size.Value;
            }
        }
コード例 #6
0
        public DXVA2VideoProcessBltParams
        (
            long?targetFrame = null,
            Silk.NET.Maths.Rectangle <int>?targetRect      = null,
            Silk.NET.Maths.Vector2D <int>?constrictionSize = null,
            uint?streamingFlags = null,
            DXVA2AYUVSample16?backgroundColor = null,
            DXVA2ExtendedFormat?destFormat    = null,
            DXVA2ProcAmpValues?procAmpValues  = null,
            DXVA2Fixed32?alpha = null,
            DXVA2FilterValues?noiseFilterLuma    = null,
            DXVA2FilterValues?noiseFilterChroma  = null,
            DXVA2FilterValues?detailFilterLuma   = null,
            DXVA2FilterValues?detailFilterChroma = null,
            uint?destData = null
        ) : this()
        {
            if (targetFrame is not null)
            {
                TargetFrame = targetFrame.Value;
            }

            if (targetRect is not null)
            {
                TargetRect = targetRect.Value;
            }

            if (constrictionSize is not null)
            {
                ConstrictionSize = constrictionSize.Value;
            }

            if (streamingFlags is not null)
            {
                StreamingFlags = streamingFlags.Value;
            }

            if (backgroundColor is not null)
            {
                BackgroundColor = backgroundColor.Value;
            }

            if (destFormat is not null)
            {
                DestFormat = destFormat.Value;
            }

            if (procAmpValues is not null)
            {
                ProcAmpValues = procAmpValues.Value;
            }

            if (alpha is not null)
            {
                Alpha = alpha.Value;
            }

            if (noiseFilterLuma is not null)
            {
                NoiseFilterLuma = noiseFilterLuma.Value;
            }

            if (noiseFilterChroma is not null)
            {
                NoiseFilterChroma = noiseFilterChroma.Value;
            }

            if (detailFilterLuma is not null)
            {
                DetailFilterLuma = detailFilterLuma.Value;
            }

            if (detailFilterChroma is not null)
            {
                DetailFilterChroma = detailFilterChroma.Value;
            }

            if (destData is not null)
            {
                DestData = destData.Value;
            }
        }