avcpp  2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
rect.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace av {
4 
5 class Rect
6 {
7 public:
8  Rect();
9  Rect(int width, int height);
10  Rect(int x, int y, int width, int height);
11 
12  void setX(int x) { this->x = x; }
13  void setY(int y) { this->y = y; }
14  void setWidth(int w) { width = w; }
15  void setHeight(int h) { height = h; }
16 
17  int getX() { return x; }
18  int getY() { return y; }
19  int getWidth() { return width; }
20  int getHeight() { return height; }
21 
22 private:
23  int x;
24  int y;
25  int width;
26  int height;
27 };
28 
29 } // ::av
30 
av::Rect::getHeight
int getHeight()
Definition: rect.h:20
av::Rect::Rect
Rect()
Definition: rect.cpp:5
av::Rect::getWidth
int getWidth()
Definition: rect.h:19
av::Rect::setHeight
void setHeight(int h)
Definition: rect.h:15
av::Rect::getX
int getX()
Definition: rect.h:17
av::Rect::setY
void setY(int y)
Definition: rect.h:13
av
Definition: audioresampler.cpp:8
av::Rect::setWidth
void setWidth(int w)
Definition: rect.h:14
av::Rect::setX
void setX(int x)
Definition: rect.h:12
av::Rect
Definition: rect.h:5
av::Rect::getY
int getY()
Definition: rect.h:18