-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
777 lines (658 loc) · 23.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
<!doctype html>
<html lang="en">
<head>
<title>Meet Prime, join forces</title>
<meta charset="utf-8">
<meta name="description" content="Introduction to Prime.vc">
<meta name="author" content="Ruben Weijers">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- <link rel="stylesheet" href="components/try-haxe/lib/bootstrap/css/bootstrap.min.css"> -->
<link rel="stylesheet" href="components/reveal.js/css/reveal.min.css">
<link rel="stylesheet" href="components/reveal.js/css/theme/default.css" id="theme">
<link rel="stylesheet" href="components/reveal.js/lib/css/zenburn.css">
<link rel="stylesheet" href="components/try-haxe/lib/CodeMirror2/lib/codemirror.css"/>
<link rel="stylesheet" href="components/try-haxe/lib/CodeMirror2/lib/util/simple-hint.css"/>
<!-- <link rel="stylesheet" href="components/try-haxe/lib/CodeMirror2/theme/ambiance.css"/>
<link rel="stylesheet" href="components/try-haxe/lib/CodeMirror2/theme/blackboard.css"/>
<link rel="stylesheet" href="components/try-haxe/lib/CodeMirror2/theme/cobalt.css"/>
<link rel="stylesheet" href="components/try-haxe/lib/CodeMirror2/theme/elegant.css"/>
<link rel="stylesheet" href="components/try-haxe/lib/CodeMirror2/theme/erlang-dark.css"/>
<link rel="stylesheet" href="components/try-haxe/lib/CodeMirror2/theme/lesser-dark.css"/> -->
<link rel="stylesheet" href="components/try-haxe/lib/CodeMirror2/theme/monokai.css"/>
<!-- <link rel="stylesheet" href="components/try-haxe/lib/CodeMirror2/theme/neat.css"/>
<link rel="stylesheet" href="components/try-haxe/lib/CodeMirror2/theme/night.css"/>
<link rel="stylesheet" href="components/try-haxe/lib/CodeMirror2/theme/rubyblue.css"/>
<link rel="stylesheet" href="components/try-haxe/lib/CodeMirror2/theme/vibrant-ink.css"/>
<link rel="stylesheet" href="components/try-haxe/lib/CodeMirror2/theme/xq-dark.css"/> -->
<link rel="stylesheet" href="css/icons.css">
<link rel="stylesheet" href="css/screen.css">
<!--[if lt IE 9]>
<script src="components/reveal.js/lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body data-api="components/try-haxe/app">
<div class="reveal">
<div class="slides">
<section id="title">
<img src="img/face.png" id="prime-face" />
<img src="img/primevc.png" id="primevc" />
<p class="date">WWX 2013</p><p>May 26 2013</p>
</section>
<section id="overview">
<h2>Overview</h2>
<ul>
<li>Libraries for building data-driven user-interfaces</li>
<li>Libraries are designed to be muli-purpose</li>
<li>We need help</li>
</ul>
</section>
<section id="about-us">
<section id="about-us-1">
<ol class="timeline begin">
<li class="fragment"><h3><i class="icon-mill">the Netherlands</i></h3> <span class="note">from Netherlands</span></li>
<li class="fragment"><h3>CiteFlow</h3> <span class="note">co-founder of CiteFlow, we give organisations insight in what knowledge their employees have.</span></li>
<li class="fragment"><h3><i class="icon-school"></i></h3> <span class="note">programming at age 12</span></li>
<li class="fragment"><h3><i class="icon-tree-1"></i></h3> <span class="note">met Danny at some camp</span></li>
<li class="fragment"><h3><i class="icon-emo-shoot"></i><i class="icon-heart-1"></i></h3> <span class="note">Danny started dating my sister</span></li>
<li class="fragment"><h3><i class="icon-thumbs-up-1"></i><i class="icon-emo-grin"></i></h3> <span class="note">only for a short time</span></li>
<li class="fragment"><h3><i class="icon-study"></i></h3> <span class="note">same study, graphic media technology</span></li>
<li class="fragment"><h3><i class="icon-gauge"></i></h3> <span class="note">Found out we both like to go the extra mile.</span></li>
<li class="fragment"><h3><i class="icon-heart-1"></i></h3> <span class="note">we share a passion to make developing more fun and more productive</span></li>
</ol>
</section>
<section id="about-us-2">
<ol class="timeline end">
<li class="fragment"><h3><i class="icon-docs"></i></h3> <span class="note">We've been sharing ways to improve our productivity, new IDE's, programming languages and other life-hacking techniques</span></li>
<li class="fragment"><h3>Flex<i class="icon-flex"></i></h3> <span class="note">building e-learning applications in Adobe Flex.</span></li>
<li class="fragment"><h3><i class="icon-emo-shoot"></i>Fx</h3> <span class="note">pretty frustrated with Flex. Heavy, intertangled components</span></li>
<li class="fragment"><h3><i class="icon-help"></i></h3> <span class="note">In 2009 quited my job at Nestor (2009)</span></li>
<li class="fragment"><h3><i class="icon-address"></i></h3> <span class="note">started doing freelance jobs</span></li>
<li class="fragment"><h3>Haxe</h3> <span class="note">Danny introduced me to Haxe</span></li>
<li class="fragment"><h3>OnlineTouch</h3> <span class="note">hired by OnlineTouch to build an editor for creating interactive magazines online</span></li>
<li class="fragment"><h3><i class="icon-prime-bindable"></i></h3><span class="note">Danny had build an flash-application to view publications in Haxe</span></li>
<li class="fragment"><h3>Prime</h3> <span class="note">Lot's of code an ideas from this application was reusable and abstracted. This formed the base for prime.vc (2010)</span></li>
</ol>
</section>
</section>
<section id="demos">
<section id="demo-intro">
<h2>Demo</h2>
</section>
</section>
<section id="prime-overview">
<ul>
<li id="overview-core"><i class="prime icon-prime-core"></i><span>core</span></li>
<li class="fragment" id="overview-signals"><i class="prime icon-prime-signals"></i><span>Signals</span></li>
<li class="fragment" id="overview-bindable"><i class="prime icon-prime-bindable"></i><span>Bindable</span></li>
<li class="fragment" id="overview-mvc"><i class="prime icon-prime-mvc"></i><span>MVC</span></li>
<li class="fragment" id="overview-display"><i class="prime icon-prime-display"></i><span>Display</span></li>
<li class="fragment" id="overview-layout"><i class="prime icon-prime-layout"></i><span>Layout</span></li>
<li class="fragment" id="overview-components"><i class="prime icon-prime-components"></i><span>Components</span></li>
<li class="fragment" id="overview-css"><i class="prime icon-prime-css"></i><span>CSS</span></li>
</ul>
</section>
<section id="about-prime">
<h1>Goals</h1>
<ul>
<li>cross platform</li>
<li>data-intensive applications</li>
<li>strongly typed</li>
<li>snappy & responsive</li>
</ul>
<aside class="notes">
We believe it's possible to strongly reduce tedious and repeatable code.
Prime.vc:
A series of light-weight, well documented libraries for developing data-driven applications.
Our libraries are designed to be:
* cross platform (flash9 all, js some)
* avoid library lockin
functionality should be replacable by a different library
* fast
performed lot of benchmarking to find out the fastest procedures (depending on platform)
</aside>
</section>
<section id="team">
<h1>Team</h1>
<ul>
<li><img src="img/andrew.png"><h3>Andrew Pahuru</h3></li>
<li><img src="img/danny.jpg"><h3>Danny Wilson</h3></li>
<li><img src="img/eze.jpg"><h3>Ezequiel Moreno</h3></li>
<li><img src="img/ruben.jpg"><h3>Ruben Weijers</h3></li>
</ul>
</section>
<section id="signals">
<section id="signals-intro" class="intro">
<h1>Signals</h1>
<i class="lib prime icon-prime-signals"></i>
<ul>
<li>Strongly-typed event-system</li>
<li>Intuitive syntax-sugar</li>
<li>Cross-platform</li>
</ul>
</section>
<section id="events">
<h2>What's wrong with events?</h2>
<ul>
<li>no typechecking</li>
<li>messages wrapped in Event-class</li>
<li>no generic functions as listeners</li>
</ul>
</section>
<section id="signal-basics">
<pre><code>var signal : Signal2<Int, String> // signal definition
function actOnSignal (p1:Int, p2:String) : Void; // handler definition
signal.bind( this, actOnSignal ); // binding them together</code></pre>
</section>
<section id="signals-example1">
<h2>Binding, observing</h2>
<textarea name="hx-source" class="code haxe-source" rows="10" id="signals-example1-code">
import prime.signals.Signal2;
class Test {
static function main() new Test()
function new () {
var s = new Signal2<Int,String>();
s.bind(this, function (a,b) trace("a: "+a+"; b: "+b));
s.observe(this, function () { trace("test"); });
s.send(5, "test");
}
}</textarea></section>
<section id="signals-example2">
<h2>Syntax sugar</h2>
<textarea name="hx-source" class="code haxe-source" rows="10" id="signals-example2-code">
import prime.signals.Signal1;
using prime.utils.Bind;
class Test {
static function main() new Test()
function new () {
var s = new Signal1<String>();
function () { trace("test"); }.on(s,this);
function () { trace("test once"); }.onceOn(s,this);
function (p){ trace(p); }.on(s,this);
function (p){ trace(p+" once"); }.onceOn(s,this);
s.send("argument1");
s.send("argument2");
}
}</textarea></section>
</section>
<section id="bindable">
<section id="bindable-intro" class="intro">
<h1>bindable</h1>
<i class="lib prime icon-prime-bindable"></i>
<p>data-types sending events on change</p>
<ul class="dependencies">
<li><i class="prime icon-prime-core"></i></li>
<li><i class="prime icon-prime-signals"></i></li>
</ul>
</section>
<section id="bindable-example-simple1">
<h2>Bindable Object</h2>
<textarea name="hx-source" class="code haxe-source" rows="10" id="bindable-example1-code">
import prime.bindable.Bindable;
using prime.utils.Bind;
class Test {
static function main () new Test()
function new () {
var a = new Bindable<String>("WWX '13");
function (newV, oldV) {
trace("a changed from "+oldV+" => "+newV);
}.on(a.change, this);
trace(a.value);
a.value = "Enjoy WWX '13";
}
}</textarea>
</section>
<section id="bindable-example-simple2">
<h2>Binding Objects</h2>
<textarea name="hx-source" class="code haxe-source" rows="10" id="bindable-example2-code">
import prime.bindable.Bindable;
class Test {
static function main () new Test()
function new () {
var a = new Bindable<String>("Value A");
var b = new Bindable<String>("Value B");
trace("A: "+a.value);
trace("B: "+b.value+"\n");
b.bind(a);
trace("change A");
a.value = "Enjoy WWX '13";
trace("A: "+a.value);
trace("B: "+b.value+"\n");
trace("change B");
b.value = "Back to value B";
trace("A: "+a.value);
trace("B: "+b.value);
}
}</textarea>
</section>
<section id="bindable-example-pairing">
<h2>Pairing Objects</h2>
<textarea name="hx-source" class="code haxe-source" rows="10" id="bindable-example3-code">
import prime.bindable.Bindable;
class Test {
static function main () new Test()
function new () {
var a = new Bindable<String>("Value A");
var b = new Bindable<String>("Value B");
trace("A: "+a.value);
trace("B: "+b.value+"\n");
a.pair(b);
trace("change A");
a.value = "Enjoy WWX '13";
trace("A: "+a.value);
trace("B: "+b.value+"\n");
trace("change B");
b.value = "Back to value B";
trace("A: "+a.value);
trace("B: "+b.value);
}
}</textarea>
</section>
<section id="bindable-example-arraylist">
<h2>ArrayList</h2>
<textarea name="hx-source" class="code haxe-source" rows="10" id="bindable-example4-code">
import prime.bindable.collections.ArrayList;
using prime.utils.Bind;
class Test {
static function main () new Test()
function new () {
var a = "value 1"; var b = "value2";
var l = new ArrayList<String>();
function (c) { trace(c); }.on(l.change, this);
l.add(a);
l.add(b);
trace(l);
l.remove(a);
}
}</textarea>
</section>
<section id="bindable-example-arraylist2">
<h2>Binding ArrayList</h2>
<textarea name="hx-source" class="code haxe-source" rows="10" id="bindable-example5-code">
import prime.bindable.collections.ArrayList;
class Test {
static function main () new Test()
function new () {
var a = "val1"; var b = "val2"; var c = "val3";
var l1 = new ArrayList<String>();
var l2 = new ArrayList<String>();
l1.add(a);
l2.bind(l1);
trace("l1: "+l1);
trace("l2: "+l2+"\n");
l1.add(b);
l2.add(c);
trace("l1: "+l1);
trace("l2: "+l2);
l1.remove(a);
}
}</textarea>
</section>
<section id="revertable-example-simple1">
<h2>Revertable Object</h2>
TODO
</section>
<section id="revertable-example-arraylist">
<h2>Revertable ArrayList</h2>
TODO
</section>
</section>
<section id="mvc">
<section id="mvc-intro" class="intro">
<h1>MVC</h1>
<i class="lib prime icon-prime-mvc"></i>
<ul>
<li>reusable actors</li>
<li>typed MVC-references</li>
<li>reduced boilerplate (macro's)</li>
</ul>
<ul class="dependencies">
<li><i class="prime icon-prime-core"></i></li>
<li><i class="prime icon-prime-signals"></i></li>
<li><i class="prime icon-prime-states"></i></li>
</ul>
</section>
<section id="mvc-overview">
<img src="img/mvc-facade.svg" id="svg-mvc-facade">
<img src="img/mvc-logic.svg" class="fragment" id="svg-mvc-logic">
<img src="img/mvc-model.svg" class="fragment" id="svg-mvc-model">
<img src="img/mvc-states.svg" class="fragment" id="svg-mvc-states">
<img src="img/mvc-events.svg" class="fragment" id="svg-mvc-events">
<img src="img/mvc-view.svg" class="fragment" id="svg-mvc-view">
</section>
<section id="mvc-typed-references">
<h2>Typed MVC-references</h2>
<pre><code>private typedef Facade {
var model = {
var clipboard (default, null) : ClipboardProxy;
var document (default, null) : DocumentProxy;
var selection (default, null) : SelectionProxy;
};
var events = {
var clipboard (default, null) : ClipboardEvents;
};
};
class SelectionController extends MVCActor<Facade> {}</code></pre>
</section>
</section>
<section id="display">
<section id="display-intro" class="intro">
<h1>Display</h1>
<i class="lib prime icon-prime-display"></i>
<ul>
<li>Add signals for mouse/keyboard</li>
<li>Bindable display-list</li>
</ul>
<ul class="dependencies">
<li><i class="prime icon-prime-core"></i></li>
<li><i class="prime icon-prime-signals"></i></li>
<li><i class="prime icon-prime-bindable"></i></li>
</ul>
</section>
<section id="display-example1">
<h2>Adding children</h2>
<textarea name="hx-source" class="code haxe-source" rows="10" id="display-example1-code">
import prime.gui.events.MouseEvents;
using prime.utils.Bind;
class Test extends prime.gui.display.Sprite {
static function main() {
var w = new prime.gui.display.Window(flash.Lib.current.stage);
w.children.add(new Test());
}
public function new (x = 0.0, y = 0.0) {
super();
this.x = x; this.y = y;
funkify(prime.utils.Color.random());
changeColor .on( userEvents.mouse.rollOver, this );
changeColor .on( userEvents.mouse.rollOut, this );
addUglyChild.on( userEvents.mouse.click, this );
}
function changeColor (state:MouseState)
funkify(Std.int( 0xF1F100 * state.local.x ))
function addUglyChild () {
var x = container.children.length * 15;
children.add(new Test(x, parent.y + 37.5));
}
function funkify (color) {
graphics.clear();
graphics.beginFill(color);
graphics.drawRect(0,0,75,75);
}
}</textarea></section>
</section>
<section id="layout">
<section id="layout-intro" class="intro">
<h1>Layout</h1>
<i class="lib prime icon-prime-layout"></i>
<ul>
<li>Positioning and sizing via algorithms</li>
<li>SVG, DOM, Bitmaps, etc.</li>
<li>Extendable</li>
</ul>
<ul class="dependencies">
<li><i class="prime icon-prime-core"></i></li>
<li><i class="prime icon-prime-signals"></i></li>
<li><i class="prime icon-prime-bindable"></i></li>
<li><i class="prime icon-prime-states"></i></li>
</ul>
</section>
<section id="boxmodel">
<h2>Box Model</h2>
<img src="img/box-model.png">
</section>
<section id="layoutclients">
<h2>LayoutClients</h2>
<img src="img/LayoutExample.png">
<img src="img/LayoutActors1.svg" class="fragment" id="layout-actors1">
<img src="img/LayoutActors2.svg" class="fragment" id="layout-actors2">
</section>
<section id="layout-example-layoutclient">
<h2>Example LayoutClient</h2>
<textarea name="hx-source" class="code haxe-source" rows="10" id="bindable-example5-code">
import prime.layout.LayoutClient;
import prime.gui.display.Sprite;
import prime.core.geom.Box;
using prime.utils.Bind;
class Test {
static var sprite = new Sprite();
static var layout = new LayoutClient(100, 50);
static function main () {
layout.margin = new Box(10);
flash.Lib.current.stage.addChild(sprite);
redraw.on(layout.changed, sprite);
move.on(sprite.userEvents.mouse.click, sprite);
redraw();
}
static function move () layout.x += 10
static function redraw () {
trace("redraw");
var g = sprite.graphics;
var l = layout.innerBounds;
g.clear();
g.beginFill(0xff0000);
g.drawRect(l.left, l.top, l.width, l.height);
g.endFill();
}
}</textarea></section>
<section id="layoutcontainer">
<h2>LayoutContainer</h2>
<img src="img/AdvancedLayoutClient.png">
</section>
<section id="algorithms">
<h2>Algorithms</h2>
<p>Position children of LayoutContainer</p>
<ul>
<li>Float (horizontal / vertical / both)</li>
<li>Circle (horizontal / vertical / both)</li>
<li>Relative</li>
<li>Tile</li>
</ul>
</section>
<section id="layout-example-algorithms">
<h2>Example Algorithms</h2>
<textarea name="hx-source" class="code haxe-source" rows="10" id="layout-algorithms-demo">
import Prime;
using prime.utils.Bind;
using Std;
class Test extends prime.gui.core.UIWindow
{
public static function main ()
Window.startup(function (stage) return new Test(stage))
override private function createChildren () {
for (i in 0...15) attach(new UIGraphic());
changeAlgorithm.on(userEvents.mouse.click, this);
}
function changeAlgorithm ()
layoutContainer.algorithm = cast a[a.length.random()]
static var a = [
new HorizontalFloat(left, top),
new HorizontalFloat(center, bottom),
new VerticalFloat(top, right),
new VerticalFloat(bottom, left),
new SimpleTile(),
new SimpleTile(vertical),
new DynamicLayout(
function () return new HorizontalCircle(),
function () return new VerticalCircle()),
new DynamicLayout(
function () return new HorizontalCircle(),
function () return new VerticalFloat())];
}</textarea></section>
</section>
</section>
<section id="components">
<section id="components-intro" class="intro">
<h1>Components</h1>
<i class="lib prime icon-prime-components"></i>
<ul class="dependencies">
<li><i class="prime icon-prime-core"></i></li>
<li><i class="prime icon-prime-signals"></i></li>
<li><i class="prime icon-prime-bindable"></i></li>
<li><i class="prime icon-prime-states"></i></li>
<li><i class="prime icon-prime-layout"></i></li>
<li><i class="prime icon-prime-css"></i></li>
</ul>
</section>
<section id="components-list">
<ul>
<li>Button</li>
<li>ColorPicker</li>
<li>ComboBox</li>
<li>Panels</li>
<li>Form</li>
<li>List</li>
<li>TextArea</li>
<li>ProgressBar</li>
<li>Slider</li>
<li>ScrollBar</li>
<li>VideoPlayer</li>
<li>AudioPlayer</li>
</ul>
</section>
<section id="components-structure">
<h2>Component Structure</h2>
<ul>
<li>Layout</li>
<li>CSS</li>
<li>Behaviours</li>
<li>Skin</li>
<li>Transitions</li>
<li>Graphics</li>
</ul>
</section>
<section id="behaviours">
<h2>Behaviours</h2>
<ul>
<li>Inject behaviour</li>
<li>Re-use behaviours</li>
<li>Drag-n-drop / Scrolling / Rendering / Tooltip</li>
</ul>
</section>
<section id="behaviours2">
<h2>Behaviours</h2>
<pre><code>var button = new Button("buttonId");
button.behaviours.add(new DirectToolTipBehaviour());</code></pre>
</section>
<section id="skin">
<h2>Skin</h2>
<p>Seperate graphics from component-logic</p>
<dl class="dl-horizontal">
<dt class="fragment">Button</dt><dd class="fragment">Icon and/or Label</dd>
<dt class="fragment">VideoPlayer</dt><dd class="fragment">what controls do you want</dd>
<dt class="fragment">Slider</dt><dd class="fragment">Use custom shapes</dd>
</dl>
<pre class="fragment"><code>Button {
skin: Class(primevc.gui.components.skins.ButtonIconSkin);
}</code></pre>
</section>
<section id="transitions">
<h2>Transitions</h2>
<p>Effects that will be triggered on resize / move / show / hide / rotate / scale.</p>
<pre><code>Button {
show-transition: fade 500ms 0% 60%;
}</code></pre>
</section>
<section id="display-core-demo-css">
<h2>Basic CSS</h2>
<pre><code>@manifest url('Style.xml');
@import url('../../../../styles/empty/BasicStyle.css');
Test { algorithm: tile; }
Test UIGraphic { background: #ddeeaa; }
Test UIComponent { background: #eeaadd; }
Test IDisplayObject {
width: 30px;
height: 50px;
margin: 20px 5px;
background: #ffaaaa;
}
Test UIComponent:hover {
background: #ff0000aa;
width: 80px;
height: 80px;
}
</code></pre>
</section>
<section id="display-core-demo">
<h2>Basic CSS</h2>
<textarea name="hx-source" class="code haxe-source" rows="10" id="display-core-demo">
import Prime;
class Test extends prime.gui.core.UIWindow
{
public static function main ()
prime.gui.display.Window.startup(function (stage) { return new Test(stage); })
override private function createChildren () {
for (i in 0...20) attach( new UIGraphic() );
for (i in 0...20) attach( new UIComponent() );
for (i in 0...20) attach( new UIGraphic() );
}
}
</textarea></section>
</section>
<section id="css">
<section id="css-intro" class="intro">
<h1>CSS</h1>
<i class="lib prime icon-prime-css"></i>
<ul>
<li>Compiled CSS</li>
<li>support for most css1, css2 and css3 properties</li>
<li>Reduce Boilerplate</li>
<li>Re-use styles</li>
<li>Efficient pattern-matching</li>
</ul>
</section>
<section id="css-properties">
<h2>CSS Properties</h2>
<ul>
<li>Font</li>
<li>Background</li>
<li>Border</li>
<li>Layout</li>
<li>Transitions</li>
<li>Filters</li>
</ul>
</section>
<section id="example-style-levels">
<pre><code>IDisplayable { show-transition: fade; }
.example Test { background: #ff0; }
#example1 Test { background: #fff; }
MenuBar {
width: 100%;
height: 20px;
algorithm: float-hor;
padding: 6px 0px;
background: linear-gradient( 90deg, #242424, #2B2B2B );
}
MenuBar Button {
background: #eee;
border: 1px solid #000;
border-radius: 10px;
}</code></pre>
</section>
</section>
<section id="roadmap">
<h1>Roadmap</h1>
<ol class="timeline begin end">
<li class="fragment"><h3>Release Haxelibs</h3></li>
<li class="fragment"><h3>Documentation</h3></li>
<li class="fragment"><h3>Launch new website</h3></li>
<li class="fragment"><h3>Haxe 3</h3></li>
<li class="fragment"><h3>Extend JS Target</h3></li>
</ol>
</section>
<section id="questions">
<h1>Thanks!</h1>
<p>Questions?</p>
</section>
</div></div>
<script src="components/reveal.js/lib/js/head.min.js"></script>
<script src="components/reveal.js/js/reveal.js"></script>
<script src="components/reveal.js/js/jquery.min.js"></script>
<script src="components/try-haxe/lib/CodeMirror2/lib/codemirror.js"></script>
<script src="components/try-haxe/lib/CodeMirror2/mode/haxe/haxe.js"></script>
<script src="components/try-haxe/lib/CodeMirror2/mode/javascript/javascript.js"></script>
<script src="components/try-haxe/lib/haxe-hint.js"></script>
<script src="components/try-haxe/app.js"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>