tree: ada55ff0f5e855d2d29e6ed695979e839237fc87 [path history] [tgz]
  1. BUILD.gn
  2. main.cc
  3. README.md
  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