Home | History | Annotate | Download | only in client_examples

Lines Matching defs:cl

26 static rfbClient *cl;
38 rfbClientSetClientData (cl, gtk_init, widget);
44 cl->frameBuffer= image->mem;
46 cl->width = widget->allocation.width;
47 cl->height = widget->allocation.height;
49 cl->format.bitsPerPixel = image->bits_per_pixel;
50 cl->format.redShift = image->visual->red_shift;
51 cl->format.greenShift = image->visual->green_shift;
52 cl->format.blueShift = image->visual->blue_shift;
54 cl->format.redMax = (1 << image->visual->red_prec) - 1;
55 cl->format.greenMax = (1 << image->visual->green_prec) - 1;
56 cl->format.blueMax = (1 << image->visual->blue_prec) - 1;
58 SetFormatAndEncodings (cl);
92 SendPointerEvent (cl, x, y, buttonMask);
115 SendPointerEvent (cl, x, y, buttonMask);
120 static void got_cut_text (rfbClient *cl, const char *text, int textlen)
135 SendClientCutText (cl, (char *) text, strlen (text));
164 SendFramebufferUpdateRequest (cl, 0, 0, cl->width, cl->height, FALSE);
170 SendKeyEvent(cl, XK_F8, TRUE);
171 SendKeyEvent(cl, XK_F8, FALSE);
177 SendKeyEvent(cl, XK_Control_L, TRUE);
178 SendKeyEvent(cl, XK_Alt_L, TRUE);
179 SendKeyEvent(cl, XK_Delete, TRUE);
180 SendKeyEvent(cl, XK_Alt_L, FALSE);
181 SendKeyEvent(cl, XK_Control_L, FALSE);
182 SendKeyEvent(cl, XK_Delete, FALSE);
357 SendKeyEvent(cl, gdkKey2rfbKeySym (event->keyval),
455 static void update (rfbClient *cl, int x, int y, int w, int h) {
456 GtkWidget *drawing_area = rfbClientGetClientData (cl, gtk_init);
462 static void kbd_leds (rfbClient *cl, int value, int pad) {
469 static void text_chat (rfbClient *cl, int value, char *text) {
473 TextChatOpen (cl);
628 cl = rfbGetClient (image->depth / 3, 3, image->bpp);
630 cl->format.redShift = image->visual->red_shift;
631 cl->format.greenShift = image->visual->green_shift;
632 cl->format.blueShift = image->visual->blue_shift;
634 cl->format.redMax = (1 << image->visual->red_prec) - 1;
635 cl->format.greenMax = (1 << image->visual->green_prec) - 1;
636 cl->format.blueMax = (1 << image->visual->blue_prec) - 1;
640 cl->MallocFrameBuffer = resize;
641 cl->canHandleNewFBSize = TRUE;
642 cl->GotFrameBufferUpdate = update;
643 cl->GotXCutText = got_cut_text;
644 cl->HandleKeyboardLedState = kbd_leds;
645 cl->HandleTextChat = text_chat;
646 cl->GetPassword = get_password;
650 if (!rfbInitClient (cl, &argc, argv))
656 i = WaitForMessage (cl, 500);
660 if (!HandleRFBServerMessage(cl))