Sponsored Content
Full Discussion: Low level X11 programming
Top Forums Programming Low level X11 programming Post 302961480 by AndrzejB on Monday 30th of November 2015 10:01:30 AM
Old 11-30-2015
Low level X11 programming

How to use X11 without Xlib not XCB? How draw window directly on low level?
I must use anyway window manager like Motif?
I have ridden that X11 has server-client architecture, client send via TCP/IP to port 6000 request for primitives and get replies.
Where is detailed description of it? In X11 doc is 35 directories like bigreqsproto, compositeproto, damageproto, dri2proto ...

I see that usually not using port 6000 but file (symlink) X0 in hidden directory /tmp/.X11-unix
----
I begin to understand thanks to x11protocol.pdf from doc.tar.bz2 from ftp://ftp.ntua.gr/pub/X11/X.org/X11R7.7, but I don't know if is possible copy bitmap from client to server? Is request CopyArea but this copy area from on place of screen to other. Requests are small and sending big bitmaps is time consuming especially with remote servers. In other hand - memory bitmaps enable fast pixel changing, for example I read jpg from file to memory. If I have image in memory, how send it to server?

Last edited by AndrzejB; 11-30-2015 at 07:44 PM.. Reason: x11protocol.pdf
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Low level format?

I want to do a low level format like in windows (C:\format c:) but I don't know how it works in unix or linux.. Can somebody help me ? thnx :) (3 Replies)
Discussion started by: day
3 Replies

2. Programming

write() issue during a low level hdd access

Hi, I am trying to write zeroes to the hdd using a c program. I don't want to use the dd or ddrescue or any such inbuilt program because of reasons like real time progress, writing custom patterns. (my program is more like an erasure application, but does only zero fill). here are the steps... (35 Replies)
Discussion started by: sponnusa
35 Replies

3. IP Networking

Best reference for understanding low level info on nic cards drivers and functionality

Hi, What is the best reference that gives in detail on nic cards configuration , assigning multiple ip addresses to a single interface, netlink library etc and all basic stuff at this level..? Thanks (2 Replies)
Discussion started by: Gopi Krishna P
2 Replies

4. AIX

High Runqueue (R) LOW CPU LOW I/O Low Network Low memory usage

Hello All I have a system running AIX 61 shared uncapped partition (with 11 physical processors, 24 Virtual 72GB of Memory) . The output from NMON, vmstat show a high run queue (60+) for continous periods of time intervals, but NO paging, relatively low I/o (6000) , CPU % is 40, Low network.... (9 Replies)
Discussion started by: IL-Malti
9 Replies

5. Programming

System calls and C language low-level qualities???

Hi friends, I hope everyone is fine and doing well. I queried in my previous thread about the low-level qualities of C/C++ languages.I really thank you people for explaining, it was really helpful. One more ambiquity that I have in my mind is regarding the unix system calls like open, creat,... (1 Reply)
Discussion started by: gabam
1 Replies

6. Programming

Why is C/C++ considered low-level languages???

Hi friends, I hope everyone is doing well and fine. I have always been hearing that C/C++ are relatively low-level as compared to Java/C# etc. Could you please tell me some low-level qualities of C/C++? And I think disk deframenters are written in C/C++, please correct me if I am wrong. And please... (5 Replies)
Discussion started by: gabam
5 Replies

7. Programming

MOTIF programming and X11 client !

Hi there , i am interesting in MOTIF programming. One question : Is it right that in Motif GUI programming the actions are automaticly transformed and networked to other clients over the internet without network programming necessary ? Are the commands automatic transformed by the X11... (4 Replies)
Discussion started by: Zabo
4 Replies
XmGetPixmap(library call)												 XmGetPixmap(library call)

