I guess there are two solutions to do this. Either, just rotate the image,
and keep the window square or adjust the window region. I read
somewhere that there is a way in cocoa to simply override a method (in
NSWindow?) to return a different shape (region) of window. However, I
couldn't find it and I may be misinformed.
A second approach is just to rotate the whole window, including
everything! Normally, this would also rotate the titlebar, but there is
none. For details, have a look at http://www.atzenbeck.de/research/wildWindows/ (got some great
screenshots and nice sample code) and http://
homepage.cs.latrobe.edu.au/wjtregaskis/
However, I recommend the first approach if possible, since the latter
uses undocumented features, and may not be as reliable.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-06-02
Logged In: YES
user_id=1042909
I'm told that transforming the window itself puts extra load on the
window server, because it has to run the window's pixels through the
transform whenever it has to draw it.
Rotating just the image wouldn't be hard -- you just have to make the
window a bit larger, and transparent. I believe the window server will
automatically do the right hit-testing.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This would be very very cool. Consider a option to just trow your cd's in
(pseudo) random order and orientation on the desktop as if scattered on
the floor.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=249025
I guess there are two solutions to do this. Either, just rotate the image,
and keep the window square or adjust the window region. I read
somewhere that there is a way in cocoa to simply override a method (in
NSWindow?) to return a different shape (region) of window. However, I
couldn't find it and I may be misinformed.
A second approach is just to rotate the whole window, including
everything! Normally, this would also rotate the titlebar, but there is
none. For details, have a look at
http://www.atzenbeck.de/research/wildWindows/ (got some great
screenshots and nice sample code) and http://
homepage.cs.latrobe.edu.au/wjtregaskis/
However, I recommend the first approach if possible, since the latter
uses undocumented features, and may not be as reliable.
Logged In: YES
user_id=1042909
I'm told that transforming the window itself puts extra load on the
window server, because it has to run the window's pixels through the
transform whenever it has to draw it.
Rotating just the image wouldn't be hard -- you just have to make the
window a bit larger, and transparent. I believe the window server will
automatically do the right hit-testing.
Logged In: YES
user_id=283266
This would be very very cool. Consider a option to just trow your cd's in
(pseudo) random order and orientation on the desktop as if scattered on
the floor.