~nimu-zh3/+junk/lua-gtk

« back to all changes in this revision

Viewing changes to tests/clutter/001-overlap.lua

  • Committer: Bazaar Package Importer
  • Author(s): Enrico Tassi
  • Date: 2009-05-17 18:16:21 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090517181621-9kmdd82nxg54jsio
* new upstream snapshot comprising many more GNOME libraries:
    Gtk, GDK, GLib, Pango, Atk, Libxml2, Cairo, Clutter, Gtkhtml, 
    GtkSourceView, Gio, Gtkspell and GConf. 
* new upstream release includes a new configure script written in Lua,
  no more bashisms there (Closes: #507205)
* renamed binary packages to liblua5.1-gnome-*
* updated standards-version to 3.8.1, no changes needed
* patch to load .so.* version of libraries and not .so (that was requiring
  -dev packages) (Closes: #522087)
* removed redundant Architecture line from the source stanza of control
  (Closes: #498120)
* updated copyright file, Wolfgang Oertl holds it for 2009 too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /usr/bin/env lua
 
2
-- vim:sw=4:sts=4
 
3
 
 
4
require 'clutter'
 
5
 
 
6
clutter.init(0, nil)
 
7
 
 
8
stage = clutter.stage_get_default()
 
9
stage:set_size(300, 300)
 
10
stage:set_title"Clutter Demo"
 
11
 
 
12
 
 
13
-- define a red, somewhat transparent color
 
14
red = clutter.new "Color"
 
15
red:from_pixel(0xff000088)
 
16
 
 
17
-- add a red rectangle
 
18
actor = clutter.rectangle_new_with_color(red)
 
19
actor:set_size(100, 30)
 
20
actor:set_position(150, 130)
 
21
stage:add_actor(actor)
 
22
 
 
23
-- and another rectangle
 
24
actor = clutter.rectangle_new_with_color(red)
 
25
actor:set_size(50, 50)
 
26
actor:set_position(130, 100)
 
27
stage:add_actor(actor)
 
28
 
 
29
stage:show_all()
 
30
 
 
31
 
 
32
clutter.main()
 
33