logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

d_edit_proc - Dialog procedure implementing an editable text object. Allegro game programming library.

Description

       An  editable  text  object  (the dp field points to the string). When it has the input focus (obtained by
       clicking on it with the mouse), text can be typed into this object. The d1 field  specifies  the  maximum
       number of characters that it will accept, and d2 is the text cursor position within the string.

       Note:  dp  must  point  to  a  buffer at least (d1 + 1) * 4 bytes long because, depending on the encoding
       format in use, a single character can occupy up to 4 bytes and room must be reserved for the  terminating
       null character.

Name

       d_edit_proc - Dialog procedure implementing an editable text object. Allegro game programming library.

See Also

excustom(3alleg4), exgui(3alleg4)

Allegro                                           version 4.4.3                             d_edit_proc(3alleg4)

Synopsis

#include<allegro.h>intd_edit_proc(intmsg,DIALOG*d,intc);

See Also