Skip to content

Layout

Base class for layout implementations.

Declaration

namespace bdn::ui {
    class Layout
}

Register

  • virtual void registerView(View *view) = 0

    Registers a View with the Layout. Called when the view is added to a hierarchy.

  • virtual void unregisterView(View *view) = 0

    Unregisters a View from the Layout. Called when the view is removed from its hierarchy.

Update

  • virtual void markDirty(View *view) = 0

    Called when a View is dirty.

  • virtual void updateStylesheet(View *view) = 0

    Called when a View's stylesheet changes.

Apply

  • virtual void layout(View *view) = 0

    Called when it's time to layout a View.

Source

Layout.h