|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Drawing with Cairo: CoordinatesHi guys,
I've a quick question. I just noticed that when drawing with cairo, in the expose event I have to create a context and give it the returns of source.getWindow(), this returns the whole application window so X and Y I set to draw my picture to are calculated regarding the Window and not the *drawing area* I use which for me is an Image. I have an interface that contains a drawing area and lot of other staff on top of this area (buttons, entries,... etc), so y question is: There's not an easier solution to handle coordinates instead of having to do staff like: draw to: x = topButton1.x + topButton2.x + topEntry.1 + .... y = topButton1.Y + topButton2.Y..... ? I hope it's clear Thank you Miloud B. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ java-gnome-developer mailing list java-gnome-developer@... https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |
|
|
Re: Drawing with Cairo: CoordinatesOn Thu, 2009-09-17 at 03:34 +0200, Goundy wrote:
> to are calculated regarding the Window and not the *drawing area* I use > which for me is an Image. Maybe try changing the Image for a DrawingArea? http://java-gnome.sourceforge.net/4.0/doc/api/org/gnome/gtk/DrawingArea.html AfC Sydney ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ java-gnome-developer mailing list java-gnome-developer@... https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |
|
|
Re: Drawing with Cairo: CoordinatesEvening,
Oh thank you very much Andrew, I'm trying this tonight :) (Sorry I completely forgot that a DrawingArea widget exists) Cheers Miloud B. Andrew Cowie wrote: > On Thu, 2009-09-17 at 03:34 +0200, Goundy wrote: > > > Maybe try changing the Image for a DrawingArea? > http://java-gnome.sourceforge.net/4.0/doc/api/org/gnome/gtk/DrawingArea.html > > AfC > Sydney > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > ------------------------------------------------------------------------ > > _______________________________________________ > java-gnome-developer mailing list > java-gnome-developer@... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ java-gnome-developer mailing list java-gnome-developer@... https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |
| Free embeddable forum powered by Nabble | Forum Help |