main.h

Go to the documentation of this file.
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 
00102 void clear_glyph_cache();
00103 
00104 //TODO: Documentation:
00105 
00106 void set_font_flags(FontFlags flags);
00107 
00108 FontFlags get_font_flags();
00109 
00110 Glib::RefPtr<Pango::FontMap> get_font_map();
00111 
00116 Glib::RefPtr<Actor> get_keyboard_grab();
00117 
00122 Glib::RefPtr<Actor> get_pointer_grab();
00123 
00130 void grab_keyboard(const Glib::RefPtr<Actor>& actor);
00131 
00141 void grab_pointer(const Glib::RefPtr<Actor>& actor);
00142 
00145 void ungrab_keyboard();
00146 
00149 void ungrab_pointer();
00150 
00158 void grab_pointer_for_device(const Glib::RefPtr<Actor>& actor, int id);
00159 
00164 void ungrab_pointer_for_device(int id);
00165 
00166 #if 0
00167 // As this function should never be used by applications, we don't wrap it
00168 // until someone really needs it.
00172 void do_event(Event* event);
00173 #endif
00174 
00175 } //namespace Clutter
00176 
00177 #endif //_LIBCLUTTERMM_MAIN_H
00178 

Generated on 26 Feb 2010 for cluttermm by  doxygen 1.6.1