#include <ratio_layouted_frame.h>
Public Member Functions | |
QRect | getAspectRatioCorrectPaintArea () |
RatioLayoutedFrame (QWidget *parent, Qt::WFlags flags=0) | |
void | resizeToFitAspectRatio () |
void | setAspectRatio (unsigned short width, unsigned short height) |
void | setInnerFrameFixedSize (const QSize &size) |
void | setInnerFrameMaximumSize (const QSize &size) |
void | setInnerFrameMinimumSize (const QSize &size) |
virtual | ~RatioLayoutedFrame () |
Static Private Member Functions | |
static int | greatestCommonDivisor (int a, int b) |
Private Attributes | |
QSize | aspect_ratio_ |
RatioLayoutedFrame is a layout containing a single frame with a fixed aspect ratio. The default aspect ratio is 4:3.
Definition at line 49 of file rqt_map_merger/ratio_layouted_frame.h.
rqt_map_merger::RatioLayoutedFrame::RatioLayoutedFrame | ( | QWidget * | parent, |
Qt::WFlags | flags = 0 |
||
) |
Definition at line 39 of file rqt_map_merger/ratio_layouted_frame.cpp.
rqt_map_merger::RatioLayoutedFrame::~RatioLayoutedFrame | ( | ) | [virtual] |
Definition at line 45 of file rqt_map_merger/ratio_layouted_frame.cpp.
int rqt_map_merger::RatioLayoutedFrame::greatestCommonDivisor | ( | int | a, |
int | b | ||
) | [static, private] |
Definition at line 107 of file rqt_map_merger/ratio_layouted_frame.cpp.
Definition at line 49 of file rqt_map_merger/ratio_layouted_frame.cpp.
void rqt_map_merger::RatioLayoutedFrame::setAspectRatio | ( | unsigned short | width, |
unsigned short | height | ||
) |
Definition at line 98 of file rqt_map_merger/ratio_layouted_frame.cpp.
void rqt_map_merger::RatioLayoutedFrame::setInnerFrameFixedSize | ( | const QSize & | size | ) |
Definition at line 92 of file rqt_map_merger/ratio_layouted_frame.cpp.
void rqt_map_merger::RatioLayoutedFrame::setInnerFrameMaximumSize | ( | const QSize & | size | ) |
Definition at line 83 of file rqt_map_merger/ratio_layouted_frame.cpp.
void rqt_map_merger::RatioLayoutedFrame::setInnerFrameMinimumSize | ( | const QSize & | size | ) |
Definition at line 74 of file rqt_map_merger/ratio_layouted_frame.cpp.
QSize rqt_map_merger::RatioLayoutedFrame::aspect_ratio_ [private] |
Definition at line 77 of file rqt_map_merger/ratio_layouted_frame.h.