本文整理汇总了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();
}
示例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;
}
示例3: getContext
public GiContext getContext(bool forChange)
{
GiContext ret = new GiContext(touchvgPINVOKE.GiCoreView_getContext(swigCPtr, forChange), false);
return ret;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例8: getCPtr
internal static HandleRef getCPtr(GiContext obj)
{
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
示例9: GiContext
public GiContext(GiContext src)
: this(touchvgPINVOKE.new_GiContext__SWIG_6(GiContext.getCPtr(src)), true)
{
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例14: context
public virtual GiContext context()
{
GiContext ret = new GiContext(touchvgPINVOKE.MgShape_context(swigCPtr), false);
return ret;
}
示例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;
}