]> git.sesse.net Git - vlc/commit
skins2: add a function that differentiates dependent and independent layouts.
authorErwan Tulou <erwan10@videolan.org>
Sun, 31 Mar 2013 23:54:55 +0000 (01:54 +0200)
committerErwan Tulou <erwan10@videolan.org>
Mon, 1 Apr 2013 01:15:40 +0000 (03:15 +0200)
commitac394edb69eb59e141b87870d4cabe403ee92986
tree7aae937c84196dfa361792e6b82f52577470ad40
parentc42f8e52f94176aa69e92ded29717c99364002e5
skins2: add a function that differentiates dependent and independent layouts.

In skins2, a window can have multiple layouts with two different goals.

First goal, layouts have the same original size and only differ in the
presentation (different color, ...). If the active layout gets resized,
the user expects the related inactive layouts with the same size to
automatically resize, should they become active.

Second goal, layouts are different in size, e.g a reduced layout and an
expanded layout. In this case, resizing the active layout doesn't mean
resizing the other inactive layouts, since they were not meant to be
similar in size in the first place.

This patch creates a function that will be used to differentiate these
two different use of layouts.
modules/gui/skins2/src/generic_layout.cpp
modules/gui/skins2/src/generic_layout.hpp