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