Programming :: G++ - Draw On The Screen In X Windows Using C++?
Jun 9, 2011
I am looking for a way to draw on the screen in X Windows using c++, the GNU g++ compiler. I don't want to mess with requirements so just how to draw in x windows. Can it be done with g++ or is there something else I need to use.
I am very new to Linux and I hope someone on here can provide some help.
Goal: I am am developing an embedded application on Linux 2.6 that will hopefully run without a GUI. There will be no user input just simply displaying information to the user in a graphical form. I will be drawing the screen in C and outputting this to the display.
Problem: I don't know how to draw to the display? From reading and talking with others, I think I can write to the frame buffer and that will output to the display, but I am not sure this is rite. If it is correct, can someone explain how this is done? Is there another way to draw to the screen without using the windows API?
I have Wacom Bamboo Fun Pen & Touch pen tablet and I'd like to use it to draw on the top of the screen.. For example if I have Evolution opened on the screen, I want use my pen tabled to draw with freehand on the top of Evolution. Did you understand? Is there any small application which allows to do that?
if this isnt correct place to ask my question, forum seems large and im not familiar with it yet. I would like to draw to windows with conky. I allready have an idea with launching conky ~/. config1 & conky ~/.config2 and this should work but is it possible to have 2 conky windows without launching second instance of conky ?
Following on from my issues with QSplashScreen, I am wanting to investigate the QPainter class(es) some more.
Code:
How would I best achieve this:
- Draw some shapes and gradients with QPainter/QPen etc - Create a splash screen out of it - Display SplashScreen. I cannot find anything that doesn't involve
Code:
I am comfortable making splash screens out of images, but now I want to try drawing one myself.
I have this function that is supposed to print draw the first image from a function then hide the rest of the images using 'display: none' however for some reason the boolean test does not seem to work on one of my servers however it works on another, is there some php.ini setting I am missing or can you see any issues with the following code:
I need a way to have screen (or dbus, whatever) to spit out a list of windows (title and number) that are active in a screen session.I'm writing a wrapper for common work tasks. Part of the functionality will check if a certain window exists, and if so let me know. The idea here is to prevent accessing the same machine twice. (although, and override option would probably be needed, just in case, but I digress...) I've searched through the screen man page and don't see anything that'll work. I'm not beyond forking screen and ending up with a custom version. However, I'd like to avoid that if I can.
Edit: I'd like to see something like "screen -S screen_name -window-list" or similar.
Does anyone know an application that can draw UML graphs automatically from Java code for linux platform. I've tried startuml, but in doesn't work very well.
i am using Kubuntu 9.04 with KDE4 installed. I created some bash scripts and used Kdialog to display the graphical items and other things, only the progressbar in Kdialog, I am unable to use. I read the tutorial in KDE's website but still it shows me an error saying "ERROR: Couldn't attach to DCOP server!".
I need a program (to draw or paint patents like the example below Example: http://www.google.com./patents?id=-K...page&q&f=false
I remember that the Word version of Windows XP had tools to create drawings but I can not find (or help) equal tools in Ubuntu Ooo. Also, Windows has the "Paint" program that I used (pasting Word drawings) to erase, create mirror-effects, etc
Can somebody recommend me a good program (not CAD way) for simple drawings for patents?
I have a card project in OpenOffice Draw. In this project is a bitmap with the year 2009 embedded in it. I want to change that to read 20 and I can place the current year as a text layer on top of it.
I have a grid laid out on this bitmap, and I have overlaid text information such as date, time and frequency.
I got hold of the bitmap and cut it, leaving my data there but the form behind it missing. I pasted that into gimp and did the editing, saved it as a .bmp file and loaded that into Draw. I copied the bitmap from this bmp file and pasted it back into my card project.
The bitmap is now sitting on top of my data and I want to send it to the rear so my data sits on top of it.
I can not find a single reference to how to send layers to the front or to the back in OpenOffice Draw.
Launchpad.net is a way to get help online, but I am completely lost on that site, so I am asking here on the Ubuntu forum.
I would like to know if there is a program such as edraw:
[URL]
that I can use to make directional diagrams in linux. I know about inkscape but I would like a program that has a premade library of shapes. I also know about Dia Diagram but it doesnt have a sheet of shapes that suits me.
I am using Openbox, i would like Nautilus to handle the desktop, which it does nicely, but i would like it so it draws the desktop at startup. So far the only way i have managed to do this is by adding "nautilus &" to the "autostart.sh", however, this, of course, launches an instance of the nautilus file browser.Can anyone help me to get Nautilus to draw the desktop automatically at startup without having to first launch the file manager?
Okay, so I may sound like an idiot for asking this question (whether the answer is obvious or it is not possible at all) but, how do I rotate text so that it is upside-down in Open Office Draw? I am making a Birthday Card....
I tried upgrading to Hugin 2011. (latest stable) and it turned out that the panorama preview window did not properly draw the preview. Image flickers only quickly or is not drawn at all. For a not so great video of this see [URL]...
I tried switching to open source ATI drivers but for some reason I was unsuccessful in purging the ATI driver. I tried different computer with Inter hardware and it worked OK. If anyone happens to be using latest Hugin with ATI hardware can you comment on if the preview window works OK. I would like to get some more feedback to maintainers and to know if just proprietary ATI driver or Radeon HD5650 is affected. I am running lucid, but info from other releases is relevant.
I have windows installed through virtual Box now but i have some questions. When i make it full screen it goes full screen but Windows stays in the middle of the screen small and doesn't adjust to the full screen. Can you make windows completely take up the full screen Can i access folders on my ubuntu drive ? i have a file in downloads i want in windows but don't want to reinstall it
The day started as usual until I got the very bright idea to install Ubuntu. A new OS along side W7, that sounded great. I checked some guides on the Internet, it was all very straight forward. Install it and Grub will show you the OS:es when you boot up. I installed Ubuntu, rebooted. After the BIOS messages the screen goes blank and my screen on-button begins to blink, as if trying to find a signal, I press enter, it reboots instantly. After BIOS messages I get to a screen that says "GRUB error: uknown filesystem grub rescue>"
I've looked through everything here and nothing works. I've tried to fix the mbr-thingy using Windows Repair and even though it says "one partition was updated with new boot-thingy" when I reboot, I get into that very same grub rescue. I think my setup has something to do with it. I run RAID0 (2x360Gb hard drives), first having C: at 50Gb and then the rest as F: for programs and such. What I did was that I shrunk the F: part and then used that as partition for Ubuntu. Also please have a look at these screenshots, my partitiontables and such seems completely wacky to the raid: Where should the boot-loader go? I'm very, very new at this. I've had Ubuntu Netbook remix on my netbook for a time but still treat me as an utter beginner.
I've been a Linux user for years but just recently I decided to take the plunge and use Ubuntu Linux as my primary OS (with Windows on the side for any games that don't run well in CrossOver Games).
Anyway, one thing I was curious about was whether or not I could get some of my Windows screen savers to work on Linux. Specifically I had been using "Blue Screen", a cute little ss made by SysInternals that emulates various versions of Windows BSODs.
The file comes as a .scr file (like all Windows screen savers). I wanted to know if there was any program that converted .scr files into Linux compatable screen savers. If not, that's still OK as I've now been rocking "Electric Sheep"!
I'm running Ubuntu Linux 8.10 on a HP DV9000 with an 1.7GHz Intel Centrino Duo processor, 2GB ram, and an nVidia GeForce Go 7600 graphics card.
i have just installed Ubuntu 10.10 on a pre installed windows 7 system. Ubuntu is working really well but the only problem is that when I try to boot into windows,
I get the windows sign and then I get a black screen and windows does not load. It seems to be an easy problem to solve because I can actually boot windows 7 in
safe mode with no problems at all! The problem is there when I try to boot windows 7 normally. To be honest I only need windows for a project that uses MSQL server.
I'm new to linux, and I'm just trying to learn OpenSUSE. I just installed it and I have a few quick questions. #1 I accidentally installed the "OpenSUSE Installer (LOCAL)" on Windows 7, so now I get the option to choose windows or the installer at the windows boot screen. I ended up just installing OpenSUSE on a completely different HD (my original intent) from a burned DVD, so this installer is useless and I don't know how to remove it.
#2 After installing opensuse on my second HD, the boot screen is now SUSE's instead of Windows, and I can choose suse's desktop, the suse failsafe, windows 1, and windows 2. Windows 1 brings me to the windows boot screen with the choice i mentioned above (windows or the local installer i accidentally installed), and windows 2 i assume is my second windows partition which is just my SWAP file, and selecting it does nothing (which would make sense if thats all it is).
My question here is how do I make it so my default boot screen is the windows one with an option between windows 7 or suse? Or would this require reinstalling the system? If it does and its simple enough to explain please do I wouldnt mind removing it and reinstalling at this point, I would just wipe my whole second HD from windows.
#3 I have a netgear adapter. unfortunitly i'm not at home right now and I don't remember the model, so I'll provide that this evening if necessary. What I do know is they do not have a driver for linux. I've found ACX100, but I didn't find my netgear adapter listed on their website. I also found NDISWrapper, but thats for XP and I still don't know if that'll work. I will of course try both unless someone here has a better solution. If anyone knows anything that will work on any netgear adapter for linux please let me know, if not then I'll provide the model later on.
I have a dual-boot with windows and linux. Sometimes if I reboot from windows into linux, I notice that when X is starting up before the login screen comes up it will flash a screenshot from Windows. Has anyone ever noticed this?
I did searched you tube but my results were not great.I have 2 books on KernelProgramming.I feel I need if some where I can get a video tutorial which can help me to understand how to develop a Linux Device driver that will be great.I had a look at Greg Kroah Hartmans video lecture of developing patches on ......I have been reading books and a lot of stuff.So I wish if I could get a video lecture that would be better
I have installed Ubuntu 11.04 along side windows 7 ultimate. But the problem is as soon as I switch on my computer. There is only a blank screen with my TFT screen displaying a msg "Out of Range"
Then suddenly Ubuntu loads without showing any option to load windows 7.
In my corporate environment, I'm required to run a Windows machine that acquires a VNC session on a machine in the server farm. My windows machine is dual head with different resolution monitors ( 1600x1080 on left and 1920x1200 on right). If I create a VNC session that spans the monitors, then maximizing a window in the VNC session causes it to stretch across both my monitors.
Instead, I want a "maximize" event to behave like it does on my windows machine -- I only want to maximize to the display that the window is on.
How can I define what, what I'll call, "maximize regions"? Regions in the VNC graphical plane where when I click "maximize", the window only expands to the region it currently ( and mostly) resides in.
Can I do this in gnome, X, xrandr, or some other magical interface?