class Core::Portable::RootViewBase

#include <coreviewshared.h>

class RootViewBase
{
public:
    // typedefs

    typedef Core::RectList<5> RectList;

    // enums

    enum RenderMode;

    // construction

    RootViewBase(
        RectRef targetSize = Rect(),
        BitmapPixelFormat pixelFormat = kBitmapRGBAlpha,
        RenderMode renderMode = kOffscreenMode
    );

    // methods

    PROPERTY_BOOL(updateSuspended, UpdateSuspended) const;
    RenderMode getRenderMode() const;
    const RectList& getDirtyRegion() const;
    const void* getNextRenderBuffer() const;
    const Bitmap* getActiveBufferBitmap() const;
    const BitmapData* accessForRead() const;
    bool redraw();
    bool redrawTo(IGraphicsCommandSink& commandSink);
    virtual void draw(const DrawEvent& e) = 0;
};

// direct descendants

class RootView;
class StaticRootView;