| Jeff Brown | 2df6b30 | 2015-10-27 18:48:31 -0700 | [diff] [blame] | 1 | # Mozart View Tiling Example |
| 2 | |
| 3 | This directory contains a simple application which embeds any number of |
| 4 | views from other applications all tiled in a row. |
| 5 | |
| 6 | The applications must implement the ViewProvider interface and register |
| 7 | their Views with the ViewManager for this to work. |
| 8 | |
| 9 | ## USAGE |
| 10 | |
| Jeff Brown | c641eed | 2016-04-08 13:36:13 -0700 | [diff] [blame] | 11 | Specify the urls of the views to embed as a comma-delimited query string. |
| Jeff Brown | 2df6b30 | 2015-10-27 18:48:31 -0700 | [diff] [blame] | 12 | |
| Jeff Brown | c641eed | 2016-04-08 13:36:13 -0700 | [diff] [blame] | 13 | out/Debug/mojo_shell "mojo:launcher mojo:tile_view?views=<app1>[,<app2>[,...]]" |
| Jeff Brown | 2df6b30 | 2015-10-27 18:48:31 -0700 | [diff] [blame] | 14 | |
| Jeff Brown | c641eed | 2016-04-08 13:36:13 -0700 | [diff] [blame] | 15 | eg. out/Debug/mojo_shell "mojo:launcher mojo:tile_view?views=mojo:spinning_cube_view,mojo:noodles_view" |
| 16 | |
| 17 | The query string may also encode tiling options by appending parameters to |
| 18 | the 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 |