S or /

SourceEnum TexturePoll

from egui import TexturePoll
class TexturePoll:

Represents a texture 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) -> TexturePoll§
@staticmethod def Ready(texture: SizedTexture) -> TexturePoll§
Sourcedef is_pending(self, /) -> bool§
Sourcedef is_ready(self, /) -> bool§
Sourcedef size(self, /) -> Vec2 |None§

Point size of the original SVG, or the size of the image in texels.

def texture(self, /) -> SizedTexture |None§
Sourcedef texture_id(self, /) -> TextureId |None§