Beispiel #1
0
Book::Book(Layer& layer):
  Widget(layer),
  activePage(NULL)
{
  getKeyPressedSignal().connect(*this, &Book::onKeyPressed);
  getButtonClickedSignal().connect(*this, &Book::onButtonClicked);
  getAreaChangedSignal().connect(*this, &Book::onAreaChanged);
}
Beispiel #2
0
Layout::Layout(Layer& layer, Orientation initOrientation, bool initExpanding):
    Widget(layer),
    borderSize(0.f),
    orientation(initOrientation),
    expanding(initExpanding)
{
    if (!expanding)
        getAreaChangedSignal().connect(*this, &Layout::onAreaChanged);
}