S or /

SourceEnum ImagePoll

from egui import ImagePoll
class ImagePoll:

Represents an image which is currently being loaded.

This is similar to std.task.Poll, but the Pending variant contains an optional size, which may be used during layout to pre-allocate space the image.

Methods§

@staticmethod def Pending(size: Vec2 |None) -> ImagePoll§
@staticmethod def Ready(image: ColorImage) -> ImagePoll§
def image(self, /) -> ColorImage |None§
def is_pending(self, /) -> bool§
def is_ready(self, /) -> bool§
def size(self, /) -> Vec2 |None§