- "cellspacing", "cellpadding"
- block and inline tags
<p>, <h1>,<img>, <em>
Forms
- controls, widgets
- text fields, radio, checkbox, buttons, menus, etc.
| // Usage example: | |
| // input image: http://f.cl.ly/items/3v0S3w2B3N0p3e0I082d/Image%202011.07.22%2011:29:25%20PM.png | |
| // | |
| // UIImage *buttonImage = [UIImage ipMaskedImageNamed:@"UIButtonBarAction.png" color:[UIColor redColor]]; | |
| // .h | |
| @interface UIImage (IPImageUtils) | |
| + (UIImage *)ipMaskedImageNamed:(NSString *)name color:(UIColor *)color; | |
| @end |
| class MovingBall { | |
| float x, y, w; // variables for drawing the ellipse | |
| boolean movingForward; | |
| boolean movingUp; | |
| void drawItself() { | |
| ellipse(x, y, w, w); | |
| } | |
| /* | |
| * Mask with least signficant n bits set to 1 | |
| * Examples: n = 6 --> 0x2F, n = 17 --> 0x1FFFF | |
| * Assume 1 <= n <= w | |
| */ | |
| int lower_one_mask(int n) { | |
| /* | |
| * 2ˆn-1 has bit pattern 0...01..1 (n 1’s) | |
| * But, we must avoid a shift by 32 |
| class MovingBall { | |
| float x, y, w, maxW, speed; // variables for drawing the ellipse | |
| boolean movingForward; | |
| boolean movingUp; | |
| boolean expanding; | |
| float r, g, b; | |
| void drawItself() { | |
| fill(r, g, b); |
| class Box { | |
| float x, y, w, h; | |
| void drawItself() { | |
| rect(x, y, w, h); | |
| } | |
| } | |
| Box myBox; |
| class CircleDraw { | |
| float x, y, r, a; | |
| void drawSelf() { | |
| fill(255); | |
| noStroke(); | |
| ellipse(x + r * cos(a), y - r * sin (a), 5, 5); | |
| a += 0.1; | |
| if (a >= 2 * PI) { |
| class Box { | |
| float x, y, w, h, speed; | |
| boolean movingForward, movingUp; | |
| void drawItself() { | |
| rect(x, y, w, h); | |
| } | |
| void update() { | |
| if (movingForward) |
| class MovingBall { | |
| float x, y, w, maxW, speed; // variables for drawing the ellipse | |
| boolean movingForward; | |
| boolean movingUp; | |
| boolean expanding; | |
| boolean mouseInside; | |
| float r, g, b; | |
| void drawItself() { |
| class LineDrawer { | |
| float x1, y1, x2, y2; | |
| boolean movingForward; | |
| void drawItself() { | |
| line (x1, y1, x2, y2); | |
| } | |
| void update() { | |
| if (movingForward) { |