Lines Matching defs:slave
20 * For each slave managed by Tk_MaintainGeometry, there is one of these
25 Tk_Window slave; /* The slave window being positioned. */
26 Tk_Window master; /* The master that determines slave's
28 * slave's parent. */
29 int x, y; /* Desired position of slave relative to
31 int width, height; /* Desired dimensions of slave. */
84 * of a given slave window.
234 * geometry for the slave into the coordinate system of the parent
235 * and respositions the slave if it isn't already at the right place.
237 * any of its ancestors up to the slave's parent) is mapped, unmapped,
238 * or moved, then the slave will be adjusted to match.
245 * of slave. Note: if slave was already managed for master by
255 Tk_MaintainGeometry(slave, master, x, y, width, height)
256 Tk_Window slave; /* Slave for geometry management. */
257 Tk_Window master; /* Master for slave; must be a descendant
258 * of slave's parent. */
259 int x, y; /* Desired position of slave within master. */
260 int width, height; /* Desired dimensions for slave. */
278 parent = Tk_Parent(slave);
291 * Create a MaintainSlave structure for the slave if there isn't
297 if (slavePtr->slave == slave) {
302 slavePtr->slave = slave;
306 Tk_CreateEventHandler(slave, StructureNotifyMask, MaintainSlaveProc,
311 * the windows between master and slave's parent (including master
312 * but not slave's parent). There may already be handlers for master
341 if ((x != Tk_X(slavePtr->slave))
342 || (y != Tk_Y(slavePtr->slave))
343 || (width != Tk_Width(slavePtr->slave))
344 || (height != Tk_Height(slavePtr->slave))) {
345 Tk_MoveResizeWindow(slavePtr->slave, x, y, width, height);
348 Tk_MapWindow(slavePtr->slave);
350 Tk_UnmapWindow(slavePtr->slave);
366 * so that the relationship between slave and master is no longer
373 * The slave is unmapped and state is released, so that slave won't
374 * track master any more. If we weren't previously managing slave
381 Tk_UnmaintainGeometry(slave, master)
382 Tk_Window slave; /* Slave for geometry management. */
383 Tk_Window master; /* Master for slave; must be a descendant
384 * of slave's parent. */
396 if (!(((TkWindow *) slave)->flags & TK_ALREADY_DEAD)) {
397 Tk_UnmapWindow(slave);
405 if (slavePtr->slave == slave) {
413 if (slavePtr->slave == slave) {
419 Tk_DeleteEventHandler(slavePtr->slave, StructureNotifyMask,
482 * be careful not to use masterPtr after the last slave is
492 Tk_UnmaintainGeometry(slavePtr->slave, slavePtr->master);
504 * response to StructureNotify events on a slave being managed
512 * and event handlers for this slave are deleted.
520 * for master-slave pair. */
526 Tk_UnmaintainGeometry(slavePtr->slave, slavePtr->master);
565 parent = Tk_Parent(slavePtr->slave);
574 if ((x != Tk_X(slavePtr->slave))
575 || (y != Tk_Y(slavePtr->slave))) {
576 Tk_MoveWindow(slavePtr->slave, x, y);
579 Tk_MapWindow(slavePtr->slave);
581 Tk_UnmapWindow(slavePtr->slave);