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);
496 #ifdef GTKMM_ATKMM_ENABLED
498 virtual Glib::RefPtr<Atk::Object> on_get_accessible();
501 virtual void on_screen_changed(const Glib::RefPtr<Gdk::Screen>& previous_screen);
560 #ifndef GTKMM_DISABLE_DEPRECATED
633 #ifndef GTKMM_DISABLE_DEPRECATED
719 void set_accel_path(
const Glib::ustring& accel_path,
const Glib::RefPtr<AccelGroup>& accel_group);
882 #ifndef GTKMM_DISABLE_DEPRECATED
941 #ifndef GTKMM_DISABLE_DEPRECATED
1798 #ifdef GTKMM_ATKMM_ENABLED
1815 Glib::RefPtr<Atk::Object> get_accessible();
1819 #ifdef GTKMM_ATKMM_ENABLED
1836 Glib::RefPtr<const Atk::Object> get_accessible()
const;
2090 template <
class PropertyType>
2266 #ifndef GTKMM_DISABLE_DEPRECATED
2336 void path(Glib::ustring& path, Glib::ustring& path_reversed);
2337 void class_path(Glib::ustring& path, Glib::ustring& path_reversed);
2396 #ifndef GTKMM_DISABLE_DEPRECATED
2398 void drag_get_data(
const Glib::RefPtr<Gdk::DragContext>& context, Glib::ustring& target, guint32 time);
2402 void drag_get_data(
const Glib::RefPtr<Gdk::DragContext>& context,
const Glib::ustring& target, guint32 time);
2430 Glib::ustring
drag_dest_find_target(
const Glib::RefPtr<Gdk::DragContext>& context,
const Glib::RefPtr<TargetList>& target_list)
const;
2502 void drag_source_set_icon(
const Glib::RefPtr<Gdk::Colormap>& colormap,
const Glib::RefPtr<Gdk::Pixmap>&
pixmap,
const Glib::RefPtr<Gdk::Bitmap>& mask);
2751 #ifndef GTKMM_DISABLE_DEPRECATED
3522 Glib::SignalProxy4< bool,const Glib::RefPtr<Gdk::DragContext>&,int,int,guint >
signal_drag_drop();
3554 #ifdef GTKMM_ATKMM_ENABLED
3555 #ifndef GTKMM_DISABLE_DEPRECATED
3564 Glib::SignalProxy0< Glib::RefPtr<Atk::Object> > signal_get_accessible();
3956 #ifdef GTKMM_ATKMM_ENABLED
3957 virtual Glib::RefPtr<Atk::Object> get_accessible_vfunc();
4064 #ifndef DOXYGEN_SHOULD_SKIP_THIS
4067 template <
class PropertyType>
4068 void Widget::get_style_property(
const Glib::ustring& the_property_name, PropertyType& value)
const
4070 Glib::Value<PropertyType> property_value;
4071 property_value.init(Glib::Value<PropertyType>::value_type());
4073 this->get_style_property_value(the_property_name, property_value);
4075 value = property_value.get();
GtkImageIconNameData name
GtkImagePixmapData pixmap
GtkImagePixbufData pixbuf
PBD::PropertyDescriptor< uint32_t > color
PBD::PropertyDescriptor< bool > region
GtkRequisition Requisition
Glib::ArrayHandle< TargetEntry, TargetEntry_Traits > ArrayHandle_TargetEntry
Gdk::Rectangle Allocation
link region and track selection