]>
Dogcows Code - chaz/openbox/blob - otk/size.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
10 Size() : _w(1), _h(1) {}
11 Size(unsigned int w
, unsigned int h
) : _w(w
), _h(h
) {}
12 Size(const Size
&s
) : _w(s
._w
), _h(s
._h
) {}
14 inline unsigned int width() const { return _w
; }
15 inline unsigned int height() const { return _h
; }
17 bool operator==(const Size
&o
) const { return _w
== o
._w
&& _h
== o
._h
; }
18 bool operator!=(const Size
&o
) const { return _w
!= o
._w
|| _h
!= o
._h
; }
This page took 0.037486 seconds and 4 git commands to generate.