LEVIATHAN v962456e · 962456eee1

dagon

class Image

since 0.1.0-alpha.1linux

bases
Component, Styleable

Fields

fit_

naturalH_

int naturalH_

naturalW_

int naturalW_

texture_

int texture_

Methods

contentDesired

contentDesired(Size avail) -> Size

fit

fit() -> ImageFit

hasImage

hasImage() -> bool

loadFile

loadFile(string path) -> Image

loadRgba

loadRgba(Block pixels, int w, int h) -> Image

naturalSize

naturalSize() -> Size

onDetach

onDetach() -> void

paintChrome

paintChrome(Canvas c) -> void

paintContent

paintContent(Canvas c) -> void

releaseTexture

releaseTexture() -> void

setFit

setFit(ImageFit f) -> Image