[mdk-re] Большие курсоры в иксах.

AVL =?iso-8859-1?q?info_=CE=C1_atmsk=2Eru?=
Вт Янв 15 01:13:32 MSK 2002


Просмотр исходников sticker показал, что и в самом деле имеет место быть эмуляция курсора.
но должен сказать эта эмуляция оччень неплохо работает. :)

/* ============= Picture cursor ======================================== */
/* I am using the current sticker as the cursor for the sticker drawing
 * area.  Unfortunately, X doesn't support colour cursors, so we have to
 * simulate the cursor by drawing the sticker on the page where the cursor
 * should be, then removing it and drawing it again whenever we move the
 * cursor.  To implement remove, we use a backing store to keep track of
 * what was under the sticker before we move it.  Note that we must draw
 * the new cursor on the page prior to updating the screen to avoid flicker
 * since the new cursor may overlap the old.
 *
 * To use, do the following:
 *      cursor_clear()
 *      do changes to canvas/cursor
 *      cursor_draw()
 *      update screen with changes outside old/new cursor
 *
 * Note: I tried implementing this with a child window, but gdk doesn't
 * support the CWBackingStore attribute on child window creation, so
 * I got lots of flicker.  Using a toplevel window worked a bit better,
 * but clipping at the canvas boundaries seemed like it would be painful
 * to implement.
 */

-- 
С уважением,Любимов А.В.




Подробная информация о списке рассылки community