reparent
This commit is contained in:
parent
859fafeecf
commit
091748bd46
2 changed files with 8 additions and 2 deletions
src/FbTk
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: FbWindow.cc,v 1.23 2003/08/04 12:44:43 fluxgen Exp $
|
// $Id: FbWindow.cc,v 1.24 2003/08/15 13:52:06 fluxgen Exp $
|
||||||
|
|
||||||
#include "FbWindow.hh"
|
#include "FbWindow.hh"
|
||||||
|
|
||||||
|
@ -319,6 +319,11 @@ void FbWindow::unsetCursor() {
|
||||||
XUndefineCursor(s_display, window());
|
XUndefineCursor(s_display, window());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FbWindow::reparent(const FbWindow &parent, int x, int y) {
|
||||||
|
XReparentWindow(s_display, window(), parent.window(), x, y);
|
||||||
|
m_parent = &parent;
|
||||||
|
updateGeometry();
|
||||||
|
}
|
||||||
|
|
||||||
bool FbWindow::property(Atom property,
|
bool FbWindow::property(Atom property,
|
||||||
long long_offset, long long_length,
|
long long_offset, long long_length,
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: FbWindow.hh,v 1.21 2003/08/13 09:28:44 fluxgen Exp $
|
// $Id: FbWindow.hh,v 1.22 2003/08/15 13:52:06 fluxgen Exp $
|
||||||
|
|
||||||
#ifndef FBTK_FBWINDOW_HH
|
#ifndef FBTK_FBWINDOW_HH
|
||||||
#define FBTK_FBWINDOW_HH
|
#define FBTK_FBWINDOW_HH
|
||||||
|
@ -101,6 +101,7 @@ public:
|
||||||
void setCursor(Cursor cur);
|
void setCursor(Cursor cur);
|
||||||
/// uses the parents cursor instead
|
/// uses the parents cursor instead
|
||||||
void unsetCursor();
|
void unsetCursor();
|
||||||
|
void reparent(const FbWindow &parent, int x, int y);
|
||||||
|
|
||||||
bool property(Atom property,
|
bool property(Atom property,
|
||||||
long long_offset, long long_length,
|
long long_offset, long long_length,
|
||||||
|
|
Loading…
Reference in a new issue