var rect = $('.CalendarColumn').get(0).getBoundingClientRect();$('.CalendarColumn').get(0).getBoundingClientRect()ClientRect {height: 73, width: 191, ...
分类:
其他好文 时间:
2014-09-24 19:25:07
阅读次数:
176
1、创建一个drawboard#import "DrawBoard1.h"@implementation DrawBoard1-(void)drawRect:(CGRect)rect{ CGContextRef context=UIGraphicsGetCurrentContext(); CGC.....
分类:
其他好文 时间:
2014-09-23 01:29:23
阅读次数:
360
1.创建窗口 1 //声明窗口位置大小 2 private Rect pos = new Rect(10,60,120,50); 3 4 //回调函数 5 void Wincallback(int id) 6 { 7 if(GUI.Button(ne...
分类:
其他好文 时间:
2014-09-23 01:08:13
阅读次数:
404
1.文本输入框 1 public string text; 2 3 void OnGUI(){ 4 text = GUI.TextField(new Rect(140, 140, 100, 40), text); 5 6 if (GUI.Button(ne...
分类:
其他好文 时间:
2014-09-23 00:56:33
阅读次数:
327
- (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextMoveToPoint(context, 0, 0); CGContextAddRect(c...
分类:
其他好文 时间:
2014-09-23 00:52:13
阅读次数:
223
- (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); //起点移动到(0,0) CGContextMoveToPoint(context, 0, 0); //画线到(100,...
分类:
其他好文 时间:
2014-09-22 22:22:23
阅读次数:
208
/** * 将UIColor变换为UIImage * **/+ (UIImage *)createImageWithColor:(UIColor *)color{ CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f); UIGraphicsBe...
分类:
移动开发 时间:
2014-09-22 20:45:23
阅读次数:
198
【功能说明】该方法用于在画布上绘制圆角矩形,通过指定RectF对象以及圆角半径来实现。该方法是绘制圆角矩形的主要方法,同时也可以通过设置画笔的空心效果来绘制空心的圆角矩形。【基本语法】public void drawRoundRect (RectF rect, float rx, float ry,...
分类:
其他好文 时间:
2014-09-22 17:15:32
阅读次数:
349
基本方法:public static bool Button(Rect position, GUIContent content);public static bool Button(Rect position, string text);public static bool Button(Rect...
分类:
其他好文 时间:
2014-09-22 00:53:21
阅读次数:
365
[Windows编程基础之Rect]
作者:Tocy时间:2014-09-20
整理本文的最初目的是理清IsRectEmpty和IsRectNull函数的区别,但是在浏览msdn时发现有很多关于Rect函数都没有用过,因此整理下,以作记录并加深记忆。
Rect,矩形区域,通常我们会使用四个坐标表示,...