mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
docs: Inlined examples break enums gtk-doc
This commit is contained in:
parent
8d8d4ae7e5
commit
825e1e6242
@ -407,41 +407,10 @@ typedef enum { /*< prefix=CLUTTER_OFFSCREEN_REDIRECT >*/
|
||||
* should only be used if you are subclassing #ClutterActor and
|
||||
* overriding the #ClutterActorClass.allocate() virtual function, but
|
||||
* you wish to use the default implementation of the virtual function
|
||||
* inside #ClutterActor, for instance:
|
||||
* |[
|
||||
* static void
|
||||
* my_actor_allocate (ClutterActor *actor,
|
||||
* const ClutterActorBox *alloc,
|
||||
* ClutterAllocationFlags flags)
|
||||
* {
|
||||
* ClutterActorBox new_alloc;
|
||||
* ClutterAllocationFlags new_flags;
|
||||
*
|
||||
* /* change the allocation */
|
||||
* new_alloc = *alloc;
|
||||
* new_alloc.x1 += 6;
|
||||
* new_alloc.y1 += 3;
|
||||
* new_alloc.x2 -= 6;
|
||||
* new_alloc.y2 -= 3;
|
||||
*
|
||||
* /* change the flags */
|
||||
* new_flags = flags | CLUTTER_DELEGATE_LAYOUT;
|
||||
*
|
||||
* /* store the allocation and delegate the children layout
|
||||
* * to the ClutterLayoutManager used by the actor.
|
||||
* */
|
||||
* clutter_actor_set_allocation (actor, &new_alloc, flags);
|
||||
*
|
||||
* /* alternatively, instead of using this flags, you could
|
||||
* * retrieve the layout manager and call the
|
||||
* * clutter_layout_manager_allocate() yourself.
|
||||
* */
|
||||
* }
|
||||
* ]|
|
||||
* the %CLUTTER_DELEGATE_LAYOUT was added in Clutter 1.10.
|
||||
* inside #ClutterActor. Added in Clutter 1.10.
|
||||
*
|
||||
* Flags passed to the #ClutterActorClass.allocate() virtual function
|
||||
* and to the clutter_actor_allocate() function
|
||||
* and to the clutter_actor_allocate() function.
|
||||
*
|
||||
* Since: 1.0
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user