blob: 4d056182947d3918aac01ab2c15c73c0152d34f7 [file] [log] [blame] [view]
Jeff Brown2df6b302015-10-27 18:48:31 -07001# Mozart View Tiling Example
2
3This directory contains a simple application which embeds any number of
4views from other applications all tiled in a row.
5
6The applications must implement the ViewProvider interface and register
7their Views with the ViewManager for this to work.
8
9## USAGE
10
Jeff Brownc641eed2016-04-08 13:36:13 -070011Specify the urls of the views to embed as a comma-delimited query string.
Jeff Brown2df6b302015-10-27 18:48:31 -070012
Jeff Brownc641eed2016-04-08 13:36:13 -070013 out/Debug/mojo_shell "mojo:launcher mojo:tile_view?views=<app1>[,<app2>[,...]]"
Jeff Brown2df6b302015-10-27 18:48:31 -070014
Jeff Brownc641eed2016-04-08 13:36:13 -070015 eg. out/Debug/mojo_shell "mojo:launcher mojo:tile_view?views=mojo:spinning_cube_view,mojo:noodles_view"
16
17The query string may also encode tiling options by appending parameters to
18the end of the query string.
19
20 Version mode for child views:
21
22 &vm=any : composite most recent unblocked version of each child (default)
23 &vm=exact : composite only exact version of child specified during
24 layout (forces frame-level synchronization of resizing)
25
26 Combinator mode for child views:
27
28 &cm=merge : use MERGE combinator (default)
29 &cm=prune : use PRUNE combinator
30 &cm=flash : use FALLBACK combinator with solid red color as
31 alternate content
32 &cm=dim : use FALLBACK combinator with a dimmed layer containing the
33 most recent unblocked version of the child
34
35 Orientation mode for child views:
36
37 &o=h : tile children horizontally
38 &o=v : tile children vertically