當前位置: 首頁>>代碼示例>>C#>>正文


C# core.GiContext類代碼示例

本文整理匯總了C#中touchvg.core.GiContext的典型用法代碼示例。如果您正苦於以下問題:C# GiContext類的具體用法?C# GiContext怎麽用?C# GiContext使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


GiContext類屬於touchvg.core命名空間,在下文中一共展示了GiContext類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: setContext

 public virtual void setContext(GiContext ctx, int mask)
 {
     touchvgPINVOKE.MgShape_setContext(swigCPtr, GiContext.getCPtr(ctx), mask);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:vvhh2002,項目名稱:TouchVG,代碼行數:5,代碼來源:MgShape.cs

示例2: drawRoundRect

 public bool drawRoundRect(GiContext ctx, Box2d rect, float rx)
 {
     bool ret = touchvgPINVOKE.GiGraphics_drawRoundRect__SWIG_2(swigCPtr, GiContext.getCPtr(ctx), Box2d.getCPtr(rect), rx);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:nhbcyz,項目名稱:TouchVG,代碼行數:6,代碼來源:GiGraphics.cs

示例3: getContext

 public GiContext getContext(bool forChange)
 {
     GiContext ret = new GiContext(touchvgPINVOKE.GiCoreView_getContext(swigCPtr, forChange), false);
     return ret;
 }
開發者ID:hantu123,項目名稱:touchvg,代碼行數:5,代碼來源:GiCoreView.cs

示例4: drawPolygon

 public bool drawPolygon(GiContext ctx, int count, Point2d points)
 {
     bool ret = touchvgPINVOKE.GiGraphics_drawPolygon__SWIG_1(swigCPtr, GiContext.getCPtr(ctx), count, Point2d.getCPtr(points));
     return ret;
 }
開發者ID:nhbcyz,項目名稱:TouchVG,代碼行數:5,代碼來源:GiGraphics.cs

示例5: drawQuadSplines

 public bool drawQuadSplines(GiContext ctx, int count, Point2d ctlpts)
 {
     bool ret = touchvgPINVOKE.GiGraphics_drawQuadSplines__SWIG_2(swigCPtr, GiContext.getCPtr(ctx), count, Point2d.getCPtr(ctlpts));
     return ret;
 }
開發者ID:nhbcyz,項目名稱:TouchVG,代碼行數:5,代碼來源:GiGraphics.cs

示例6: drawLine

 public bool drawLine(GiContext ctx, Point2d startPt, Point2d endPt)
 {
     bool ret = touchvgPINVOKE.GiGraphics_drawLine__SWIG_1(swigCPtr, GiContext.getCPtr(ctx), Point2d.getCPtr(startPt), Point2d.getCPtr(endPt));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:nhbcyz,項目名稱:TouchVG,代碼行數:6,代碼來源:GiGraphics.cs

示例7: drawPath

 public bool drawPath(GiContext ctx, GiPath path, bool fill)
 {
     bool ret = touchvgPINVOKE.GiGraphics_drawPath__SWIG_1(swigCPtr, GiContext.getCPtr(ctx), GiPath.getCPtr(path), fill);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:nhbcyz,項目名稱:TouchVG,代碼行數:6,代碼來源:GiGraphics.cs

示例8: getCPtr

 internal static HandleRef getCPtr(GiContext obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:4,代碼來源:GiContext.cs

示例9: GiContext

 public GiContext(GiContext src)
     : this(touchvgPINVOKE.new_GiContext__SWIG_6(GiContext.getCPtr(src)), true)
 {
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:5,代碼來源:GiContext.cs

示例10: dyndraw

 public int dyndraw(int mode, GiGraphics gs, GiContext ctx, int segment)
 {
     int ret = touchvgPINVOKE.MgShapes_dyndraw(swigCPtr, mode, GiGraphics.getCPtr(gs), GiContext.getCPtr(ctx), segment);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:pankajcg,項目名稱:TouchVG,代碼行數:6,代碼來源:MgShapes.cs

示例11: equals

 public bool equals(GiContext src)
 {
     bool ret = touchvgPINVOKE.GiContext_equals(swigCPtr, GiContext.getCPtr(src));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:6,代碼來源:GiContext.cs

示例12: draw

 public int draw(GiGraphics gs, GiContext ctx)
 {
     int ret = touchvgPINVOKE.MgShapes_draw__SWIG_0(swigCPtr, GiGraphics.getCPtr(gs), GiContext.getCPtr(ctx));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:pankajcg,項目名稱:TouchVG,代碼行數:6,代碼來源:MgShapes.cs

示例13: draw

 public virtual bool draw(int mode, GiGraphics gs, GiContext ctx, int segment)
 {
     bool ret = (SwigDerivedClassHasMethod("draw", swigMethodTypes23) ? touchvgPINVOKE.MgBaseShape_drawSwigExplicitMgBaseShape(swigCPtr, mode, GiGraphics.getCPtr(gs), GiContext.getCPtr(ctx), segment) : touchvgPINVOKE.MgBaseShape_draw(swigCPtr, mode, GiGraphics.getCPtr(gs), GiContext.getCPtr(ctx), segment));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:vvhh2002,項目名稱:TouchVG,代碼行數:6,代碼來源:MgBaseShape.cs

示例14: context

 public virtual GiContext context()
 {
     GiContext ret = new GiContext(touchvgPINVOKE.MgShape_context(swigCPtr), false);
     return ret;
 }
開發者ID:vvhh2002,項目名稱:TouchVG,代碼行數:5,代碼來源:MgShape.cs

示例15: drawEllipse

 public bool drawEllipse(GiContext ctx, Box2d rect)
 {
     bool ret = touchvgPINVOKE.GiGraphics_drawEllipse__SWIG_3(swigCPtr, GiContext.getCPtr(ctx), Box2d.getCPtr(rect));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:nhbcyz,項目名稱:TouchVG,代碼行數:6,代碼來源:GiGraphics.cs


注:本文中的touchvg.core.GiContext類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。