NAME
XmGetPixmap -- A pixmap caching function that generates a pixmap, stores it in a pixmap cache, and returns the pixmap SYNOPSIS
#include <Xm/Xm.h> Pixmap XmGetPixmap( Screen *screen, char *image_name, Pixel foreground, Pixel background); DESCRIPTION
XmGetPixmap uses the parameter data to perform a lookup in the pixmap cache to see if a pixmap has already been generated that matches the data. If one is found, a reference count is incremented and the pixmap is returned. Applications should use XmDestroyPixmap when the pixmap is no longer needed. screen Specifies the display screen on which the pixmap is to be drawn. The depth of the pixmap is the default depth for this screen. image_name Specifies the name of the image to be used to generate the pixmap foreground Combines the image with the foreground color to create the pixmap if the image referenced is a bit-per-pixel image background Combines the image with the background color to create the pixmap if the image referenced is a bit-per-pixel image If a pixmap is not found, image_name is used to perform a lookup in the image cache. If an image is found, it is used to generate the pixmap, which is then cached and returned. If an image is not found, the image_name is used as a filename, and a search is made for an X10 or X11 bitmap file. If it is found, the file is read, converted into an image, and cached in the image cache. The image is then used to generate a pixmap, which is cached and returned. If image_name has a leading slash (/), it specifies a full pathname, and XmGetPixmap opens the file as specified. Otherwise, image_name specifies a filename. In this case, XmGetPixmap looks for the file along a search path specified by the XBMLANGPATH environment variable or by a default search path, which varies depending on whether or not the XAPPLRESDIR environment variable is set. The default search path contains a lot of directories. Therefore, XmGetPixmap will need a relatively long time to search through all these directories for pixmaps and bitmaps. Applications that use a lot of pixmaps and bitmaps will probably run more quickly if XBMLANGPATH is set to a short list of directories. In addition to X bitmap files (XBM), Motif also supports XPM (X Pixmap) file formats. The XBMLANGPATH specifies the path for both XBM and XPM files. Refer to the XmGetPixmapByDepth reference page for further details. The XBMLANGPATH environment variable specifies a search path for X bitmap files. It can contain the substitution field %B, where the image_name argument to XmGetPixmap is substituted for %B. It can also contain the substitution fields accepted by XtResolvePathname. The substitution field %T is always mapped to bitmaps, and %S is always mapped to NULL. If XBMLANGPATH is not set but the environment variable XAPPLRESDIR is set, the following pathnames are searched: o %B o $XAPPLRESDIR/%L/bitmaps/%N/%B o $XAPPLRESDIR/%l_%t/bitmaps/%N/%B o $XAPPLRESDIR/%l/bitmaps/%N/%B o $XAPPLRESDIR/bitmaps/%N/%B o $XAPPLRESDIR/%L/bitmaps/%B o $XAPPLRESDIR/%l_%t/bitmaps/%B o $XAPPLRESDIR/%l/bitmaps/%B o $XAPPLRESDIR/bitmaps/%B o $HOME/bitmaps/%B o $HOME/%B o /usr/lib/X11/%L/bitmaps/%N/%B o /usr/lib/X11/%l_%t/bitmaps/%N/%B o /usr/lib/X11/%l/bitmaps/%N/%B o /usr/lib/X11/bitmaps/%N/%B o /usr/lib/X11/%L/bitmaps/%B o /usr/lib/X11/%l_%t/bitmaps/%B o /usr/lib/X11/%l/bitmaps/%B o /usr/lib/X11/bitmaps/%B o /usr/include/X11/bitmaps/%B If neither XBMLANGPATH nor XAPPLRESDIR is set, the following pathnames are searched: o %B o $HOME/%L/bitmaps/%N/%B o $HOME/%l_%t/bitmaps/%N/%B o $HOME/%l/bitmaps/%N/%B o $HOME/bitmaps/%N/%B o $HOME/%L/bitmaps/%B o $HOME/%l_%t/bitmaps/%B o $HOME/%l/bitmaps/%B o $HOME/bitmaps/%B o $HOME/%B o /usr/lib/X11/%L/bitmaps/%N/%B o /usr/lib/X11/%l_%t/bitmaps/%N/%B o /usr/lib/X11/%l/bitmaps/%N/%B o /usr/lib/X11/bitmaps/%N/%B o /usr/lib/X11/%L/bitmaps/%B o /usr/lib/X11/%l_%t/bitmaps/%B o /usr/lib/X11/%l/bitmaps/%B o /usr/lib/X11/bitmaps/%B o /usr/include/X11/bitmaps/%B These paths are defaults that vendors may change. For example, a vendor may use different directories for /usr/lib/X11 and /usr/include/X11. The following substitutions are used in these paths: %B The image name, from the image_name argument %N The class name of the application %L The display's language string. This string is influenced by XtSetLanguageProc. The default string is determined by calling set- locale(LC_ALL, NULL). %l_%t The language and territory component of the display's language string %l The language component of the display's language string The contents of the file must conform to the rules for X11 bitmap files. In other words, Motif can read any X11 conformant bitmap file. RETURN
Returns a pixmap when successful; returns XmUNSPECIFIED_PIXMAP if the image corresponding to image_name cannot be found. RELATED
XmDestroyPixmap(3), XmGetPixmapByDepth(3), XmInstallImage(3), and XmUninstallImage(3). XmGetPixmap(library call)
All times are GMT -4. The time now is 05:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy