textbox

textbox

Synopsis




#define             TEXTBOX_SCROLL_TIMEOUT
#define             TEXTBOX_SCROLL_SMOOTH_TIMEOUT
#define             TEXT_BOX                            (x)
                    TextBox;
void                textbox_set_text                    (TextBox *tb,
                                                         const gchar *text);
void                textbox_set_scroll                  (TextBox *tb,
                                                         gboolean s);
TextBox*            create_textbox                      (GList **wlist,
                                                         GdkPixmap *parent,
                                                         GdkGC *gc,
                                                         gint x,
                                                         gint y,
                                                         gint w,
                                                         gboolean allow_scroll,
                                                         SkinPixmapId si);
void                textbox_set_xfont                   (TextBox *tb,
                                                         gboolean use_xfont,
                                                         const gchar *fontname);
void                textbox_free                        (TextBox *tb);

Description

Details

TEXTBOX_SCROLL_TIMEOUT

#define	TEXTBOX_SCROLL_TIMEOUT	       200


TEXTBOX_SCROLL_SMOOTH_TIMEOUT

#define TEXTBOX_SCROLL_SMOOTH_TIMEOUT  30


TEXT_BOX()

#define TEXT_BOX(x)  ((TextBox *)(x))

x :


TextBox

typedef struct {
    Widget tb_widget;
    GdkPixmap *tb_pixmap;
    gchar *tb_text, *tb_pixmap_text;
    gint tb_pixmap_width;
    gint tb_offset;
    gboolean tb_scroll_allowed, tb_scroll_enabled;
    gboolean tb_is_scrollable, tb_is_dragging;
    gint tb_timeout_tag, tb_drag_x, tb_drag_off;
    gint tb_nominal_y, tb_nominal_height;
    gint tb_skin_id;
    SkinPixmapId tb_skin_index;
    PangoFontDescription *tb_font;
    gint tb_font_ascent, tb_font_descent;
    gchar *tb_fontname;
} TextBox;


textbox_set_text ()

void                textbox_set_text                    (TextBox *tb,
                                                         const gchar *text);

tb :

text :


textbox_set_scroll ()

void                textbox_set_scroll                  (TextBox *tb,
                                                         gboolean s);

tb :

s :


create_textbox ()

TextBox*            create_textbox                      (GList **wlist,
                                                         GdkPixmap *parent,
                                                         GdkGC *gc,
                                                         gint x,
                                                         gint y,
                                                         gint w,
                                                         gboolean allow_scroll,
                                                         SkinPixmapId si);

wlist :

parent :

gc :

x :

y :

w :

allow_scroll :

si :

Returns :


textbox_set_xfont ()

void                textbox_set_xfont                   (TextBox *tb,
                                                         gboolean use_xfont,
                                                         const gchar *fontname);

tb :

use_xfont :

fontname :


textbox_free ()

void                textbox_free                        (TextBox *tb);

tb :