clutter 2.0.0-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +129 -0
- data/lib/clutter.rb +145 -0
- data/lib/clutter/actor-iter.rb +33 -0
- data/lib/clutter/actor.rb +34 -0
- data/lib/clutter/animatable.rb +26 -0
- data/lib/clutter/cairo.rb +24 -0
- data/lib/clutter/color.rb +55 -0
- data/lib/clutter/event.rb +21 -0
- data/lib/clutter/point.rb +25 -0
- data/lib/clutter/text.rb +23 -0
- data/lib/clutter/threads.rb +38 -0
- data/sample/basic-actor.rb +125 -0
- data/sample/bin-layout.rb +215 -0
- data/sample/box-layout.rb +196 -0
- data/sample/canvas.rb +117 -0
- data/sample/constraints.rb +81 -0
- data/sample/drag-action.rb +177 -0
- data/sample/drop-action.rb +198 -0
- data/sample/easing-modes.rb +145 -0
- data/sample/flow-layout.rb +121 -0
- data/sample/grid-layout.rb +239 -0
- data/sample/image-content.rb +88 -0
- data/sample/pan-action.rb +100 -0
- data/sample/redhand.png +0 -0
- data/sample/rounded-rectangle.rb +90 -0
- data/sample/scroll-actor.rb +105 -0
- data/test/clutter-test-utils.rb +21 -0
- data/test/run-test.rb +50 -0
- data/vendor/local/bin/libclutter-1.0-0.dll +0 -0
- data/vendor/local/bin/libcogl-12.dll +0 -0
- data/vendor/local/bin/libcogl-pango-12.dll +0 -0
- data/vendor/local/bin/libglut-0.dll +0 -0
- data/vendor/local/bin/libjson-glib-1.0-0.dll +0 -0
- data/vendor/local/include/GL/freeglut.h +22 -0
- data/vendor/local/include/GL/freeglut_ext.h +239 -0
- data/vendor/local/include/GL/freeglut_std.h +636 -0
- data/vendor/local/include/GL/glut.h +21 -0
- data/vendor/local/include/clutter-1.0/cally/cally-actor.h +155 -0
- data/vendor/local/include/clutter-1.0/cally/cally-clone.h +82 -0
- data/vendor/local/include/clutter-1.0/cally/cally-factory.h +117 -0
- data/vendor/local/include/clutter-1.0/cally/cally-group.h +85 -0
- data/vendor/local/include/clutter-1.0/cally/cally-main.h +39 -0
- data/vendor/local/include/clutter-1.0/cally/cally-rectangle.h +82 -0
- data/vendor/local/include/clutter-1.0/cally/cally-root.h +82 -0
- data/vendor/local/include/clutter-1.0/cally/cally-stage.h +82 -0
- data/vendor/local/include/clutter-1.0/cally/cally-text.h +82 -0
- data/vendor/local/include/clutter-1.0/cally/cally-texture.h +82 -0
- data/vendor/local/include/clutter-1.0/cally/cally-util.h +80 -0
- data/vendor/local/include/clutter-1.0/cally/cally.h +40 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-action.h +103 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-actor-meta.h +113 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-actor.h +735 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-align-constraint.h +69 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-animatable.h +116 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-backend.h +74 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-bin-layout.h +84 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-bind-constraint.h +69 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-binding-pool.h +122 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-blur-effect.h +57 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-box-layout.h +159 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-brightness-contrast-effect.h +80 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-cairo.h +59 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-canvas.h +100 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-child-meta.h +120 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-click-action.h +114 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-clone.h +90 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-cogl-compat.h +52 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-color-static.h +79 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-color.h +175 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-colorize-effect.h +63 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-config.h +19 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-constraint.h +108 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-container.h +184 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-content.h +103 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-deform-effect.h +111 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-deprecated.h +43 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-desaturate-effect.h +61 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-device-manager.h +104 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-drag-action.h +142 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-drop-action.h +113 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-effect.h +120 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-enum-types.h +183 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-enums.h +1362 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-event.h +509 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-feature.h +40 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-fixed-layout.h +80 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-flow-layout.h +110 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-gesture-action.h +154 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-grid-layout.h +161 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-group.h +95 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-image.h +141 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-input-device.h +118 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-interval.h +141 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-keyframe-transition.h +120 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-keysyms.h +2304 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-layout-manager.h +215 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-layout-meta.h +101 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-list-model.h +88 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-macros.h +279 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-main.h +148 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-marshal.h +273 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-model.h +381 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-offscreen-effect.h +112 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-page-turn-effect.h +72 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-paint-node.h +102 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-paint-nodes.h +150 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-pan-action.h +147 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-path-constraint.h +66 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-path.h +155 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-property-transition.h +91 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-rotate-action.h +100 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-script.h +204 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-scriptable.h +107 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-scroll-actor.h +97 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-settings.h +25 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-shader-effect.h +114 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-shader-types.h +95 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-snap-constraint.h +73 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-stage-manager.h +81 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-stage.h +215 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-swipe-action.h +107 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-table-layout.h +157 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-tap-action.h +102 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-text-buffer.h +172 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-text.h +237 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-texture.h +128 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-timeline.h +201 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-transition-group.h +91 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-transition.h +132 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-types.h +715 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-units.h +166 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-version.h +302 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-zoom-action.h +114 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter.h +118 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-actor.h +161 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-alpha.h +144 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-animatable.h +47 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-animation.h +206 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-animator.h +186 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-backend.h +64 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-depth.h +101 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-ellipse.h +159 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-opacity.h +115 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-path.h +135 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-rotate.h +119 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-scale.h +107 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour.h +170 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-bin-layout.h +56 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-box.h +143 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-cairo-texture.h +139 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-container.h +93 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-fixed.h +97 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-frame-source.h +49 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-group.h +62 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-input-device.h +41 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-keysyms.h +2306 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-main.h +96 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-media.h +121 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-rectangle.h +117 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-score.h +144 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-shader.h +182 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-stage-manager.h +42 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-stage.h +102 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-state.h +187 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-texture.h +138 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-timeline.h +41 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-timeout-pool.h +69 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-util.h +40 -0
- data/vendor/local/include/clutter-1.0/clutter/win32/clutter-win32.h +58 -0
- data/vendor/local/include/cogl/cogl-pango/cogl-pango.h +245 -0
- data/vendor/local/include/cogl/cogl/cogl-attribute-buffer.h +131 -0
- data/vendor/local/include/cogl/cogl/cogl-attribute.h +532 -0
- data/vendor/local/include/cogl/cogl/cogl-bitmap.h +314 -0
- data/vendor/local/include/cogl/cogl/cogl-buffer.h +309 -0
- data/vendor/local/include/cogl/cogl/cogl-clip-state.h +50 -0
- data/vendor/local/include/cogl/cogl/cogl-clutter.h +47 -0
- data/vendor/local/include/cogl/cogl/cogl-color.h +543 -0
- data/vendor/local/include/cogl/cogl/cogl-context.h +350 -0
- data/vendor/local/include/cogl/cogl/cogl-defines.h +50 -0
- data/vendor/local/include/cogl/cogl/cogl-deprecated.h +36 -0
- data/vendor/local/include/cogl/cogl/cogl-depth-state.h +264 -0
- data/vendor/local/include/cogl/cogl/cogl-display.h +192 -0
- data/vendor/local/include/cogl/cogl/cogl-enum-types.h +100 -0
- data/vendor/local/include/cogl/cogl/cogl-error.h +176 -0
- data/vendor/local/include/cogl/cogl/cogl-euler.h +251 -0
- data/vendor/local/include/cogl/cogl/cogl-fixed.h +804 -0
- data/vendor/local/include/cogl/cogl/cogl-frame-info.h +129 -0
- data/vendor/local/include/cogl/cogl/cogl-framebuffer.h +1829 -0
- data/vendor/local/include/cogl/cogl/cogl-gles2-types.h +474 -0
- data/vendor/local/include/cogl/cogl/cogl-gles2.h +374 -0
- data/vendor/local/include/cogl/cogl/cogl-glib-source.h +59 -0
- data/vendor/local/include/cogl/cogl/cogl-index-buffer.h +85 -0
- data/vendor/local/include/cogl/cogl/cogl-indices.h +145 -0
- data/vendor/local/include/cogl/cogl/cogl-material-compat.h +1276 -0
- data/vendor/local/include/cogl/cogl/cogl-matrix-stack.h +620 -0
- data/vendor/local/include/cogl/cogl/cogl-matrix.h +798 -0
- data/vendor/local/include/cogl/cogl/cogl-meta-texture.h +181 -0
- data/vendor/local/include/cogl/cogl/cogl-object.h +219 -0
- data/vendor/local/include/cogl/cogl/cogl-offscreen.h +117 -0
- data/vendor/local/include/cogl/cogl/cogl-onscreen-template.h +106 -0
- data/vendor/local/include/cogl/cogl/cogl-onscreen.h +741 -0
- data/vendor/local/include/cogl/cogl/cogl-output.h +242 -0
- data/vendor/local/include/cogl/cogl/cogl-pango.h +33 -0
- data/vendor/local/include/cogl/cogl/cogl-path-functions.h +430 -0
- data/vendor/local/include/cogl/cogl/cogl-path.h +102 -0
- data/vendor/local/include/cogl/cogl/cogl-pipeline-layer-state.h +613 -0
- data/vendor/local/include/cogl/cogl/cogl-pipeline-state.h +924 -0
- data/vendor/local/include/cogl/cogl/cogl-pipeline.h +173 -0
- data/vendor/local/include/cogl/cogl/cogl-pixel-buffer.h +114 -0
- data/vendor/local/include/cogl/cogl/cogl-poll.h +174 -0
- data/vendor/local/include/cogl/cogl/cogl-primitive-texture.h +98 -0
- data/vendor/local/include/cogl/cogl/cogl-primitive.h +866 -0
- data/vendor/local/include/cogl/cogl/cogl-primitives.h +190 -0
- data/vendor/local/include/cogl/cogl/cogl-quaternion.h +545 -0
- data/vendor/local/include/cogl/cogl/cogl-renderer.h +423 -0
- data/vendor/local/include/cogl/cogl/cogl-shader.h +654 -0
- data/vendor/local/include/cogl/cogl/cogl-snippet.h +786 -0
- data/vendor/local/include/cogl/cogl/cogl-sub-texture.h +122 -0
- data/vendor/local/include/cogl/cogl/cogl-swap-chain.h +51 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-2d-gl.h +73 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-2d-sliced.h +130 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-2d.h +191 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-3d.h +187 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-rectangle.h +204 -0
- data/vendor/local/include/cogl/cogl/cogl-texture.h +611 -0
- data/vendor/local/include/cogl/cogl/cogl-types.h +912 -0
- data/vendor/local/include/cogl/cogl/cogl-vector.h +351 -0
- data/vendor/local/include/cogl/cogl/cogl-version.h +185 -0
- data/vendor/local/include/cogl/cogl/cogl-vertex-buffer.h +409 -0
- data/vendor/local/include/cogl/cogl/cogl-win32-renderer.h +99 -0
- data/vendor/local/include/cogl/cogl/cogl.h +151 -0
- data/vendor/local/include/cogl/cogl/cogl1-context.h +1169 -0
- data/vendor/local/include/cogl/cogl/cogl2-compatibility.h +55 -0
- data/vendor/local/include/cogl/cogl/cogl2-experimental.h +31 -0
- data/vendor/local/include/cogl/cogl/cogl2-path.h +506 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-core-functions.h +191 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-gles2-functions.h +36 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-glsl-functions.h +279 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-in-gles-core-functions.h +141 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-in-gles2-core-functions.h +179 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-builder.h +106 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-enum-types.h +36 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-generator.h +107 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-glib.h +46 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-gobject.h +182 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-gvariant.h +46 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-parser.h +173 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-path.h +97 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-reader.h +150 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-types.h +334 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-version.h +100 -0
- data/vendor/local/lib/girepository-1.0/Cally-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/Clutter-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/Cogl-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/CoglPango-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/Json-1.0.typelib +0 -0
- data/vendor/local/lib/libclutter-1.0.dll.a +0 -0
- data/vendor/local/lib/libclutter-1.0.la +41 -0
- data/vendor/local/lib/libcogl-pango.dll.a +0 -0
- data/vendor/local/lib/libcogl-pango.la +41 -0
- data/vendor/local/lib/libcogl.dll.a +0 -0
- data/vendor/local/lib/libcogl.la +41 -0
- data/vendor/local/lib/libglut.a +0 -0
- data/vendor/local/lib/libglut.dll.a +0 -0
- data/vendor/local/lib/libglut.la +41 -0
- data/vendor/local/lib/libjson-glib-1.0.dll.a +0 -0
- data/vendor/local/lib/libjson-glib-1.0.la +41 -0
- data/vendor/local/lib/pkgconfig/cally-1.0.pc +13 -0
- data/vendor/local/lib/pkgconfig/clutter-1.0.pc +24 -0
- data/vendor/local/lib/pkgconfig/clutter-win32-1.0.pc +24 -0
- data/vendor/local/lib/pkgconfig/cogl-1.0.pc +13 -0
- data/vendor/local/lib/pkgconfig/cogl-2.0-experimental.pc +13 -0
- data/vendor/local/lib/pkgconfig/cogl-gl-1.0.pc +13 -0
- data/vendor/local/lib/pkgconfig/cogl-pango-1.0.pc +13 -0
- data/vendor/local/lib/pkgconfig/cogl-pango-2.0-experimental.pc +13 -0
- data/vendor/local/lib/pkgconfig/json-glib-1.0.pc +11 -0
- data/vendor/local/share/cogl/examples-data/crate.jpg +0 -0
- data/vendor/local/share/gir-1.0/Cally-1.0.gir +679 -0
- data/vendor/local/share/gir-1.0/Clutter-1.0.gir +67473 -0
- data/vendor/local/share/gir-1.0/Cogl-1.0.gir +8383 -0
- data/vendor/local/share/gir-1.0/CoglPango-1.0.gir +306 -0
- data/vendor/local/share/gir-1.0/Json-1.0.gir +4333 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyActor.html +415 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyClone.html +136 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyGroup.html +139 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyRectangle.html +135 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyRoot.html +123 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyStage.html +140 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyText.html +133 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyTexture.html +135 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyUtil.html +100 -0
- data/vendor/local/share/gtk-doc/html/cally/cally-General-API.html +167 -0
- data/vendor/local/share/gtk-doc/html/cally/cally.devhelp2 +73 -0
- data/vendor/local/share/gtk-doc/html/cally/callyannotationglossary.html +43 -0
- data/vendor/local/share/gtk-doc/html/cally/callybase.html +71 -0
- data/vendor/local/share/gtk-doc/html/cally/callyobjecthierarchy.html +45 -0
- data/vendor/local/share/gtk-doc/html/cally/callyobjectindex.html +64 -0
- data/vendor/local/share/gtk-doc/html/cally/callyobjects.html +39 -0
- data/vendor/local/share/gtk-doc/html/cally/ch01.html +53 -0
- data/vendor/local/share/gtk-doc/html/cally/ch02.html +41 -0
- data/vendor/local/share/gtk-doc/html/cally/clutter-overview.html +96 -0
- data/vendor/local/share/gtk-doc/html/cally/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/cally/index.html +103 -0
- data/vendor/local/share/gtk-doc/html/cally/index.sgml +103 -0
- data/vendor/local/share/gtk-doc/html/cally/ix01.html +198 -0
- data/vendor/local/share/gtk-doc/html/cally/ix02.html +31 -0
- data/vendor/local/share/gtk-doc/html/cally/ix03.html +190 -0
- data/vendor/local/share/gtk-doc/html/cally/ix04.html +42 -0
- data/vendor/local/share/gtk-doc/html/cally/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/cally/license.html +58 -0
- data/vendor/local/share/gtk-doc/html/cally/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/cally/style.css +266 -0
- data/vendor/local/share/gtk-doc/html/cally/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAction.html +110 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterActor.html +13714 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterActorMeta.html +322 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAlignConstraint.html +404 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAlpha.html +747 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAnimatable.html +432 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAnimator.html +1218 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBackend.html +684 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviour.html +697 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourDepth.html +278 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourEllipse.html +844 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourOpacity.html +283 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourPath.html +450 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourRotate.html +608 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourScale.html +432 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBinLayout.html +1056 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBindConstraint.html +780 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBlurEffect.html +109 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBox.html +657 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBoxLayout.html +1232 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBrightnessContrastEffect.html +410 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterCairoTexture.html +1018 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterCanvas.html +469 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterChildMeta.html +253 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterClickAction.html +587 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterClone.html +219 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterColorizeEffect.html +193 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterConstraint.html +336 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterContainer.html +1346 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterContent.html +309 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDeformEffect.html +353 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDesaturateEffect.html +200 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDeviceManager.html +408 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDragAction.html +1224 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDropAction.html +965 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterEffect.html +386 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterFixedLayout.html +115 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterFlowLayout.html +1016 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterGestureAction.html +867 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterGridLayout.html +808 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterGroup.html +231 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterImage.html +674 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterInputDevice.html +1488 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterKeyframeTransition.html +525 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterLayoutManager.html +1376 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterLayoutMeta.html +161 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterListModel.html +211 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterMedia.html +900 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterModel.html +1715 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterModelIter.html +644 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterOffscreenEffect.html +350 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPageTurnEffect.html +333 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPaintNode.html +534 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPanAction.html +785 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPath.html +1327 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPathConstraint.html +321 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPropertyTransition.html +216 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterRectangle.html +369 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterRotateAction.html +183 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScore.html +881 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScript.html +1365 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScriptable.html +311 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScrollActor.html +731 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterSettings.html +301 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterShaderEffect.html +595 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterSnapConstraint.html +421 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterStage.html +2252 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterState.html +1558 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterSwipeAction.html +280 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTableLayout.html +1146 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTapAction.html +192 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterText.html +3058 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTextBuffer.html +736 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTexture.html +1829 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTimeline.html +2441 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTransition.html +574 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTransitionGroup.html +227 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterZoomAction.html +400 -0
- data/vendor/local/share/gtk-doc/html/clutter/actor-box.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/actor-example.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/animator-key-frames.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/annotation-glossary.html +111 -0
- data/vendor/local/share/gtk-doc/html/clutter/bin-layout.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/box-layout.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/building-clutter.html +275 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch01.html +65 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch02.html +47 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch03.html +51 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch04.html +59 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch05.html +44 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch06.html +57 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch07.html +38 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch08.html +38 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch09.html +53 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch10.html +78 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch11.html +38 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch12.html +41 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Base-geometric-types.html +3471 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterGLXTexturePixmap.html +225 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterWaylandSurface.html +314 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterX11TexturePixmap.html +361 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Colors.html +1363 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-EGL-Specific-Support.html +129 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Events.html +2653 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Features.html +200 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-GDK-Specific-Support.html +249 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-General.html +2550 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Implicit-Animations.html +2571 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Intel-CE3100-CE4100-Specific-Support.html +181 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Key-Bindings.html +890 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Paint-Nodes.html +351 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Shaders.html +1004 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Stage-Manager.html +341 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Unit-conversion.html +843 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Utilities.html +549 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Value-intervals.html +1023 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Versioning-Macros.html +525 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Wayland-compositor-specific-support.html +83 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Win32-Specific-Support.html +201 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-X11-Specific-Support.html +806 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-overview.html +77 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter.devhelp2 +2715 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutteranimation.html +65 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutterbackends.html +71 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutterbase.html +202 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutterglossary.html +37 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutterobjecthierarchy.html +118 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutterobjectindex.html +184 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutterobjects.html +37 -0
- data/vendor/local/share/gtk-doc/html/clutter/cluttertools.html +105 -0
- data/vendor/local/share/gtk-doc/html/clutter/constraints-example.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/deprecated.html +86 -0
- data/vendor/local/share/gtk-doc/html/clutter/easing-modes.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/event-flow.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/flow-layout.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/go01.html +114 -0
- data/vendor/local/share/gtk-doc/html/clutter/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/index.html +451 -0
- data/vendor/local/share/gtk-doc/html/clutter/index.sgml +3272 -0
- data/vendor/local/share/gtk-doc/html/clutter/iterating-paths.html +56 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix01.html +8815 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix02.html +1961 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix03.html +454 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix04.html +583 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix05.html +957 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix06.html +642 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix07.html +1530 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix08.html +820 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix09.html +1005 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix10.html +369 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix11.html +366 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix12.html +1078 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix13.html +984 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix14.html +99 -0
- data/vendor/local/share/gtk-doc/html/clutter/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/license.html +58 -0
- data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterAnimation.html +223 -0
- data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterBehaviour.html +197 -0
- data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterEffect.html +154 -0
- data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterPath.html +156 -0
- data/vendor/local/share/gtk-doc/html/clutter/migration.html +49 -0
- data/vendor/local/share/gtk-doc/html/clutter/offscreen-redirect.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/path-alpha-func.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/pt09.html +31 -0
- data/vendor/local/share/gtk-doc/html/clutter/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/running-clutter.html +373 -0
- data/vendor/local/share/gtk-doc/html/clutter/style.css +266 -0
- data/vendor/local/share/gtk-doc/html/clutter/table-layout.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/using-cairo.html +36 -0
- data/vendor/local/share/gtk-doc/html/json-glib/JsonBuilder.html +513 -0
- data/vendor/local/share/gtk-doc/html/json-glib/JsonGenerator.html +492 -0
- data/vendor/local/share/gtk-doc/html/json-glib/JsonParser.html +871 -0
- data/vendor/local/share/gtk-doc/html/json-glib/JsonPath.html +464 -0
- data/vendor/local/share/gtk-doc/html/json-glib/JsonReader.html +898 -0
- data/vendor/local/share/gtk-doc/html/json-glib/annotation-glossary.html +87 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ch01.html +41 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ch02.html +41 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ch03.html +38 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ch04.html +38 -0
- data/vendor/local/share/gtk-doc/html/json-glib/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/index.html +125 -0
- data/vendor/local/share/gtk-doc/html/json-glib/index.sgml +308 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix01.html +926 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix02.html +54 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix03.html +61 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix04.html +54 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix05.html +186 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix06.html +121 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix07.html +161 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix08.html +137 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-advanced.html +47 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-base.html +61 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Boxed-Types-Serialization.html +382 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-GObject-Serialization.html +310 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Array.html +850 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-GVariant-Integration.html +272 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Node.html +942 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Object.html +993 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Serializable-Interface.html +476 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Versioning-information.html +148 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib.devhelp2 +281 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib.html +38 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-streams.html +63 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-tools.html +39 -0
- data/vendor/local/share/gtk-doc/html/json-glib/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/license.html +58 -0
- data/vendor/local/share/gtk-doc/html/json-glib/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/style.css +266 -0
- data/vendor/local/share/gtk-doc/html/json-glib/up.png +0 -0
- data/vendor/local/share/license/clutter/COPYING +502 -0
- data/vendor/local/share/license/cogl/COPYING +502 -0
- data/vendor/local/share/license/freeglut/AUTHORS +39 -0
- data/vendor/local/share/license/freeglut/COPYING +27 -0
- data/vendor/local/share/license/json-glib/COPYING +504 -0
- data/vendor/local/share/locale/an/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/az_IR/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/km/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/km/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/tg/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ur/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/cogl.mo +0 -0
- metadata +747 -0
@@ -0,0 +1,432 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>ClutterBehaviourScale</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
|
7
|
+
<link rel="home" href="index.html" title="Clutter Reference Manual">
|
8
|
+
<link rel="up" href="deprecated.html" title="Part IX. Deprecated Classes">
|
9
|
+
<link rel="prev" href="ClutterBehaviourRotate.html" title="ClutterBehaviourRotate">
|
10
|
+
<link rel="next" href="ClutterBox.html" title="ClutterBox">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
+
<tr valign="middle">
|
17
|
+
<td><a accesskey="p" href="ClutterBehaviourRotate.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
+
<td><a accesskey="u" href="deprecated.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
+
<th width="100%" align="center">Clutter Reference Manual</th>
|
21
|
+
<td><a accesskey="n" href="ClutterBox.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
+
</tr>
|
23
|
+
<tr><td colspan="5" class="shortcuts">
|
24
|
+
<a href="#ClutterBehaviourScale.synopsis" class="shortcut">Top</a>
|
25
|
+
|
|
26
|
+
<a href="#ClutterBehaviourScale.description" class="shortcut">Description</a>
|
27
|
+
|
|
28
|
+
<a href="#ClutterBehaviourScale.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
29
|
+
|
|
30
|
+
<a href="#ClutterBehaviourScale.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
|
31
|
+
|
|
32
|
+
<a href="#ClutterBehaviourScale.properties" class="shortcut">Properties</a>
|
33
|
+
</td></tr>
|
34
|
+
</table>
|
35
|
+
<div class="refentry">
|
36
|
+
<a name="ClutterBehaviourScale"></a><div class="titlepage"></div>
|
37
|
+
<div class="refnamediv"><table width="100%"><tr>
|
38
|
+
<td valign="top">
|
39
|
+
<h2><span class="refentrytitle"><a name="ClutterBehaviourScale.top_of_page"></a>ClutterBehaviourScale</span></h2>
|
40
|
+
<p>ClutterBehaviourScale — A behaviour controlling scale</p>
|
41
|
+
</td>
|
42
|
+
<td valign="top" align="right"></td>
|
43
|
+
</tr></table></div>
|
44
|
+
<div class="refsynopsisdiv">
|
45
|
+
<a name="ClutterBehaviourScale.synopsis"></a><h2>Synopsis</h2>
|
46
|
+
<pre class="synopsis">enum <a class="link" href="ClutterBehaviourScale.html#ClutterGravity" title="enum ClutterGravity">ClutterGravity</a>;
|
47
|
+
struct <a class="link" href="ClutterBehaviourScale.html#ClutterBehaviourScale-struct" title="struct ClutterBehaviourScale">ClutterBehaviourScale</a>;
|
48
|
+
struct <a class="link" href="ClutterBehaviourScale.html#ClutterBehaviourScaleClass" title="struct ClutterBehaviourScaleClass">ClutterBehaviourScaleClass</a>;
|
49
|
+
<a class="link" href="ClutterBehaviour.html" title="ClutterBehaviour"><span class="returnvalue">ClutterBehaviour</span></a> * <a class="link" href="ClutterBehaviourScale.html#clutter-behaviour-scale-new" title="clutter_behaviour_scale_new ()">clutter_behaviour_scale_new</a> (<em class="parameter"><code><a class="link" href="ClutterAlpha.html" title="ClutterAlpha"><span class="type">ClutterAlpha</span></a> *alpha</code></em>,
|
50
|
+
<em class="parameter"><code><span class="type">gdouble</span> x_scale_start</code></em>,
|
51
|
+
<em class="parameter"><code><span class="type">gdouble</span> y_scale_start</code></em>,
|
52
|
+
<em class="parameter"><code><span class="type">gdouble</span> x_scale_end</code></em>,
|
53
|
+
<em class="parameter"><code><span class="type">gdouble</span> y_scale_end</code></em>);
|
54
|
+
<span class="returnvalue">void</span> <a class="link" href="ClutterBehaviourScale.html#clutter-behaviour-scale-set-bounds" title="clutter_behaviour_scale_set_bounds ()">clutter_behaviour_scale_set_bounds</a> (<em class="parameter"><code><a class="link" href="ClutterBehaviourScale.html" title="ClutterBehaviourScale"><span class="type">ClutterBehaviourScale</span></a> *scale</code></em>,
|
55
|
+
<em class="parameter"><code><span class="type">gdouble</span> x_scale_start</code></em>,
|
56
|
+
<em class="parameter"><code><span class="type">gdouble</span> y_scale_start</code></em>,
|
57
|
+
<em class="parameter"><code><span class="type">gdouble</span> x_scale_end</code></em>,
|
58
|
+
<em class="parameter"><code><span class="type">gdouble</span> y_scale_end</code></em>);
|
59
|
+
<span class="returnvalue">void</span> <a class="link" href="ClutterBehaviourScale.html#clutter-behaviour-scale-get-bounds" title="clutter_behaviour_scale_get_bounds ()">clutter_behaviour_scale_get_bounds</a> (<em class="parameter"><code><a class="link" href="ClutterBehaviourScale.html" title="ClutterBehaviourScale"><span class="type">ClutterBehaviourScale</span></a> *scale</code></em>,
|
60
|
+
<em class="parameter"><code><span class="type">gdouble</span> *x_scale_start</code></em>,
|
61
|
+
<em class="parameter"><code><span class="type">gdouble</span> *y_scale_start</code></em>,
|
62
|
+
<em class="parameter"><code><span class="type">gdouble</span> *x_scale_end</code></em>,
|
63
|
+
<em class="parameter"><code><span class="type">gdouble</span> *y_scale_end</code></em>);
|
64
|
+
</pre>
|
65
|
+
</div>
|
66
|
+
<div class="refsect1">
|
67
|
+
<a name="ClutterBehaviourScale.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
68
|
+
<pre class="synopsis">
|
69
|
+
GObject
|
70
|
+
+----<a class="link" href="ClutterBehaviour.html" title="ClutterBehaviour">ClutterBehaviour</a>
|
71
|
+
+----ClutterBehaviourScale
|
72
|
+
</pre>
|
73
|
+
</div>
|
74
|
+
<div class="refsect1">
|
75
|
+
<a name="ClutterBehaviourScale.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
|
76
|
+
<p>
|
77
|
+
ClutterBehaviourScale implements
|
78
|
+
<a class="link" href="ClutterScriptable.html" title="ClutterScriptable">ClutterScriptable</a>.</p>
|
79
|
+
</div>
|
80
|
+
<div class="refsect1">
|
81
|
+
<a name="ClutterBehaviourScale.properties"></a><h2>Properties</h2>
|
82
|
+
<pre class="synopsis">
|
83
|
+
"<a class="link" href="ClutterBehaviourScale.html#ClutterBehaviourScale--x-scale-end" title='The "x-scale-end" property'>x-scale-end</a>" <span class="type">gdouble</span> : Read / Write
|
84
|
+
"<a class="link" href="ClutterBehaviourScale.html#ClutterBehaviourScale--x-scale-start" title='The "x-scale-start" property'>x-scale-start</a>" <span class="type">gdouble</span> : Read / Write
|
85
|
+
"<a class="link" href="ClutterBehaviourScale.html#ClutterBehaviourScale--y-scale-end" title='The "y-scale-end" property'>y-scale-end</a>" <span class="type">gdouble</span> : Read / Write
|
86
|
+
"<a class="link" href="ClutterBehaviourScale.html#ClutterBehaviourScale--y-scale-start" title='The "y-scale-start" property'>y-scale-start</a>" <span class="type">gdouble</span> : Read / Write
|
87
|
+
</pre>
|
88
|
+
</div>
|
89
|
+
<div class="refsect1">
|
90
|
+
<a name="ClutterBehaviourScale.description"></a><h2>Description</h2>
|
91
|
+
<p>
|
92
|
+
A <a class="link" href="ClutterBehaviourScale.html" title="ClutterBehaviourScale"><span class="type">ClutterBehaviourScale</span></a> interpolates actors size between two values.
|
93
|
+
</p>
|
94
|
+
</div>
|
95
|
+
<div class="refsect1">
|
96
|
+
<a name="ClutterBehaviourScale.details"></a><h2>Details</h2>
|
97
|
+
<div class="refsect2">
|
98
|
+
<a name="ClutterGravity"></a><h3>enum ClutterGravity</h3>
|
99
|
+
<pre class="programlisting">typedef enum {
|
100
|
+
/*< prefix=CLUTTER_GRAVITY >*/
|
101
|
+
CLUTTER_GRAVITY_NONE = 0,
|
102
|
+
CLUTTER_GRAVITY_NORTH,
|
103
|
+
CLUTTER_GRAVITY_NORTH_EAST,
|
104
|
+
CLUTTER_GRAVITY_EAST,
|
105
|
+
CLUTTER_GRAVITY_SOUTH_EAST,
|
106
|
+
CLUTTER_GRAVITY_SOUTH,
|
107
|
+
CLUTTER_GRAVITY_SOUTH_WEST,
|
108
|
+
CLUTTER_GRAVITY_WEST,
|
109
|
+
CLUTTER_GRAVITY_NORTH_WEST,
|
110
|
+
CLUTTER_GRAVITY_CENTER
|
111
|
+
} ClutterGravity;
|
112
|
+
</pre>
|
113
|
+
<p>
|
114
|
+
Gravity of the scaling operations. When a gravity different than
|
115
|
+
<a class="link" href="ClutterBehaviourScale.html#CLUTTER-GRAVITY-NONE:CAPS"><code class="literal">CLUTTER_GRAVITY_NONE</code></a> is used, an actor is scaled keeping the position
|
116
|
+
of the specified portion at the same coordinates.
|
117
|
+
</p>
|
118
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
119
|
+
<colgroup>
|
120
|
+
<col align="left" valign="top">
|
121
|
+
<col>
|
122
|
+
</colgroup>
|
123
|
+
<tbody>
|
124
|
+
<tr>
|
125
|
+
<td><p><a name="CLUTTER-GRAVITY-NONE:CAPS"></a><span class="term"><code class="literal">CLUTTER_GRAVITY_NONE</code></span></p></td>
|
126
|
+
<td>Do not apply any gravity
|
127
|
+
</td>
|
128
|
+
</tr>
|
129
|
+
<tr>
|
130
|
+
<td><p><a name="CLUTTER-GRAVITY-NORTH:CAPS"></a><span class="term"><code class="literal">CLUTTER_GRAVITY_NORTH</code></span></p></td>
|
131
|
+
<td>Scale from topmost downwards
|
132
|
+
</td>
|
133
|
+
</tr>
|
134
|
+
<tr>
|
135
|
+
<td><p><a name="CLUTTER-GRAVITY-NORTH-EAST:CAPS"></a><span class="term"><code class="literal">CLUTTER_GRAVITY_NORTH_EAST</code></span></p></td>
|
136
|
+
<td>Scale from the top right corner
|
137
|
+
</td>
|
138
|
+
</tr>
|
139
|
+
<tr>
|
140
|
+
<td><p><a name="CLUTTER-GRAVITY-EAST:CAPS"></a><span class="term"><code class="literal">CLUTTER_GRAVITY_EAST</code></span></p></td>
|
141
|
+
<td>Scale from the right side
|
142
|
+
</td>
|
143
|
+
</tr>
|
144
|
+
<tr>
|
145
|
+
<td><p><a name="CLUTTER-GRAVITY-SOUTH-EAST:CAPS"></a><span class="term"><code class="literal">CLUTTER_GRAVITY_SOUTH_EAST</code></span></p></td>
|
146
|
+
<td>Scale from the bottom right corner
|
147
|
+
</td>
|
148
|
+
</tr>
|
149
|
+
<tr>
|
150
|
+
<td><p><a name="CLUTTER-GRAVITY-SOUTH:CAPS"></a><span class="term"><code class="literal">CLUTTER_GRAVITY_SOUTH</code></span></p></td>
|
151
|
+
<td>Scale from the bottom upwards
|
152
|
+
</td>
|
153
|
+
</tr>
|
154
|
+
<tr>
|
155
|
+
<td><p><a name="CLUTTER-GRAVITY-SOUTH-WEST:CAPS"></a><span class="term"><code class="literal">CLUTTER_GRAVITY_SOUTH_WEST</code></span></p></td>
|
156
|
+
<td>Scale from the bottom left corner
|
157
|
+
</td>
|
158
|
+
</tr>
|
159
|
+
<tr>
|
160
|
+
<td><p><a name="CLUTTER-GRAVITY-WEST:CAPS"></a><span class="term"><code class="literal">CLUTTER_GRAVITY_WEST</code></span></p></td>
|
161
|
+
<td>Scale from the left side
|
162
|
+
</td>
|
163
|
+
</tr>
|
164
|
+
<tr>
|
165
|
+
<td><p><a name="CLUTTER-GRAVITY-NORTH-WEST:CAPS"></a><span class="term"><code class="literal">CLUTTER_GRAVITY_NORTH_WEST</code></span></p></td>
|
166
|
+
<td>Scale from the top left corner
|
167
|
+
</td>
|
168
|
+
</tr>
|
169
|
+
<tr>
|
170
|
+
<td><p><a name="CLUTTER-GRAVITY-CENTER:CAPS"></a><span class="term"><code class="literal">CLUTTER_GRAVITY_CENTER</code></span></p></td>
|
171
|
+
<td>Scale from the center.
|
172
|
+
</td>
|
173
|
+
</tr>
|
174
|
+
</tbody>
|
175
|
+
</table></div>
|
176
|
+
<p class="since">Since 0.2</p>
|
177
|
+
</div>
|
178
|
+
<hr>
|
179
|
+
<div class="refsect2">
|
180
|
+
<a name="ClutterBehaviourScale-struct"></a><h3>struct ClutterBehaviourScale</h3>
|
181
|
+
<pre class="programlisting">struct ClutterBehaviourScale;</pre>
|
182
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
183
|
+
<h3 class="title">Warning</h3>
|
184
|
+
<p><code class="literal">ClutterBehaviourScale</code> has been deprecated since version 1.6 and should not be used in newly-written code. Use <a class="link" href="clutter-Implicit-Animations.html#clutter-actor-animate" title="clutter_actor_animate ()"><code class="function">clutter_actor_animate()</code></a> with <a class="link" href="ClutterActor.html#ClutterActor--scale-x" title='The "scale-x" property'><span class="type">"scale-x"</span></a>
|
185
|
+
and <a class="link" href="ClutterActor.html#ClutterActor--scale-y" title='The "scale-y" property'><span class="type">"scale-y"</span></a> instead.</p>
|
186
|
+
</div>
|
187
|
+
<p>
|
188
|
+
The <a class="link" href="ClutterBehaviourScale.html" title="ClutterBehaviourScale"><span class="type">ClutterBehaviourScale</span></a> struct contains only private data and
|
189
|
+
should be accessed using the provided API
|
190
|
+
</p>
|
191
|
+
<p class="since">Since 0.2</p>
|
192
|
+
</div>
|
193
|
+
<hr>
|
194
|
+
<div class="refsect2">
|
195
|
+
<a name="ClutterBehaviourScaleClass"></a><h3>struct ClutterBehaviourScaleClass</h3>
|
196
|
+
<pre class="programlisting">struct ClutterBehaviourScaleClass {
|
197
|
+
};
|
198
|
+
</pre>
|
199
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
200
|
+
<h3 class="title">Warning</h3>
|
201
|
+
<p><code class="literal">ClutterBehaviourScaleClass</code> is deprecated and should not be used in newly-written code. 1.6</p>
|
202
|
+
</div>
|
203
|
+
<p>
|
204
|
+
The <a class="link" href="ClutterBehaviourScale.html#ClutterBehaviourScaleClass" title="struct ClutterBehaviourScaleClass"><span class="type">ClutterBehaviourScaleClass</span></a> struct contains only private data
|
205
|
+
</p>
|
206
|
+
<p class="since">Since 0.2</p>
|
207
|
+
</div>
|
208
|
+
<hr>
|
209
|
+
<div class="refsect2">
|
210
|
+
<a name="clutter-behaviour-scale-new"></a><h3>clutter_behaviour_scale_new ()</h3>
|
211
|
+
<pre class="programlisting"><a class="link" href="ClutterBehaviour.html" title="ClutterBehaviour"><span class="returnvalue">ClutterBehaviour</span></a> * clutter_behaviour_scale_new (<em class="parameter"><code><a class="link" href="ClutterAlpha.html" title="ClutterAlpha"><span class="type">ClutterAlpha</span></a> *alpha</code></em>,
|
212
|
+
<em class="parameter"><code><span class="type">gdouble</span> x_scale_start</code></em>,
|
213
|
+
<em class="parameter"><code><span class="type">gdouble</span> y_scale_start</code></em>,
|
214
|
+
<em class="parameter"><code><span class="type">gdouble</span> x_scale_end</code></em>,
|
215
|
+
<em class="parameter"><code><span class="type">gdouble</span> y_scale_end</code></em>);</pre>
|
216
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
217
|
+
<h3 class="title">Warning</h3>
|
218
|
+
<p><code class="literal">clutter_behaviour_scale_new</code> is deprecated and should not be used in newly-written code. 1.6</p>
|
219
|
+
</div>
|
220
|
+
<p>
|
221
|
+
Creates a new <a class="link" href="ClutterBehaviourScale.html" title="ClutterBehaviourScale"><span class="type">ClutterBehaviourScale</span></a> instance.
|
222
|
+
</p>
|
223
|
+
<p>
|
224
|
+
If <em class="parameter"><code>alpha</code></em> is not <code class="literal">NULL</code>, the <a class="link" href="ClutterBehaviour.html" title="ClutterBehaviour"><span class="type">ClutterBehaviour</span></a> will take ownership
|
225
|
+
of the <a class="link" href="ClutterAlpha.html" title="ClutterAlpha"><span class="type">ClutterAlpha</span></a> instance. In the case when <em class="parameter"><code>alpha</code></em> is <code class="literal">NULL</code>,
|
226
|
+
it can be set later with <a class="link" href="ClutterBehaviour.html#clutter-behaviour-set-alpha" title="clutter_behaviour_set_alpha ()"><code class="function">clutter_behaviour_set_alpha()</code></a>.
|
227
|
+
</p>
|
228
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
229
|
+
<colgroup>
|
230
|
+
<col align="left" valign="top">
|
231
|
+
<col>
|
232
|
+
</colgroup>
|
233
|
+
<tbody>
|
234
|
+
<tr>
|
235
|
+
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
|
236
|
+
<td>a <a class="link" href="ClutterAlpha.html" title="ClutterAlpha"><span class="type">ClutterAlpha</span></a> instance, or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
237
|
+
</td>
|
238
|
+
</tr>
|
239
|
+
<tr>
|
240
|
+
<td><p><span class="term"><em class="parameter"><code>x_scale_start</code></em> :</span></p></td>
|
241
|
+
<td>initial scale factor on the X axis</td>
|
242
|
+
</tr>
|
243
|
+
<tr>
|
244
|
+
<td><p><span class="term"><em class="parameter"><code>y_scale_start</code></em> :</span></p></td>
|
245
|
+
<td>initial scale factor on the Y axis</td>
|
246
|
+
</tr>
|
247
|
+
<tr>
|
248
|
+
<td><p><span class="term"><em class="parameter"><code>x_scale_end</code></em> :</span></p></td>
|
249
|
+
<td>final scale factor on the X axis</td>
|
250
|
+
</tr>
|
251
|
+
<tr>
|
252
|
+
<td><p><span class="term"><em class="parameter"><code>y_scale_end</code></em> :</span></p></td>
|
253
|
+
<td>final scale factor on the Y axis</td>
|
254
|
+
</tr>
|
255
|
+
<tr>
|
256
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
257
|
+
<td>the newly created <a class="link" href="ClutterBehaviourScale.html" title="ClutterBehaviourScale"><span class="type">ClutterBehaviourScale</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
|
258
|
+
</td>
|
259
|
+
</tr>
|
260
|
+
</tbody>
|
261
|
+
</table></div>
|
262
|
+
<p class="since">Since 0.2</p>
|
263
|
+
</div>
|
264
|
+
<hr>
|
265
|
+
<div class="refsect2">
|
266
|
+
<a name="clutter-behaviour-scale-set-bounds"></a><h3>clutter_behaviour_scale_set_bounds ()</h3>
|
267
|
+
<pre class="programlisting"><span class="returnvalue">void</span> clutter_behaviour_scale_set_bounds (<em class="parameter"><code><a class="link" href="ClutterBehaviourScale.html" title="ClutterBehaviourScale"><span class="type">ClutterBehaviourScale</span></a> *scale</code></em>,
|
268
|
+
<em class="parameter"><code><span class="type">gdouble</span> x_scale_start</code></em>,
|
269
|
+
<em class="parameter"><code><span class="type">gdouble</span> y_scale_start</code></em>,
|
270
|
+
<em class="parameter"><code><span class="type">gdouble</span> x_scale_end</code></em>,
|
271
|
+
<em class="parameter"><code><span class="type">gdouble</span> y_scale_end</code></em>);</pre>
|
272
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
273
|
+
<h3 class="title">Warning</h3>
|
274
|
+
<p><code class="literal">clutter_behaviour_scale_set_bounds</code> is deprecated and should not be used in newly-written code. 1.6</p>
|
275
|
+
</div>
|
276
|
+
<p>
|
277
|
+
Sets the bounds used by scale behaviour.
|
278
|
+
</p>
|
279
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
280
|
+
<colgroup>
|
281
|
+
<col align="left" valign="top">
|
282
|
+
<col>
|
283
|
+
</colgroup>
|
284
|
+
<tbody>
|
285
|
+
<tr>
|
286
|
+
<td><p><span class="term"><em class="parameter"><code>scale</code></em> :</span></p></td>
|
287
|
+
<td>a <a class="link" href="ClutterBehaviourScale.html" title="ClutterBehaviourScale"><span class="type">ClutterBehaviourScale</span></a>
|
288
|
+
</td>
|
289
|
+
</tr>
|
290
|
+
<tr>
|
291
|
+
<td><p><span class="term"><em class="parameter"><code>x_scale_start</code></em> :</span></p></td>
|
292
|
+
<td>initial scale factor on the X axis</td>
|
293
|
+
</tr>
|
294
|
+
<tr>
|
295
|
+
<td><p><span class="term"><em class="parameter"><code>y_scale_start</code></em> :</span></p></td>
|
296
|
+
<td>initial scale factor on the Y axis</td>
|
297
|
+
</tr>
|
298
|
+
<tr>
|
299
|
+
<td><p><span class="term"><em class="parameter"><code>x_scale_end</code></em> :</span></p></td>
|
300
|
+
<td>final scale factor on the X axis</td>
|
301
|
+
</tr>
|
302
|
+
<tr>
|
303
|
+
<td><p><span class="term"><em class="parameter"><code>y_scale_end</code></em> :</span></p></td>
|
304
|
+
<td>final scale factor on the Y axis</td>
|
305
|
+
</tr>
|
306
|
+
</tbody>
|
307
|
+
</table></div>
|
308
|
+
<p class="since">Since 0.6</p>
|
309
|
+
</div>
|
310
|
+
<hr>
|
311
|
+
<div class="refsect2">
|
312
|
+
<a name="clutter-behaviour-scale-get-bounds"></a><h3>clutter_behaviour_scale_get_bounds ()</h3>
|
313
|
+
<pre class="programlisting"><span class="returnvalue">void</span> clutter_behaviour_scale_get_bounds (<em class="parameter"><code><a class="link" href="ClutterBehaviourScale.html" title="ClutterBehaviourScale"><span class="type">ClutterBehaviourScale</span></a> *scale</code></em>,
|
314
|
+
<em class="parameter"><code><span class="type">gdouble</span> *x_scale_start</code></em>,
|
315
|
+
<em class="parameter"><code><span class="type">gdouble</span> *y_scale_start</code></em>,
|
316
|
+
<em class="parameter"><code><span class="type">gdouble</span> *x_scale_end</code></em>,
|
317
|
+
<em class="parameter"><code><span class="type">gdouble</span> *y_scale_end</code></em>);</pre>
|
318
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
319
|
+
<h3 class="title">Warning</h3>
|
320
|
+
<p><code class="literal">clutter_behaviour_scale_get_bounds</code> is deprecated and should not be used in newly-written code. 1.6</p>
|
321
|
+
</div>
|
322
|
+
<p>
|
323
|
+
Retrieves the bounds used by scale behaviour.
|
324
|
+
</p>
|
325
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
326
|
+
<colgroup>
|
327
|
+
<col align="left" valign="top">
|
328
|
+
<col>
|
329
|
+
</colgroup>
|
330
|
+
<tbody>
|
331
|
+
<tr>
|
332
|
+
<td><p><span class="term"><em class="parameter"><code>scale</code></em> :</span></p></td>
|
333
|
+
<td>a <a class="link" href="ClutterBehaviourScale.html" title="ClutterBehaviourScale"><span class="type">ClutterBehaviourScale</span></a>
|
334
|
+
</td>
|
335
|
+
</tr>
|
336
|
+
<tr>
|
337
|
+
<td><p><span class="term"><em class="parameter"><code>x_scale_start</code></em> :</span></p></td>
|
338
|
+
<td>return location for the initial scale factor on the X
|
339
|
+
axis, or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
|
340
|
+
</td>
|
341
|
+
</tr>
|
342
|
+
<tr>
|
343
|
+
<td><p><span class="term"><em class="parameter"><code>y_scale_start</code></em> :</span></p></td>
|
344
|
+
<td>return location for the initial scale factor on the Y
|
345
|
+
axis, or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
|
346
|
+
</td>
|
347
|
+
</tr>
|
348
|
+
<tr>
|
349
|
+
<td><p><span class="term"><em class="parameter"><code>x_scale_end</code></em> :</span></p></td>
|
350
|
+
<td>return location for the final scale factor on the X axis,
|
351
|
+
or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
|
352
|
+
</td>
|
353
|
+
</tr>
|
354
|
+
<tr>
|
355
|
+
<td><p><span class="term"><em class="parameter"><code>y_scale_end</code></em> :</span></p></td>
|
356
|
+
<td>return location for the final scale factor on the Y axis,
|
357
|
+
or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
|
358
|
+
</td>
|
359
|
+
</tr>
|
360
|
+
</tbody>
|
361
|
+
</table></div>
|
362
|
+
<p class="since">Since 0.4</p>
|
363
|
+
</div>
|
364
|
+
</div>
|
365
|
+
<div class="refsect1">
|
366
|
+
<a name="ClutterBehaviourScale.property-details"></a><h2>Property Details</h2>
|
367
|
+
<div class="refsect2">
|
368
|
+
<a name="ClutterBehaviourScale--x-scale-end"></a><h3>The <code class="literal">"x-scale-end"</code> property</h3>
|
369
|
+
<pre class="programlisting"> "x-scale-end" <span class="type">gdouble</span> : Read / Write</pre>
|
370
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
371
|
+
<h3 class="title">Warning</h3>
|
372
|
+
<p><code class="literal">ClutterBehaviourScale:x-scale-end</code> is deprecated and should not be used in newly-written code. 1.6</p>
|
373
|
+
</div>
|
374
|
+
<p>
|
375
|
+
The final scaling factor on the X axis for the actors.
|
376
|
+
</p>
|
377
|
+
<p>Allowed values: >= 0</p>
|
378
|
+
<p>Default value: 1</p>
|
379
|
+
<p class="since">Since 0.6</p>
|
380
|
+
</div>
|
381
|
+
<hr>
|
382
|
+
<div class="refsect2">
|
383
|
+
<a name="ClutterBehaviourScale--x-scale-start"></a><h3>The <code class="literal">"x-scale-start"</code> property</h3>
|
384
|
+
<pre class="programlisting"> "x-scale-start" <span class="type">gdouble</span> : Read / Write</pre>
|
385
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
386
|
+
<h3 class="title">Warning</h3>
|
387
|
+
<p><code class="literal">ClutterBehaviourScale:x-scale-start</code> is deprecated and should not be used in newly-written code. 1.6</p>
|
388
|
+
</div>
|
389
|
+
<p>
|
390
|
+
The initial scaling factor on the X axis for the actors.
|
391
|
+
</p>
|
392
|
+
<p>Allowed values: >= 0</p>
|
393
|
+
<p>Default value: 1</p>
|
394
|
+
<p class="since">Since 0.6</p>
|
395
|
+
</div>
|
396
|
+
<hr>
|
397
|
+
<div class="refsect2">
|
398
|
+
<a name="ClutterBehaviourScale--y-scale-end"></a><h3>The <code class="literal">"y-scale-end"</code> property</h3>
|
399
|
+
<pre class="programlisting"> "y-scale-end" <span class="type">gdouble</span> : Read / Write</pre>
|
400
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
401
|
+
<h3 class="title">Warning</h3>
|
402
|
+
<p><code class="literal">ClutterBehaviourScale:y-scale-end</code> is deprecated and should not be used in newly-written code. 1.6</p>
|
403
|
+
</div>
|
404
|
+
<p>
|
405
|
+
The final scaling factor on the Y axis for the actors.
|
406
|
+
</p>
|
407
|
+
<p>Allowed values: >= 0</p>
|
408
|
+
<p>Default value: 1</p>
|
409
|
+
<p class="since">Since 0.6</p>
|
410
|
+
</div>
|
411
|
+
<hr>
|
412
|
+
<div class="refsect2">
|
413
|
+
<a name="ClutterBehaviourScale--y-scale-start"></a><h3>The <code class="literal">"y-scale-start"</code> property</h3>
|
414
|
+
<pre class="programlisting"> "y-scale-start" <span class="type">gdouble</span> : Read / Write</pre>
|
415
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
416
|
+
<h3 class="title">Warning</h3>
|
417
|
+
<p><code class="literal">ClutterBehaviourScale:y-scale-start</code> is deprecated and should not be used in newly-written code. 1.6</p>
|
418
|
+
</div>
|
419
|
+
<p>
|
420
|
+
The initial scaling factor on the Y axis for the actors.
|
421
|
+
</p>
|
422
|
+
<p>Allowed values: >= 0</p>
|
423
|
+
<p>Default value: 1</p>
|
424
|
+
<p class="since">Since 0.6</p>
|
425
|
+
</div>
|
426
|
+
</div>
|
427
|
+
</div>
|
428
|
+
<div class="footer">
|
429
|
+
<hr>
|
430
|
+
Generated by GTK-Doc V1.18.1</div>
|
431
|
+
</body>
|
432
|
+
</html>
|
@@ -0,0 +1,1056 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>ClutterBinLayout</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
|
7
|
+
<link rel="home" href="index.html" title="Clutter Reference Manual">
|
8
|
+
<link rel="up" href="ch03.html" title="Layout managers">
|
9
|
+
<link rel="prev" href="ClutterFixedLayout.html" title="ClutterFixedLayout">
|
10
|
+
<link rel="next" href="ClutterFlowLayout.html" title="ClutterFlowLayout">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
+
<tr valign="middle">
|
17
|
+
<td><a accesskey="p" href="ClutterFixedLayout.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
+
<td><a accesskey="u" href="ch03.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
+
<th width="100%" align="center">Clutter Reference Manual</th>
|
21
|
+
<td><a accesskey="n" href="ClutterFlowLayout.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
+
</tr>
|
23
|
+
<tr><td colspan="5" class="shortcuts">
|
24
|
+
<a href="#ClutterBinLayout.synopsis" class="shortcut">Top</a>
|
25
|
+
|
|
26
|
+
<a href="#ClutterBinLayout.description" class="shortcut">Description</a>
|
27
|
+
|
|
28
|
+
<a href="#ClutterBinLayout.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
29
|
+
|
|
30
|
+
<a href="#ClutterBinLayout.properties" class="shortcut">Properties</a>
|
31
|
+
</td></tr>
|
32
|
+
</table>
|
33
|
+
<div class="refentry">
|
34
|
+
<a name="ClutterBinLayout"></a><div class="titlepage"></div>
|
35
|
+
<div class="refnamediv"><table width="100%"><tr>
|
36
|
+
<td valign="top">
|
37
|
+
<h2><span class="refentrytitle"><a name="ClutterBinLayout.top_of_page"></a>ClutterBinLayout</span></h2>
|
38
|
+
<p>ClutterBinLayout — A simple layout manager</p>
|
39
|
+
</td>
|
40
|
+
<td valign="top" align="right"></td>
|
41
|
+
</tr></table></div>
|
42
|
+
<div class="refsynopsisdiv">
|
43
|
+
<a name="ClutterBinLayout.synopsis"></a><h2>Synopsis</h2>
|
44
|
+
<pre class="synopsis">enum <a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment">ClutterBinAlignment</a>;
|
45
|
+
struct <a class="link" href="ClutterBinLayout.html#ClutterBinLayout-struct" title="struct ClutterBinLayout">ClutterBinLayout</a>;
|
46
|
+
struct <a class="link" href="ClutterBinLayout.html#ClutterBinLayoutClass" title="struct ClutterBinLayoutClass">ClutterBinLayoutClass</a>;
|
47
|
+
<a class="link" href="ClutterLayoutManager.html" title="ClutterLayoutManager"><span class="returnvalue">ClutterLayoutManager</span></a> * <a class="link" href="ClutterBinLayout.html#clutter-bin-layout-new" title="clutter_bin_layout_new ()">clutter_bin_layout_new</a> (<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> x_align</code></em>,
|
48
|
+
<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> y_align</code></em>);
|
49
|
+
<span class="returnvalue">void</span> <a class="link" href="ClutterBinLayout.html#clutter-bin-layout-set-alignment" title="clutter_bin_layout_set_alignment ()">clutter_bin_layout_set_alignment</a> (<em class="parameter"><code><a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a> *self</code></em>,
|
50
|
+
<em class="parameter"><code><a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a> *child</code></em>,
|
51
|
+
<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> x_align</code></em>,
|
52
|
+
<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> y_align</code></em>);
|
53
|
+
<span class="returnvalue">void</span> <a class="link" href="ClutterBinLayout.html#clutter-bin-layout-get-alignment" title="clutter_bin_layout_get_alignment ()">clutter_bin_layout_get_alignment</a> (<em class="parameter"><code><a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a> *self</code></em>,
|
54
|
+
<em class="parameter"><code><a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a> *child</code></em>,
|
55
|
+
<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> *x_align</code></em>,
|
56
|
+
<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> *y_align</code></em>);
|
57
|
+
<span class="returnvalue">void</span> <a class="link" href="ClutterBinLayout.html#clutter-bin-layout-add" title="clutter_bin_layout_add ()">clutter_bin_layout_add</a> (<em class="parameter"><code><a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a> *self</code></em>,
|
58
|
+
<em class="parameter"><code><a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a> *child</code></em>,
|
59
|
+
<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> x_align</code></em>,
|
60
|
+
<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> y_align</code></em>);
|
61
|
+
</pre>
|
62
|
+
</div>
|
63
|
+
<div class="refsect1">
|
64
|
+
<a name="ClutterBinLayout.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
65
|
+
<pre class="synopsis">
|
66
|
+
GObject
|
67
|
+
+----GInitiallyUnowned
|
68
|
+
+----<a class="link" href="ClutterLayoutManager.html" title="ClutterLayoutManager">ClutterLayoutManager</a>
|
69
|
+
+----ClutterBinLayout
|
70
|
+
</pre>
|
71
|
+
</div>
|
72
|
+
<div class="refsect1">
|
73
|
+
<a name="ClutterBinLayout.properties"></a><h2>Properties</h2>
|
74
|
+
<pre class="synopsis">
|
75
|
+
"<a class="link" href="ClutterBinLayout.html#ClutterBinLayout--x-align" title='The "x-align" property'>x-align</a>" <a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> : Read / Write
|
76
|
+
"<a class="link" href="ClutterBinLayout.html#ClutterBinLayout--y-align" title='The "y-align" property'>y-align</a>" <a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> : Read / Write
|
77
|
+
</pre>
|
78
|
+
</div>
|
79
|
+
<div class="refsect1">
|
80
|
+
<a name="ClutterBinLayout.description"></a><h2>Description</h2>
|
81
|
+
<p>
|
82
|
+
<a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a> is a layout manager which implements the following
|
83
|
+
policy:
|
84
|
+
</p>
|
85
|
+
<p>
|
86
|
+
</p>
|
87
|
+
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
88
|
+
<li class="listitem">the preferred size is the maximum preferred size
|
89
|
+
between all the children of the container using the
|
90
|
+
layout;</li>
|
91
|
+
<li class="listitem">each child is allocated in "layers", on on top
|
92
|
+
of the other;</li>
|
93
|
+
<li class="listitem">for each layer there are horizontal and vertical
|
94
|
+
alignment policies.</li>
|
95
|
+
</ul></div>
|
96
|
+
<p>
|
97
|
+
</p>
|
98
|
+
<p>
|
99
|
+
</p>
|
100
|
+
<div class="figure">
|
101
|
+
<a name="bin-layout"></a><p class="title"><b>Figure 4. Bin layout</b></p>
|
102
|
+
<div class="figure-contents">
|
103
|
+
<p>The image shows a <a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a> with three layers:
|
104
|
+
a background <a class="link" href="ClutterCairoTexture.html" title="ClutterCairoTexture"><span class="type">ClutterCairoTexture</span></a>, set to fill on both the X
|
105
|
+
and Y axis; a <a class="link" href="ClutterTexture.html" title="ClutterTexture"><span class="type">ClutterTexture</span></a>, set to center on both the X and
|
106
|
+
Y axis; and a <a class="link" href="ClutterRectangle.html" title="ClutterRectangle"><span class="type">ClutterRectangle</span></a>, set to <a class="link" href="ClutterBinLayout.html#CLUTTER-BIN-ALIGNMENT-END:CAPS"><code class="literal">CLUTTER_BIN_ALIGNMENT_END</code></a>
|
107
|
+
on both the X and Y axis.</p>
|
108
|
+
<div><img src="bin-layout.png" alt="Bin layout"></div>
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
<p><br class="figure-break">
|
112
|
+
</p>
|
113
|
+
<p>
|
114
|
+
</p>
|
115
|
+
<div class="example">
|
116
|
+
<a name="example-clutter-bin-layout"></a><p class="title"><b>Example 4. How to pack actors inside a BinLayout</b></p>
|
117
|
+
<div class="example-contents">
|
118
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
119
|
+
<tbody>
|
120
|
+
<tr>
|
121
|
+
<td class="listing_lines" align="right"><pre>1
|
122
|
+
2
|
123
|
+
3
|
124
|
+
4
|
125
|
+
5
|
126
|
+
6
|
127
|
+
7
|
128
|
+
8
|
129
|
+
9
|
130
|
+
10
|
131
|
+
11
|
132
|
+
12
|
133
|
+
13
|
134
|
+
14
|
135
|
+
15
|
136
|
+
16
|
137
|
+
17
|
138
|
+
18
|
139
|
+
19
|
140
|
+
20
|
141
|
+
21
|
142
|
+
22
|
143
|
+
23
|
144
|
+
24
|
145
|
+
25
|
146
|
+
26
|
147
|
+
27
|
148
|
+
28
|
149
|
+
29
|
150
|
+
30
|
151
|
+
31
|
152
|
+
32
|
153
|
+
33
|
154
|
+
34
|
155
|
+
35
|
156
|
+
36
|
157
|
+
37
|
158
|
+
38
|
159
|
+
39
|
160
|
+
40
|
161
|
+
41
|
162
|
+
42
|
163
|
+
43
|
164
|
+
44
|
165
|
+
45
|
166
|
+
46
|
167
|
+
47
|
168
|
+
48
|
169
|
+
49
|
170
|
+
50
|
171
|
+
51
|
172
|
+
52
|
173
|
+
53
|
174
|
+
54
|
175
|
+
55
|
176
|
+
56
|
177
|
+
57
|
178
|
+
58
|
179
|
+
59
|
180
|
+
60
|
181
|
+
61
|
182
|
+
62
|
183
|
+
63
|
184
|
+
64
|
185
|
+
65
|
186
|
+
66
|
187
|
+
67
|
188
|
+
68
|
189
|
+
69
|
190
|
+
70
|
191
|
+
71
|
192
|
+
72
|
193
|
+
73
|
194
|
+
74
|
195
|
+
75
|
196
|
+
76
|
197
|
+
77
|
198
|
+
78
|
199
|
+
79
|
200
|
+
80
|
201
|
+
81
|
202
|
+
82
|
203
|
+
83
|
204
|
+
84
|
205
|
+
85
|
206
|
+
86
|
207
|
+
87
|
208
|
+
88
|
209
|
+
89
|
210
|
+
90
|
211
|
+
91
|
212
|
+
92
|
213
|
+
93
|
214
|
+
94
|
215
|
+
95
|
216
|
+
96
|
217
|
+
97
|
218
|
+
98
|
219
|
+
99
|
220
|
+
100
|
221
|
+
101
|
222
|
+
102
|
223
|
+
103
|
224
|
+
104
|
225
|
+
105
|
226
|
+
106
|
227
|
+
107
|
228
|
+
108
|
229
|
+
109
|
230
|
+
110
|
231
|
+
111
|
232
|
+
112
|
233
|
+
113
|
234
|
+
114
|
235
|
+
115
|
236
|
+
116
|
237
|
+
117
|
238
|
+
118
|
239
|
+
119
|
240
|
+
120
|
241
|
+
121
|
242
|
+
122
|
243
|
+
123
|
244
|
+
124
|
245
|
+
125
|
246
|
+
126
|
247
|
+
127
|
248
|
+
128
|
249
|
+
129
|
250
|
+
130
|
251
|
+
131
|
252
|
+
132
|
253
|
+
133
|
254
|
+
134
|
255
|
+
135
|
256
|
+
136
|
257
|
+
137
|
258
|
+
138
|
259
|
+
139
|
260
|
+
140
|
261
|
+
141
|
262
|
+
142
|
263
|
+
143
|
264
|
+
144
|
265
|
+
145
|
266
|
+
146
|
267
|
+
147
|
268
|
+
148
|
269
|
+
149
|
270
|
+
150
|
271
|
+
151
|
272
|
+
152
|
273
|
+
153
|
274
|
+
154
|
275
|
+
155
|
276
|
+
156
|
277
|
+
157
|
278
|
+
158
|
279
|
+
159
|
280
|
+
160
|
281
|
+
161
|
282
|
+
162
|
283
|
+
163
|
284
|
+
164
|
285
|
+
165
|
286
|
+
166
|
287
|
+
167
|
288
|
+
168
|
289
|
+
169
|
290
|
+
170
|
291
|
+
171
|
292
|
+
172
|
293
|
+
173
|
294
|
+
174
|
295
|
+
175
|
296
|
+
176
|
297
|
+
177
|
298
|
+
178
|
299
|
+
179
|
300
|
+
180
|
301
|
+
181
|
302
|
+
182
|
303
|
+
183
|
304
|
+
184
|
305
|
+
185
|
306
|
+
186
|
307
|
+
187
|
308
|
+
188
|
309
|
+
189
|
310
|
+
190
|
311
|
+
191
|
312
|
+
192
|
313
|
+
193
|
314
|
+
194
|
315
|
+
195
|
316
|
+
196
|
317
|
+
197
|
318
|
+
198
|
319
|
+
199
|
320
|
+
200
|
321
|
+
201
|
322
|
+
202
|
323
|
+
203
|
324
|
+
204
|
325
|
+
205
|
326
|
+
206
|
327
|
+
207
|
328
|
+
208
|
329
|
+
209
|
330
|
+
210
|
331
|
+
211
|
332
|
+
212
|
333
|
+
213
|
334
|
+
214
|
335
|
+
215
|
336
|
+
216
|
337
|
+
217
|
338
|
+
218
|
339
|
+
219
|
340
|
+
220
|
341
|
+
221
|
342
|
+
222
|
343
|
+
223
|
344
|
+
224
|
345
|
+
225
|
346
|
+
226
|
347
|
+
227
|
348
|
+
228
|
349
|
+
229
|
350
|
+
230
|
351
|
+
231
|
352
|
+
232
|
353
|
+
233
|
354
|
+
234
|
355
|
+
235
|
356
|
+
236
|
357
|
+
237
|
358
|
+
238
|
359
|
+
239
|
360
|
+
240
|
361
|
+
241
|
362
|
+
242
|
363
|
+
243
|
364
|
+
244
|
365
|
+
245
|
366
|
+
246
|
367
|
+
247
|
368
|
+
248
|
369
|
+
249
|
370
|
+
250
|
371
|
+
251
|
372
|
+
252
|
373
|
+
253
|
374
|
+
254
|
375
|
+
255
|
376
|
+
256
|
377
|
+
257
|
378
|
+
258
|
379
|
+
259
|
380
|
+
260
|
381
|
+
261
|
382
|
+
262
|
383
|
+
263
|
384
|
+
264
|
385
|
+
265
|
386
|
+
266
|
387
|
+
267
|
388
|
+
268
|
389
|
+
269
|
390
|
+
270
|
391
|
+
271
|
392
|
+
272
|
393
|
+
273
|
394
|
+
274
|
395
|
+
275
|
396
|
+
276
|
397
|
+
277
|
398
|
+
278
|
399
|
+
279
|
400
|
+
280
|
401
|
+
281
|
402
|
+
282
|
403
|
+
283
|
404
|
+
284
|
405
|
+
285
|
406
|
+
286
|
407
|
+
287
|
408
|
+
288
|
409
|
+
289
|
410
|
+
290
|
411
|
+
291
|
412
|
+
292
|
413
|
+
293
|
414
|
+
294
|
415
|
+
295
|
416
|
+
296
|
417
|
+
297
|
418
|
+
298
|
419
|
+
299
|
420
|
+
300
|
421
|
+
301
|
422
|
+
302
|
423
|
+
303
|
424
|
+
304
|
425
|
+
305
|
426
|
+
306
|
427
|
+
307</pre></td>
|
428
|
+
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><stdlib.h></span>
|
429
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><cairo.h></span>
|
430
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><gdk-pixbuf/gdk-pixbuf.h></span>
|
431
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><clutter/clutter.h></span>
|
432
|
+
|
433
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">ClutterColor</span><span class="normal"> bg_color </span><span class="symbol">=</span><span class="normal"> </span><span class="cbracket">{</span><span class="normal"> </span><span class="number">0xcc</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0xcc</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0xcc</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0x99</span><span class="normal"> </span><span class="cbracket">}</span><span class="symbol">;</span>
|
434
|
+
|
435
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="usertype">gboolean</span><span class="normal"> is_expanded </span><span class="symbol">=</span><span class="normal"> FALSE</span><span class="symbol">;</span>
|
436
|
+
|
437
|
+
<span class="keyword">static</span><span class="normal"> gboolean</span>
|
438
|
+
<span class="function">on_canvas_draw</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">ClutterCanvas</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">canvas</span><span class="symbol">,</span>
|
439
|
+
<span class="normal"> </span><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">,</span>
|
440
|
+
<span class="normal"> </span><span class="usertype">gint</span><span class="normal"> width</span><span class="symbol">,</span>
|
441
|
+
<span class="normal"> </span><span class="usertype">gint</span><span class="normal"> height</span><span class="symbol">)</span>
|
442
|
+
<span class="cbracket">{</span>
|
443
|
+
<span class="normal"> </span><span class="usertype">cairo_pattern_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">pat</span><span class="symbol">;</span>
|
444
|
+
<span class="normal"> </span><span class="usertype">gfloat</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">;</span>
|
445
|
+
|
446
|
+
<span class="normal"> </span><span class="function">g_print</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">G_STRLOC </span><span class="string">": Painting at %d x %d</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">);</span>
|
447
|
+
|
448
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-save">cairo_save</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
449
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-set-operator">cairo_set_operator</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> <a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#CAIRO-OPERATOR-CLEAR:CAPS">CAIRO_OPERATOR_CLEAR</a></span><span class="symbol">);</span>
|
450
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-paint">cairo_paint</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
451
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-restore">cairo_restore</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
452
|
+
|
453
|
+
<span class="preproc">#define</span><span class="normal"> BG_ROUND_RADIUS </span><span class="number">12</span>
|
454
|
+
|
455
|
+
<span class="normal"> x </span><span class="symbol">=</span><span class="normal"> y </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
456
|
+
|
457
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-move-to">cairo_move_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">);</span>
|
458
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-line-to">cairo_line_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> width </span><span class="symbol">-</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">);</span>
|
459
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-curve-to">cairo_curve_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">,</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">,</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">);</span>
|
460
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-line-to">cairo_line_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> height </span><span class="symbol">-</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">);</span>
|
461
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-curve-to">cairo_curve_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">,</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">,</span><span class="normal"> width </span><span class="symbol">-</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">);</span>
|
462
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-line-to">cairo_line_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">);</span>
|
463
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-curve-to">cairo_curve_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> height </span><span class="symbol">-</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">);</span>
|
464
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-line-to">cairo_line_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">);</span>
|
465
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-curve-to">cairo_curve_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">,</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">);</span>
|
466
|
+
|
467
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-close-path">cairo_close_path</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
468
|
+
|
469
|
+
<span class="normal"> </span><span class="function">clutter_cairo_set_source_color</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">bg_color</span><span class="symbol">);</span>
|
470
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-stroke">cairo_stroke</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
471
|
+
|
472
|
+
<span class="normal"> x </span><span class="symbol">+=</span><span class="normal"> </span><span class="number">4</span><span class="symbol">;</span>
|
473
|
+
<span class="normal"> y </span><span class="symbol">+=</span><span class="normal"> </span><span class="number">4</span><span class="symbol">;</span>
|
474
|
+
<span class="normal"> width </span><span class="symbol">-=</span><span class="normal"> </span><span class="number">4</span><span class="symbol">;</span>
|
475
|
+
<span class="normal"> height </span><span class="symbol">-=</span><span class="normal"> </span><span class="number">4</span><span class="symbol">;</span>
|
476
|
+
|
477
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-move-to">cairo_move_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">);</span>
|
478
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-line-to">cairo_line_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> width </span><span class="symbol">-</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">);</span>
|
479
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-curve-to">cairo_curve_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">,</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">,</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">);</span>
|
480
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-line-to">cairo_line_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> height </span><span class="symbol">-</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">);</span>
|
481
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-curve-to">cairo_curve_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">,</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">,</span><span class="normal"> width </span><span class="symbol">-</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">);</span>
|
482
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-line-to">cairo_line_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">);</span>
|
483
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-curve-to">cairo_curve_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> height </span><span class="symbol">-</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">);</span>
|
484
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-line-to">cairo_line_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">);</span>
|
485
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-curve-to">cairo_curve_to</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">,</span><span class="normal"> BG_ROUND_RADIUS</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">);</span>
|
486
|
+
|
487
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-Paths.html#cairo-close-path">cairo_close_path</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
488
|
+
|
489
|
+
<span class="normal"> pat </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html#cairo-pattern-create-linear">cairo_pattern_create_linear</a></span><span class="normal"> </span><span class="symbol">(</span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">);</span>
|
490
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html#cairo-pattern-add-color-stop-rgba">cairo_pattern_add_color_stop_rgba</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pat</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">.</span><span class="number">85</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">.</span><span class="number">85</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">.</span><span class="number">85</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
|
491
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html#cairo-pattern-add-color-stop-rgba">cairo_pattern_add_color_stop_rgba</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pat</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">.</span><span class="number">95</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
|
492
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html#cairo-pattern-add-color-stop-rgba">cairo_pattern_add_color_stop_rgba</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pat</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">.</span><span class="number">05</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
|
493
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html#cairo-pattern-add-color-stop-rgba">cairo_pattern_add_color_stop_rgba</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pat</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">.</span><span class="number">85</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">.</span><span class="number">85</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">.</span><span class="number">85</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
|
494
|
+
|
495
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-set-source">cairo_set_source</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> pat</span><span class="symbol">);</span>
|
496
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-fill">cairo_fill</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
497
|
+
|
498
|
+
<span class="normal"> </span><span class="function"><a href="/home/ebassi/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html#cairo-pattern-destroy">cairo_pattern_destroy</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pat</span><span class="symbol">);</span>
|
499
|
+
|
500
|
+
<span class="preproc">#undef</span><span class="normal"> BG_ROUND_RADIUS</span>
|
501
|
+
|
502
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> TRUE</span><span class="symbol">;</span>
|
503
|
+
<span class="cbracket">}</span>
|
504
|
+
|
505
|
+
<span class="keyword">static</span><span class="normal"> gboolean</span>
|
506
|
+
<span class="function">on_box_enter</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">ClutterActor</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">box</span><span class="symbol">,</span>
|
507
|
+
<span class="normal"> </span><span class="usertype">ClutterEvent</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
|
508
|
+
<span class="normal"> </span><span class="usertype">ClutterActor</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">emblem</span><span class="symbol">)</span>
|
509
|
+
<span class="cbracket">{</span>
|
510
|
+
<span class="normal"> </span><span class="comment">/* we ease the opacity linearly */</span>
|
511
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-save-easing-state">clutter_actor_save_easing_state</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">);</span>
|
512
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-easing-mode">clutter_actor_set_easing_mode</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> <a href="ClutterTimeline.html#CLUTTER-LINEAR:CAPS">CLUTTER_LINEAR</a></span><span class="symbol">);</span>
|
513
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-opacity">clutter_actor_set_opacity</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> </span><span class="number">255</span><span class="symbol">);</span>
|
514
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-restore-easing-state">clutter_actor_restore_easing_state</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">);</span>
|
515
|
+
|
516
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="clutter-Events.html#CLUTTER-EVENT-STOP:CAPS">CLUTTER_EVENT_STOP</a></span><span class="symbol">;</span>
|
517
|
+
<span class="cbracket">}</span>
|
518
|
+
|
519
|
+
<span class="keyword">static</span><span class="normal"> gboolean</span>
|
520
|
+
<span class="function">on_box_leave</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">ClutterActor</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">box</span><span class="symbol">,</span>
|
521
|
+
<span class="normal"> </span><span class="usertype">ClutterEvent</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
|
522
|
+
<span class="normal"> </span><span class="usertype">ClutterActor</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">emblem</span><span class="symbol">)</span>
|
523
|
+
<span class="cbracket">{</span>
|
524
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-save-easing-state">clutter_actor_save_easing_state</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">);</span>
|
525
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-easing-mode">clutter_actor_set_easing_mode</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> <a href="ClutterTimeline.html#CLUTTER-LINEAR:CAPS">CLUTTER_LINEAR</a></span><span class="symbol">);</span>
|
526
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-opacity">clutter_actor_set_opacity</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
|
527
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-restore-easing-state">clutter_actor_restore_easing_state</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">);</span>
|
528
|
+
|
529
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="clutter-Events.html#CLUTTER-EVENT-STOP:CAPS">CLUTTER_EVENT_STOP</a></span><span class="symbol">;</span>
|
530
|
+
<span class="cbracket">}</span>
|
531
|
+
|
532
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
533
|
+
<span class="function">on_emblem_clicked</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">ClutterClickAction</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">action</span><span class="symbol">,</span>
|
534
|
+
<span class="normal"> </span><span class="usertype">ClutterActor</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">emblem</span><span class="symbol">,</span>
|
535
|
+
<span class="normal"> </span><span class="usertype">ClutterActor</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">box</span><span class="symbol">)</span>
|
536
|
+
<span class="cbracket">{</span>
|
537
|
+
<span class="normal"> </span><span class="comment">/* we add a little bounce to the resizing of the box */</span>
|
538
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-save-easing-state">clutter_actor_save_easing_state</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">);</span>
|
539
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-easing-mode">clutter_actor_set_easing_mode</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> <a href="ClutterTimeline.html#CLUTTER-EASE-OUT-BOUNCE:CAPS">CLUTTER_EASE_OUT_BOUNCE</a></span><span class="symbol">);</span>
|
540
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-easing-duration">clutter_actor_set_easing_duration</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> </span><span class="number">500</span><span class="symbol">);</span>
|
541
|
+
|
542
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="normal">is_expanded</span><span class="symbol">)</span>
|
543
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-size">clutter_actor_set_size</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> </span><span class="number">400</span><span class="symbol">,</span><span class="normal"> </span><span class="number">400</span><span class="symbol">);</span>
|
544
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
545
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-size">clutter_actor_set_size</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> </span><span class="number">200</span><span class="symbol">,</span><span class="normal"> </span><span class="number">200</span><span class="symbol">);</span>
|
546
|
+
|
547
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-restore-easing-state">clutter_actor_restore_easing_state</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">);</span>
|
548
|
+
|
549
|
+
<span class="normal"> is_expanded </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">!</span><span class="normal">is_expanded</span><span class="symbol">;</span>
|
550
|
+
<span class="cbracket">}</span>
|
551
|
+
|
552
|
+
<span class="keyword">static</span><span class="normal"> gboolean</span>
|
553
|
+
<span class="function">on_emblem_long_press</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">ClutterClickAction</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">action</span><span class="symbol">,</span>
|
554
|
+
<span class="normal"> </span><span class="usertype">ClutterActor</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">emblem</span><span class="symbol">,</span>
|
555
|
+
<span class="normal"> </span><span class="usertype">ClutterLongPressState</span><span class="normal"> state</span><span class="symbol">,</span>
|
556
|
+
<span class="normal"> </span><span class="usertype">ClutterActor</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">box</span><span class="symbol">)</span>
|
557
|
+
<span class="cbracket">{</span>
|
558
|
+
<span class="normal"> </span><span class="keyword">switch</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">state</span><span class="symbol">)</span>
|
559
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
560
|
+
<span class="normal"> </span><span class="keyword">case</span><span class="normal"> <a href="ClutterClickAction.html#CLUTTER-LONG-PRESS-QUERY:CAPS">CLUTTER_LONG_PRESS_QUERY</a></span><span class="symbol">:</span>
|
561
|
+
<span class="normal"> </span><span class="function">g_print</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"*** long press: query ***</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
562
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> is_expanded</span><span class="symbol">;</span>
|
563
|
+
|
564
|
+
<span class="normal"> </span><span class="keyword">case</span><span class="normal"> <a href="ClutterClickAction.html#CLUTTER-LONG-PRESS-CANCEL:CAPS">CLUTTER_LONG_PRESS_CANCEL</a></span><span class="symbol">:</span>
|
565
|
+
<span class="normal"> </span><span class="function">g_print</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"*** long press: cancel ***</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
566
|
+
<span class="normal"> </span><span class="keyword">break</span><span class="symbol">;</span>
|
567
|
+
|
568
|
+
<span class="normal"> </span><span class="keyword">case</span><span class="normal"> <a href="ClutterClickAction.html#CLUTTER-LONG-PRESS-ACTIVATE:CAPS">CLUTTER_LONG_PRESS_ACTIVATE</a></span><span class="symbol">:</span>
|
569
|
+
<span class="normal"> </span><span class="function">g_print</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"*** long press: activate ***</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
570
|
+
<span class="normal"> </span><span class="keyword">break</span><span class="symbol">;</span>
|
571
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
572
|
+
|
573
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> TRUE</span><span class="symbol">;</span>
|
574
|
+
<span class="cbracket">}</span>
|
575
|
+
|
576
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
577
|
+
<span class="function">redraw_canvas</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">ClutterActor</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">actor</span><span class="symbol">,</span>
|
578
|
+
<span class="normal"> </span><span class="usertype">ClutterCanvas</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">canvas</span><span class="symbol">)</span>
|
579
|
+
<span class="cbracket">{</span>
|
580
|
+
<span class="normal"> </span><span class="comment">/* we want to invalidate the canvas and redraw its contents</span>
|
581
|
+
<span class="comment"> * only when the size changes at the end of the animation,</span>
|
582
|
+
<span class="comment"> * to avoid drawing all the states inbetween</span>
|
583
|
+
<span class="comment"> */</span>
|
584
|
+
<span class="normal"> </span><span class="function"><a href="ClutterCanvas.html#clutter-canvas-set-size">clutter_canvas_set_size</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">canvas</span><span class="symbol">,</span>
|
585
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-get-width">clutter_actor_get_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">actor</span><span class="symbol">),</span>
|
586
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-get-height">clutter_actor_get_height</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">actor</span><span class="symbol">));</span>
|
587
|
+
<span class="cbracket">}</span>
|
588
|
+
|
589
|
+
<span class="type">int</span>
|
590
|
+
<span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
|
591
|
+
<span class="cbracket">{</span>
|
592
|
+
<span class="normal"> </span><span class="usertype">ClutterActor</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">stage</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">bg</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">icon</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">label</span><span class="symbol">;</span>
|
593
|
+
<span class="normal"> </span><span class="usertype">ClutterLayoutManager</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">layout</span><span class="symbol">;</span>
|
594
|
+
<span class="normal"> </span><span class="usertype">ClutterContent</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">canvas</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">image</span><span class="symbol">;</span>
|
595
|
+
<span class="normal"> </span><span class="usertype">ClutterColor</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">color</span><span class="symbol">;</span>
|
596
|
+
<span class="normal"> </span><span class="usertype">ClutterAction</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">action</span><span class="symbol">;</span>
|
597
|
+
<span class="normal"> </span><span class="usertype">GdkPixbuf</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">pixbuf</span><span class="symbol">;</span>
|
598
|
+
|
599
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="clutter-General.html#clutter-init">clutter_init</a></span><span class="normal"> </span><span class="symbol">(&</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">argv</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">!=</span><span class="normal"> <a href="clutter-General.html#CLUTTER-INIT-SUCCESS:CAPS">CLUTTER_INIT_SUCCESS</a></span><span class="symbol">)</span>
|
600
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">1</span><span class="symbol">;</span>
|
601
|
+
|
602
|
+
<span class="normal"> </span><span class="comment">/* prepare the stage */</span>
|
603
|
+
<span class="normal"> stage </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="ClutterStage.html#clutter-stage-new">clutter_stage_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
604
|
+
<span class="normal"> </span><span class="function"><a href="ClutterStage.html#clutter-stage-set-title">clutter_stage_set_title</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">CLUTTER_STAGE</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">stage</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"BinLayout"</span><span class="symbol">);</span>
|
605
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-background-color">clutter_actor_set_background_color</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">stage</span><span class="symbol">,</span><span class="normal"> CLUTTER_COLOR_Aluminium2</span><span class="symbol">);</span>
|
606
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-size">clutter_actor_set_size</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">stage</span><span class="symbol">,</span><span class="normal"> </span><span class="number">640</span><span class="symbol">,</span><span class="normal"> </span><span class="number">480</span><span class="symbol">);</span>
|
607
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-show">clutter_actor_show</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">stage</span><span class="symbol">);</span>
|
608
|
+
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">stage</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="clutter-General.html#clutter-main-quit">clutter_main_quit</a></span><span class="symbol">),</span><span class="normal"> NULL</span><span class="symbol">);</span>
|
609
|
+
|
610
|
+
<span class="normal"> </span><span class="comment">/* this is our BinLayout, with its default alignments */</span>
|
611
|
+
<span class="normal"> layout </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="ClutterBinLayout.html#clutter-bin-layout-new">clutter_bin_layout_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="ClutterBinLayout.html#CLUTTER-BIN-ALIGNMENT-CENTER:CAPS">CLUTTER_BIN_ALIGNMENT_CENTER</a></span><span class="symbol">,</span>
|
612
|
+
<span class="normal"> <a href="ClutterBinLayout.html#CLUTTER-BIN-ALIGNMENT-CENTER:CAPS">CLUTTER_BIN_ALIGNMENT_CENTER</a></span><span class="symbol">);</span>
|
613
|
+
|
614
|
+
<span class="normal"> </span><span class="comment">/* the main container; this actor will use the BinLayout to lay</span>
|
615
|
+
<span class="comment"> * out its children; we use the anchor point to keep it centered</span>
|
616
|
+
<span class="comment"> * on the same position even when we change its size</span>
|
617
|
+
<span class="comment"> */</span>
|
618
|
+
<span class="normal"> box </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-new">clutter_actor_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
619
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-layout-manager">clutter_actor_set_layout_manager</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> layout</span><span class="symbol">);</span>
|
620
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-add-constraint">clutter_actor_add_constraint</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="ClutterAlignConstraint.html#clutter-align-constraint-new">clutter_align_constraint_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">stage</span><span class="symbol">,</span><span class="normal"> <a href="ClutterAlignConstraint.html#CLUTTER-ALIGN-BOTH:CAPS">CLUTTER_ALIGN_BOTH</a></span><span class="symbol">,</span><span class="normal"> </span><span class="number">0.5</span><span class="symbol">));</span>
|
621
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-position">clutter_actor_set_position</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> </span><span class="number">320</span><span class="symbol">,</span><span class="normal"> </span><span class="number">240</span><span class="symbol">);</span>
|
622
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-reactive">clutter_actor_set_reactive</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> TRUE</span><span class="symbol">);</span>
|
623
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-name">clutter_actor_set_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"box"</span><span class="symbol">);</span>
|
624
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-add-child">clutter_actor_add_child</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">stage</span><span class="symbol">,</span><span class="normal"> box</span><span class="symbol">);</span>
|
625
|
+
|
626
|
+
<span class="normal"> </span><span class="comment">/* the background is drawn using a canvas content */</span>
|
627
|
+
<span class="normal"> canvas </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="ClutterCanvas.html#clutter-canvas-new">clutter_canvas_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
628
|
+
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">canvas</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"draw"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">on_canvas_draw</span><span class="symbol">),</span><span class="normal"> NULL</span><span class="symbol">);</span>
|
629
|
+
<span class="normal"> </span><span class="function"><a href="ClutterCanvas.html#clutter-canvas-set-size">clutter_canvas_set_size</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">CLUTTER_CANVAS</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">canvas</span><span class="symbol">),</span><span class="normal"> </span><span class="number">200</span><span class="symbol">,</span><span class="normal"> </span><span class="number">200</span><span class="symbol">);</span>
|
630
|
+
|
631
|
+
<span class="normal"> </span><span class="comment">/* this is the background actor; we want it to fill the whole</span>
|
632
|
+
<span class="comment"> * of the allocation given to it by its parent</span>
|
633
|
+
<span class="comment"> */</span>
|
634
|
+
<span class="normal"> bg </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-new">clutter_actor_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
635
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-name">clutter_actor_set_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">bg</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"background"</span><span class="symbol">);</span>
|
636
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-size">clutter_actor_set_size</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">bg</span><span class="symbol">,</span><span class="normal"> </span><span class="number">200</span><span class="symbol">,</span><span class="normal"> </span><span class="number">200</span><span class="symbol">);</span>
|
637
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-content">clutter_actor_set_content</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">bg</span><span class="symbol">,</span><span class="normal"> canvas</span><span class="symbol">);</span>
|
638
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-x-expand">clutter_actor_set_x_expand</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">bg</span><span class="symbol">,</span><span class="normal"> TRUE</span><span class="symbol">);</span>
|
639
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-y-expand">clutter_actor_set_y_expand</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">bg</span><span class="symbol">,</span><span class="normal"> TRUE</span><span class="symbol">);</span>
|
640
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-x-align">clutter_actor_set_x_align</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">bg</span><span class="symbol">,</span><span class="normal"> <a href="ClutterActor.html#CLUTTER-ACTOR-ALIGN-FILL:CAPS">CLUTTER_ACTOR_ALIGN_FILL</a></span><span class="symbol">);</span>
|
641
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-y-align">clutter_actor_set_y_align</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">bg</span><span class="symbol">,</span><span class="normal"> <a href="ClutterActor.html#CLUTTER-ACTOR-ALIGN-FILL:CAPS">CLUTTER_ACTOR_ALIGN_FILL</a></span><span class="symbol">);</span>
|
642
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-add-child">clutter_actor_add_child</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> bg</span><span class="symbol">);</span>
|
643
|
+
<span class="normal"> </span><span class="comment">/* we use the ::transitions-completed signal to get notification</span>
|
644
|
+
<span class="comment"> * of the end of the sizing animation; this allows us to redraw</span>
|
645
|
+
<span class="comment"> * the canvas only once the animation has stopped</span>
|
646
|
+
<span class="comment"> */</span>
|
647
|
+
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"transitions-completed"</span><span class="symbol">,</span>
|
648
|
+
<span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">redraw_canvas</span><span class="symbol">),</span>
|
649
|
+
<span class="normal"> canvas</span><span class="symbol">);</span>
|
650
|
+
|
651
|
+
<span class="normal"> </span><span class="comment">/* we use GdkPixbuf to load an image from our data directory */</span>
|
652
|
+
<span class="normal"> pixbuf </span><span class="symbol">=</span><span class="normal"> </span><span class="function">gdk_pixbuf_new_from_file</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">TESTS_DATADIR</span><span class="normal"> G_DIR_SEPARATOR_S </span><span class="string">"redhand.png"</span><span class="symbol">,</span><span class="normal"> NULL</span><span class="symbol">);</span>
|
653
|
+
<span class="normal"> image </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="ClutterImage.html#clutter-image-new">clutter_image_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
654
|
+
<span class="normal"> </span><span class="function"><a href="ClutterImage.html#clutter-image-set-data">clutter_image_set_data</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">CLUTTER_IMAGE</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">image</span><span class="symbol">),</span>
|
655
|
+
<span class="normal"> </span><span class="function">gdk_pixbuf_get_pixels</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">),</span>
|
656
|
+
<span class="normal"> </span><span class="function">gdk_pixbuf_get_has_alpha</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">)</span>
|
657
|
+
<span class="normal"> </span><span class="symbol">?</span><span class="normal"> COGL_PIXEL_FORMAT_RGBA_8888</span>
|
658
|
+
<span class="normal"> </span><span class="symbol">:</span><span class="normal"> COGL_PIXEL_FORMAT_RGB_888</span><span class="symbol">,</span>
|
659
|
+
<span class="normal"> </span><span class="function">gdk_pixbuf_get_width</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">),</span>
|
660
|
+
<span class="normal"> </span><span class="function">gdk_pixbuf_get_height</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">),</span>
|
661
|
+
<span class="normal"> </span><span class="function">gdk_pixbuf_get_rowstride</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">),</span>
|
662
|
+
<span class="normal"> NULL</span><span class="symbol">);</span>
|
663
|
+
<span class="normal"> </span><span class="function">g_object_unref</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">);</span>
|
664
|
+
|
665
|
+
<span class="normal"> </span><span class="comment">/* this is the icon; it's going to be centered inside the box actor.</span>
|
666
|
+
<span class="comment"> * we use the content gravity to keep the aspect ratio of the image,</span>
|
667
|
+
<span class="comment"> * and the scaling filters to get a better result when scaling the</span>
|
668
|
+
<span class="comment"> * image down.</span>
|
669
|
+
<span class="comment"> */</span>
|
670
|
+
<span class="normal"> icon </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-new">clutter_actor_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
671
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-name">clutter_actor_set_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">icon</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"icon"</span><span class="symbol">);</span>
|
672
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-size">clutter_actor_set_size</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">icon</span><span class="symbol">,</span><span class="normal"> </span><span class="number">196</span><span class="symbol">,</span><span class="normal"> </span><span class="number">196</span><span class="symbol">);</span>
|
673
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-x-expand">clutter_actor_set_x_expand</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">icon</span><span class="symbol">,</span><span class="normal"> TRUE</span><span class="symbol">);</span>
|
674
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-y-expand">clutter_actor_set_y_expand</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">icon</span><span class="symbol">,</span><span class="normal"> TRUE</span><span class="symbol">);</span>
|
675
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-x-align">clutter_actor_set_x_align</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">icon</span><span class="symbol">,</span><span class="normal"> <a href="ClutterActor.html#CLUTTER-ACTOR-ALIGN-CENTER:CAPS">CLUTTER_ACTOR_ALIGN_CENTER</a></span><span class="symbol">);</span>
|
676
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-y-align">clutter_actor_set_y_align</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">icon</span><span class="symbol">,</span><span class="normal"> <a href="ClutterActor.html#CLUTTER-ACTOR-ALIGN-CENTER:CAPS">CLUTTER_ACTOR_ALIGN_CENTER</a></span><span class="symbol">);</span>
|
677
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-content-gravity">clutter_actor_set_content_gravity</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">icon</span><span class="symbol">,</span><span class="normal"> <a href="ClutterActor.html#CLUTTER-CONTENT-GRAVITY-RESIZE-ASPECT:CAPS">CLUTTER_CONTENT_GRAVITY_RESIZE_ASPECT</a></span><span class="symbol">);</span>
|
678
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-content-scaling-filters">clutter_actor_set_content_scaling_filters</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">icon</span><span class="symbol">,</span>
|
679
|
+
<span class="normal"> <a href="ClutterActor.html#CLUTTER-SCALING-FILTER-TRILINEAR:CAPS">CLUTTER_SCALING_FILTER_TRILINEAR</a></span><span class="symbol">,</span>
|
680
|
+
<span class="normal"> <a href="ClutterActor.html#CLUTTER-SCALING-FILTER-LINEAR:CAPS">CLUTTER_SCALING_FILTER_LINEAR</a></span><span class="symbol">);</span>
|
681
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-content">clutter_actor_set_content</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">icon</span><span class="symbol">,</span><span class="normal"> image</span><span class="symbol">);</span>
|
682
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-add-child">clutter_actor_add_child</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> icon</span><span class="symbol">);</span>
|
683
|
+
|
684
|
+
<span class="normal"> color </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="clutter-Colors.html#clutter-color-new">clutter_color_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">g_random_int_range</span><span class="normal"> </span><span class="symbol">(</span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">255</span><span class="symbol">),</span>
|
685
|
+
<span class="normal"> </span><span class="function">g_random_int_range</span><span class="normal"> </span><span class="symbol">(</span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">255</span><span class="symbol">),</span>
|
686
|
+
<span class="normal"> </span><span class="function">g_random_int_range</span><span class="normal"> </span><span class="symbol">(</span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">255</span><span class="symbol">),</span>
|
687
|
+
<span class="normal"> </span><span class="number">224</span><span class="symbol">);</span>
|
688
|
+
|
689
|
+
<span class="normal"> </span><span class="comment">/* this is the emblem: a small rectangle with a random color, that we</span>
|
690
|
+
<span class="comment"> * want to put in the bottom right corner</span>
|
691
|
+
<span class="comment"> */</span>
|
692
|
+
<span class="normal"> emblem </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-new">clutter_actor_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
693
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-name">clutter_actor_set_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"emblem"</span><span class="symbol">);</span>
|
694
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-size">clutter_actor_set_size</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> </span><span class="number">48</span><span class="symbol">,</span><span class="normal"> </span><span class="number">48</span><span class="symbol">);</span>
|
695
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-background-color">clutter_actor_set_background_color</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> color</span><span class="symbol">);</span>
|
696
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-x-expand">clutter_actor_set_x_expand</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> TRUE</span><span class="symbol">);</span>
|
697
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-y-expand">clutter_actor_set_y_expand</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> TRUE</span><span class="symbol">);</span>
|
698
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-x-align">clutter_actor_set_x_align</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> <a href="ClutterActor.html#CLUTTER-ACTOR-ALIGN-END:CAPS">CLUTTER_ACTOR_ALIGN_END</a></span><span class="symbol">);</span>
|
699
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-y-align">clutter_actor_set_y_align</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> <a href="ClutterActor.html#CLUTTER-ACTOR-ALIGN-END:CAPS">CLUTTER_ACTOR_ALIGN_END</a></span><span class="symbol">);</span>
|
700
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-reactive">clutter_actor_set_reactive</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> TRUE</span><span class="symbol">);</span>
|
701
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-opacity">clutter_actor_set_opacity</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
|
702
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-add-child">clutter_actor_add_child</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> emblem</span><span class="symbol">);</span>
|
703
|
+
<span class="normal"> </span><span class="function"><a href="clutter-Colors.html#clutter-color-free">clutter_color_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">color</span><span class="symbol">);</span>
|
704
|
+
|
705
|
+
<span class="normal"> </span><span class="comment">/* when clicking on the emblem, we want to perform an action */</span>
|
706
|
+
<span class="normal"> action </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="ClutterClickAction.html#clutter-click-action-new">clutter_click_action_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
707
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-add-action">clutter_actor_add_action</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">emblem</span><span class="symbol">,</span><span class="normal"> action</span><span class="symbol">);</span>
|
708
|
+
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">action</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">on_emblem_clicked</span><span class="symbol">),</span><span class="normal"> box</span><span class="symbol">);</span>
|
709
|
+
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">action</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"long-press"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">on_emblem_long_press</span><span class="symbol">),</span><span class="normal"> box</span><span class="symbol">);</span>
|
710
|
+
|
711
|
+
<span class="normal"> </span><span class="comment">/* whenever the pointer enters the box, we show the emblem; we hide</span>
|
712
|
+
<span class="comment"> * the emblem when the pointer leaves the box</span>
|
713
|
+
<span class="comment"> */</span>
|
714
|
+
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span>
|
715
|
+
<span class="normal"> </span><span class="string">"enter-event"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">on_box_enter</span><span class="symbol">),</span>
|
716
|
+
<span class="normal"> emblem</span><span class="symbol">);</span>
|
717
|
+
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span>
|
718
|
+
<span class="normal"> </span><span class="string">"leave-event"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">on_box_leave</span><span class="symbol">),</span>
|
719
|
+
<span class="normal"> emblem</span><span class="symbol">);</span>
|
720
|
+
|
721
|
+
<span class="normal"> </span><span class="comment">/* a label, that we want to position at the top and center of the box */</span>
|
722
|
+
<span class="normal"> label </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="ClutterText.html#clutter-text-new">clutter_text_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
723
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-name">clutter_actor_set_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">label</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"text"</span><span class="symbol">);</span>
|
724
|
+
<span class="normal"> </span><span class="function"><a href="ClutterText.html#clutter-text-set-text">clutter_text_set_text</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">CLUTTER_TEXT</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">label</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"A simple test"</span><span class="symbol">);</span>
|
725
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-x-expand">clutter_actor_set_x_expand</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">label</span><span class="symbol">,</span><span class="normal"> TRUE</span><span class="symbol">);</span>
|
726
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-x-align">clutter_actor_set_x_align</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">label</span><span class="symbol">,</span><span class="normal"> <a href="ClutterActor.html#CLUTTER-ACTOR-ALIGN-CENTER:CAPS">CLUTTER_ACTOR_ALIGN_CENTER</a></span><span class="symbol">);</span>
|
727
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-y-expand">clutter_actor_set_y_expand</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">label</span><span class="symbol">,</span><span class="normal"> TRUE</span><span class="symbol">);</span>
|
728
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-set-y-align">clutter_actor_set_y_align</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">label</span><span class="symbol">,</span><span class="normal"> <a href="ClutterActor.html#CLUTTER-ACTOR-ALIGN-START:CAPS">CLUTTER_ACTOR_ALIGN_START</a></span><span class="symbol">);</span>
|
729
|
+
<span class="normal"> </span><span class="function"><a href="ClutterActor.html#clutter-actor-add-child">clutter_actor_add_child</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">,</span><span class="normal"> label</span><span class="symbol">);</span>
|
730
|
+
|
731
|
+
<span class="normal"> </span><span class="function"><a href="clutter-General.html#clutter-main">clutter_main</a></span><span class="normal"> </span><span class="symbol">();</span>
|
732
|
+
|
733
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> EXIT_SUCCESS</span><span class="symbol">;</span>
|
734
|
+
<span class="cbracket">}</span></pre></td>
|
735
|
+
</tr>
|
736
|
+
</tbody>
|
737
|
+
</table>
|
738
|
+
</div>
|
739
|
+
|
740
|
+
</div>
|
741
|
+
<p><br class="example-break">
|
742
|
+
</p>
|
743
|
+
<p>
|
744
|
+
<a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a> is available since Clutter 1.2
|
745
|
+
</p>
|
746
|
+
</div>
|
747
|
+
<div class="refsect1">
|
748
|
+
<a name="ClutterBinLayout.details"></a><h2>Details</h2>
|
749
|
+
<div class="refsect2">
|
750
|
+
<a name="ClutterBinAlignment"></a><h3>enum ClutterBinAlignment</h3>
|
751
|
+
<pre class="programlisting">typedef enum {
|
752
|
+
CLUTTER_BIN_ALIGNMENT_FIXED,
|
753
|
+
CLUTTER_BIN_ALIGNMENT_FILL,
|
754
|
+
CLUTTER_BIN_ALIGNMENT_START,
|
755
|
+
CLUTTER_BIN_ALIGNMENT_END,
|
756
|
+
CLUTTER_BIN_ALIGNMENT_CENTER
|
757
|
+
} ClutterBinAlignment;
|
758
|
+
</pre>
|
759
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
760
|
+
<h3 class="title">Warning</h3>
|
761
|
+
<p><code class="literal">ClutterBinAlignment</code> has been deprecated since version 1.12 and should not be used in newly-written code. Use <a class="link" href="ClutterActor.html#ClutterActorAlign" title="enum ClutterActorAlign"><span class="type">ClutterActorAlign</span></a> and the <a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a>
|
762
|
+
API instead</p>
|
763
|
+
</div>
|
764
|
+
<p>
|
765
|
+
The alignment policies available on each axis for <a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a>
|
766
|
+
</p>
|
767
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
768
|
+
<colgroup>
|
769
|
+
<col align="left" valign="top">
|
770
|
+
<col>
|
771
|
+
</colgroup>
|
772
|
+
<tbody>
|
773
|
+
<tr>
|
774
|
+
<td><p><a name="CLUTTER-BIN-ALIGNMENT-FIXED:CAPS"></a><span class="term"><code class="literal">CLUTTER_BIN_ALIGNMENT_FIXED</code></span></p></td>
|
775
|
+
<td>Fixed position alignment; the
|
776
|
+
<a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a> will honour the fixed position provided
|
777
|
+
by the actors themselves when allocating them
|
778
|
+
</td>
|
779
|
+
</tr>
|
780
|
+
<tr>
|
781
|
+
<td><p><a name="CLUTTER-BIN-ALIGNMENT-FILL:CAPS"></a><span class="term"><code class="literal">CLUTTER_BIN_ALIGNMENT_FILL</code></span></p></td>
|
782
|
+
<td>Fill the allocation size
|
783
|
+
</td>
|
784
|
+
</tr>
|
785
|
+
<tr>
|
786
|
+
<td><p><a name="CLUTTER-BIN-ALIGNMENT-START:CAPS"></a><span class="term"><code class="literal">CLUTTER_BIN_ALIGNMENT_START</code></span></p></td>
|
787
|
+
<td>Position the actors at the top
|
788
|
+
or left side of the container, depending on the axis
|
789
|
+
</td>
|
790
|
+
</tr>
|
791
|
+
<tr>
|
792
|
+
<td><p><a name="CLUTTER-BIN-ALIGNMENT-END:CAPS"></a><span class="term"><code class="literal">CLUTTER_BIN_ALIGNMENT_END</code></span></p></td>
|
793
|
+
<td>Position the actors at the bottom
|
794
|
+
or right side of the container, depending on the axis
|
795
|
+
</td>
|
796
|
+
</tr>
|
797
|
+
<tr>
|
798
|
+
<td><p><a name="CLUTTER-BIN-ALIGNMENT-CENTER:CAPS"></a><span class="term"><code class="literal">CLUTTER_BIN_ALIGNMENT_CENTER</code></span></p></td>
|
799
|
+
<td>Position the actors at the
|
800
|
+
center of the container, depending on the axis
|
801
|
+
</td>
|
802
|
+
</tr>
|
803
|
+
</tbody>
|
804
|
+
</table></div>
|
805
|
+
<p class="since">Since 1.2</p>
|
806
|
+
</div>
|
807
|
+
<hr>
|
808
|
+
<div class="refsect2">
|
809
|
+
<a name="ClutterBinLayout-struct"></a><h3>struct ClutterBinLayout</h3>
|
810
|
+
<pre class="programlisting">struct ClutterBinLayout;</pre>
|
811
|
+
<p>
|
812
|
+
The <a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a> structure contains only private data
|
813
|
+
and should be accessed using the provided API
|
814
|
+
</p>
|
815
|
+
<p class="since">Since 1.2</p>
|
816
|
+
</div>
|
817
|
+
<hr>
|
818
|
+
<div class="refsect2">
|
819
|
+
<a name="ClutterBinLayoutClass"></a><h3>struct ClutterBinLayoutClass</h3>
|
820
|
+
<pre class="programlisting">struct ClutterBinLayoutClass {
|
821
|
+
};
|
822
|
+
</pre>
|
823
|
+
<p>
|
824
|
+
The <a class="link" href="ClutterBinLayout.html#ClutterBinLayoutClass" title="struct ClutterBinLayoutClass"><span class="type">ClutterBinLayoutClass</span></a> structure contains only private
|
825
|
+
data and should be accessed using the provided API
|
826
|
+
</p>
|
827
|
+
<p class="since">Since 1.2</p>
|
828
|
+
</div>
|
829
|
+
<hr>
|
830
|
+
<div class="refsect2">
|
831
|
+
<a name="clutter-bin-layout-new"></a><h3>clutter_bin_layout_new ()</h3>
|
832
|
+
<pre class="programlisting"><a class="link" href="ClutterLayoutManager.html" title="ClutterLayoutManager"><span class="returnvalue">ClutterLayoutManager</span></a> * clutter_bin_layout_new (<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> x_align</code></em>,
|
833
|
+
<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> y_align</code></em>);</pre>
|
834
|
+
<p>
|
835
|
+
Creates a new <a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a> layout manager
|
836
|
+
</p>
|
837
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
838
|
+
<colgroup>
|
839
|
+
<col align="left" valign="top">
|
840
|
+
<col>
|
841
|
+
</colgroup>
|
842
|
+
<tbody>
|
843
|
+
<tr>
|
844
|
+
<td><p><span class="term"><em class="parameter"><code>x_align</code></em> :</span></p></td>
|
845
|
+
<td>the default alignment policy to be used on the
|
846
|
+
horizontal axis</td>
|
847
|
+
</tr>
|
848
|
+
<tr>
|
849
|
+
<td><p><span class="term"><em class="parameter"><code>y_align</code></em> :</span></p></td>
|
850
|
+
<td>the default alignment policy to be used on the
|
851
|
+
vertical axis</td>
|
852
|
+
</tr>
|
853
|
+
<tr>
|
854
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
855
|
+
<td>the newly created layout manager</td>
|
856
|
+
</tr>
|
857
|
+
</tbody>
|
858
|
+
</table></div>
|
859
|
+
<p class="since">Since 1.2</p>
|
860
|
+
</div>
|
861
|
+
<hr>
|
862
|
+
<div class="refsect2">
|
863
|
+
<a name="clutter-bin-layout-set-alignment"></a><h3>clutter_bin_layout_set_alignment ()</h3>
|
864
|
+
<pre class="programlisting"><span class="returnvalue">void</span> clutter_bin_layout_set_alignment (<em class="parameter"><code><a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a> *self</code></em>,
|
865
|
+
<em class="parameter"><code><a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a> *child</code></em>,
|
866
|
+
<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> x_align</code></em>,
|
867
|
+
<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> y_align</code></em>);</pre>
|
868
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
869
|
+
<h3 class="title">Warning</h3>
|
870
|
+
<p><code class="literal">clutter_bin_layout_set_alignment</code> has been deprecated since version 1.12 and should not be used in newly-written code. Use the <a class="link" href="ClutterActor.html#ClutterActor--x-align" title='The "x-align" property'><span class="type">"x-align"</span></a> and
|
871
|
+
<a class="link" href="ClutterActor.html#ClutterActor--y-align" title='The "y-align" property'><span class="type">"y-align"</span></a> properties of <a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a> instead.</p>
|
872
|
+
</div>
|
873
|
+
<p>
|
874
|
+
Sets the horizontal and vertical alignment policies to be applied
|
875
|
+
to a <em class="parameter"><code>child</code></em> of <em class="parameter"><code>self</code></em>
|
876
|
+
</p>
|
877
|
+
<p>
|
878
|
+
If <em class="parameter"><code>child</code></em> is <code class="literal">NULL</code> then the <em class="parameter"><code>x_align</code></em> and <em class="parameter"><code>y_align</code></em> values will
|
879
|
+
be set as the default alignment policies
|
880
|
+
</p>
|
881
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
882
|
+
<colgroup>
|
883
|
+
<col align="left" valign="top">
|
884
|
+
<col>
|
885
|
+
</colgroup>
|
886
|
+
<tbody>
|
887
|
+
<tr>
|
888
|
+
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
|
889
|
+
<td>a <a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a>
|
890
|
+
</td>
|
891
|
+
</tr>
|
892
|
+
<tr>
|
893
|
+
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
|
894
|
+
<td>a child of <em class="parameter"><code>container</code></em>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
895
|
+
</td>
|
896
|
+
</tr>
|
897
|
+
<tr>
|
898
|
+
<td><p><span class="term"><em class="parameter"><code>x_align</code></em> :</span></p></td>
|
899
|
+
<td>the horizontal alignment policy to be used for the <em class="parameter"><code>child</code></em>
|
900
|
+
inside <em class="parameter"><code>container</code></em>
|
901
|
+
</td>
|
902
|
+
</tr>
|
903
|
+
<tr>
|
904
|
+
<td><p><span class="term"><em class="parameter"><code>y_align</code></em> :</span></p></td>
|
905
|
+
<td>the vertical aligment policy to be used on the <em class="parameter"><code>child</code></em>
|
906
|
+
inside <em class="parameter"><code>container</code></em>
|
907
|
+
</td>
|
908
|
+
</tr>
|
909
|
+
</tbody>
|
910
|
+
</table></div>
|
911
|
+
<p class="since">Since 1.2</p>
|
912
|
+
</div>
|
913
|
+
<hr>
|
914
|
+
<div class="refsect2">
|
915
|
+
<a name="clutter-bin-layout-get-alignment"></a><h3>clutter_bin_layout_get_alignment ()</h3>
|
916
|
+
<pre class="programlisting"><span class="returnvalue">void</span> clutter_bin_layout_get_alignment (<em class="parameter"><code><a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a> *self</code></em>,
|
917
|
+
<em class="parameter"><code><a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a> *child</code></em>,
|
918
|
+
<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> *x_align</code></em>,
|
919
|
+
<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> *y_align</code></em>);</pre>
|
920
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
921
|
+
<h3 class="title">Warning</h3>
|
922
|
+
<p><code class="literal">clutter_bin_layout_get_alignment</code> has been deprecated since version 1.12 and should not be used in newly-written code. Use the <a class="link" href="ClutterActor.html#ClutterActor--x-align" title='The "x-align" property'><span class="type">"x-align"</span></a> and the
|
923
|
+
<a class="link" href="ClutterActor.html#ClutterActor--y-align" title='The "y-align" property'><span class="type">"y-align"</span></a> properties of <a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a> instead.</p>
|
924
|
+
</div>
|
925
|
+
<p>
|
926
|
+
Retrieves the horizontal and vertical alignment policies for
|
927
|
+
a child of <em class="parameter"><code>self</code></em>
|
928
|
+
</p>
|
929
|
+
<p>
|
930
|
+
If <em class="parameter"><code>child</code></em> is <code class="literal">NULL</code> the default alignment policies will be returned
|
931
|
+
instead
|
932
|
+
</p>
|
933
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
934
|
+
<colgroup>
|
935
|
+
<col align="left" valign="top">
|
936
|
+
<col>
|
937
|
+
</colgroup>
|
938
|
+
<tbody>
|
939
|
+
<tr>
|
940
|
+
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
|
941
|
+
<td>a <a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a>
|
942
|
+
</td>
|
943
|
+
</tr>
|
944
|
+
<tr>
|
945
|
+
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
|
946
|
+
<td>a child of <em class="parameter"><code>container</code></em>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
947
|
+
</td>
|
948
|
+
</tr>
|
949
|
+
<tr>
|
950
|
+
<td><p><span class="term"><em class="parameter"><code>x_align</code></em> :</span></p></td>
|
951
|
+
<td>return location for the horizontal
|
952
|
+
alignment policy. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
953
|
+
</td>
|
954
|
+
</tr>
|
955
|
+
<tr>
|
956
|
+
<td><p><span class="term"><em class="parameter"><code>y_align</code></em> :</span></p></td>
|
957
|
+
<td>return location for the vertical
|
958
|
+
alignment policy. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
959
|
+
</td>
|
960
|
+
</tr>
|
961
|
+
</tbody>
|
962
|
+
</table></div>
|
963
|
+
<p class="since">Since 1.2</p>
|
964
|
+
</div>
|
965
|
+
<hr>
|
966
|
+
<div class="refsect2">
|
967
|
+
<a name="clutter-bin-layout-add"></a><h3>clutter_bin_layout_add ()</h3>
|
968
|
+
<pre class="programlisting"><span class="returnvalue">void</span> clutter_bin_layout_add (<em class="parameter"><code><a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a> *self</code></em>,
|
969
|
+
<em class="parameter"><code><a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a> *child</code></em>,
|
970
|
+
<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> x_align</code></em>,
|
971
|
+
<em class="parameter"><code><a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> y_align</code></em>);</pre>
|
972
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
973
|
+
<h3 class="title">Warning</h3>
|
974
|
+
<p><code class="literal">clutter_bin_layout_add</code> has been deprecated since version 1.12 and should not be used in newly-written code. Use <a class="link" href="ClutterActor.html#clutter-actor-add-child" title="clutter_actor_add_child ()"><code class="function">clutter_actor_add_child()</code></a> instead.</p>
|
975
|
+
</div>
|
976
|
+
<p>
|
977
|
+
Adds a <a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a> to the container using <em class="parameter"><code>self</code></em> and
|
978
|
+
sets the alignment policies for it
|
979
|
+
</p>
|
980
|
+
<p>
|
981
|
+
This function is equivalent to <a class="link" href="ClutterContainer.html#clutter-container-add-actor" title="clutter_container_add_actor ()"><code class="function">clutter_container_add_actor()</code></a>
|
982
|
+
and <a class="link" href="ClutterLayoutManager.html#clutter-layout-manager-child-set-property" title="clutter_layout_manager_child_set_property ()"><code class="function">clutter_layout_manager_child_set_property()</code></a> but it does not
|
983
|
+
require a pointer to the <a class="link" href="ClutterContainer.html" title="ClutterContainer"><span class="type">ClutterContainer</span></a> associated to the
|
984
|
+
<a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a>
|
985
|
+
</p>
|
986
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
987
|
+
<colgroup>
|
988
|
+
<col align="left" valign="top">
|
989
|
+
<col>
|
990
|
+
</colgroup>
|
991
|
+
<tbody>
|
992
|
+
<tr>
|
993
|
+
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
|
994
|
+
<td>a <a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a>
|
995
|
+
</td>
|
996
|
+
</tr>
|
997
|
+
<tr>
|
998
|
+
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
|
999
|
+
<td>a <a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a>
|
1000
|
+
</td>
|
1001
|
+
</tr>
|
1002
|
+
<tr>
|
1003
|
+
<td><p><span class="term"><em class="parameter"><code>x_align</code></em> :</span></p></td>
|
1004
|
+
<td>horizontal alignment policy for <em class="parameter"><code>child</code></em>
|
1005
|
+
</td>
|
1006
|
+
</tr>
|
1007
|
+
<tr>
|
1008
|
+
<td><p><span class="term"><em class="parameter"><code>y_align</code></em> :</span></p></td>
|
1009
|
+
<td>vertical alignment policy for <em class="parameter"><code>child</code></em>
|
1010
|
+
</td>
|
1011
|
+
</tr>
|
1012
|
+
</tbody>
|
1013
|
+
</table></div>
|
1014
|
+
<p class="since">Since 1.2</p>
|
1015
|
+
</div>
|
1016
|
+
</div>
|
1017
|
+
<div class="refsect1">
|
1018
|
+
<a name="ClutterBinLayout.property-details"></a><h2>Property Details</h2>
|
1019
|
+
<div class="refsect2">
|
1020
|
+
<a name="ClutterBinLayout--x-align"></a><h3>The <code class="literal">"x-align"</code> property</h3>
|
1021
|
+
<pre class="programlisting"> "x-align" <a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> : Read / Write</pre>
|
1022
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
1023
|
+
<h3 class="title">Warning</h3>
|
1024
|
+
<p><code class="literal">ClutterBinLayout:x-align</code> has been deprecated since version 1.12 and should not be used in newly-written code. Use the <a class="link" href="ClutterActor.html#ClutterActor--x-expand" title='The "x-expand" property'><span class="type">"x-expand"</span></a> and the
|
1025
|
+
<a class="link" href="ClutterActor.html#ClutterActor--x-align" title='The "x-align" property'><span class="type">"x-align"</span></a> properties on <a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a> instead.</p>
|
1026
|
+
</div>
|
1027
|
+
<p>
|
1028
|
+
The default horizontal alignment policy for actors managed
|
1029
|
+
by the <a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a>
|
1030
|
+
</p>
|
1031
|
+
<p>Default value: CLUTTER_BIN_ALIGNMENT_CENTER</p>
|
1032
|
+
<p class="since">Since 1.2</p>
|
1033
|
+
</div>
|
1034
|
+
<hr>
|
1035
|
+
<div class="refsect2">
|
1036
|
+
<a name="ClutterBinLayout--y-align"></a><h3>The <code class="literal">"y-align"</code> property</h3>
|
1037
|
+
<pre class="programlisting"> "y-align" <a class="link" href="ClutterBinLayout.html#ClutterBinAlignment" title="enum ClutterBinAlignment"><span class="type">ClutterBinAlignment</span></a> : Read / Write</pre>
|
1038
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
1039
|
+
<h3 class="title">Warning</h3>
|
1040
|
+
<p><code class="literal">ClutterBinLayout:y-align</code> has been deprecated since version 1.12 and should not be used in newly-written code. Use the <a class="link" href="ClutterActor.html#ClutterActor--y-expand" title='The "y-expand" property'><span class="type">"y-expand"</span></a> and the
|
1041
|
+
<a class="link" href="ClutterActor.html#ClutterActor--y-align" title='The "y-align" property'><span class="type">"y-align"</span></a> properties on <a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a> instead.</p>
|
1042
|
+
</div>
|
1043
|
+
<p>
|
1044
|
+
The default vertical alignment policy for actors managed
|
1045
|
+
by the <a class="link" href="ClutterBinLayout.html" title="ClutterBinLayout"><span class="type">ClutterBinLayout</span></a>
|
1046
|
+
</p>
|
1047
|
+
<p>Default value: CLUTTER_BIN_ALIGNMENT_CENTER</p>
|
1048
|
+
<p class="since">Since 1.2</p>
|
1049
|
+
</div>
|
1050
|
+
</div>
|
1051
|
+
</div>
|
1052
|
+
<div class="footer">
|
1053
|
+
<hr>
|
1054
|
+
Generated by GTK-Doc V1.18.1</div>
|
1055
|
+
</body>
|
1056
|
+
</html>
|