• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# nuint类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中nuint的典型用法代码示例。如果您正苦于以下问题:C# nuint类的具体用法?C# nuint怎么用?C# nuint使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



nuint类属于命名空间,在下文中一共展示了nuint类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: GetPoint

 public override TKChartData GetPoint(TKChart chart, nuint dataIndex, nuint seriesIndex)
 {
     TKChartDataPoint point = new TKChartDataPoint ();
     point.DataXValue = new NSNumber (dataIndex);
     point.DataYValue = new NSNumber(r.Next (100));
     return point;
 }
开发者ID:sudipnath,项目名称:ios-sdk,代码行数:7,代码来源:BindWithDelegate.cs


示例2: RequestTile

 public override void RequestTile(nuint x, nuint y, nuint zoom, ITileReceiver receiver)
 {
     _tileImageAsync((int)x, (int)y, (int)zoom).ContinueWith((Task<byte[]> task) =>
     {
         var imgByte = task.Result;
         var image = new UIImage(NSData.FromArray(imgByte));
         receiver.ReceiveTile(x, y, zoom, image);
     });
 }
开发者ID:XnainA,项目名称:Xamarin.Forms.GoogleMaps,代码行数:9,代码来源:TouchAsyncTileLayer.cs


示例3: LabelForDataPoint

			public override TKChartPointLabel LabelForDataPoint (TKChart chart, TKChartData dataPoint, string propertyName, TKChartSeries series, nuint dataIndex)
			{
				TKChartDataPoint point = (TKChartDataPoint)dataPoint;
				if (series.Index == (nuint)this.selectedSeriesIndex && dataIndex == (nuint)this.selectedDataPointIndex) {
					return new MyPointLabel (point, series, String.Format ("{0}", point.DataYValue));
				}

				
				return new TKChartPointLabel (point, series, String.Format ("{0}", point.DataYValue));
			}
开发者ID:tremors,项目名称:ios-sdk,代码行数:10,代码来源:CustomPointLabels.cs


示例4: PaletteItemForPoint

            public override TKChartPaletteItem PaletteItemForPoint(TKChart chart, nuint index, TKChartSeries series)
            {
                if (series.Index == (nuint)this.selectedSeriesIndex && index == (nuint)this.selectedDataPointIndex) {
                    return new TKChartPaletteItem (new TKStroke (UIColor.Black, (float)2.0), new TKSolidFill (UIColor.White));
                }

                if (series.Index == 0) {
                    return new TKChartPaletteItem (new TKSolidFill (new UIColor ((float)(108 / 255.0), (float)(181 / 255.0), (float)(250 / 255.0), (float)1.0)));
                }

                return new TKChartPaletteItem (new TKSolidFill (new UIColor ((float)(241 / 255.0), (float)(140 / 255.0), (float)(133 / 255.0), (float)1.0)));
            }
开发者ID:sudipnath,项目名称:ios-sdk,代码行数:12,代码来源:CustomPointLabelRender.cs


示例5: CellFrameForTextContainer

		public override CGRect CellFrameForTextContainer (NSTextContainer textContainer, CGRect lineFrag, CGPoint position, nuint charIndex)
		{
			var rect = base.CellFrameForTextContainer (textContainer, lineFrag, position, charIndex);

			return new CGRect (
				rect.Location,
				new CGSize (
					rect.Width + padding * 2,
					rect.Height + padding * 2
				)
			);
		}
开发者ID:RangoLee,项目名称:mac-samples,代码行数:12,代码来源:CustomCatTextAttachmentCell.cs


示例6: GetSeries

            public override TKChartSeries GetSeries(TKChart chart, nuint index)
            {
                TKChartSeries series = null;

                if (index == 2) {
                    series = new TKChartSplineSeries ();
                } else {
                    series = new TKChartLineSeries ();
                }

                series.SelectionMode = TKChartSeriesSelectionMode.Series;
                series.Style.PointShape = new TKPredefinedShape (TKShapeType.Circle, new System.Drawing.SizeF (10, 10));
                series.Title = string.Format ("Series: {0}", index + 1);
                return series;
            }
