7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
30 #include <glibmm/arrayhandle.h>
31 #include <glibmm/listhandle.h>
37 #if defined(ERROR) && !defined(GTKMM_MACRO_SHADOW_ERROR)
38 enum { GTKMM_MACRO_DEFINITION_ERROR =
ERROR };
40 enum {
ERROR = GTKMM_MACRO_DEFINITION_ERROR };
42 #define GTKMM_MACRO_SHADOW_ERROR 1
52 #define GDK_VERSION_GT(major,minor) ((GTK_MAJOR_VERSION>major)||(GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION>minor))
53 #define GDK_VERSION_GE(major,minor) ((GTK_MAJOR_VERSION>major)||(GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION>=minor))
54 #define GDK_VERSION_EQ(major,minor) ((GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION==minor))
55 #define GDK_VERSION_NE(major,minor) ((GTK_MAJOR_VERSION!=major)||(GTK_MINOR_VERSION!=minor))
56 #define GDK_VERSION_LE(major,minor) ((GTK_MAJOR_VERSION<major)||(GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION<=minor))
57 #define GDK_VERSION_LT(major,minor) ((GTK_MAJOR_VERSION<major)||(GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION<minor))
90 #ifndef DOXYGEN_SHOULD_SKIP_THIS
98 static GType value_type() G_GNUC_CONST;
144 {
return static_cast<ModifierType>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
148 {
return static_cast<ModifierType>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
152 {
return static_cast<ModifierType>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
156 {
return static_cast<ModifierType>(~static_cast<unsigned>(flags)); }
160 {
return (lhs =
static_cast<ModifierType>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
164 {
return (lhs =
static_cast<ModifierType>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
168 {
return (lhs =
static_cast<ModifierType>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
173 #ifndef DOXYGEN_SHOULD_SKIP_THIS
181 static GType value_type() G_GNUC_CONST;
207 #ifndef DOXYGEN_SHOULD_SKIP_THIS
215 static GType value_type() G_GNUC_CONST;
246 {
return static_cast<InputCondition>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
250 {
return static_cast<InputCondition>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
254 {
return static_cast<InputCondition>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
258 {
return static_cast<InputCondition>(~static_cast<unsigned>(flags)); }
262 {
return (lhs =
static_cast<InputCondition>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
266 {
return (lhs =
static_cast<InputCondition>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
270 {
return (lhs =
static_cast<InputCondition>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
275 #ifndef DOXYGEN_SHOULD_SKIP_THIS
283 static GType value_type() G_GNUC_CONST;
302 #ifndef DOXYGEN_SHOULD_SKIP_THIS
303 typedef Point CppObjectType;
314 void set_x(
int x) { gobject_.x = x; }
315 void set_y(
int y) { gobject_.y = y; }
317 int get_x()
const {
return gobject_.x; }
318 int get_y()
const {
return gobject_.y; }
335 {
return lhs.
equal(rhs); }
339 {
return !lhs.
equal(rhs); }
341 #ifndef DOXYGEN_SHOULD_SKIP_THIS
342 struct AtomStringTraits
344 typedef std::string CppType;
349 static void release_c_type(
GdkAtom) {}
353 static GdkAtom to_c_type (
const std::string& atom_name);
354 static std::string to_cpp_type(
GdkAtom atom);
360 typedef AtomStringTraits AtomString;
370 template <
typename T>
375 ScopedPtr(
const ScopedPtr<T>&);
376 ScopedPtr<T>& operator=(
const ScopedPtr<T>&);
379 ScopedPtr() : ptr_(0) {}
380 explicit ScopedPtr(T* ptr) : ptr_(ptr) {}
381 ~ScopedPtr() { g_free(ptr_); }
382 T* get()
const {
return ptr_; }
383 T** addr() {
return &ptr_; }
const Gdk::Point & wrap(const GdkPoint *object)
bool operator!=(const Point &lhs, const Point &rhs)
const GdkPoint * gobj() const
Provides access to the underlying C GObject.
bool equal(const Gdk::Point &rhs) const
Gdk::Point & wrap(GdkPoint *object)
GdkPoint * gobj()
Provides access to the underlying C GObject.
bool operator==(const Point &lhs, const Point &rhs)
struct _GdkAtom * GdkAtom
typedefG_BEGIN_DECLS struct _GdkPoint GdkPoint
typedefG_BEGIN_DECLS struct _GdkGeometry GdkGeometry
Glib::ArrayHandle< std::string, AtomStringTraits > ArrayHandle_AtomString
Glib::ListHandle< std::string, AtomStringTraits > ListHandle_AtomString
GdkNativeWindow NativeWindow