Resizable Panels
PBResizablePanel
Opaque object handle:
This is a subclass of PBElement. You can safely cast from PBResizablePanel to PBElement. To cast from PBElement to PBResizablePanel, call PBResizablePanelCast; this performs a runtime assertion to check the cast is possible. This function is thread-safe.
This object maintains an internal reference count. When the reference count reaches zero, the object will be automatically deallocated. To increment the reference count, call PBElementRetain; to decrement the reference count, call PBElementRelease. These functions are thread-safe.
PBResizablePanelFlags
Enumeration/bitset of type uint32_t:
Constants
Or any of the values from PBElementFlags.
PBResizablePanelCreate
Function:
Syntax (C/C++)
PBResizablePanelPtr _Nullable PBResizablePanelCreate(PBElementRef parent,
PBResizablePanelFlags flags, PBAccessHandleSides side);
Syntax (Python)
ResizablePanelCreate(parent, flags, side) -> (panel)
Parameters and Return Values
[in] parent (referenced PBElement):
[in] flags (PBResizablePanelFlags):
[in] side (PBAccessHandleSides):
[out] panel (nullable owned PBResizablePanel):
PBResizablePanelGetSize
Function:
Syntax (C/C++)
int32_t PBResizablePanelGetSize(PBResizablePanelRef panel);
Syntax (Python)
ResizablePanelGetSize(panel) -> (sizeDp)
Parameters and Return Values
[in] panel (referenced PBResizablePanel):
[out] sizeDp (int32_t
):
PBResizablePanelSetSize
Function:
Syntax (C/C++)
void PBResizablePanelSetSize(PBResizablePanelRef panel, int32_t newSizeDp,
bool sendValueChangedMessage);
Syntax (Python)
ResizablePanelSetSize(panel, newSizeDp, sendValueChangedMessage)
Parameters and Return Values
[in] panel (referenced PBResizablePanel):
[in] newSizeDp (int32_t
):
[in] sendValueChangedMessage (bool
):
PBResizablePanelSetMinimumSize
Function: Set the minimum size of the resizable panel.
Syntax (C/C++)
void PBResizablePanelSetMinimumSize(PBResizablePanelRef panel,
int32_t newMinimumSizeDp, bool allowZero);
Syntax (Python)
ResizablePanelSetMinimumSize(panel, newMinimumSizeDp, allowZero)
Parameters and Return Values
[in] panel (referenced PBResizablePanel): The resizable panel.
[in] newMinimumSizeDp (int32_t
): The new minimum size, in dps. Set to 0 for no minimum size (the default).
[in] allowZero (bool
): If true, the user will still be able to snap the panel to 0 dps.
Discussion
This will not modify the size itself.
PBResizablePanelGetResizeBarBounds
Function:
Syntax (C/C++)
PBRectangle PBResizablePanelGetResizeBarBounds(PBResizablePanelRef panel);
Syntax (Python)
ResizablePanelGetResizeBarBounds(panel) -> (resizeBarBoundsPx)
Parameters and Return Values
[in] panel (referenced PBResizablePanel):
[out] resizeBarBoundsPx (PBRectangle):