Image Displays
PBImageDisplay
Opaque object handle: (not documented yet)
This is a subclass of PBElement. You can safely cast from PBImageDisplay to PBElement. To cast from PBElement to PBImageDisplay, call PBImageDisplayCast; 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.
PBImageDisplayFlags
Enumeration/bitset of type uint32_t: (not documented yet)
Constants
PBImageDisplay_DECORATIVE
PBImageDisplay_DECORATIVE = 1<<0
(not documented yet)
PBImageDisplay_AUTO_ASPECT_RATIO
PBImageDisplay_AUTO_ASPECT_RATIO = 1<<1
(not documented yet)
PBImageDisplay_STRETCH
PBImageDisplay_STRETCH = 0<<2
(not documented yet)
PBImageDisplay_FILL
PBImageDisplay_FILL = 1<<2
(not documented yet)
PBImageDisplay_FIT
PBImageDisplay_FIT = 2<<2
(not documented yet)
PBImageDisplay_POSITION_MASK
PBImageDisplay_POSITION_MASK = 7<<2
(not documented yet)
Or any of the values from PBElementFlags.
PBImageDisplayCreate
Function: (not documented yet)
Syntax (C/C++)
PBImageDisplayPtr _Nullable PBImageDisplayCreate(PBElementRef parent,
PBImageDisplayFlags flags, PBImageRef _Nullable image, ConstStr alternateText);
Syntax (Python)
ImageDisplayCreate(parent, flags, image, alternateText) -> (imageDisplay)
Parameters and Return Values
[in] parent (referenced PBElement): (not documented yet)
[in] flags (PBImageDisplayFlags): (not documented yet)
[in] image (nullable referenced PBImage): (not documented yet)
[in] alternateText (referenced string): (not documented yet)
[out] imageDisplay (nullable owned PBImageDisplay): (not documented yet)
PBImageDisplaySetImage
Function: (not documented yet)
Syntax (C/C++)
void PBImageDisplaySetImage(PBImageDisplayRef display,
PBImageRef _Nullable image, ConstStr alternateText);
Syntax (Python)
ImageDisplaySetImage(display, image, alternateText)
Parameters and Return Values
[in] display (referenced PBImageDisplay): (not documented yet)
[in] image (nullable referenced PBImage): (not documented yet)
[in] alternateText (referenced string): (not documented yet)
PBImageDisplayGetImageSize
Function: (not documented yet)
Syntax (C/C++)
PBSize PBImageDisplayGetImageSize(PBImageDisplayRef display);
Syntax (Python)
ImageDisplayGetImageSize(display) -> (imageSize)
Parameters and Return Values
[in] display (referenced PBImageDisplay): (not documented yet)
[out] imageSize (PBSize): (not documented yet)
PBImageDisplaySetSizing
Function: (not documented yet)
Syntax (C/C++)
void PBImageDisplaySetSizing(PBImageDisplayRef display, float aspectRatio,
float widthDp, float heightDp);
Syntax (Python)
ImageDisplaySetSizing(display, aspectRatio, widthDp, heightDp)
Parameters and Return Values
[in] display (referenced PBImageDisplay): (not documented yet)
[in] aspectRatio (float
): (not documented yet)
[in] widthDp (float
): (not documented yet)
[in] heightDp (float
): (not documented yet)
PBImageDisplayGetSizing
Function: (not documented yet)
Syntax (C/C++)
void PBImageDisplayGetSizing(PBImageDisplayRef display,
/* output */ float * __restrict aspectRatio,
/* output */ float * __restrict widthDp,
/* output */ float * __restrict heightDp);
Syntax (Python)
ImageDisplayGetSizing(display) -> (aspectRatio, widthDp, heightDp)
Parameters and Return Values
[in] display (referenced PBImageDisplay): (not documented yet)
[out] aspectRatio (float
): (not documented yet)
[out] widthDp (float
): (not documented yet)
[out] heightDp (float
): (not documented yet)
PBImageDisplaySetOpacity
Function: (not documented yet)
Syntax (C/C++)
void PBImageDisplaySetOpacity(PBImageDisplayRef display, float opacity);
Syntax (Python)
ImageDisplaySetOpacity(display, opacity)
Parameters and Return Values
[in] display (referenced PBImageDisplay): (not documented yet)
[in] opacity (float
): (not documented yet)
PBImageDisplayGetOpacity
Function: (not documented yet)
Syntax (C/C++)
float PBImageDisplayGetOpacity(PBImageDisplayRef display);
Syntax (Python)
ImageDisplayGetOpacity(display) -> (opacity)
Parameters and Return Values
[in] display (referenced PBImageDisplay): (not documented yet)
[out] opacity (float
): (not documented yet)
PBImageDisplaySetTintColor
Function: (not documented yet)
Syntax (C/C++)
void PBImageDisplaySetTintColor(PBImageDisplayRef display, PBColor tintColor);
Syntax (Python)
ImageDisplaySetTintColor(display, tintColor)
Parameters and Return Values
[in] display (referenced PBImageDisplay): (not documented yet)
[in] tintColor (PBColor): (not documented yet)