gapistructs.cs.svn-base
来自「这是一个windows mobile程序能够实现窗体运货效果非常不错」· SVN-BASE 代码 · 共 47 行
SVN-BASE
47 行
// Generated by PInvoke Wizard (v 1.0) from The Paul Yao Company http://www.paulyao.com
using System;
using System.Drawing;
namespace Aspecto.GapiDrawNet
{
public struct GDRect
{
public GDRect(int left, int top, int right, int bottom)
{
Left = left;
Top = top;
Right = right;
Bottom = bottom;
}
public int Left;
public int Top;
public int Right;
public int Bottom;
public int Height
{
get{ return Bottom - Top; }
}
public int Width
{
get{ return Right - Left; }
}
public bool Contains(Point p)
{
return (p.X >= Left) && (p.X <= Right) && (p.Y >= Top) && (p.Y <= Bottom);
}
public bool Contains(int x, int y)
{
return (x >= Left) && (x <= Right) && (y >= Top) && (y <= Bottom);
}
public void Inflate(int inflateBy)
{
Left-= inflateBy;
Top -= inflateBy;
Right += inflateBy;
Bottom += inflateBy;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?