Update Widgets
18
Widgets.md
18
Widgets.md
@@ -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);
|
||||
```
|
||||
Reference in New Issue
Block a user