本文整理汇总了C#中platform.include.Point2I._getX方法的典型用法代码示例。如果您正苦于以下问题:C# Point2I._getX方法的具体用法?C# Point2I._getX怎么用?C# Point2I._getX使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类platform.include.Point2I
的用法示例。
在下文中一共展示了Point2I._getX方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: _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_;
}
示例2: Rect2I
public Rect2I(Point2I nPoint, Size2I nSize)
{
Point2I point_ = new Point2I();
point_._setX(nPoint._getX() + nSize._getWidth());
point_._setY(nPoint._getY() + nSize._getHeight());
__tuple<Point2I, Point2I> tuple_ = nPoint._minMax(point_);
Point2I min_ = tuple_._get_0();
Point2I max_ = tuple_._get_1();
Size2I size_ = new Size2I();
size_._setWidth(max_._getX() - min_._getX());
size_._setHeight(max_._getY() - min_._getY());
mPoint = new Point2I(min_);
mSize = new Size2I(size_);
}
示例3: _contain
public bool _contain(Point2I nPoint)
{
return this._contain(nPoint._getX(), nPoint._getY());
}
示例4: _connectPoint
public Point2I _connectPoint(Point2I nPoint)
{
Point2I result_ = new Point2I();
Point2I center_ = this._centerPoint();
if (center_._getX() > nPoint._getX())
{
result_._setX(mPoint._getX());
}
else
{
result_._setX(mPoint._getX() + mSize._getWidth());
}
result_._setY(center_._getY());
return result_;
}
示例5: _setBeg
public void _setBeg(Point2I nBeg)
{
mBeg._setX(nBeg._getX());
mBeg._setY(nBeg._getY());
}
示例6: _createLabel
public void _createLabel(Point2I nPoint)
{
this._pushDown(nPoint);
this._resetShape();
SideItem sideItem_ = mSideBar._getChooseSideItem();
LabelCreater labelCreater_ = sideItem_._getTag() as LabelCreater;
labelCreater_._setObject(mObject);
labelCreater_._setX(nPoint._getX());
labelCreater_._setY(nPoint._getY());
ILabel label_ = labelCreater_._runCreate() as ILabel;
if (null == label_)
{
mSideBar._resetActiveTab();
this._pushUp();
return;
}
LabelShape labelshape_ = new LabelShape();
labelshape_._initLabel(label_);
mSelects.Add(labelshape_);
mSideBar._resetActiveTab();
this._pushUp();
}
示例7: _fillRectangle
public static void _fillRectangle(Point2I nPoint, Graphics nGraphics, RGB nRGB, int nSize = 3)
{
Point2I result_ = new Point2I(nPoint);
result_._offset(-nSize, -nSize);
Color color_ = nRGB._getColor();
Brush brush_ = new SolidBrush(color_);
nGraphics.FillRectangle(brush_, result_._getX(), result_._getY(), nSize * 2, nSize * 2);
}
示例8: _setPoint
public void _setPoint(Point2I nPoint)
{
mPoint._setX(nPoint._getX());
mPoint._setY(nPoint._getY());
}
示例9: _setPoint
public void _setPoint(Point2I nPoint)
{
mX = nPoint._getX();
mY = nPoint._getY();
}
示例10: _offset
public void _offset(Point2I nPoint)
{
this._offset(nPoint._getX(), nPoint._getY());
}
示例11: _minMax
public __tuple<Point2I, Point2I> _minMax(Point2I nPoint)
{
return this._minMax(nPoint._getX(), nPoint._getY());
}
示例12: _length
public decimal _length(Point2I nPoint)
{
return this._length(nPoint._getX(), nPoint._getY());
}
示例13: _offset
public void _offset(Point2I nPoint)
{
if (null != m_tMovePoint2I)
{
this.m_tMovePoint2I(nPoint);
}
mX += nPoint._getX();
mY += nPoint._getY();
}
示例14: _distance
public double _distance(Point2I nPoint)
{
return this._distance(nPoint._getX(), nPoint._getY());
}
示例15: _setEnd
public void _setEnd(Point2I nEnd)
{
mEnd._setX(nEnd._getX());
mEnd._setY(nEnd._getY());
}