开发者ID:sudipnath,项目名称:ios-sdk,代码行数:15,代码来源:BindWithDelegate.cs


示例7: Read

		public override nint Read (IntPtr buffer, nuint len)
		{
			int actual = Math.Min ((int) len, (int) (total_length - read_length));

			byte [] bytes = new byte [actual];
			for (int i = 0; i < actual; i++)
				bytes [i] = (byte) 'z';

			read_length += actual;

			Marshal.Copy (bytes, 0, buffer, actual);

			if (actual == 0)
				Notify (CFStreamEventType.EndEncountered);

			return actual;
		}
开发者ID:Rajneesh360Logica,项目名称:monotouch-samples,代码行数:17,代码来源:ZInputStream.cs


示例8: LabelForDataPoint

		public override TKChartPointLabel LabelForDataPoint (TKChartData dataPoint, TKChartSeries series, nuint dataIndex)
		{
			TKChartDataPoint point = (TKChartDataPoint)dataPoint;
			if (series.Index == (nuint)this.SelectedSeries && dataIndex == (nuint)this.SelectedDataPoint) {
				if (this.labelLayer == null) {
					this.labelLayer = new SelectedPointLabel ();
				}

				this.labelLayer.LabelStyle = series.Style.PointLabelStyle;
				this.labelLayer.Text = String.Format ("{0}", point.DataYValue);
				this.isSelectedPoint = true;
				return null;
			}

			this.isSelectedPoint = false;
			return new TKChartPointLabel (dataPoint, series, String.Format ("{0}", point.DataYValue));
		}
开发者ID:tremors,项目名称:ios-sdk,代码行数:17,代码来源:MyPointLabelRender.cs


示例9: DidDisplayPhoto

			public override void DidDisplayPhoto (PhotoBrowser photoBrowser, nuint index)
			{
				Console.WriteLine ("Did start viewing photo at index {0}.", index);
			}
开发者ID:cyecp,项目名称:XamarinComponents,代码行数:4,代码来源:MenuViewController.cs


示例10: OnSelectedChanged

			public override void OnSelectedChanged (PhotoBrowser photoBrowser, nuint index, bool selected)
			{
				_selections [index] = selected;
				Console.WriteLine ("Photo at index {0} selected ? {1}.", index, selected);
			}
开发者ID:cyecp,项目名称:XamarinComponents,代码行数:5,代码来源:MenuViewController.cs


示例11: IsPhotoSelected

			public override bool IsPhotoSelected (PhotoBrowser photoBrowser, nuint index)
			{
				return _selections [index];
			}
开发者ID:cyecp,项目名称:XamarinComponents,代码行数:4,代码来源:MenuViewController.cs


示例12: GetThumbnail

			public override IPhoto GetThumbnail (PhotoBrowser photoBrowser, nuint index)
			{
				return thumbs [(int)index];
			}
开发者ID:cyecp,项目名称:XamarinComponents,代码行数:4,代码来源:MenuViewController.cs


示例13: GetPhoto

			public override IPhoto GetPhoto (PhotoBrowser photoBrowser, nuint index)
			{
				return photos [(int)index];
			}
开发者ID:cyecp,项目名称:XamarinComponents,代码行数:4,代码来源:MenuViewController.cs


示例14: RenderBox

		void RenderBox (IMTLRenderCommandEncoder renderEncoder, GameView view, nuint offset, string name)
		{
			renderEncoder.PushDebugGroup (name);
			//  set context state
			renderEncoder.SetRenderPipelineState (pipelineState);
			renderEncoder.SetVertexBuffer (vertexBuffer, 0, 0);
			renderEncoder.SetVertexBuffer (dynamicConstantBuffer [constantDataBufferIndex], offset, 1);

			// tell the render context we want to draw our primitives
			renderEncoder.DrawPrimitives (MTLPrimitiveType.Triangle, 0, 36, 1);
			renderEncoder.PopDebugGroup ();
		}
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:12,代码来源:Renderer.cs


