Extend ShellGlobal object with more properties

* Add screen-width, screen-height, overlay-group properties
* Add set_stage_input_area() function
* Fix main.js to rotate DRAFT properly

svn path=/trunk/; revision=6
This commit is contained in:
Owen Taylor
2008-10-31 15:20:54 +00:00
parent 3d0966315e
commit 2fd4c9058d
5 changed files with 122 additions and 38 deletions

View File

@ -6,8 +6,8 @@ function start() {
let message = new Clutter.Label({font_name: "Sans Bold 64px", text: "DRAFT"});
message.set_opacity(75);
// Not working for unclear reasons
// message.set_rotation(Clutter.RotateAxis.Z_AXIS, - 45, 0, 0, 0);
message.set_position(100, 100);
global.get_overlay_group().add_actor(message);
message.set_anchor_point_from_gravity (Clutter.Gravity.CENTER);
message.set_rotation(Clutter.RotateAxis.Z_AXIS, - 45, 0, 0, 0);
message.set_position(global.screen_width / 2, global.screen_height / 2);
global.overlay_group.add_actor(message);
}