[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] create - tut-clutter-minimum

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2013年 9月 20日 (金) 00:22:59 JST


-------------------------
REMOTE_ADDR = 114.180.242.21
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-clutter-minimum
-------------------------
TITLE       = tut-clutter-minimum
KEYWORD     = 
= Minimum

== Overview

  require "clutter"
  stage = Clutter::Stage.new
  stage.show
  Clutter.main

== Explanation

=== Prepare

  require "clutter"

Now, you can use Ruby/Clutter!

If LoadError occured, please try the following command in your shell (bash, cmd.exe, etc.).

  gem install clutter

=== Create stage

  stage = Clutter::Stage.new

Stage is a top level visual element to which actors are placed.

((<URL:https://developer.gnome.org/clutter/stable/ClutterStage.html>))

=== Show stage

  stage.show

Use Stage#show. Don't use Stage#show_all.

((<URL:https://developer.gnome.org/clutter/stable/ClutterActor.html#clutter-actor-show>))

=== Start main loop

  Clutter.main

The minimum Ruby/Clutter application works on your computer!




ruby-gnome2-cvs メーリングリストの案内
Back to archive index