ToutDoux : Reference manual
<<< Previous PageHomeUpNext Page >>>

TdTimeruler

Name

TdTimeruler -- Timeruler

Synopsis

strucTdTimeruler
voidtd_timeruler_hide
(TdTimeruler *timeruler);
voidtd_timeruler_set_canvas
(TdTimeruler *timeruler,
GtkWidget *canvas);
voidtd_timeruler_month_draw
(TdTimeruler *timeruler,
gint y0,
gint y1,
gchar *format);
voidtd_timeruler_draw
(TdTimeruler *timeruler);
voidtd_timeruler_draw_line
(gfloat x1,
gfloat y1,
gfloat x2,
gfloat y2,
TdTimeruler *timeruler);
voidtd_timeruler_week_draw
(TdTimeruler *timeruler,
gint y0,
gint y1,
gchar *format);
voidtd_timeruler_year_draw
(TdTimeruler *timeruler,
gint y0,
gint y1);
gchar*td_timeruler_month_optimal_format
(TdTimeruler *timeruler);
voidtd_timeruler_draw_string
(gfloat x,
gfloat y,
gchar *string,
TdTimeruler *timeruler);
voidtd_timeruler_set_lower
(TdTimeruler *timeruler,
GDate *lower);
GtkObject*td_timeruler_new
(void);
inttd_timeruler_scale_label_maxsize
(void);
voidtd_timeruler_create
(TdTimeruler *timeruler,
GtkWidget *vbox1,
GtkWidget *vbox2);
gchar*td_timeruler_week_optimal_format
(TdTimeruler *timeruler);
voidtd_timeruler_day_draw
(TdTimeruler *timeruler,
gint y0,
gint y1,
gchar *format);
voidtd_timeruler_set_scale
(TdTimeruler *timeruler,
gint scale);
gchar*td_timeruler_day_optimal_format
(TdTimeruler *timeruler);
voidtd_timeruler_destroy
(TdTimeruler *timeruler);
gchar*td_timeruler_year_optimal_format
(TdTimeruler *timeruler);

Description

Details

struct TdTimeruler

struct TdTimeruler
{
GtkWidget *widget;
GtkObject *adj;
GtkWidget *canvas;
GDate *lower;
GDate *lower_init;
GDate *upper;
gint scale;
gfloat width;
gfloat width_init;
GtkWidget *zoom_label;
GtkWidget *calendar_button;
};

fr: Objet règle du temps

en: Timeruler object

GtkWidget *widgetWidget
GtkObject *adjValeur - Value
GtkWidget *canvasCavenas client - Customer canvas
GDate *lowerDate basse - Lower date
GDate *lower_initDate basse avant modification - Lower date before modification
GDate *upperDate haute - Upper date
gint scaleEchelle - Scale
gfloat widthLargeur d'un jour - Width of days
gfloat width_initLargeur d'un jour avant modification - Width of days before modification
GtkWidget *zoom_labelEtiquette du zoom - Zoom label
GtkWidget *calendar_buttonBoutton du zoom - Zoom button

td_timeruler_hide ()

voidtd_timeruler_hide
(TdTimeruler *timeruler);

fr: Cache la règle du temps

en: Hides the timeruler

timeruler : timeruler

td_timeruler_set_canvas ()

voidtd_timeruler_set_canvas
(TdTimeruler *timeruler,
GtkWidget *canvas);

fr: Affecte le cavenas à la règle du temps

en: Allocates the canvas to timeruler

timeruler : timeruler
canvas : canvas

td_timeruler_month_draw ()

voidtd_timeruler_month_draw
(TdTimeruler *timeruler,
gint y0,
gint y1,
gchar *format);

fr: Affiche les mois sur la règle du temps

en: Displays months on timeruler

timeruler : timeruler
y0 : y0 coordinate
y1 : y1 coordinate
format : date format

td_timeruler_draw ()

voidtd_timeruler_draw
(TdTimeruler *timeruler);

fr: Dessine la règle du temps

en: Draws the timeruler

timeruler : timeruler

td_timeruler_draw_line ()

