• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# include.Point2I类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: Button

 public Button()
 {
     mPoint = new Point2I();
     mSize = new Size2I();
     mCommand = null;
     mOnClick = null;
     mButton = null;
     mContain = null;
     mText = null;
     mEnable = true;
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:11,代码来源:Button.cs


示例17: OnMouseDown

        protected override void OnMouseDown(MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                Point2I point_ = new Point2I(e.X, e.Y);
                ScreenSingleton screenSingleton_ = __singleton<ScreenSingleton>._instance();
                point_ = screenSingleton_._normalPoint(point_);
                this._leftDown(point_);
            }
            this.Refresh();

            base.OnMouseDown(e);
        }
开发者ID:zyouhua,项目名称:nvwa,代码行数:13,代码来源:CanvasControl.cs


示例18: _drawMove

 public void _drawMove(Point2I nPoint, Graphics nGraphics)
 {
     Rect2I rect_ = this._getRect2I();
     rect_._offset(nPoint);
     rect_._setHeight(mLabelHeight);
     this._rectDrawMove(nGraphics, rect_);
     rect_._offset(0, mLabelHeight);
     rect_._setHeight(mRectHeight);
     foreach (RectShape i in mRectShapes)
     {
         this._rectDrawMove(nGraphics, rect_);
         rect_._offset(0, mRectHeight);
     }
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:14,代码来源:LabelShape.cs


示例19: OnMouseMove

 protected override void OnMouseMove(MouseEventArgs e)
 {
     Graphics graphics_ = Graphics.FromHwnd(Handle);
     Point2I point_ = new Point2I(e.X, e.Y);
     ScreenSingleton screenSingleton_ = __singleton<ScreenSingleton>._instance();
     point_ = screenSingleton_._normalPoint(point_);
     this.Refresh();
     this._mouseMove(point_, graphics_);
     if (e.Button == MouseButtons.Left)
     {
         this._leftMove(point_, graphics_);
     }
     graphics_.Dispose();
     base.OnMouseMove(e);
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:15,代码来源:CanvasControl.cs


示例20: _begPoint

 public Point2I _begPoint(int nLength = 16)
 {
     Point2I point_ = this._vector();
     float length_ = this._length();
     if (length_ < nLength)
     {
         return null;
     }
     float x_ = point_._getX() / length_;
     float y_ = point_._getY() / length_;
     Point2I result_ = new Point2I();
     result_._setX((int)(nLength * x_ + mBeg._getX()));
     result_._setY((int)(nLength * y_ + mBeg._getY()));
     return result_;
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:15,代码来源:Line2I.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# core.LayoutItem类代码示例发布时间:2022-05-26
下一篇:
C# runtime.Runtime类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap