/usr/include/gtkmm-2.4/gtkmm/toolitemgroup.h is in libgtkmm-2.4-dev 1:2.24.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 | // -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GTKMM_TOOLITEMGROUP_H
#define _GTKMM_TOOLITEMGROUP_H
#include <glibmm.h>
/*
* Copyright (C) 2009 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gtkmm/container.h>
#include <gtkmm/toolitem.h>
#include <gtkmm/toolshell.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GtkToolItemGroup GtkToolItemGroup;
typedef struct _GtkToolItemGroupClass GtkToolItemGroupClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gtk
{ class ToolItemGroup_Class; } // namespace Gtk
namespace Gtk
{
/** A ToolItemGroup is used together with ToolPalette to add ToolItems to a
* palette-like container with different categories and drag and drop support.
*
* @newin{2,20}
* @ingroup Widgets
* @ingroup Containers
*/
class ToolItemGroup
: public Container,
public ToolShell
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef ToolItemGroup CppObjectType;
typedef ToolItemGroup_Class CppClassType;
typedef GtkToolItemGroup BaseObjectType;
typedef GtkToolItemGroupClass BaseClassType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
virtual ~ToolItemGroup();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
private:
friend class ToolItemGroup_Class;
static CppClassType toolitemgroup_class_;
// noncopyable
ToolItemGroup(const ToolItemGroup&);
ToolItemGroup& operator=(const ToolItemGroup&);
protected:
explicit ToolItemGroup(const Glib::ConstructParams& construct_params);
explicit ToolItemGroup(GtkToolItemGroup* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GtkObject.
GtkToolItemGroup* gobj() { return reinterpret_cast<GtkToolItemGroup*>(gobject_); }
///Provides access to the underlying C GtkObject.
const GtkToolItemGroup* gobj() const { return reinterpret_cast<GtkToolItemGroup*>(gobject_); }
public:
//C++ methods used to invoke GTK+ virtual functions:
protected:
//GTK+ Virtual Functions (override these to change behaviour):
//Default Signal Handlers::
private:
public:
explicit ToolItemGroup(const Glib::ustring& label = Glib::ustring());
/** Sets the label of the tool item group. The label is displayed in the header
* of the group.
*
* @newin{2,20}
* @param label The new human-readable label of of the group.
*/
void set_label(const Glib::ustring& label);
/** Sets the label of the tool item group.
* The label widget is displayed in the header of the group, in place
* of the usual label.
*
* @newin{2,20}
* @param label_widget The widget to be displayed in place of the usual label.
*/
void set_label_widget(Widget& label_widget);
/** Sets whether the @a group should be collapsed or expanded.
*
* @newin{2,20}
* @param collapsed Whether the @a group should be collapsed or expanded.
*/
void set_collapsed(bool collapsed = true);
/** Sets the ellipsization mode which should be used by labels in @a group.
*
* @newin{2,20}
* @param ellipsize The Pango::EllipsizeMode labels in @a group should use.
*/
void set_ellipsize(Pango::EllipsizeMode ellipsize);
/** Set the button relief of the group header.
* See Gtk::Button::set_relief() for details.
*
* @newin{2,20}
* @param style The Gtk::ReliefStyle.
*/
void set_header_relief(ReliefStyle style);
/** Gets the label of @a group.
*
* @newin{2,20}
* @return The label of @a group. The label is an internal string of @a group
* and must not be modified. Note that <tt>0</tt> is returned if a custom
* label has been set with set_label_widget().
*/
Glib::ustring get_label() const;
/** Gets the label widget of @a group.
* See set_label_widget().
*
* @newin{2,20}
* @return The label widget of @a group.
*/
Widget* get_label_widget();
/** Gets the label widget of @a group.
* See set_label_widget().
*
* @newin{2,20}
* @return The label widget of @a group.
*/
const Widget* get_label_widget() const;
/** Gets whether @a group is collapsed or expanded.
*
* @newin{2,20}
* @return <tt>true</tt> if @a group is collapsed, <tt>false</tt> if it is expanded.
*/
bool get_collapsed() const;
/** Gets the ellipsization mode of @a group.
*
* @newin{2,20}
* @return The Pango::EllipsizeMode of @a group.
*/
Pango::EllipsizeMode get_ellipsize() const;
/** Gets the relief mode of the header button of @a group.
*
* @newin{2,20}
* @return The Gtk::ReliefStyle.
*/
ReliefStyle get_header_relief() const;
/** Inserts @a item at @a position in the list of children of @a group.
*
* @newin{2,20}
* @param item The Gtk::ToolItem to insert into @a group.
* @param position The position of @a item in @a group, starting with 0.
* The position -1 means end of list.
*/
void insert(ToolItem& item, int position);
/** Inserts @a item at the end of the list of children of the group.
*
* @param item The ToolItem to insert into the group.
*/
void insert(ToolItem& item);
/** Sets the position of @a item in the list of children of @a group.
*
* @newin{2,20}
* @param item The Gtk::ToolItem to move to a new position, should
* be a child of @a group.
* @param position The new position of @a item in @a group, starting with 0.
* The position -1 means end of list.
*/
void set_item_position(ToolItem& item, int position);
/** Gets the position of @a item in @a group as index.
*
* @newin{2,20}
* @param item A Gtk::ToolItem.
* @return The index of @a item in @a group or -1 if @a item is no child of @a group.
*/
int get_item_position(const ToolItem& item) const;
/** Gets the number of tool items in @a group.
*
* @newin{2,20}
* @return The number of tool items in @a group.
*/
guint get_n_items() const;
/** Gets the tool item at @a index in group.
*
* @newin{2,20}
* @param index The index.
* @return The Gtk::ToolItem at index.
*/
ToolItem* get_nth_item(guint index);
/** Gets the tool item at @a index in group.
*
* @newin{2,20}
* @param index The index.
* @return The Gtk::ToolItem at index.
*/
const ToolItem* get_nth_item(guint index) const;
/** Gets the tool item at position (x, y).
*
* @newin{2,20}
* @param x The x position.
* @param y The y position.
* @return The Gtk::ToolItem at position (x, y).
*/
ToolItem* get_drop_item(int x, int y);
/** Gets the tool item at position (x, y).
*
* @newin{2,20}
* @param x The x position.
* @param y The y position.
* @return The Gtk::ToolItem at position (x, y).
*/
ToolItem* get_drop_item(int x, int y) const;
#ifdef GLIBMM_PROPERTIES_ENABLED
/** The human-readable title of this item group.
*
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
* the value of the property changes.
*/
Glib::PropertyProxy<Glib::ustring> property_label() ;
#endif //#GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
/** The human-readable title of this item group.
*
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
* the value of the property changes.
*/
Glib::PropertyProxy_ReadOnly<Glib::ustring> property_label() const;
#endif //#GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
/** A widget to display in place of the usual label.
*
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
* the value of the property changes.
*/
Glib::PropertyProxy<Gtk::Widget*> property_label_widget() ;
#endif //#GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
/** A widget to display in place of the usual label.
*
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
* the value of the property changes.
*/
Glib::PropertyProxy_ReadOnly<Gtk::Widget*> property_label_widget() const;
#endif //#GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
/** Whether the group has been collapsed and items are hidden.
*
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
* the value of the property changes.
*/
Glib::PropertyProxy<bool> property_collapsed() ;
#endif //#GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
/** Whether the group has been collapsed and items are hidden.
*
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
* the value of the property changes.
*/
Glib::PropertyProxy_ReadOnly<bool> property_collapsed() const;
#endif //#GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
/** Ellipsize for item group headers.
*
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
* the value of the property changes.
*/
Glib::PropertyProxy<Pango::EllipsizeMode> property_ellipsize() ;
#endif //#GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
/** Ellipsize for item group headers.
*
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
* the value of the property changes.
*/
Glib::PropertyProxy_ReadOnly<Pango::EllipsizeMode> property_ellipsize() const;
#endif //#GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
/** Relief of the group header button.
*
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
* the value of the property changes.
*/
Glib::PropertyProxy<ReliefStyle> property_header_relief() ;
#endif //#GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
/** Relief of the group header button.
*
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
* the value of the property changes.
*/
Glib::PropertyProxy_ReadOnly<ReliefStyle> property_header_relief() const;
#endif //#GLIBMM_PROPERTIES_ENABLED
};
} // namespace Gtk
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gtk::ToolItemGroup
*/
Gtk::ToolItemGroup* wrap(GtkToolItemGroup* object, bool take_copy = false);
} //namespace Glib
#endif /* _GTKMM_TOOLITEMGROUP_H */
|