3 #ifndef _GTKMM_WIDGET_H
4 #define _GTKMM_WIDGET_H
6 #include <gtkmmconfig.h>
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
30 #include <pangomm/context.h>
31 #include <pangomm/layout.h>
33 #ifdef GTKMM_ATKMM_ENABLED
34 #include <atkmm/object.h>
35 #include <atkmm/implementor.h>
54 #ifndef DOXYGEN_SHOULD_SKIP_THIS
61 #ifndef DOXYGEN_SHOULD_SKIP_THIS
68 {
class Widget_Class; }
97 {
return static_cast<DestDefaults>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
101 {
return static_cast<DestDefaults>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
105 {
return static_cast<DestDefaults>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
109 {
return static_cast<DestDefaults>(~static_cast<unsigned>(flags)); }
113 {
return (lhs =
static_cast<DestDefaults>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
117 {
return (lhs =
static_cast<DestDefaults>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
121 {
return (lhs =
static_cast<DestDefaults>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
126 #ifndef DOXYGEN_SHOULD_SKIP_THIS
134 static GType value_type() G_GNUC_CONST;
181 {
return static_cast<WidgetFlags>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
185 {
return static_cast<WidgetFlags>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
189 {
return static_cast<WidgetFlags>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
193 {
return static_cast<WidgetFlags>(~static_cast<unsigned>(flags)); }
197 {
return (lhs =
static_cast<WidgetFlags>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
201 {
return (lhs =
static_cast<WidgetFlags>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
205 {
return (lhs =
static_cast<WidgetFlags>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
210 #ifndef DOXYGEN_SHOULD_SKIP_THIS
218 static GType value_type() G_GNUC_CONST;
241 #ifndef DOXYGEN_SHOULD_SKIP_THIS
249 static GType value_type() G_GNUC_CONST;
276 #ifndef DOXYGEN_SHOULD_SKIP_THIS
284 static GType value_type() G_GNUC_CONST;
333 #ifdef GTKMM_ATKMM_ENABLED
334 ,
public Atk::Implementor
338 #ifndef DOXYGEN_SHOULD_SKIP_THIS
339 typedef Widget CppObjectType;
347 #ifndef DOXYGEN_SHOULD_SKIP_THIS
351 static CppClassType widget_class_;
358 explicit Widget(
const Glib::ConstructParams& construct_params);
364 #ifndef DOXYGEN_SHOULD_SKIP_THIS
365 static GType get_type() G_GNUC_CONST;
368 static GType get_base_type() G_GNUC_CONST;
480 virtual void on_drag_end(
const Glib::RefPtr<Gdk::DragContext>& context);
486 virtual void on_drag_leave(
const Glib::RefPtr<Gdk::DragContext>& context, guint time);
488 virtual bool on_drag_motion(
const Glib::RefPtr<Gdk::DragContext>& context,
int x,
int y, guint time);
490 virtual bool on_drag_drop(
const Glib::RefPtr<Gdk::DragContext>& context,
int x,
int y, guint time);
493 #ifdef GTKMM_ATKMM_ENABLED
495 virtual Glib::RefPtr<Atk::Object> on_get_accessible();
498 virtual void on_screen_changed(const Glib::RefPtr<Gdk::Screen>& previous_screen);
557 #ifndef GTKMM_DISABLE_DEPRECATED
630 #ifndef GTKMM_DISABLE_DEPRECATED
716 void set_accel_path(
const Glib::ustring& accel_path,
const Glib::RefPtr<AccelGroup>& accel_group);
879 #ifndef GTKMM_DISABLE_DEPRECATED
938 #ifndef GTKMM_DISABLE_DEPRECATED
1795 #ifdef GTKMM_ATKMM_ENABLED
1812 Glib::RefPtr<Atk::Object> get_accessible();
1816 #ifdef GTKMM_ATKMM_ENABLED
1833 Glib::RefPtr<const Atk::Object> get_accessible()
const;
2087 template <
class PropertyType>
2263 #ifndef GTKMM_DISABLE_DEPRECATED
2333 void path(Glib::ustring& path, Glib::ustring& path_reversed);
2334 void class_path(Glib::ustring& path, Glib::ustring& path_reversed);
2393 #ifndef GTKMM_DISABLE_DEPRECATED
2395 void drag_get_data(
const Glib::RefPtr<Gdk::DragContext>& context, Glib::ustring& target, guint32 time);
2399 void drag_get_data(
const Glib::RefPtr<Gdk::DragContext>& context,
const Glib::ustring& target, guint32 time);
2427 Glib::ustring
drag_dest_find_target(
const Glib::RefPtr<Gdk::DragContext>& context,
const Glib::RefPtr<TargetList>& target_list)
const;
2499 void drag_source_set_icon(
const Glib::RefPtr<Gdk::Colormap>& colormap,
const Glib::RefPtr<Gdk::Pixmap>&
pixmap,
const Glib::RefPtr<Gdk::Bitmap>& mask);
2748 #ifndef GTKMM_DISABLE_DEPRECATED
3519 Glib::SignalProxy4< bool,const Glib::RefPtr<Gdk::DragContext>&,int,int,guint >
signal_drag_drop();
3551 #ifdef GTKMM_ATKMM_ENABLED
3552 #ifndef GTKMM_DISABLE_DEPRECATED
3561 Glib::SignalProxy0< Glib::RefPtr<Atk::Object> > signal_get_accessible();
3953 #ifdef GTKMM_ATKMM_ENABLED
3954 virtual Glib::RefPtr<Atk::Object> get_accessible_vfunc();
4061 #ifndef DOXYGEN_SHOULD_SKIP_THIS
4064 template <
class PropertyType>
4065 void Widget::get_style_property(
const Glib::ustring& the_property_name, PropertyType& value)
const
4067 Glib::Value<PropertyType> property_value;
4068 property_value.init(Glib::Value<PropertyType>::value_type());
4070 this->get_style_property_value(the_property_name, property_value);
4072 value = property_value.get();
GtkImageIconNameData name
GtkImagePixmapData pixmap
GtkImagePixbufData pixbuf
PBD::PropertyDescriptor< uint32_t > color
GtkRequisition Requisition
Glib::ArrayHandle< TargetEntry, TargetEntry_Traits > ArrayHandle_TargetEntry
Gdk::Rectangle Allocation
link region and track selection