Module: ClutterGdk
- Defined in:
- lib/clutter-gdk.rb
Overview
Instance Method Summary collapse
-
#default_display ⇒ Gdk::Display
Retrieves the pointer to the default display.
-
#disable_event_retrieval ⇒ nil
Disable the event retrieval in Clutter.
-
#display=(display) ⇒ nil
Sets the display connection Clutter should use; must be called before clutter_init(), clutter_init_with_args() or other functions pertaining Clutter's initialization process.
-
#get_stage_from_window(window) ⇒ Clutter::Stage
Gets the stage for a particular X window.
-
#get_stage_window(stage) ⇒ Gdk::Window
Gets the stages GdkWindow.
-
#handle_event(event) ⇒ Gdk::FilterReturn
This function processes a single GDK event; it can be used to hook into external event processing.
-
#set_stage_foreign(stage, window) ⇒ Boolean
Target the Clutter::Stage to use an existing external #GdkWindow.
-
#visual ⇒ Gdk::Visual
Retrieves the Gdk::Visual used by Clutter.
Instance Method Details
#default_display ⇒ Gdk::Display
Retrieves the pointer to the default display.
#disable_event_retrieval ⇒ nil
Disable the event retrieval in Clutter.
Callers of this function have to set up an event filter using the GDK API, and call clutter_gdk_handle_event().
This function should only be used when embedding Clutter into a GDK based toolkit.
#display=(display) ⇒ nil
Sets the display connection Clutter should use; must be called before clutter_init(), clutter_init_with_args() or other functions pertaining Clutter's initialization process.
If you are parsing the command line arguments by retrieving Clutter's GOption::Group with clutter_get_option_group() and calling g_option_context_parse() yourself, you should also call clutter_gdk_set_display() before g_option_context_parse().
#get_stage_from_window(window) ⇒ Clutter::Stage
Gets the stage for a particular X window.
#get_stage_window(stage) ⇒ Gdk::Window
Gets the stages GdkWindow.
#handle_event(event) ⇒ Gdk::FilterReturn
This function processes a single GDK event; it can be used to hook into external event processing
#set_stage_foreign(stage, window) ⇒ Boolean
Target the Clutter::Stage to use an existing external #GdkWindow
#visual ⇒ Gdk::Visual
Retrieves the Gdk::Visual used by Clutter.
This function should be used when embedding Clutter inside GDK-based foreign toolkits, to ensure that the visual applied to the Gdk::Window used to render the Clutter::Stage is the correct one.