/** * Gets bottom inset between area and its content. */ float Area::BottomInset() const { if (fRightBottomInset.IsHeightSet()) return fRightBottomInset.Height(); BALMLayout* layout = static_cast<BALMLayout*>(fLayoutItem->Layout()); return layout->InsetForTab(fBottom.Get()); }
/** * Gets top inset between area and its content. */ float Area::TopInset() const { if (fLeftTopInset.IsHeightSet()) return fLeftTopInset.Height(); BALMLayout* layout = static_cast<BALMLayout*>(fLayoutItem->Layout()); return layout->InsetForTab(fTop.Get()); }
/** * Gets right inset between area and its content. */ float Area::RightInset() const { if (fRightBottomInset.IsWidthSet()) return fRightBottomInset.Width(); BALMLayout* layout = static_cast<BALMLayout*>(fLayoutItem->Layout()); return layout->InsetForTab(fRight.Get()); }
/** * Gets left inset between area and its content. */ float Area::LeftInset() const { if (fLeftTopInset.IsWidthSet()) return fLeftTopInset.Width(); BALMLayout* layout = static_cast<BALMLayout*>(fLayoutItem->Layout()); return layout->InsetForTab(fLeft.Get()); }