source: trunk/gcc/libjava/gnu/gcj/xlib/natXConfigureEvent.cc

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 795 bytes
Line 
1/* Copyright (C) 2000 Free Software Foundation
2
3 This file is part of libgcj.
4
5This software is copyrighted work licensed under the terms of the
6Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7details. */
8
9#include <X11/Xlib.h>
10
11#include <gcj/cni.h>
12#include <gnu/gcj/RawData.h>
13
14#include <gnu/gcj/xlib/Display.h>
15#include <gnu/gcj/xlib/Window.h>
16#include <gnu/gcj/xlib/XAnyEvent.h>
17#include <gnu/gcj/xlib/XEvent.h>
18#include <gnu/gcj/xlib/XConfigureEvent.h>
19#include <java/awt/Rectangle.h>
20
21using java::awt::Rectangle;
22
23java::awt::Rectangle* gnu::gcj::xlib::XConfigureEvent::getBounds()
24{
25 ::XConfigureEvent* evt = (::XConfigureEvent*) event->structure;
26 Rectangle* rectangle = new Rectangle(evt->x, evt->y,
27 evt->width, evt->height);
28
29 return rectangle;
30}
31
Note: See TracBrowser for help on using the repository browser.