Crate zng_wgt_image
source ·Modules§
- Mask properties,
mask_image
,mask_mode
and more. - UI nodes used for building the image widget.
Structs§
W
Image presenter.- Arguments for
on_error
andimg_error_fn
. - Arguments for
on_load
. - Arguments for
img_loading_fn
.
Enums§
- Image layout mode.
- Image repeat mode.
Statics§
- Align of the image in relation to the image widget final size.
- If the image is cached.
- Simple clip applied to the image before layout.
- Custom resize applied during image decode.
- Widget function for the content shown when the image does not load.
- The image layout mode.
- Custom image load and decode limits.
- Widget function for the content shown when the image is still loading.
- Offset applied to the image after all measure and arrange.
- The Image scaling algorithm in the renderer.
- Spacing between repeated image copies.
- Pattern repeat applied on the final image.
- If the image desired size is scaled by the screen scale factor.
- If the image desired size is scaled considering the image and screen PPIs.
- Scaling applied to the image desired size.
Functions§
P
Gets theCONTEXT_IMAGE_VAR
.P
Gets theCONTEXT_IMAGE_VAR
ideal size.P
Sets theAlign
of all inner images within each image widget area.P
Block window load until image is loaded.P
Sets the cache mode of all inner images.P
Sets aRect
that is a clip applied to all inner images before their layout.P
Custom pixel resize applied during image load/decode.P
Sets thewgt_fn!
that is used to create a content for the error message.P
Sets theImageFit
of all inner images.P
Sets custom image load and decode limits.P
Sets thewgt_fn!
that is used to create a content for the loading message.P
Sets aPoint
that is an offset applied to all inner images within each image widget area.P
Sets theImageRendering
of all inner images.P
Sets theImageRepeat
of all inner images.P
Sets the spacing between copies of the image if it is repeated.P
Sets the scale applied to all inner images.P
If the image desired size is scaled by the screen scale factor.P
Sets if the image desired size is scaled considering the image and monitor PPI.P
If theCONTEXT_IMAGE_VAR
is an error.P
If theCONTEXT_IMAGE_VAR
has successfully loaded.P
Image load or decode error event.P
Image loaded event.c
The image source.