當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。