// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-#ifndef __atom_hh
-#define __atom_hh
+#ifndef __property_hh
+#define __property_hh
/*! @file property.hh
@brief Provides access to window properties
}
#include <vector>
+#include <string>
-#include "userstring.hh"
#include "screeninfo.hh"
namespace otk {
int size) const;
public:
+ //! A list of strings
+ typedef std::vector<std::string> StringVect;
+
//! Constructs a new Atom object
/*!
CAUTION: This constructor uses Display::display, so ensure that it is
@param value The string to set the property to
*/
void set(Window win, Atoms atom, StringType type,
- const userstring &value) const;
+ const std::string &value) const;
//! Sets a string-array property on a window to a new value
/*!
@param win The window id of the window on which to set the property's value
@param strings A list of strings to set the property to
*/
void set(Window win, Atoms atom, StringType type,
- const userstring::vector &strings) const;
+ const StringVect &strings) const;
//! Gets the value of a property on a window
/*!
@return true if retrieval of the specified property with the specified
type was successful; otherwise, false
*/
- bool get(Window win, Atoms atom, StringType type, userstring *value) const;
+ bool get(Window win, Atoms atom, StringType type, std::string *value) const;
//! Gets strings from the value of a property on a window
/*!
@param win The window id of the window to get the property value from
type was successful; otherwise, false
*/
bool get(Window win, Atoms atom, StringType type,
- unsigned long *nelements, userstring::vector *strings) const;
+ unsigned long *nelements, StringVect *strings) const;
//! Removes a property from a window
/*!
}
-#endif // __atom_hh
+#endif // __property_hh