Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9260741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:58:15+00:00 2026-06-18T12:58:15+00:00

I just started playing around with clutter a bit, and I got a question

  • 0

I just started playing around with clutter a bit, and I got a question in regards to setting properties on a ClutterActor.

I want to set the pivot-point property, after searching though the reference, the function which seems the best fit is clutter_container_child_set_property (I couldn’t find anything with operated directly on the actor), so I’m trying

ClutterPoint point = {128,64};
clutter_container_child_set_property(CLUTTER_CONTAINER(stage), box, "pivot-point", point);

But I get an error, it expects the point to be of the type GValue , how do I change the clutter point to a gvalue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:58:17+00:00Added an answer on June 18, 2026 at 12:58 pm

    clutter_container_set_property probably isn’t the right way to go, but stuffing a ClutterPoint in a GValue would look something like this:

    GValue value;
    g_value_init (&value, CLUTTER_TYPE_POINT);
    g_value_set_boxed (&value, &point);
    

    Once you have that you can use g_object_set_property to set the ClutterActor:pivot-point property:

    g_object_set_property (G_OBJECT(box), "pivot-point", &value);
    

    Or you could just let GObject handle the GValue stuff for you and use g_object_set:

    g_object_set (G_OBJECT(box), "pivot-point", &point, NULL);
    

    If you don’t already have the ClutterPoint sitting around for some other reason, the easiest method would be to just use clutter_actor_set_pivot_point:

    clutter_actor_set_pivot_point (box, 128, 64);
    

    Of course, if you do already have the ClutterPoint, you can also just use point.x and point.y instead of 128 and 64.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just started playing around with ice_cube I've got a weekly schedule (with a granularity
I've just started playing around in Haskell. After years of Ruby, I got used
I just started playing around with knockout and I have a question. Here's part
I recently just started playing around in PHP and got myself a small project/homework.
I have just started playing around with Log4Net... I now want to send an
I just started playing around with Unicorn and NGINX set up (any full-blown reference
I just started playing around with threading today and I ran into something that
I just started playing around with the 960 CSS framework and found that it
I'm just started on playing around with the canvas HTML5-object. For the sake of
I'm just getting started with ASP.NET MVC 2, and playing around with Validation. Let's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.