voidtd_timeruler_draw_line
(gfloat x1,
gfloat y1,
gfloat x2,
gfloat y2,
TdTimeruler *timeruler);

fr: Dessine une ligne

en: Draws a line

x1 : x1 coordinate
y1 : y1 coordinate
x2 : x2 coordinate
y2 : y2 coordinate
timeruler : timeruler

td_timeruler_week_draw ()

voidtd_timeruler_week_draw
(TdTimeruler *timeruler,
gint y0,
gint y1,
gchar *format);

fr: Affiche les semaines sur la règle du temps

en: Displays weeks on timeruler

timeruler : timeruler
y0 : y0 coordinate
y1 : y1 coordinate
format : date format

td_timeruler_year_draw ()

voidtd_timeruler_year_draw
(TdTimeruler *timeruler,
gint y0,
gint y1);

fr: Affiche les années sur la règle du temps

en: Displays years on timeruler

timeruler : timeruler
y0 : y0 coordinate
y1 : y1 coordinate

td_timeruler_month_optimal_format ()

gchar*td_timeruler_month_optimal_format
(TdTimeruler *timeruler);

fr: Retourne le format optimal pour l'affichage des mois

en: Return the optimal format for displaying months

Return value: string

timeruler : timeruler

td_timeruler_draw_string ()

voidtd_timeruler_draw_string
(gfloat x,
gfloat y,
gchar *string,
TdTimeruler *timeruler);

fr: Dessine une étiquette

en: Draws a label

x : x coordinate
y : y coordinate
string : string
timeruler : timeruler

td_timeruler_set_lower ()

voidtd_timeruler_set_lower
(TdTimeruler *timeruler,
GDate *lower);

fr: Affecte la date basse à la règle du temps

en: Allocates the lower date to timeruler

timeruler : timeruler
lower : lower date

td_timeruler_new ()

GtkObject*td_timeruler_new
(void);

fr: Créé une nouvelle règle du temps

en: Creates a new timeruler

Return value: timeruler


td_timeruler_scale_label_maxsize ()

inttd_timeruler_scale_label_maxsize
(void);

fr: Retourne la longueur de l'étiquette du zoom

en: Retourne the lenght of the zoom label

Return value: integer


td_timeruler_create ()

voidtd_timeruler_create
(TdTimeruler *timeruler,
GtkWidget *vbox1,
GtkWidget *vbox2);

fr: Créé l'interface de la règle du temps

en: Creates the interface of timeruler

timeruler : timeruler
vbox1 : container of slider
vbox2 : container of calendar

td_timeruler_week_optimal_format ()

gchar*td_timeruler_week_optimal_format
(TdTimeruler *timeruler);

fr: Retourne le format optimal pour l'affichage des semaines

en: Return the optimal format for displaying weeks

Return value: string

timeruler : timeruler

td_timeruler_day_draw ()

voidtd_timeruler_day_draw
(TdTimeruler *timeruler,
gint y0,
gint y1,
gchar *format);

fr: Affiche les jours sur la règle du temps

en: Displays days on timeruler

timeruler : timeruler
y0 : y0 coordinate
y1 : y1 coordinate
format : date format

td_timeruler_set_scale ()

voidtd_timeruler_set_scale
(TdTimeruler *timeruler,
gint scale);

fr: Rafraîchis la graduation de la règle du temps

en: Refresh the scale of timeruler

timeruler : timeruler
scale : zoom scale

td_timeruler_day_optimal_format ()

gchar*td_timeruler_day_optimal_format
(TdTimeruler *timeruler);

fr: Retourne le format optimal pour l'affichage des jours

en: Return the optimal format for displaying days

Return value: string

timeruler : timeruler

td_timeruler_destroy ()

voidtd_timeruler_destroy
(TdTimeruler *timeruler);

fr: Détruit la règle du temps

en: Destroys the timeruler

timeruler : timeruler

td_timeruler_year_optimal_format ()

gchar*td_timeruler_year_optimal_format
(TdTimeruler *timeruler);

fr: Retourne le format optimal pour l'affichage des années

en: Return the optimal format for displaying year

Return value: string

timeruler : timeruler

See Also

<<< Previous PageHomeUpNext Page >>>
IndexIndex