-
public void base_init ()
-
public void cairo_set_source_color (Context cr, Color color)
Utility function for setting the source color of cr using a
Color. This function is the equivalent of:
-
public bool check_version (uint major, uint minor, uint micro)
Run-time version check, to check the version the Clutter library that an application is currently
linked against
-
public void clear_glyph_cache ()
Clears the internal cache of glyphs used by the Pango renderer. This will free up some memory and GL
texture resources. The cache will be automatically refilled as more text is drawn.
-
public void do_event (Event event)
Processes an event.
-
public bool events_pending ()
Checks if events are pending in the event queue.
-
public bool get_accessibility_enabled ()
Returns whether Clutter has accessibility support enabled. As least, a value of TRUE means that there
are a proper AtkUtil implementation available
-
public unowned Event get_current_event ()
If an event is currently being processed, return that event. This function is intended to be used to
access event state that might not be exposed by higher-level widgets. For example, to get the key modifier state from a Button
'clicked' event.
-
public uint32 get_current_event_time ()
Retrieves the timestamp of the last event, if there is an event or if the event has a timestamp.
-
public bool get_debug_enabled ()
Check if clutter has debugging turned on.
-
public weak Backend get_default_backend ()
Retrieves the default Backend used by Clutter. The
Backend holds backend-specific configuration options.
-
public uint get_default_frame_rate ()
-
public TextDirection get_default_text_direction ()
-
public FontFlags get_font_flags ()
-
public weak FontMap get_font_map ()
Retrieves the FontMap instance used by
Clutter. You can use the global font map object with the COGL Pango API.
-
public weak Actor get_keyboard_grab ()
Queries the current keyboard grab of clutter.
-
public bool get_motion_events_enabled ()
Gets whether the per-actor motion events are enabled.
-
public OptionGroup get_option_group ()
Returns a OptionGroup for the command
line arguments recognized by Clutter. You should add this group to your
OptionContext with add_group, if you are using
parse to parse your commandline arguments.
-
public OptionGroup get_option_group_without_init ()
Returns a OptionGroup for the command
line arguments recognized by Clutter. You should add this group to your
OptionContext with add_group, if you are using
parse to parse your commandline arguments.
-
public weak Actor get_pointer_grab ()
Queries the current pointer grab of clutter.
-
public unowned string get_script_id (Object gobject)
Retrieves the Clutter script id, if any.
-
public bool get_show_fps ()
Returns whether Clutter should print out the frames per second on the console. You can enable this
setting either using the CLUTTER_SHOW_FPS environment variable or passing the --clutter-show-fps command line
argument. *
-
public ulong get_timestamp ()
Returns the approximate number of microseconds passed since clutter was intialised.
-
public void grab_keyboard (Actor actor)
Grabs keyboard events, after the grab is done keyboard events (#ClutterActor::key-press-event and
key_release_event) are delivered to this actor directly. The
source set in the event will be the actor that would have received the event if the keyboard grab was not in effect.
-
public void grab_pointer (Actor actor)
Grabs pointer events, after the grab is done all pointer related events (press, motion, release,
enter, leave and scroll) are delivered to this actor directly without passing through both capture and bubble phases of the event
delivery chain. The source set in the event will be the actor that would have received the event if the pointer grab was not in
effect.
-
public void grab_pointer_for_device (Actor actor, int id_)
Grabs all the pointer events coming from the device id for actor.
-
public InitError init (ref string[]? argv)
Initialises everything needed to operate with Clutter and parses some standard command line options;
argc and argv are adjusted accordingly so your own code will never see those standard arguments.
-
public InitError init_with_args (ref string[]? argv, string? parameter_string, OptionEntry?[] entries, string? translation_domain) throws Error
This function does the same work as init. Additionally,
it allows you to add your own command line options, and it automatically generates nicely formatted --help output. Note
that your program will be terminated after writing out the help output. Also note that, in case of error, the error message will be
placed inside error instead of being printed on the display.
-
public uint32 keysym_to_unicode (uint keyval)
Converts keyval from a Clutter key symbol to the corresponding ISO10646 (Unicode)
character.
-
public void main ()
Starts the Clutter mainloop.
-
public int main_level ()
Retrieves the depth of the Clutter mainloop.
-
public void main_quit ()
Terminates the Clutter mainloop.
-
public void set_default_frame_rate (uint frames_per_sec)
Sets the default frame rate. This frame rate will be used to limit the number of frames drawn if
Clutter is not able to synchronize with the vertical refresh rate of the display. When synchronization is possible, this value is
ignored.
-
public void set_font_flags (FontFlags flags)
Sets the font quality options for subsequent text rendering operations.
-
public void set_motion_events_enabled (bool enable)
Sets whether per-actor motion events should be enabled or not on all
Stages managed by Clutter.
-
public uint threads_add_repaint_func (SourceFunc func, void* data, DestroyNotify notify)
-
public void threads_remove_repaint_func (uint handle_id)
-
public void ungrab_keyboard ()
Removes an existing grab of the keyboard.
-
public void ungrab_pointer ()
Removes an existing grab of the pointer.
-
public void ungrab_pointer_for_device (int id_)
Removes an existing grab of the pointer events for device id_.