tree: 2b797b84af11a165ca52fe5afc3ce1e8ab564f3c [path history] [tgz]
  1. BUILD.gn
  2. README.md
  3. main.cc
  4. tile_params.cc
  5. tile_params.h
  6. tile_view.cc
  7. tile_view.h
garnet/examples/ui/tile/README.md

Scenic View Tiling Example

This directory contains a simple application which embeds any number of views from other applications all tiled in a row. It also exposes a Presenter service so that if one of embedded applications launches another application, the launched application can present its View within the TileView.

The applications must implement the ViewProvider interface to be embedded.

USAGE

Specify the urls of the views to embed initially as command-line arguments.

$ present_view fuchsia-pkg://fuchsia.com/tile_view#meta/tile_view.cmx <app1> <app2> ...

The following command-line options are also supported:

Orientation mode for child views:

--horizontal : tile children horizontally (default)
--vertical   : tile children vertically

Example:

$ present_view fuchsia-pkg://fuchsia.com/tile_view#meta/tile_view.cmx \
    --horizontal \
    fuchsia-pkg://fuchsia.com/spinning_square_view#meta/spinning_square_view.cmx \
    fuchsia-pkg://fuchsia.com/shapes_view#meta/shapes_view.cmx