struct CCL::PopupSizeInfo

Overview

Info about positioning & size limits. More…

#include <ipopupselector.h>

struct PopupSizeInfo
{
    // enums

    enum Flags;

    // fields

     kForceFixedPosition;
    forceFixedPosition Point where;
    Rect anchorRect;
    IView* parent;
    SizeLimit sizeLimits;
    int flags;

    // construction

    PopupSizeInfo (IView* parent, int flags, PointRef offset = Point ());
    PopupSizeInfo (PointRef where, IView* parent = nullptr);

    // methods

    PROPERTY_FLAG (flags, kCanFlipParentEdge, canFlipParentEdge);
};

Detailed Documentation

Info about positioning & size limits.

Fields

forceFixedPosition Point where

position relative to parent

Rect anchorRect

in parent coords; a platform implementation might use this for a visual indication

Construction

PopupSizeInfo (IView* parent, int flags, PointRef offset = Point ())

align at parent edges specified by flags

PopupSizeInfo (PointRef where, IView* parent = nullptr)

place at given position relative to parent