|
|
Up |
|
|
  |
Author: JinhaoJinhao
Date: Sep 14, 2008 21:32
hi, I write a piece of code to display a xbm image onto a window, but
it does not work.
int main()
{
Display* display = XOpenDisplay(0);
int screen = DefaultScreen(display);
Window root = RootWindow(display, screen);
Window wnd = ::XCreateSimpleWindow(display, root,0, 0, 200, 200, 2,
0, 0xffffff);
GC gc = ::XCreateGC(display, wnd, 0, 0);
std::cout<<"Window = "< Show full article (1.01Kb) |
|
| |
2 Comments |
|
  |
Author: Graeme GeldenhuysGraeme Geldenhuys
Date: Sep 5, 2008 03:27
Hi,
I just joined this newsgroup. Does this group cover anything related to
X-Window, XLib etc. or is it specific to some widgetset/toolkit?
I have written a cross-platform GUI toolkit (Linux, *BSD and Windows)
using Free Pascal compiler. Sometimes I have questions regarding Xlib
API and X11 in general. Is this newsgroup an appropriate place to ask
some questions?
Regards,
- Graeme -
_______________________________________________________
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
|
| |
|
| |
1 Comment |
|
  |
Author: jonathan.j.tannerjonathan.j.tanner
Date: Sep 4, 2008 09:50
From a SelectionNotify XEvent, is it possible to determine whether
this is a selection (i.e. middle click paste) or clipboard paste?
Thanks
Jon
|
| |
|
1 Comment |
|
  |
Author: RichRich
Date: Sep 3, 2008 15:04
Does it make sense that I'm getting different Window IDs for the same
window?
I'm retrieving one via VisibilityNotify events
(event.xvisibility.window) and the other from using XGetWindowProperty
for _NET_CLIENT_LIST (the results of which do correspond with what I
get from xprop -root|grep _NET_CLIENT_LIST\(W ). I'm pretty sure the
window should be in both lists, I seem to be able to take screenshots
from it with either ID.
Thanks
|
| |
|
1 Comment |
|
  |
|
|
  |
Author: natenate
Date: Aug 24, 2008 13:43
I am trying to access the pixels of an XImage without using XGetPixel
and XSetPixel. I created an XImage with the following code:
XImage* img = XGetImage(display, window, 0, 0, 256, 256, AllPlanes,
XYPixmap);
I can't figure out how to access the pixels directly. This is what I
have so far (it doesn't work):
int get_pixel(XImage* img, int x, int y) {
int pos = y * img->bytes_per_line + x;
int color = rgb(img->data[pos], img->data[pos+1], img->data[pos+2]);
return color;
}
|
| |
|
no comments
|
|
  |
Author: Nathan SeeseNathan Seese
Date: Aug 20, 2008 15:46
The resolution of my monitor is too high; I cant'er see the rightmost
corner of the screen. Any suggestions of how to fix this? I'm running on
gNewSense.
|
| |
|
2 Comments |
|
  |
Author: RichRich
Date: Aug 20, 2008 06:33
I've been using XGetImage to capture screenshots, at the moment saving
them to xpm files. I'm having two problems though:
1. It's very slow and freezes my system for a few seconds.
2. On the unmap the XGetImage doesn't take a screenshot until after
the window has been unmapped, so I just get an image of what was
behind it. Similarly, if I try it on the map event then I seem to
catch it in the middle of painting the window.
Does anyone have any suggestions of a better way to go about capturing
an image of a window before it's unmapped, or where I might be going
wrong with my current method? Thanks.
|
| |
|
6 Comments |
|
  |
Author: Concepts SystemsConcepts Systems
Date: Aug 20, 2008 02:38
Hello All,
With a growing demand for Windows System Professionals, we are pleased
to announce a new weekend batch of “Windows Internals and Device
Drivers” for working professionals and Engineers.
Course Highlights:
Windows Internals
- It includes topics related to key components of system like
- Thread scheduling, I/O, memory management,
- Windows Security
- Debugging using Win Dbg to explore windows internals.
Windows Device Driver
It deals with important driver-building and designing mechanisms
- Windows Driver Model and development
- PnP Concepts
- Storage Stack
- Device Driver building, debugging, writing installer.
- Synchronization, Interrupts, PnP Filter drivers.
Detail syllabus is available at
http://conceptssys.com/SyllabusPdf/wdd.pdf
|
| Show full article (1.89Kb) |
|
1 Comment |
|
  |
|
|
  |
Author: Benjamin BOUCHERBenjamin BOUCHER
Date: Aug 20, 2008 01:50
Hi,
I want to make a C program which capture all mouse events, not only
those from a given window, is it possible ?
If yes, how ?
I tried a XSelectInput(dpy, DefaultRootWindow(dpy), myMASK) but It
didn't work.
Thanks in advance,
|
| |
|
5 Comments |
|
|
|
|
|
|