e-table-header-utils

Name

e-table-header-utils -- 

Synopsis



int         e_table_header_compute_height   (ETableCol *ecol,
                                             GtkStyle *style,
                                             GdkFont *font);
void        e_table_header_draw_button      (GdkDrawable *drawable,
                                             ETableCol *ecol,
                                             GtkStyle *style,
                                             GdkFont *font,
                                             GtkStateType state,
                                             GtkWidget *widget,
                                             GdkGC *gc,
                                             int x,
                                             int y,
                                             int width,
                                             int height,
                                             int button_width,
                                             int button_height,
                                             ETableColArrow arrow);
void        e_table_draw_elided_string      (GdkDrawable *drawable,
                                             GdkFont *font,
                                             GdkGC *gc,
                                             int x,
                                             int y,
                                             const char *str,
                                             int max_width,
                                             gboolean center);

Description

Details

e_table_header_compute_height ()

int         e_table_header_compute_height   (ETableCol *ecol,
                                             GtkStyle *style,
                                             GdkFont *font);

Computes the minimum height required for a table header button.


e_table_header_draw_button ()

void        e_table_header_draw_button      (GdkDrawable *drawable,
                                             ETableCol *ecol,
                                             GtkStyle *style,
                                             GdkFont *font,
                                             GtkStateType state,
                                             GtkWidget *widget,
                                             GdkGC *gc,
                                             int x,
                                             int y,
                                             int width,
                                             int height,
                                             int button_width,
                                             int button_height,
                                             ETableColArrow arrow);

Draws a button suitable for a table header.


e_table_draw_elided_string ()

void        e_table_draw_elided_string      (GdkDrawable *drawable,
                                             GdkFont *font,
                                             GdkGC *gc,
                                             int x,
                                             int y,
                                             const char *str,
                                             int max_width,
                                             gboolean center);

Draws a string, possibly trimming it so that it fits inside the specified maximum width. If it does not fit, an elision indicator is drawn after the last character that does fit.