libyui-ncurses  2.55.0
position.cc
1 /*
2  Copyright (C) 2000-2012 Novell, Inc
3  This library is free software; you can redistribute it and/or modify
4  it under the terms of the GNU Lesser General Public License as
5  published by the Free Software Foundation; either version 2.1 of the
6  License, or (at your option) version 3.0 of the License. This library
7  is distributed in the hope that it will be useful, but WITHOUT ANY
8  WARRANTY; without even the implied warranty of MERCHANTABILITY or
9  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10  License for more details. You should have received a copy of the GNU
11  Lesser General Public License along with this library; if not, write
12  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13  Floor, Boston, MA 02110-1301 USA
14 */
15 
16 
17 /*-/
18 
19  File: position.cc
20 
21  Author: Michael Andres <ma@suse.de>
22 
23 /-*/
24 
25 #include <iostream>
26 #include "position.h"
27 
28 
29 std::ostream & operator<<( std::ostream & str, const wpos & obj )
30 {
31  return str << '(' << obj.L << ',' << obj.C << ')';
32 }
33 
34 
35 std::ostream & operator<<( std::ostream & str, const wpair & obj )
36 {
37  return str << '(' << obj.A << ',' << obj.B << ')';
38 }
39 
40 
41 std::ostream & operator<<( std::ostream & str, const wsze & obj )
42 {
43  return str << '[' << obj.H << 'x' << obj.W << ']';
44 }
45 
46 std::ostream & operator<<( std::ostream & str, const wrect & obj )
47 {
48  return str << '{' << obj.Pos << obj.Sze << '}';
49 }
wsze
Definition: position.h:155
wpos
Definition: position.h:110
wrect
Definition: position.h:198
wpair
Definition: position.h:32