FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

arc.window questions :D

 
Post new topic   Reply to topic     Forum Index -> ArcLib
View previous topic :: View next topic  
Author Message
gekkonier



Joined: 27 Mar 2007
Posts: 28

PostPosted: Mon Jul 23, 2007 1:41 am    Post subject: arc.window questions :D Reply with quote

Hi, its me again,

is it possible to let a created window be non-resizeable?
If I render text and images onto a window and resize it, then i got several strange display errors. To avoid this I try to disallow resizing.

My second question is:

In the api doc [1] i see this:
Code:
void clear ();
    clear the screen

void swap ();
    swap the screen buffers and clear the screen

void swapClear ();
    swap and clear the screen

Whats the difference between swap() and swapClear()?

[1] http://svn.dsource.org/projects/arclib/branches/api/arc02/arc.window.html
Back to top
View user's profile Send private message
gekkonier



Joined: 27 Mar 2007
Posts: 28

PostPosted: Mon Jul 23, 2007 9:32 am    Post subject: Reply with quote

Okay, I can live with it, if it's not possible to disallow resizing the window -> I switched to fullscreen right now, thats okay. But it would be fine if it's possible to do so.

But I have a bonus-question: Is it possible to hide / show the mousecursor in fullscreen and to change the look of that cursor? I would like to code a tetris'a'like game -> there I only need mousecontrol in few menus.
Back to top
View user's profile Send private message
ChristianK



Joined: 26 Sep 2006
Posts: 159
Location: Berlin, Germany

PostPosted: Tue Jul 24, 2007 9:25 am    Post subject: Reply with quote

About swap() and swapClear(): That was a documentation bug. swapClear calls swap and then clear. I fixed it in the source, but Clay will have to re-generate the documentation when he's around.

I don't think there's a way to prohibit resizing the windows at the moment. There probably should be. Can you open a enhancement request for it here http://www.dsource.org/projects/arclib/newticket ?

You can disable the default cursor with the defaultCursorVisible method from arc.input. If you want your own cursor graphics, you'll have to draw it yourself.
Back to top
View user's profile Send private message
gekkonier



Joined: 27 Mar 2007
Posts: 28

PostPosted: Wed Jul 25, 2007 1:23 am    Post subject: Reply with quote

Thank you for the answer!

I will look http://www.dsource.org/projects/arclib/newticket
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> ArcLib All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group