Panda3D
Loading...
Searching...
No Matches
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 */
21void PointerEvent::
22output(std::ostream &out) const {
23 out << (_in_window ? "In@" : "Out@")
24 << _xpos << "," << _ypos << " ";
25}
26
27/**
28 * Writes the event into a datagram.
29 */
31write_datagram(Datagram &dg) const {
32 nassert_raise("This function not implemented yet.");
33}
34
35/**
36 * Restores the event from the datagram.
37 */
40 nassert_raise("This function not implemented yet.");
41}
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
void write_datagram(Datagram &dg) const
Writes the event into a datagram.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.