00001 // -*- c++ -*- 00002 #ifndef _LIBCLUTTERMM_MAIN_H 00003 #define _LIBCLUTTERMM_MAIN_H 00004 /* 00005 * Copyright 2008 Jonathon Jongsma 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library; if not, write to the Free 00019 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00020 */ 00021 00022 #include <glibmm.h> 00023 #include <cluttermm/actor.h> 00024 00025 namespace Clutter 00026 { 00027 00030 void main(); 00031 00034 void main_quit(); 00035 00039 int main_level(); 00040 00044 bool get_debug_enabled(); 00045 00052 bool get_show_fps(); 00053 00058 gulong get_timestamp(); 00059 00064 Glib::RefPtr<Actor> get_actor_by_gid(guint32 id); 00065 00069 void set_default_frame_rate(guint frames_per_sec); 00070 00076 guint get_default_frame_rate(); 00077 00091 void set_motion_events_enabled(bool enable); 00092 00096 bool get_motion_events_enabled(); 00097 00109 void set_motion_events_frequency(guint frequency); 00110 00117 guint get_motion_events_frequency(); 00118 00123 void clear_glyph_cache(); 00124 00130 void set_use_mipmapped_text(bool value); 00131 00136 bool get_use_mipmapped_text(); 00137 00142 Glib::RefPtr<Actor> get_keyboard_grab(); 00143 00148 Glib::RefPtr<Actor> get_pointer_grab(); 00149 00156 void grab_keyboard(const Glib::RefPtr<Actor>& actor); 00157 00167 void grab_pointer(const Glib::RefPtr<Actor>& actor); 00168 00171 void ungrab_keyboard(); 00172 00175 void ungrab_pointer(); 00176 00184 void grab_pointer_for_device(const Glib::RefPtr<Actor>& actor, int id); 00185 00190 void ungrab_pointer_for_device(int id); 00191 00192 #if 0 00193 // As this function should never be used by applications, we don't wrap it 00194 // until someone really needs it. 00198 void do_event(Event* event); 00199 #endif 00200 00201 } //namespace Clutter 00202 00203 #endif //_LIBCLUTTERMM_MAIN_H 00204