我环顾了文档,但一无所获 - 有没有办法让 Shoes 应用程序全屏显示?

可能像..

Shoes.app :fullscreen => true do
  para "test"
end

查看源代码,以下几行提到了“全屏”(等等):
shoes/app.c:58:  app->fullscreen = FALSE;
shoes/native/cocoa.m:851:  if (app->fullscreen) {
shoes/native/gtk.c:557:  if (app->fullscreen)
shoes/native/cocoa.m:872:shoes_native_app_fullscreen(shoes_app *app, char yn)
shoes/native/windows.c:934:  if (app->fullscreen)
shoes/native/windows.c:935:    style = WINDOW_STYLE_FULLSCREEN;

..所以这一切似乎都在那里,只是做 :fullscreen => true 似乎没有效果?

最佳答案

哎呀,问题中引用的 app->fullscreen 代码来自最新的开发代码,而不是当前的 2/Raisins 版本。

$ git co 2/Raisins
HEAD is now at 42dda8a...  * bugs: closing some bugs, moving others to the next release.
$ grep -r -i fullscreen *
[nothing]
$ git co master
Switched to branch "master"
$ grep -r -i fullscreen *
shoes/app.c:  app->fullscreen = FALSE;
[...]
:fullscreen 将在下一个版本中工作!

关于ruby - 全屏鞋应用?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/722193/

10-13 01:29