Rectangle: a position and a size.
More...
#include <rect.h>
|
|
| Rect () noexcept=default |
| | Create a zero-sized rectangle at the origin.
|
| | Rect (int width, int height) noexcept |
| | Create a rectangle at the origin.
|
| | Rect (int x, int y, int width, int height) noexcept |
| | Create a rectangle at a position.
|
| void | setX (int x) noexcept |
| | Set the left edge.
|
| void | setY (int y) noexcept |
| | Set the top edge.
|
| void | setWidth (int w) noexcept |
| | Set the width.
|
| void | setHeight (int h) noexcept |
| | Set the height.
|
| int | getX () const noexcept |
| | The left edge.
|
| int | getY () const noexcept |
| | The top edge.
|
| int | getWidth () const noexcept |
| | The width.
|
| int | getHeight () const noexcept |
| | The height.
|
Used where FFmpeg deals in areas rather than points, for example a subtitle bitmap or a crop window.
◆ Rect() [1/2]
| av::Rect::Rect |
( |
int | width, |
|
|
int | height ) |
|
noexcept |
- Parameters
-
| width | width in pixels |
| height | height in pixels |
◆ Rect() [2/2]
| av::Rect::Rect |
( |
int | x, |
|
|
int | y, |
|
|
int | width, |
|
|
int | height ) |
|
noexcept |
- Parameters
-
| x | left edge in pixels |
| y | top edge in pixels |
| width | width in pixels |
| height | height in pixels |
◆ getHeight()
| int av::Rect::getHeight |
( |
| ) |
const |
|
inlinenoexcept |
◆ getWidth()
| int av::Rect::getWidth |
( |
| ) |
const |
|
inlinenoexcept |
◆ getX()
| int av::Rect::getX |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- position in pixels
◆ getY()
| int av::Rect::getY |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- position in pixels
◆ setHeight()
| void av::Rect::setHeight |
( |
int | h | ) |
|
|
inlinenoexcept |
◆ setWidth()
| void av::Rect::setWidth |
( |
int | w | ) |
|
|
inlinenoexcept |
◆ setX()
| void av::Rect::setX |
( |
int | x | ) |
|
|
inlinenoexcept |
◆ setY()
| void av::Rect::setY |
( |
int | y | ) |
|
|
inlinenoexcept |
The documentation for this class was generated from the following file: