1
0
Fork 0
mutter-performance-source/clutter
Emmanuele Bassi 7d674db9d2 Clean up of the ClutterColor API
The ClutterColor API has some inconsistencies:

  - the string deserialization function does not match the rest of
    the conversion function naming policy; the naming should be:

        clutter_color_parse()   ->      clutter_color_from_string()

    and the first parameter should be the ClutterColor that will
    be set from the string, not the string itself (a GDK-ism).

  - the fixed point API should not be exposed, especially in the
    form of ClutterFixed values

  - the non-fixed point HLS conversion functions do not make any
    sense. The values returned should be:

      hue        := range [ 0, 360 ]
      luminance  := range [ 0,   1 ]
      saturation := range [ 0,   1 ]

    like the current fixed point API does. Returning a value in
    the [ 0, 255 ] range is completely useless

  - the clutter_color_equal() should be converted for its use inside
    a GHashTable; a clutter_color_hash() should be added as well

  - the second parameter of the clutter_color_shade() function should
    be the shading factor, not the result (another GDK-ism). this way
    the function call can be translated from this:

      color.shade(out result, factor)

    to the more natural:

      color.shade(factor, out result)

This somewhat large commit fixes all these issues and updates the
internal users of the API.
2009-03-10 12:38:02 +00:00
..
cogl [cogl] Add a PANGO debug flag for CoglPango use 2009-03-10 12:38:02 +00:00
eglnative Set the mapped flag on the stage in the SDL and eglnative backends 2009-03-09 18:53:31 +00:00
eglx Emit CLUTTER_LEAVE events when the pointer leaves the stage 2009-02-16 12:46:36 +00:00
fruity 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
glx Use COGL to establish GL state for ClutterGLXTexturePixmap 2009-03-09 15:42:23 +00:00
json Add build machinery for gobject-introspection data 2009-02-20 14:39:51 +00:00
osx 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
pango [cogl] Add a PANGO debug flag for CoglPango use 2009-03-10 12:38:02 +00:00
sdl Set the mapped flag on the stage in the SDL and eglnative backends 2009-03-09 18:53:31 +00:00
win32 Typo in clutter-win32.pc.in introduced by commit 24ce19383 2009-03-10 12:16:53 +00:00
x11 Bug 1491 - Fix hardcoded lib path in .pc files 2009-03-09 10:45:09 +00:00
clutter-actor.c [actor] Remove usage of ClutterFixed 2009-02-23 13:00:52 +00:00
clutter-actor.h Add Actor::create_pango_layout() 2009-02-02 12:07:28 +00:00
clutter-alpha.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-alpha.h Merge branch 'cogl-float' 2009-01-20 18:47:50 +00:00
clutter-animatable.c Add license notice to ClutterAnimation files 2009-01-08 13:18:00 +00:00
clutter-animatable.h Add license notice to ClutterAnimation files 2009-01-08 13:18:00 +00:00
clutter-animation.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-animation.h Remove AnimationMode from the Animation API 2009-01-16 14:37:42 +00:00
clutter-backend.c [backend] Constify font options 2009-02-26 15:32:48 +00:00
clutter-backend.h [backend] Constify font options 2009-02-26 15:32:48 +00:00
clutter-behaviour-depth.c Fix compiler warnings 2009-01-23 13:08:46 +00:00
clutter-behaviour-depth.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-behaviour-ellipse.c Whitespace fixes for BehaviourEllipse 2009-01-24 14:32:10 +00:00
clutter-behaviour-ellipse.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-behaviour-opacity.c [animation] Move the alpha value to floating point 2009-01-20 16:42:49 +00:00
clutter-behaviour-opacity.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-behaviour-path.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-behaviour-path.h Bug 1252 - Merge ClutterBehaviourPath and ClutterBehaviourBspline 2008-12-05 13:13:37 +00:00
clutter-behaviour-rotate.c [ClutterBehaviourRotate] Fix up some breakage from the cogl-float branch merge 2009-02-18 18:30:58 +00:00
clutter-behaviour-rotate.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-behaviour-scale.c Add a scale center property to ClutterActor 2009-01-23 18:41:40 +00:00
clutter-behaviour-scale.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-behaviour.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-behaviour.h [animation] Move the alpha value to floating point 2009-01-20 16:42:49 +00:00
clutter-bezier.c [Automatic fixed-to-float.sh change] Applies a number fixed to float patches 2009-01-20 16:20:54 +00:00
clutter-bezier.h Bug 1252 - Merge ClutterBehaviourPath and ClutterBehaviourBspline 2008-12-05 13:13:37 +00:00
clutter-binding-pool.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-binding-pool.h Add declaration of clutter_binding_pool_get_type() 2009-01-14 15:03:30 +00:00
clutter-cairo-texture.c [docs] Documentation fixes for CairoTexture 2008-12-19 17:48:30 +00:00
clutter-cairo-texture.h [docs] Documentation warnings 2009-01-09 14:26:35 +00:00
clutter-child-meta.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-child-meta.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-clone.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-clone.h Rename ActorClone to Clone/2 2009-01-27 14:24:31 +00:00
clutter-color.c Clean up of the ClutterColor API 2009-03-10 12:38:02 +00:00
clutter-color.h Clean up of the ClutterColor API 2009-03-10 12:38:02 +00:00
clutter-container.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-container.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-debug.h 2008-11-17 Emmanuele Bassi <ebassi@linux.intel.com> 2008-11-18 09:50:03 +00:00
clutter-deprecated.h Clean up of the ClutterColor API 2009-03-10 12:38:02 +00:00
clutter-enum-types.c.in 2007-12-25 Emmanuele Bassi <ebassi@openedhand.com> 2007-12-25 11:41:10 +00:00
clutter-enum-types.h.in 2007-08-20 Emmanuele Bassi <ebassi@openedhand.com> 2007-08-20 20:16:15 +00:00
clutter-event.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-event.h Bug 1440 - Add clutter_get_current_event_time() 2009-02-14 11:38:16 +00:00
clutter-feature.c 2008-06-06 Matthew Allum <mallum@openedhand.com> 2008-06-06 13:44:22 +00:00
clutter-feature.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-fixed.c [Automatic fixed-to-float.sh change] Applies a number fixed to float patches 2009-01-20 16:20:54 +00:00
clutter-fixed.h [Automatic fixed-to-float.sh change] Hand coded changes for clutter-{fixed,units} 2009-01-20 16:20:55 +00:00
clutter-frame-source.c * clutter/clutter-frame-source.c (clutter_frame_source_add) 2008-05-09 16:27:06 +00:00
clutter-frame-source.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-group.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-group.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-id-pool.c 2008-03-09 Matthew Allum <mallum@openedhand.com> 2008-03-09 19:07:17 +00:00
clutter-id-pool.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-interval.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-interval.h [animation] Allow registering custom progress function 2009-01-08 11:15:09 +00:00
clutter-json.h.in 2008-04-23 Emmanuele Bassi <ebassi@openedhand.com> 2008-04-23 13:58:58 +00:00
clutter-keysyms-table.h 7 small miscellaneous fixes 2008-06-10 06:37:46 +00:00
clutter-keysyms.h 2008-08-04 Emmanuele Bassi <ebassi@openedhand.com> 2008-08-05 10:54:40 +00:00
clutter-list-model.c [list-model] Make ClutterListModel subclassable 2009-02-14 11:31:00 +00:00
clutter-list-model.h [list-model] Make ClutterListModel subclassable 2009-02-14 11:31:00 +00:00
clutter-main.c Add a warning for recursive emit_event 2009-02-27 17:59:16 +00:00
clutter-main.h Replace clutter_set_use_mipmapped_text with clutter_set_font_flags 2009-01-27 14:43:44 +00:00
clutter-marshal.list [animation] Move the alpha value to floating point 2009-01-20 16:42:49 +00:00
clutter-media.c [media] Add sub-second resolution for the duration 2009-02-24 16:22:02 +00:00
clutter-media.h [media] Add sub-second resolution for the duration 2009-02-24 16:22:02 +00:00
clutter-model-private.h 2008-01-09 Emmanuele Bassi <ebassi@openedhand.com> 2008-01-09 14:18:53 +00:00
clutter-model.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-model.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-path.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-path.h [build] Replaces use of #include <cairo/cairo.h> with #include <cairo.h> 2008-12-21 21:52:50 +00:00
clutter-private.h Bug 1440 - Add clutter_get_current_event_time() 2009-02-14 11:38:16 +00:00
clutter-rectangle.c Changes cogl_rectangle to take x1, y1, x2, y2 args not x1, y1, width, height 2009-01-28 17:20:15 +00:00
clutter-rectangle.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-score.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-score.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-script-parser.c 2008-08-04 Emmanuele Bassi <ebassi@openedhand.com> 2008-08-04 16:21:27 +00:00
clutter-script-private.h 2008-08-04 Emmanuele Bassi <ebassi@openedhand.com> 2008-08-04 16:21:27 +00:00
clutter-script.c Clean up of the ClutterColor API 2009-03-10 12:38:02 +00:00
clutter-script.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-scriptable.c Intern the ClutterScriptable type name 2009-02-26 14:57:58 +00:00
clutter-scriptable.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-shader-types.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-shader-types.h Do not use GL types in Clutter headers 2009-02-20 11:47:14 +00:00
clutter-shader.c 2008-11-18 Emmanuele Bassi <ebassi@linux.intel.com> 2008-11-18 15:08:40 +00:00
clutter-shader.h 2008-11-18 Emmanuele Bassi <ebassi@linux.intel.com> 2008-11-18 15:08:40 +00:00
clutter-stage-manager.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-stage-manager.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-stage-window.c 2008-04-04 Emmanuele Bassi <ebassi@openedhand.com> 2008-04-04 15:02:11 +00:00
clutter-stage-window.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-stage.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-stage.h Bug 1361 - Unused ClutterStage::get_resolution() methods 2009-01-23 15:16:21 +00:00
clutter-text.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-text.h Remove redundant declaration in clutter-text.h 2009-02-26 12:49:50 +00:00
clutter-texture.c Bail early in clutter_texture_paint if opacity == 0 2009-02-19 15:44:16 +00:00
clutter-texture.h Remove type functions for removed types 2009-02-19 15:00:23 +00:00
clutter-timeline.c Add gobject-introspection annotations 2009-02-20 12:09:07 +00:00
clutter-timeline.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-timeout-pool.c 2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com> 2008-09-23 13:25:31 +00:00
clutter-timeout-pool.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-types.h Replace clutter_set_use_mipmapped_text with clutter_set_font_flags 2009-01-27 14:43:44 +00:00
clutter-units.c [units] Fix Units in GValue and ClutterParamSpecUnit 2009-01-22 12:11:25 +00:00
clutter-units.h Add units-from-em conversion 2009-01-21 17:35:47 +00:00
clutter-util.c * clutter/clutter-texture.c: (texture_get_tile_pixbuf), 2008-02-12 17:17:52 +00:00
clutter-util.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-version.h.in 2008-03-31 Matthew Allum <mallum@openedhand.com> 2008-03-31 17:15:02 +00:00
clutter.h Remove CloneTexture from the API 2009-01-27 15:18:45 +00:00
Makefile.am [build] Do not shave typelib generation 2009-02-26 12:46:36 +00:00