本文整理汇总了C#中nuint类的典型用法代码示例。如果您正苦于以下问题:C# nuint类的具体用法?C# nuint怎么用?C# nuint使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
nuint类属于命名空间,在下文中一共展示了nuint类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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);
});
}
示例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));
}
示例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)));
}
示例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
)
);
}
示例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;
}
示例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;
}
示例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));
}
示例9: DidDisplayPhoto
public override void DidDisplayPhoto (PhotoBrowser photoBrowser, nuint index)
{
Console.WriteLine ("Did start viewing photo at index {0}.", index);
}
示例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);
}
示例11: IsPhotoSelected
public override bool IsPhotoSelected (PhotoBrowser photoBrowser, nuint index)
{
return _selections [index];
}
示例12: GetThumbnail
public override IPhoto GetThumbnail (PhotoBrowser photoBrowser, nuint index)
{
return thumbs [(int)index];
}
示例13: GetPhoto
public override IPhoto GetPhoto (PhotoBrowser photoBrowser, nuint index)
{
return photos [(int)index];
}
示例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 ();
}
示例15: GetTimelineEntriesBeforeDate
public override void GetTimelineEntriesBeforeDate(CLKComplication complication, NSDate beforeDate, nuint limit, Action<CLKComplicationTimelineEntry[]> entries)
{
Console.WriteLine ("GetTimelineEntriesBeforeDate");
entries (null);
}