Modules§
- border
- 9-patch image border.
- fill
- Background/foreground image properties.
- mask
- Mask properties,
mask_image,mask_modeand more. - node
- UI nodes used for building the image widget.
Structs§
- Image
WImage presenter.- ImgError
Args - Arguments for
on_errorandimg_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_ DENSITY_ VAR - If the image desired size is scaled considering the image and screen PPIs.
- IMAGE_
SCALE_ FACTOR_ VAR - If the image desired size is scaled by the screen scale factor.
- IMAGE_
SCALE_ VAR - Scaling applied to the image desired size.
Functions§
- get_img
PGets theCONTEXT_IMAGE_VAR.- get_
img_ layout_ size PGets theCONTEXT_IMAGE_VARideal size.- img_
align PSets theAlignof all inner images within each image widget area.- img_
block_ window_ load PBlock window load until image is loaded.- img_
cache PSets the cache mode of all inner images.- img_
crop PSets aRectthat is a clip applied to all inner images before their layout.- img_
downscale PCustom pixel resize applied during image load/decode.- img_
error_ fn PSets thewgt_fn!that is used to create a content for the error message.- img_fit
PSets theImageFitof all inner images.- img_
limits PSets custom image load and decode limits.- img_
loading_ fn PSets thewgt_fn!that is used to create a content for the loading message.- img_
offset PSets aPointthat is an offset applied to all inner images within each image widget area.- img_
rendering PSets theImageRenderingof all inner images.- img_
repeat PSets theImageRepeatof all inner images.- img_
repeat_ spacing PSets the spacing between copies of the image if it is repeated.- img_
scale PSets the scale applied to all inner images.- img_
scale_ density PSets if the image desired size is scaled considering the image and monitor pixel density.- img_
scale_ factor PSets if the image desired size is scaled by the screen scale factor.- is_
error PIf theCONTEXT_IMAGE_VARis an error.- is_
loaded PIf theCONTEXT_IMAGE_VARhas successfully loaded.- on_
error PImage load or decode error event.- on_load
PImage loaded event.- source
BThe image source.