| 18 | } |
| 19 | |
| 20 | void ClickableImage::OnRender(pu::ui::render::Renderer::Ref &drawer, const s32 x, const s32 y) { |
| 21 | drawer->RenderTexture(this->img_tex->Get(), x, y, pu::ui::render::TextureRenderOptions({}, this->w, this->h, {}, {}, {})); |
| 22 | } |
| 23 | |
| 24 | void ClickableImage::OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const pu::ui::TouchPoint touch_pos) { |
| 25 | if(this->touched) { |