mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
36 lines
604 B
C
36 lines
604 B
C
|
// -*- C++ -*-
|
||
|
/* This file is part of
|
||
|
* ======================================================
|
||
|
*
|
||
|
* LyX, The Document Processor
|
||
|
*
|
||
|
* Copyright 1995 Matthias Ettrich
|
||
|
* Copyright 1995-2000 the LyX Team.
|
||
|
*
|
||
|
* ====================================================== */
|
||
|
|
||
|
#ifndef BOUNDING_BOX_H
|
||
|
#define BOUNDING_BOX_H
|
||
|
|
||
|
///
|
||
|
struct BoundingBox {
|
||
|
///
|
||
|
BoundingBox()
|
||
|
: llx(-1), lly(-1), urx(-1), ury(-1) {}
|
||
|
///
|
||
|
bool isSet() const {
|
||
|
return llx != -1 && lly != - 1
|
||
|
&& urx != -1 && ury != -1;
|
||
|
}
|
||
|
///
|
||
|
int llx;
|
||
|
///
|
||
|
int lly;
|
||
|
///
|
||
|
int urx;
|
||
|
//
|
||
|
int ury;
|
||
|
};
|
||
|
|
||
|
#endif
|