示例15: GetTimelineEntriesBeforeDate

 public override void GetTimelineEntriesBeforeDate(CLKComplication complication, NSDate beforeDate, nuint limit, Action<CLKComplicationTimelineEntry[]> entries)
 {
     Console.WriteLine ("GetTimelineEntriesBeforeDate");
     entries (null);
 }
开发者ID:phantomlight,项目名称:xamarin-ios-samples,代码行数:5,代码来源:ComplicationController.cs


示例16: ViewDidLoad

        public override void ViewDidLoad()
        {
            colors = NSArray.FromNSObjects (UIColor.Red, UIColor.Orange, UIColor.Yellow,
                                            UIColor.Green, UIColor.Blue, UIColor.Purple);

            View.BackgroundColor = colors.GetItem<UIColor> (colorIndex);
            colorIndex = (colorIndex + 1) % colors.Count;
        }
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:8,代码来源:ViewController.cs


示例17: Quad

		// Designated initializer
		public Quad (IMTLDevice device)
		{
			if (device == null)
				throw new Exception ("ERROR: Invalid device!");

			vertexBuffer = device.CreateBuffer<Vector4> (quadVertices, MTLResourceOptions.CpuCacheModeDefault);
			if (vertexBuffer == null)
				Console.WriteLine ("ERROR: Failed creating a vertex buffer for a quad!");
			vertexBuffer.Label = "quad vertices";

			texCoordBuffer = device.CreateBuffer<Vector2> (quadTexCoords, MTLResourceOptions.CpuCacheModeDefault);
			if (texCoordBuffer == null)
				Console.WriteLine ("ERROR: Failed creating a 2d texture coordinate buffer!");
			texCoordBuffer.Label = "quad texcoords";

			vertexIndex = 0;
			texCoordIndex = 1;
			Aspect = 1f;

			scale = Vector2.One;
		}
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:22,代码来源:Quad.cs


示例18: Renderer

		public Renderer ()
		{
			// initialize properties
			sampleCount = 1;
			depthPixelFormat = MTLPixelFormat.Depth32Float;
			stencilPixelFormat = MTLPixelFormat.Invalid;

			// find a usable Device
			device = MTLDevice.SystemDefault;

			// create a new command queue
			commandQueue = device.CreateCommandQueue ();

			NSError error;
			shaderLibrary = device.CreateLibrary ("default.metallib", out error);

			// if the shader libary isnt loading, nothing good will happen
			if (shaderLibrary == null)
				throw new Exception ("ERROR: Couldnt create a default shader library");

			inflightSemaphore = new Semaphore (maxInflightBuffers, maxInflightBuffers);
		}
开发者ID:rzaitov,项目名称:selfContained,代码行数:22,代码来源:Renderer.cs


示例19: Renderer

		public Renderer ()
		{
			sampleCount = 4;
			depthPixelFormat = MTLPixelFormat.Depth32Float;
			stencilPixelFormat = MTLPixelFormat.Invalid;

			// find a usable Device
			device = MTLDevice.SystemDefault;

			// create a new command queue
			commandQueue = device.CreateCommandQueue ();

			NSError error;
			defaultLibrary = device.CreateLibrary ("default.metallib", out error);

			// if the shader libary isnt loading, nothing good will happen
			if (defaultLibrary == null)
				throw new Exception ("ERROR: Couldnt create a default shader library");

			constantDataBufferIndex = 0;
			inflightSemaphore = new Semaphore (max_inflight_buffers, max_inflight_buffers);

			constantBuffer = new Uniforms[2];
			constantBuffer [0].ambientColor = box1AmbientColor;
			constantBuffer [0].diffuseColor = box1DiffuseColor;

			constantBuffer [1].ambientColor = box2AmbientColor;
			constantBuffer [1].diffuseColor = box2DiffuseColor;

			multiplier = 1;
		}
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:31,代码来源:Renderer.cs



注:本文中的nuint类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# oikonomosEntities类代码示例发布时间:2022-05-24
下一篇:
C# nsIRequest类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap