Re: [shoes] Full screen mode?
- From:
- Cecil Coupe
- Date:
- 2011-12-23 @ 05:45
I wrote a tiny test program. The fullscreen method is available. It's
not in the online docs which is half good because it doesn't work in
Linux and no errors show in the shoes console or the starting terminal.
If nothing else this script shows the shoes methods that might need
documentation, testing or disclaimers.
Shoes.app do
fullscreen = true
title "Methods are:\n"
self.methods.sort.each do |mn|
para mn+"\n"
end
title "Screen setting is #{fullscreen}\n"
button "quit" do
quit
end
end
I hate full screen apps but thats a personal problem. I would be
interested to know it the script works in Windows or OSX.
--Cecil
On Thu, 2011-12-22 at 16:38 -0500, Steve Klabnik wrote:
> Welcome... back! :)
>
> ack-ing the source shows a ton of fullscreen stuff right now:
>
> shoes/native.h: 41:void shoes_native_app_fullscreen(shoes_app *, char);
>
> With implementations on all three platforms.
>
> shoes/ruby.c: 4394: rb_define_method(cApp, "fullscreen",
> CASTHOOK(shoes_app_get_fullscreen),
> shoes/ruby.c: 4395: rb_define_method(cApp, "fullscreen=",
> CASTHOOK(shoes_app_set_fullscreen),
>
> So it'd seem like it _should_ work, from a superficial analysis.
> Wonder what's going on.
Re: [shoes] Full screen mode?
- From:
- ashbb
- Date:
- 2011-12-23 @ 07:35
Hi Cecil,
I tried to run your script on my Windows 7 with Shoes 3 (0.r1514).
After added `to_s` at line 5 like this: para mn.to_s+"\n"
it worked and listed method names incluced fullscreen and fullscreen=.
But window size was not full screen, just a normal size.
So, I tried to add `self` at line 2 like this: self.fullscreen = true
But a broken window, with no frame, appeared and crashed. :(
I doubt full screen mode is available on Windows.
ashbb
Re: [shoes] Full screen mode?
- From:
- Steve Klabnik
- Date:
- 2011-12-23 @ 13:19
On a mac, I also need a .to_s.
Setting fullscreen = true seems to work, but it crashes when I try to quit.
Cecil; fullscreen mode would be useful for games, even though I agree:
regular full-screen apps are bad news.