Modules§
- border
- 9-patch image border.
- mask
- Mask properties,
mask_image
,mask_mode
and more. - node
- UI nodes used for building the image widget.
Structs§
- Image
W
Image presenter.- ImgError
Args - Arguments for
on_error
andimg_error_fn
. - ImgLoad
Args - Arguments for
on_load
. - ImgLoading
Args - Arguments for
img_loading_fn
.
Enums§
- Image
Fit - Image layout mode.
- Image
Repeat - Image repeat mode.
Statics§
- IMAGE_
ALIGN_ VAR - Align of the image in relation to the image widget final size.
- IMAGE_
CACHE_ VAR - If the image is cached.
- IMAGE_
CROP_ VAR - Simple clip applied to the image before layout.
- IMAGE_
DOWNSCALE_ VAR - Custom resize applied during image decode.
- IMAGE_
ERROR_ FN_ VAR - Widget function for the content shown when the image does not load.
- IMAGE_
FIT_ VAR - The image layout mode.
- IMAGE_
LIMITS_ VAR - Custom image load and decode limits.
- IMAGE_
LOADING_ FN_ VAR - Widget function for the content shown when the image is still loading.
- IMAGE_
OFFSET_ VAR - Offset applied to the image after all measure and arrange.
- IMAGE_
RENDERING_ VAR - The Image scaling algorithm in the renderer.
- IMAGE_
REPEAT_ SPACING_ VAR - Spacing between repeated image copies.
- IMAGE_
REPEAT_ VAR - Pattern repeat applied on the final image.
- IMAGE_
SCALE_ FACTOR_ VAR - If the image desired size is scaled by the screen scale factor.
- IMAGE_
SCALE_ PPI_ VAR - If the image desired size is scaled considering the image and screen PPIs.
- IMAGE_
SCALE_ VAR - Scaling applied to the image desired size.
Functions§
- get_img
P
Gets theCONTEXT_IMAGE_VAR
.- get_
img_ layout_ size P
Gets theCONTEXT_IMAGE_VAR
ideal size.- img_
align P
Sets theAlign
of all inner images within each image widget area.- img_
block_ window_ load P
Block window load until image is loaded.- img_
cache P
Sets the cache mode of all inner images.- img_
crop P
Sets aRect
that is a clip applied to all inner images before their layout.- img_
downscale P
Custom pixel resize applied during image load/decode.- img_
error_ fn P
Sets thewgt_fn!
that is used to create a content for the error message.- img_fit
P
Sets theImageFit
of all inner images.- img_
limits P
Sets custom image load and decode limits.- img_
loading_ fn P
Sets thewgt_fn!
that is used to create a content for the loading message.- img_
offset P
Sets aPoint
that is an offset applied to all inner images within each image widget area.- img_
rendering P
Sets theImageRendering
of all inner images.- img_
repeat P
Sets theImageRepeat
of all inner images.- img_
repeat_ spacing P
Sets the spacing between copies of the image if it is repeated.- img_
scale P
Sets the scale applied to all inner images.- img_
scale_ factor P
If the image desired size is scaled by the screen scale factor.- img_
scale_ ppi P
Sets if the image desired size is scaled considering the image and monitor PPI.- is_
error P
If theCONTEXT_IMAGE_VAR
is an error.- is_
loaded P
If theCONTEXT_IMAGE_VAR
has successfully loaded.- on_
error P
Image load or decode error event.- on_load
P
Image loaded event.- source
c
The image source.