Panda3D
pointerEvent.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file pointerEvent.cxx
10  * @author drose
11  * @date 2000-03-01
12  */
13 
14 #include "pointerEvent.h"
15 #include "datagram.h"
16 #include "datagramIterator.h"
17 
18 /**
19  *
20  */
21 void PointerEvent::
22 output(std::ostream &out) const {
23  out << (_in_window ? "In@" : "Out@")
24  << _xpos << "," << _ypos << " ";
25 }
26 
27 /**
28  * Writes the event into a datagram.
29  */
30 void PointerEvent::
32  nassert_raise("This function not implemented yet.");
33 }
34 
35 /**
36  * Restores the event from the datagram.
37  */
38 void PointerEvent::
40  nassert_raise("This function not implemented yet.");
41 }
void write_datagram(Datagram &dg) const
Writes the event into a datagram.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void read_datagram(DatagramIterator &scan)
Restores the event from the datagram.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
Definition: datagram.h:38