core: Layer & View implementation
authorTaekyun Kim <tkq.kim@samsung.com>
Tue, 12 May 2015 04:37:24 +0000 (13:37 +0900)
committerTaekyun Kim <tkq.kim@samsung.com>
Fri, 19 Jun 2015 09:06:40 +0000 (18:06 +0900)
commit4df68b16837b7f97974664c0dd556453b7a68518
tree32abdf960134b89234a471a675ed59e0fb665426
parent97907538476a93fb0d551fcd5fe4698e9ff6d7e1
core: Layer & View implementation

A compositor has layers stacked from bottom to top. Each layer has its views
which are also stached from bottom to top. Layer can be used for grouping views
and maintaining z-order. For example, a desktop can have several layers like
panel, background and application layers.

View represent visible elements in the compositor space.

<< Written under following criteria. >>

1. View is a rectangle of the same size with its surface.

2. A view can have a parent and multiple childs.

3. View position and transform is relative to its parent.

4. Parent-Child relationship does not affect the z-order.

5. A view can be contained in a single layer at a time.

Change-Id: Ib0ad01575467960c5b04d968389e37879500f21b
src/Makefile.am
src/compositor.c
src/layer.c [new file with mode: 0644]
src/pepper-internal.h
src/pepper.h
src/view.c [new file with mode: 0644]