|
|
|
@@ -390,6 +390,12 @@ public: |
|
|
|
Options (const Options&) = default;
|
|
|
|
Options& operator= (const Options&) = default;
|
|
|
|
|
|
|
|
enum class PopupDirection
|
|
|
|
{
|
|
|
|
upwards,
|
|
|
|
downwards
|
|
|
|
};
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
Options withTargetComponent (Component* targetComponent) const noexcept;
|
|
|
|
Options withTargetScreenArea (Rectangle<int> targetArea) const noexcept;
|
|
|
|
@@ -399,16 +405,18 @@ public: |
|
|
|
Options withStandardItemHeight (int standardHeight) const noexcept;
|
|
|
|
Options withItemThatMustBeVisible (int idOfItemToBeVisible) const noexcept;
|
|
|
|
Options withParentComponent (Component* parentComponent) const noexcept;
|
|
|
|
Options withPreferredPopupDirection (PopupDirection direction) const noexcept;
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
Component* getParentComponent() const noexcept { return parentComponent; }
|
|
|
|
Component* getTargetComponent() const noexcept { return targetComponent; }
|
|
|
|
Rectangle<int> getTargetScreenArea() const noexcept { return targetArea; }
|
|
|
|
int getMinimumWidth() const noexcept { return minWidth; }
|
|
|
|
int getMaximumNumColumns() const noexcept { return maxColumns; }
|
|
|
|
int getMinimumNumColumns() const noexcept { return minColumns; }
|
|
|
|
int getStandardItemHeight() const noexcept { return standardHeight; }
|
|
|
|
int getItemThatMustBeVisible() const noexcept { return visibleItemID; }
|
|
|
|
Component* getParentComponent() const noexcept { return parentComponent; }
|
|
|
|
Component* getTargetComponent() const noexcept { return targetComponent; }
|
|
|
|
Rectangle<int> getTargetScreenArea() const noexcept { return targetArea; }
|
|
|
|
int getMinimumWidth() const noexcept { return minWidth; }
|
|
|
|
int getMaximumNumColumns() const noexcept { return maxColumns; }
|
|
|
|
int getMinimumNumColumns() const noexcept { return minColumns; }
|
|
|
|
int getStandardItemHeight() const noexcept { return standardHeight; }
|
|
|
|
int getItemThatMustBeVisible() const noexcept { return visibleItemID; }
|
|
|
|
PopupDirection getPreferredPopupDirection() const noexcept { return preferredPopupDirection; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
//==============================================================================
|
|
|
|
@@ -416,6 +424,7 @@ public: |
|
|
|
Component* targetComponent = nullptr;
|
|
|
|
Component* parentComponent = nullptr;
|
|
|
|
int visibleItemID = 0, minWidth = 0, minColumns = 1, maxColumns = 0, standardHeight = 0;
|
|
|
|
PopupDirection preferredPopupDirection = PopupDirection::downwards;
|
|
|
|
};
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
|