13 Shape::Shape(Sml::Color fillColor) : m_FillColor(fillColor) {}
14 Shape::Shape(
const Background* background) : m_Background(background) {}
16 void Shape::layout() { updateShadow(); }
17 bool Shape::isResizable()
const {
return false; }
29 Sml::Color Shape::getFillColor()
const {
return m_FillColor; }
30 void Shape::setFillColor(Sml::Color color) { m_FillColor = color; }
32 const Background* Shape::getBackground()
const {
return m_Background; }
33 void Shape::setBackground(
const Background* background) { m_Background = background; }
35 const Border* Shape::getBorder()
const {
return m_Border; }
36 void Shape::setBorder(
const Border* border) { m_Border = border; }
38 int32_t Shape::computeMinWidth(int32_t height)
const {
return getLayoutWidth(); }
39 int32_t Shape::computeMinHeight(int32_t width)
const {
return getLayoutHeight(); }
41 int32_t Shape::computeMaxWidth(int32_t height)
const {
return getLayoutWidth(); }
42 int32_t Shape::computeMaxHeight(int32_t width)
const {
return getLayoutHeight(); }