当前位置: 首页>>代码示例>>C#>>正文


C# include.Point2I类代码示例

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


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

示例1: Point2I

 public static Point2I operator -(Point2I nLeft, Point2I nRight)
 {
     Point2I result_ = new Point2I();
     result_._setX(nLeft._getX() - nRight._getX());
     result_._setY(nLeft._getY() - nRight._getY());
     return result_;
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:7,代码来源:Point2I.cs

示例2: _offset

 public virtual void _offset(Point2I nPoint)
 {
     if (null != m_tMovePoint2I)
     {
         this.m_tMovePoint2I(nPoint);
     }
 }
开发者ID:zyouhua,项目名称:weilai,代码行数:7,代码来源:Rect.cs

示例3: GroupBox

 public GroupBox()
 {
     mPoint = new Point2I();
     mSize = new Size2I();
     mGroupBox = null;
     mText = null;
 }
开发者ID:zyouhua,项目名称:weilai,代码行数:7,代码来源:GroupBox.cs

示例4: _normalPoint

 public Point2I _normalPoint(Point2I nPoint)
 {
     int width_ = mWidth * 2 - 3;
     int height_ = mHeight * 3 - 3;
     Point2I point_ = new Point2I(nPoint);
     int x_ = point_._getX();
     if (x_ < 3)
     {
         point_._setX(3);
     }
     if (x_ > width_)
     {
         point_._setX(width_);
     }
     int y_ = point_._getY();
     if (y_ < 3)
     {
         point_._setY(3);
     }
     if (y_ > height_)
     {
         point_._setY(height_);
     }
     return point_;
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:25,代码来源:ScreenSingleton.cs

示例5: LineShape

 public LineShape()
 {
     mPullPoint = new Point2I(default(int), default(int));
     mPullState = PullState_.mNone_;
     mLineStream = null;
     mLine = null;
 }
开发者ID:zyouhua,项目名称:weilai,代码行数:7,代码来源:LineShape.cs

示例6: LabelShape

 public LabelShape()
 {
     mRectShapes = new List<RectShape>();
     mPullPoint = new Point2I(default(int), default(int));
     mLabelStream = null;
     mLabel = null;
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:7,代码来源:LabelShape.cs

示例7: _adjustJoinPoint

 public Point2I _adjustJoinPoint(Point2I nBeg, Point2I nEnd)
 {
     if (null != m_tAdjustJoinPoint)
     {
         return this.m_tAdjustJoinPoint(nBeg, nEnd);
     }
     return null;
 }
开发者ID:zyouhua,项目名称:weilai,代码行数:8,代码来源:Rect.cs

示例8: _joinPoint

 public Point2I _joinPoint(Point2I nPoint)
 {
     if (null != m_tJoinPoint)
     {
         return this.m_tJoinPoint(nPoint);
     }
     return null;
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:8,代码来源:Label.cs

示例9: _drawEllipse

 public static void _drawEllipse(Point2I nPoint, Graphics nGraphics, RGB nRGB, int nSize = 3)
 {
     Point2I result_ = new Point2I(nPoint);
     result_._offset(-nSize, -nSize);
     Color color_ = nRGB._getColor();
     Pen pen_ = new Pen(color_);
     nGraphics.DrawEllipse(pen_, result_._getX(), result_._getY(), nSize * 2, nSize * 2);
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:8,代码来源:Graphicsos.cs

示例10: RadioButton

 public RadioButton()
 {
     mRadioButton = null;
     mPoint = new Point2I();
     mSize = new Size2I();
     mContain = null;
     mText = null;
 }
开发者ID:zyouhua,项目名称:weilai,代码行数:8,代码来源:RadioButton.cs

示例11: LabelShape

 public LabelShape()
 {
     mRectShapes = new List<RectShape>();
     mPullPoint = new Point2I(default(int), default(int));
     mPullState = PullState_.mNone_;
     mMoveState = MoveState_.mNone_;
     mLabelStream = null;
     mLabel = null;
 }
开发者ID:zyouhua,项目名称:weilai,代码行数:9,代码来源:LabelShape.cs

示例12: RadioButtonEx

 public RadioButtonEx()
 {
     mCheckCommand = null;
     mCheckCmd = null;
     mRadioButton = null;
     mPoint = new Point2I();
     mSize = new Size2I();
     mContain = null;
     mText = null;
 }
开发者ID:zyouhua,项目名称:weilai,代码行数:10,代码来源:RadioButtonEx.cs

示例13: _drawMove

 public void _drawMove(Point2I nPoint, Graphics nGraphics)
 {
     Point2I beg_ = mLine._getBegPoint();
     Point2I end_ = mLine._getEndPoint();
     beg_._offset(nPoint);
     end_._offset(nPoint);
     Line2I line_ = new Line2I(beg_, end_);
     string name_ = mLine._getName();
     Graphicsos._runDraw(line_, nGraphics, mLineStream._getMoveDraw(), mLineStream._getStyleName(), 1, mLineStream._getImage(), name_, mLineStream._getFont());
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:10,代码来源:LineShape.cs

示例14: CanvasCore

 public CanvasCore()
 {
     mSelects = new List<IShape>();
     mNormals = new List<IShape>();
     mPull = null;
     mMouseDown = new Point2I();
     mRectShape = null;
     mSideBar = null;
     mObject = null;
 }
开发者ID:zyouhua,项目名称:weilai,代码行数:10,代码来源:CanvasCore.cs

示例15: ComboBox

 public ComboBox()
 {
     mComboBoxItems = new List<ComboBoxItem>();
     mCommands = new List<ICommand>();
     m_tSelectTextSlot = null;
     mPoint = new Point2I();
     mSize = new Size2I();
     mComboBox = null;
     mContain = null;
     mEnable = true;
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:11,代码来源:ComboBox.cs


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