Re: How to draw a text in widget?



On Mon, Sep 22, 2003 at 02:09:19PM -0400, Tom Liu wrote:

I still don't know how to clips the text. 

Set a clipping rectangle on your gc.

Also gdk_draw_string and gdk_font_unref are all deprecated.

Use Pango and gdk_draw_layout instead.


Regards,

Filip

-- 
        /* Amuse the user. */
              \|/ ____ \|/
              "@'/ ,. \`@"
              /_| \__/ |_\
                 \__U_/
        -- /usr/src/linux-2.4.2/arch/sparc/kernel/traps.c::die_if_kernel()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]