next up previous contents
Next: Internationnalization Up: Configuration Previous: Configuration   Contents


The structure

The function which needs some configuration information have in parameter !h_Config hcfg!. The structure to pass in parameter is the folowing one :


\begin{lstlisting}
typedef struct {
h_Lang lang;
h_Font * font_msg;
unsigned short speed_scroll;
unsigned short speed_key;
} h_Config;
\end{lstlisting}

Then, for every function which needs some configuation information, you will pass in parameter the pointer of this structure. The structure would be filled before using a function of HibLib. In most cases, you don't need to change its values during using HibLib.

!lang!: defines the texts which will be used in informative messages (see the folowing section [*] about the internationalisation)
!font_msg!: defines the font which will be used for every message (see section [*] about font)
!speed_scroll!: defines the speed of the scrolling: this feature not enabled yet
!speed_key!: defines the speed between two keys pressed (a good choice is about 30)



2006-02-19