summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/FbWindow.cc33
-rw-r--r--src/FbTk/FbWindow.hh18
2 files changed, 49 insertions, 2 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index ed97ecc..722b414 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWindow.cc,v 1.19 2003/05/19 08:27:49 rathnor Exp $ 22// $Id: FbWindow.cc,v 1.20 2003/05/19 22:38:55 fluxgen Exp $
23 23
24#include "FbWindow.hh" 24#include "FbWindow.hh"
25#include "EventManager.hh" 25#include "EventManager.hh"
@@ -188,6 +188,37 @@ void FbWindow::unsetCursor() {
188 XUndefineCursor(s_display, window()); 188 XUndefineCursor(s_display, window());
189} 189}
190 190
191
192bool FbWindow::property(Atom property,
193 long long_offset, long long_length,
194 bool do_delete,
195 Atom req_type,
196 Atom *actual_type_return,
197 int *actual_format_return,
198 unsigned long *nitems_return,
199 unsigned long *bytes_after_return,
200 unsigned char **prop_return) const {
201 if (XGetWindowProperty(s_display, window(),
202 property, long_offset, long_length, do_delete,
203 req_type, actual_type_return,
204 actual_format_return, nitems_return,
205 bytes_after_return, prop_return) == Success)
206 return true;
207
208 return false;
209}
210
211void FbWindow::changeProperty(Atom property, Atom type,
212 int format,
213 int mode,
214 unsigned char *data,
215 int nelements) {
216
217 XChangeProperty(s_display, m_window, property, type,
218 format, mode,
219 data, nelements);
220}
221
191int FbWindow::screenNumber() const { 222int FbWindow::screenNumber() const {
192 return m_screen_num; 223 return m_screen_num;
193} 224}
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh
index f8a5505..45928c0 100644
--- a/src/FbTk/FbWindow.hh
+++ b/src/FbTk/FbWindow.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWindow.hh,v 1.16 2003/05/17 10:42:34 fluxgen Exp $ 22// $Id: FbWindow.hh,v 1.17 2003/05/19 22:38:54 fluxgen Exp $
23 23
24#ifndef FBTK_FBWINDOW_HH 24#ifndef FBTK_FBWINDOW_HH
25#define FBTK_FBWINDOW_HH 25#define FBTK_FBWINDOW_HH
@@ -90,6 +90,22 @@ public:
90 /// uses the parents cursor instead 90 /// uses the parents cursor instead
91 void unsetCursor(); 91 void unsetCursor();
92 92
93 bool property(Atom property,
94 long long_offset, long long_length,
95 bool do_delete,
96 Atom req_type,
97 Atom *actual_type_return,
98 int *actual_format_return,
99 unsigned long *nitems_return,
100 unsigned long *bytes_after_return,
101 unsigned char **prop_return) const;
102
103 void changeProperty(Atom property, Atom type,
104 int format,
105 int mode,
106 unsigned char *data,
107 int nelements);
108
93 /// @return parent FbWindow 109 /// @return parent FbWindow
94 const FbWindow *parent() const { return m_parent; } 110 const FbWindow *parent() const { return m_parent; }
95 /// @return real X window 111 /// @return real X window