码迷,mamicode.com
首页 >  
搜索关键字:there is a huge rect    ( 5271个结果
OpenCV on Mac OSX: A step-by-step guide
I’m using OpenCV for my 4th year design project and setting it up was a huge pain. I had to look through a whole bunch of different sites to figure ou...
分类:其他好文   时间:2014-09-17 21:43:42    阅读次数:317
【实用】获取Android状态栏的方法
private static int getStatusHeight(Context context){ int statusHeight = 0; Rect localRect = new Rect(); ((Activity) context).getWindow().getDecorView().getWindowVisibleDisplayF...
分类:移动开发   时间:2014-09-17 01:11:41    阅读次数:249
pygame系列_draw游戏画图
说到画图,pygame提供了一些很有用的方法进行draw画图。'''pygame.draw.rect - draw a rectangle shape draw a rectangle shapepygame.draw.polygon - draw a shape with any numbe...
分类:其他好文   时间:2014-09-16 22:03:41    阅读次数:937
Chapter 5 带颜色的同心圆
一、重写 DrwaRect-(void)drawRect:(CGRect)rect{ CGRect bounds = self.bounds; CGPoint center; center.x = bounds.origin.x + bounds.size.width / ...
分类:其他好文   时间:2014-09-16 14:12:50    阅读次数:200
Cocos2d-x_3.2 Demo学习之VisibleRect类
这个类主要提供屏幕各个特殊位置的坐标。附上头文件代码: 1 class VisibleRect 2 { 3 public: 4 static cocos2d::Rect getVisibleRect();// 获取屏幕矩形 5 6 static cocos2d::Vec2 left...
分类:其他好文   时间:2014-09-15 22:40:29    阅读次数:379
VC++ 列表控件的使用方法
列表控件可以看作是功能增强的ListBox,它提供了四种风格,而且可以同时显示一列的多中属性值。MFC中使用CListCtrl类来封装列表控件的各种操作。通过调用BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT ...
分类:编程语言   时间:2014-09-15 14:19:18    阅读次数:298
Unity3d之个性化皮肤
1、首先创建皮肤,贴图2、在代码中定义public GUISkin变量,在Inspector中赋值3、在OnGUI中调用 GUI.skin = mySkin; GUI.Button(new Rect(10,10,100,100),"",GUI.skin.GetStyle("name"));
分类:其他好文   时间:2014-09-11 23:45:02    阅读次数:254
cocos2dx[3.2](9) ——数学类Vec2/Size/Rect
【唠叨】数学类Vec2、Size、Rect,是cocos2dx中比较常用的类。比如设置图片位置,设置图片大小,两图片的碰撞检测等等。比起2.x版本,在3.2中本质上其实没有太大的变化,主要的变化就是将全局宏定义相关的操作封装到各自的类中而已。比如:Vec2的向量运算宏定义ccp***(),现在..
分类:其他好文   时间:2014-09-11 02:21:12    阅读次数:226
unity实现二次退出提示
//实际项目中可以直接用GUI插件做个退出提示框。美观又和谐。public float uTime = 2; void OnGUI() { if (uTime < 2) { GUI.Label(new Rect(Screen.width/2...
分类:其他好文   时间:2014-09-09 12:02:08    阅读次数:168
processing link链接
voiddraw(){ rect(20,20,60,60); } voidmousePressed(){ link("http://processingjs.org"); } link(url); link(url,target)
分类:其他好文   时间:2014-09-09 09:11:08    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!