码迷,mamicode.com
首页 >  
搜索关键字:there is a huge rect    ( 5271个结果
URAL 1502. Domino Dots (找规律)
1502. Domino Dots Time limit: 0.5 second Memory limit: 64 MB In order to run huge capitals, New Russians need exceptional brains. Of course, with such workload, they also need peculiar relaxa...
分类:其他好文   时间:2015-06-17 08:16:57    阅读次数:139
ios中navigationItem的titleView如何居中
CGRect rect = [UIScreen mainScreen].bounds; ? ? _friendsCircleTitleView = [[UIView alloc] initWithFrame:CGRectMake(0, 0,140, 44)]; ? ? _friendsCircleTitleView.backgroundColor = [UIColor clearCo...
分类:移动开发   时间:2015-06-14 21:30:38    阅读次数:449
iOS开发UI篇—Quartz2D使用(矩阵操作)
一、关于矩阵操作1.画一个四边形通过设置两个端点(长和宽)来完成一个四边形的绘制。代码: 1 - (void)drawRect:(CGRect)rect 2 { 3 //画四边形 4 //获取图形上下文 5 CGContextRef ctx=UIGraphicsGetCurr...
分类:移动开发   时间:2015-06-13 14:06:01    阅读次数:224
HDU--2056
Rectangles Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 17131    Accepted Submission(s): 5522 Problem Description Given two rect...
分类:其他好文   时间:2015-06-11 13:07:31    阅读次数:117
利用CoreGraphics画小黄人
简单的利用 CoreGraphics 画一个小黄人 话不多说,全在代码里面,挺简单的一个东西 ///画身体 void drawBody(CGContextRef context,CGRect rect) { ///设置颜色 [[UIColor yellowColor] set]; CGFloat startX = 100; CGFloat star...
分类:其他好文   时间:2015-06-10 17:30:34    阅读次数:145
swust oj 856--Huge Tree(并查集)
题目链接:http://acm.swust.edu.cn/problem/856/Time limit(ms): 1000 Memory limit(kb): 10000There are N trees in a forest. At first, each tree contain...
分类:其他好文   时间:2015-06-09 21:38:57    阅读次数:121
Android无线测试之—UiAutomator UiObject API介绍二
点击与长按一、组件区域位置关系 Rect 对象代表一个矩形区域 [Left,Top] [Right,Bottom]二、点击与长按API返回值API描述booleanclick()点击对象booleanclickAndWaitForNewWindow(lang timeout)点击对象,等待新窗口出....
分类:移动开发   时间:2015-06-09 20:01:02    阅读次数:145
iOS中修改导航栏高度
有时候需要修改导航栏的高度,可以这样修改:         UINavigationBar *bar = [self.navigationController navigationBar];     CGFloat navBarHeight = 30.0f;     CGRect rect = CGRectMake(0, 20, self.window.frame.size...
分类:移动开发   时间:2015-06-09 17:34:55    阅读次数:129
GUI使用1——基础函数使用
1 GUI.Window 窗口static function Window (id : int, clientRect : Rect, func : WindowFunction, text : String, style : GUIStyle) : RectwindowRect = GUI.Win...
分类:其他好文   时间:2015-06-09 16:55:53    阅读次数:115
C:\\MFC控件大小随窗体大小而改变
一。大小和位置都改变 1.首先为窗体类添加CRect m_rect,该成员变量用来记录窗体的当前大小。 2.在类向导里面(Ctrl+W),为窗体添加消息WM_SIZE的响应函数OnSize(); 注意if(nType==1) return;这一句必须添加,否则最小化恢复的时候会出错。 [cpp]vi...
分类:编程语言   时间:2015-06-06 14:51:25    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!