Lines Matching defs:ttyctx
103 popup_redraw_cb(const struct tty_ctx *ttyctx)
105 struct popup_data *pd = ttyctx->arg;
111 popup_set_client_cb(struct tty_ctx *ttyctx, struct client *c)
113 struct popup_data *pd = ttyctx->arg;
120 ttyctx->bigger = 0;
121 ttyctx->wox = 0;
122 ttyctx->woy = 0;
123 ttyctx->wsx = c->tty.sx;
124 ttyctx->wsy = c->tty.sy;
127 ttyctx->xoff = ttyctx->rxoff = pd->px;
128 ttyctx->yoff = ttyctx->ryoff = pd->py;
130 ttyctx->xoff = ttyctx->rxoff = pd->px + 1;
131 ttyctx->yoff = ttyctx->ryoff = pd->py + 1;
138 popup_init_ctx_cb(struct screen_write_ctx *ctx, struct tty_ctx *ttyctx)
142 memcpy(&ttyctx->defaults, &pd->defaults, sizeof ttyctx->defaults);
143 ttyctx->palette = &pd->palette;
144 ttyctx->redraw_cb = popup_redraw_cb;
145 ttyctx->set_client_cb = popup_set_client_cb;
146 ttyctx->arg = pd;