32 #ifndef DRAIN_FRAME_H_
33 #define DRAIN_FRAME_H_
38 #include <drain/Log.h>
39 #include <drain/UniTuple.h>
40 #include <drain/Type.h>
41 #include <drain/util/Point.h>
57 Frame2D(T width=0, T height=0) : width(this->next()), height(this->next()){
58 this->set(width, height?height:width);
61 Frame2D(
const Frame2D<T> & geometry) : width(this->next()), height(this->next()) {
63 this->set(geometry.width, geometry.height);
80 this->set(geometry.width, geometry.height);
88 Frame2D & operator=(
const T2 & frame){
114 T getHeight()
const {
125 return (width==0) || (height==0);
153 DRAIN_TYPENAME_T(
Box, T);
157 std::ostream &operator<<(std::ostream &ostr,
const drain::Box<T> &box)
Tuple of N elements of type T.
Definition: UniTuple.h:65
Definition: DataSelector.cpp:1277
Something that has coordinates (x,y) and dimensions (width, height).
Definition: Frame.h:139