2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_SETTINGS_H
4 #define _GTKMM_SETTINGS_H
12 * Copyright (C) 1998-2002 The gtkmm Development Team
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Library General Public
16 * License as published by the Free Software Foundation; either
17 * version 2 of the License, or (at your option) any later version.
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Library General Public License for more details.
24 * You should have received a copy of the GNU Library General Public
25 * License along with this library; if not, write to the Free
26 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30 #include <gtkmm/toolbar.h>
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 typedef struct _GtkSettings GtkSettings;
35 typedef struct _GtkSettingsClass GtkSettingsClass;
36 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
40 { class Settings_Class; } // namespace Gtk
45 class Settings : public Glib::Object
48 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51 typedef Settings CppObjectType;
52 typedef Settings_Class CppClassType;
53 typedef GtkSettings BaseObjectType;
54 typedef GtkSettingsClass BaseClassType;
56 private: friend class Settings_Class;
57 static CppClassType settings_class_;
61 Settings(const Settings&);
62 Settings& operator=(const Settings&);
65 explicit Settings(const Glib::ConstructParams& construct_params);
66 explicit Settings(GtkSettings* castitem);
68 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
73 #ifndef DOXYGEN_SHOULD_SKIP_THIS
74 static GType get_type() G_GNUC_CONST;
75 static GType get_base_type() G_GNUC_CONST;
78 ///Provides access to the underlying C GObject.
79 GtkSettings* gobj() { return reinterpret_cast<GtkSettings*>(gobject_); }
81 ///Provides access to the underlying C GObject.
82 const GtkSettings* gobj() const { return reinterpret_cast<GtkSettings*>(gobject_); }
84 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
85 GtkSettings* gobj_copy();
95 static Glib::RefPtr<Settings> get_default();
98 /** Gets the Gtk::Settings object for @a screen , creating it if necessary.
99 * @param screen A Gdk::Screen.
100 * @return A Gtk::Settings object.
104 static Glib::RefPtr<Settings> get_for_screen(const Glib::RefPtr<Gdk::Screen>& screen);
106 /** Maximum time allowed between two clicks for them to be considered a double click (in milliseconds).
108 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
109 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
110 * the value of the property changes.
112 Glib::PropertyProxy<int> property_gtk_double_click_time() ;
114 /** Maximum time allowed between two clicks for them to be considered a double click (in milliseconds).
116 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
117 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
118 * the value of the property changes.
120 Glib::PropertyProxy_ReadOnly<int> property_gtk_double_click_time() const;
122 /** Maximum distance allowed between two clicks for them to be considered a double click (in pixels).
124 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
125 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
126 * the value of the property changes.
128 Glib::PropertyProxy<int> property_gtk_double_click_distance() ;
130 /** Maximum distance allowed between two clicks for them to be considered a double click (in pixels).
132 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
133 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
134 * the value of the property changes.
136 Glib::PropertyProxy_ReadOnly<int> property_gtk_double_click_distance() const;
138 /** Whether the cursor should blink.
140 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
141 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
142 * the value of the property changes.
144 Glib::PropertyProxy<bool> property_gtk_cursor_blink() ;
146 /** Whether the cursor should blink.
148 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
149 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
150 * the value of the property changes.
152 Glib::PropertyProxy_ReadOnly<bool> property_gtk_cursor_blink() const;
154 /** Length of the cursor blink cycle
156 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
157 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
158 * the value of the property changes.
160 Glib::PropertyProxy<int> property_gtk_cursor_blink_time() ;
162 /** Length of the cursor blink cycle
164 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
165 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
166 * the value of the property changes.
168 Glib::PropertyProxy_ReadOnly<int> property_gtk_cursor_blink_time() const;
170 /** Whether two cursors should be displayed for mixed left-to-right and right-to-left text.
172 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
173 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
174 * the value of the property changes.
176 Glib::PropertyProxy<bool> property_gtk_split_cursor() ;
178 /** Whether two cursors should be displayed for mixed left-to-right and right-to-left text.
180 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
181 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
182 * the value of the property changes.
184 Glib::PropertyProxy_ReadOnly<bool> property_gtk_split_cursor() const;
186 /** Name of theme RC file to load.
188 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
189 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
190 * the value of the property changes.
192 Glib::PropertyProxy<Glib::ustring> property_gtk_theme_name() ;
194 /** Name of theme RC file to load.
196 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
197 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
198 * the value of the property changes.
200 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_gtk_theme_name() const;
202 /** Name of key theme RC file to load.
204 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
205 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
206 * the value of the property changes.
208 Glib::PropertyProxy<Glib::ustring> property_gtk_key_theme_name() ;
210 /** Name of key theme RC file to load.
212 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
213 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
214 * the value of the property changes.
216 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_gtk_key_theme_name() const;
218 /** Keybinding to activate the menu bar.
220 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
221 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
222 * the value of the property changes.
224 Glib::PropertyProxy<Glib::ustring> property_gtk_menu_bar_accel() ;
226 /** Keybinding to activate the menu bar.
228 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
229 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
230 * the value of the property changes.
232 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_gtk_menu_bar_accel() const;
234 /** Number of pixels the cursor can move before dragging.
236 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
237 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
238 * the value of the property changes.
240 Glib::PropertyProxy<int> property_gtk_dnd_drag_threshold() ;
242 /** Number of pixels the cursor can move before dragging.
244 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
245 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
246 * the value of the property changes.
248 Glib::PropertyProxy_ReadOnly<int> property_gtk_dnd_drag_threshold() const;
250 /** Name of default font to use.
252 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
253 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
254 * the value of the property changes.
256 Glib::PropertyProxy<Glib::ustring> property_gtk_font_name() ;
258 /** Name of default font to use.
260 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
261 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
262 * the value of the property changes.
264 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_gtk_font_name() const;
266 /** Whether to antialias Xft fonts; 0=no
268 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
269 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
270 * the value of the property changes.
272 Glib::PropertyProxy<int> property_gtk_xft_antialias() ;
274 /** Whether to antialias Xft fonts; 0=no
276 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
277 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
278 * the value of the property changes.
280 Glib::PropertyProxy_ReadOnly<int> property_gtk_xft_antialias() const;
282 /** Whether to hint Xft fonts; 0=no
284 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
285 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
286 * the value of the property changes.
288 Glib::PropertyProxy<int> property_gtk_xft_hinting() ;
290 /** Whether to hint Xft fonts; 0=no
292 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
293 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
294 * the value of the property changes.
296 Glib::PropertyProxy_ReadOnly<int> property_gtk_xft_hinting() const;
298 /** What degree of hinting to use; none
300 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
301 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
302 * the value of the property changes.
304 Glib::PropertyProxy<Glib::ustring> property_gtk_xft_hintstyle() ;
306 /** What degree of hinting to use; none
308 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
309 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
310 * the value of the property changes.
312 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_gtk_xft_hintstyle() const;
314 /** Type of subpixel antialiasing; none
316 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
317 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
318 * the value of the property changes.
320 Glib::PropertyProxy<Glib::ustring> property_gtk_xft_rgba() ;
322 /** Type of subpixel antialiasing; none
324 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
325 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
326 * the value of the property changes.
328 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_gtk_xft_rgba() const;
330 /** Resolution for Xft
332 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
333 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
334 * the value of the property changes.
336 Glib::PropertyProxy<int> property_gtk_xft_dpi() ;
338 /** Resolution for Xft
340 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
341 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
342 * the value of the property changes.
344 Glib::PropertyProxy_ReadOnly<int> property_gtk_xft_dpi() const;
350 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
351 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
352 * the value of the property changes.
354 Glib::PropertyProxy<ToolbarStyle> property_gtk_toolbar_style() ;
358 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
359 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
360 * the value of the property changes.
362 Glib::PropertyProxy_ReadOnly<ToolbarStyle> property_gtk_toolbar_style() const;
366 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
367 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
368 * the value of the property changes.
370 Glib::PropertyProxy<IconSize> property_gtk_toolbar_icon_size() ;
374 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
375 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
376 * the value of the property changes.
378 Glib::PropertyProxy_ReadOnly<IconSize> property_gtk_toolbar_icon_size() const;
384 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
385 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
386 * the value of the property changes.
388 Glib::PropertyProxy<bool> property_gtk_can_change_accels() ;
392 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
393 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
394 * the value of the property changes.
396 Glib::PropertyProxy_ReadOnly<bool> property_gtk_can_change_accels() const;
402 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
403 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
404 * the value of the property changes.
406 Glib::PropertyProxy<bool> property_gtk_entry_select_on_focus() ;
410 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
411 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
412 * the value of the property changes.
414 Glib::PropertyProxy_ReadOnly<bool> property_gtk_entry_select_on_focus() const;
417 // from GtkColorSelection
420 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
421 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
422 * the value of the property changes.
424 Glib::PropertyProxy<Glib::ustring> property_gtk_color_palette() ;
428 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
429 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
430 * the value of the property changes.
432 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_gtk_color_palette() const;
438 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
439 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
440 * the value of the property changes.
442 Glib::PropertyProxy<bool> property_gtk_button_images() ;
446 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
447 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
448 * the value of the property changes.
450 Glib::PropertyProxy_ReadOnly<bool> property_gtk_button_images() const;
454 /** Name of icon theme to use.
456 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
457 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
458 * the value of the property changes.
460 Glib::PropertyProxy<Glib::ustring> property_gtk_icon_theme_name() ;
462 /** Name of icon theme to use.
464 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
465 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
466 * the value of the property changes.
468 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_gtk_icon_theme_name() const;
470 /** List of icon sizes gtk-menu=16
472 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
473 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
474 * the value of the property changes.
476 Glib::PropertyProxy<Glib::ustring> property_gtk_icon_sizes() ;
478 /** List of icon sizes gtk-menu=16
480 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
481 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
482 * the value of the property changes.
484 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_gtk_icon_sizes() const;
490 //C++ methods used to invoke GTK+ virtual functions:
493 //GTK+ Virtual Functions (override these to change behaviour):
495 //Default Signal Handlers::
500 } /* namespace Gtk */
505 /** @relates Gtk::Settings
506 * @param object The C instance
507 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
508 * @result A C++ instance that wraps this C instance.
510 Glib::RefPtr<Gtk::Settings> wrap(GtkSettings* object, bool take_copy = false);
514 #endif /* _GTKMM_SETTINGS_H */