Update Widgets

2025-11-03 08:33:33 +11:00
parent 85d90b9f67
commit a19ce256d9

@@ -45,3 +45,21 @@ Quip::Widget::Button("Click me!", []() {
std::cout << "Button has been clicked!" << std::endl;
}, 10, 10)
```
### `Quip::Widget::Image(std::string filepath, int xpos, int ypos, int width = -1, int height = -1)`
#### Summary
The `Image` widget renders an image given at a provided filepath. If width and height are values below 0, the image will be displayed at it's normal resolution.
#### Members
`int width, height`: The width and height of the image.
`int xpos, ypos`: The xpos and ypos of the image.
#### Example
```c++
Quip::Widget::Image("image.png", 10, 10, 100, 100);
```