MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / SetImage

Method SetImage

Goldleaf/source/ui/ui_ClickableImage.cpp:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 }
29
30 void ClickableImage::SetImage(pu::sdl2::TextureHandle::Ref tex) {
31 this->img_tex = tex;
32 this->w = pu::ui::render::GetTextureWidth(this->img_tex->Get());
33 this->h = pu::ui::render::GetTextureHeight(this->img_tex->Get());
34 }
35
36 void ClickableImage::OnRender(pu::ui::render::Renderer::Ref &drawer, const s32 x, const s32 y) {
37 if(this->touched) {

Callers 3

ClickableImageMethod · 0.95
DoLoadMenuDataMethod · 0.80
UpdateValuesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected