1 #ifndef _GLIBMM_PRIORITIES_H 2 #define _GLIBMM_PRIORITIES_H 3 4 /* Copyright (C) 2002-2008 The gtkmm Development Team 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 namespace Glib 21 { 22 23 enum 24 { 25 /*! Use this for high priority event sources. It is not used within 26 * GLib or GTK+.<br><br> 27 */ 28 PRIORITY_HIGH = -100, 29 30 /*! Use this for default priority event sources. In glibmm this 31 * priority is used by default when installing timeout handlers with 32 * SignalTimeout::connect(). In GDK this priority is used for events 33 * from the X server.<br><br> 34 */ 35 PRIORITY_DEFAULT = 0, 36 37 /*! Use this for high priority idle functions. GTK+ uses 38 * <tt>PRIORITY_HIGH_IDLE + 10</tt> for resizing operations, and 39 * <tt>PRIORITY_HIGH_IDLE + 20</tt> for redrawing operations. 40 * (This is done to ensure that any pending resizes are processed before 41 * any pending redraws, so that widgets are not redrawn twice unnecessarily.) 42 * <br><br> 43 */ 44 PRIORITY_HIGH_IDLE = 100, 45 46 /*! Use this for default priority idle functions. In glibmm this priority is 47 * used by default when installing idle handlers with SignalIdle::connect(). 48 * <br><br> 49 */ 50 PRIORITY_DEFAULT_IDLE = 200, 51 52 /*! Use this for very low priority background tasks. It is not used within 53 * GLib or GTK+. 54 */ 55 PRIORITY_LOW = 300 56 }; 57 58 } // namespace Glib 59 60 #endif //#ifndef _GLIBMM_PRIORITIES_H 61