本文整理汇总了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_;
}
示例2: _offset
public virtual void _offset(Point2I nPoint)
{
if (null != m_tMovePoint2I)
{
this.m_tMovePoint2I(nPoint);
}
}
示例3: GroupBox
public GroupBox()
{
mPoint = new Point2I();
mSize = new Size2I();
mGroupBox = null;
mText = null;
}
示例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_;
}
示例5: LineShape
public LineShape()
{
mPullPoint = new Point2I(default(int), default(int));
mPullState = PullState_.mNone_;
mLineStream = null;
mLine = null;
}
示例6: LabelShape
public LabelShape()
{
mRectShapes = new List<RectShape>();
mPullPoint = new Point2I(default(int), default(int));
mLabelStream = null;
mLabel = null;
}
示例7: _adjustJoinPoint
public Point2I _adjustJoinPoint(Point2I nBeg, Point2I nEnd)
{
if (null != m_tAdjustJoinPoint)
{
return this.m_tAdjustJoinPoint(nBeg, nEnd);
}
return null;
}
示例8: _joinPoint
public Point2I _joinPoint(Point2I nPoint)
{
if (null != m_tJoinPoint)
{
return this.m_tJoinPoint(nPoint);
}
return null;
}
示例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);
}
示例10: RadioButton
public RadioButton()
{
mRadioButton = null;
mPoint = new Point2I();
mSize = new Size2I();
mContain = null;
mText = null;
}
示例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;
}
示例12: RadioButtonEx
public RadioButtonEx()
{
mCheckCommand = null;
mCheckCmd = null;
mRadioButton = null;
mPoint = new Point2I();
mSize = new Size2I();
mContain = null;
mText = null;
}
示例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());
}
示例14: CanvasCore
public CanvasCore()
{
mSelects = new List<IShape>();
mNormals = new List<IShape>();
mPull = null;
mMouseDown = new Point2I();
mRectShape = null;
mSideBar = null;
mObject = null;
}
示例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;
}