OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [gcj/] [xlib/] [natScreen.cc] - Blame information for rev 756

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 756 jeremybenn
/* Copyright (C) 2000  Free Software Foundation
2
 
3
   This file is part of libgcj.
4
 
5
This software is copyrighted work licensed under the terms of the
6
Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
7
details.  */
8
 
9
#include <X11/Xlib.h>
10
 
11
#include <gcj/cni.h>
12
#include <gnu/gcj/xlib/Display.h>
13
#include <gnu/gcj/xlib/Screen.h>
14
 
15
void gnu::gcj::xlib::Screen::initStructure()
16
{
17
  ::Display* dpy = (::Display*) (display->display);
18
  ::Screen* screen = ScreenOfDisplay(dpy, screenNumber);
19
 
20
  structure = reinterpret_cast<gnu::gcj::RawData*>(screen);
21
}
22
 
23
 
24
jint gnu::gcj::xlib::Screen::getRootDepth()
25
{
26
  ::Screen* screen = (::Screen*) structure;
27
  return screen->root_depth;
28
}
29
 
30
jint gnu::gcj::xlib::Screen::getRootWindowXID()
31
{
32
  ::Screen* screen = (::Screen*) structure;
33
  return RootWindowOfScreen(screen);
34
}
35
 
36
jint gnu::gcj::xlib::Screen::getDefaultColormapXID()
37
{
38
  ::Screen* screen = (::Screen*) structure;
39
  return DefaultColormapOfScreen(screen);
40
}
41
 
42
jint gnu::gcj::xlib::Screen::findScreenNumber()
43
{
44
  ::Screen* screen = (::Screen*) structure;
45
  return XScreenNumberOfScreen(screen);
46
}
47
 
48
gnu::gcj::RawData* gnu::gcj::xlib::Screen::getRootVisualStructure()
49
{
50
  ::Screen* screen = (::Screen*) structure;
51
  ::Visual* visual = DefaultVisualOfScreen(screen);
52
  return reinterpret_cast<gnu::gcj::RawData*>(visual);
53
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.