L'interface de Xmenu v1.12

Retour à la page QL
La fenêtre principale du programme de démonstration de Xmenu.
  1. Bouton automatique
  2. Compte-rendu
  3. Edition de chaîne
  4. Sélection
  5. Utilitaires
  6. Joli ?

Retour en haut de la page

Item_Select

 Item_Select : color_code : for paper and ink
               title      : a string that will be used as the title
                            of the pop-up window
               explanation: a string that explain the choice
               nitem      : number of choice
               ...        : a string, each one describing a possible
                            choice.
 return value:
               -1 : ESC was used to exit the window
                n : choice number n was choosen
long Item_Select(
                 const colourSet *   color_code,
                 const char *        title,
                 const char *        explanation,
                 const long          nitem,
                 const char *        litm0, ...
                );

Retour en haut de la page

Item_Select_Array

 Item_Select_Array : color_code : for paper and ink
                     title      : a string that will be used as the title
                                  of the pop-up window
                     explanation: a string that explain the choice
                     nitem      : number of choice
                     array      : an array of strings, each one describing
                                  a possible choice.
 return value:
               -1 : ESC was used to exit the window
                n : choice number n was choosen
long Item_Select_Array(
                 const colourSet *   color_code,
                 const char *        title,
                 const char *        explanation,
                 const long          nitem,
                 const char **       array
                );

Retour en haut de la page

Message_Report

 Message_Report : color_code : for paper and ink
                  message    : a string to display as an item
void Message_Report(
                    const colourSet *  color_code,
                    const char *       message
                   );

Retour en haut de la page

String_Edit

 String_Edit : color_code     : for paper and ink
               title          : a string that will be used as the title
                                of the pop-up window
               explanation    : a string that explain the entry
               default_value  : a suggestion for the entry
               max_length     : the maximal length of the entry
               value          : the entry
 return value:
               -1 : ESC was used to exit the window
                n : the length of the entry
long String_Edit(
                 const colourSet * color_code,
                 const char * title,
                 const char * explanation,
                 const char * default_value,
                 const long   max_length,
                       char * value
                );

Retour en haut de la page

XDialog

 XDialog : color_code  : for paper and ink
           title       : a string that will be used as the title
                         of the pop-up window
           message     : a string that explain the choice
           picture     : a logo to display on the left side of the message
           help_avail  : null if no help option, not null if help option is available
 return value:
               -1 : ESC was used to exit the window
                0 : The cancel option was choosen
                1 : The ok option was choosen
                2 : The help option was choosen
long XDialog(
             const colourSet * color_code,
             const char      * title,
             const char      * message,
             const struct WM_sprite * picture,
             const long        help_avail
            );

Retour en haut de la page

Menu_Button_Text

 Menu_Button_Text : color_code  : for paper, ink and border
                    main_window : the working main window that will be hidden
                    title       : the text to use for the button
void Menu_Button_Text(
                      const colourSet *       color_code,
                            struct WM_wwork * main_window,
                      const char *            title
                     );

Retour en haut de la page

Menu_Button_Logo

 Menu_Button_Logo : color_code  : for paper and border
                    main_window : the working main window that will be hidden
                    picture     : the sprite to use for the button
void Menu_Button_Logo(
                      const colourSet *        color_code,
                            struct WM_wwork *  main_window,
                      const struct WM_sprite * picture
                     );

Retour en haut de la page

List_Select

 List_Select : color_code  : for paper and ink
               title       : a string used as a title for the popup window
               explanation : a text explaining the list
               nitem       : the number of list items
               status_list : the initial and final states of each item
               ...         : a string, each describing a possible option
 return value:
              number of selected items
long List_Select(
                 const colourSet * color_code,
                 const char *      title,
                 const char *      explanation,
                 const long        nitem,
                       char *      status_list,
                 const char *      litm0, ...
                );

Retour en haut de la page

List_Select_Array

 List_Select_Array : color_code  : for paper and ink
                     title       : a string used as a title for the
                                   popup window
                     explanation : a text explaining the list
                     nitem       : the number of list items
                     status_list : the initial and final states of each item
                     array       : an array of strings, each describing
                                   a possible option
 return value:
              number of selected items
long List_Select_Array(
                 const colourSet * color_code,
                 const char *      title,
                 const char *      explanation,
                 const long        nitem,
                       char *      status_list,
                 const char **     array
                );

Retour en haut de la page

Radio_Select

 Radio_Select : color_code  : for paper and ink
                initial     : initially set choice
                title       : a string used as a title for the popup window
                explanation : a text explaining the choice
                nitem       : the number of radio buttons
                initial     : the radio button initialy selected
                ...         : a string, each describing a radio button
 return value:
              -1 : ESC was used to exit the window
              n  : on exit, radio button n was selected
long Radio_Select(
                  const colourSet * color_code,
                  const long        initial,
                  const char *      title,
                  const char *      explanation,
                  const long        nitem,
                  const char *      litm0, ...
                 );

Retour en haut de la page

Radio_Select_Array

 Radio_Select_Array : color_code  : for paper and ink
                      initial     : the radio button initialy selected
                      title       : a string used as a title for the
                                    popup window
                      explanation : a text explaining the choice
                      nitem       : the number of radio buttons
                      array       : an array of strings, each describing
                                    a radio button
 return value:
              -1 : ESC was used to exit the window
              n  : on exit, radio button n was selected
long Radio_Select_Array(
                  const colourSet * color_code,
                  const long        initial,
                  const char *      title,
                  const char *      explanation,
                  const long        nitem,
                  const char **     array
                 );

Retour en haut de la page

Check_Size

 Check_Size : window : the purported window definition
 return value:
              0 : such a window can be drawn
              !0 : such a window cannot be fitted on the current screen/application
long Check_Size(
                const struct WM_wwork * window
               );

Retour en haut de la page

Get_CharSize

 int Get_CharSize ()
 return value:
               the width of a caracter in pixel, in the current mode
               (6 for mode 4, 12 for mode 8)
int Get_CharSize();

Retour en haut de la page

DefaultColourSet

 DefaultColourSet :
 return value:
              a pointer to the default colour set (configurable via config)
colourSet * DefaultColourSet(
              );

Retour en haut de la page

DisplayXSize

 DisplayXSize
 return value: an unsigned int which is the max X value for the current display
unsigned int DisplayXSize(
               );

Retour en haut de la page

DisplayYSize

 DisplayYSize
 return value: an unsigned int which is the max Y value for the current display
unsigned int DisplayYSize(
               );

Retour en haut de la page

SetWindowColour

 SetWindowColour : ww  : the window definition
                   col : the colour set to apply
void SetWindowColour(struct WM_wwork * ww, colourSet * col);

Retour en haut de la page

SetInfoColour

 SetInfoColour : info : the info window definition
                 col  : the colour set to apply
void SetInfoColour(struct WM_infw *info, colourSet * col);

Retour en haut de la page

LimitGeometry

 LimitGeometry : ww   : the window definition
                 maxX : the maximal width of the display
                 maxY : the maximal heigth of the display
void LimitGeometry(
                   struct WM_wwork * ww,
                   const unsigned int maxX,
                   const unsigned int maxY
                  );

Retour en haut de la page

Get_NativeForm

 Get_NativeForm
 return value: an unsigned short which is the Form word for native sprite/blob/pattern
unsigned short Get_NativeForm();

Retour en haut de la page

Get_GraphicInfo

 Get_GraphicInfo : sprite : a sprite definition
                   pxsize : address of an unsigned short, will contain the x-size
                   pysize : address of an unsigned short, will contain the y-size
                   pxorg  : address of an unsigned short, will contain the x-org
                   pyorg  : address of an unsigned short, will contain the y-org
void Get_GraphicInfo(
                          const struct WM_sprite * picture,
                                unsigned short *xsize,
                                unsigned short *ysize,
                                unsigned short *xorg,
                                unsigned short *yorg,
                          );

Retour en haut de la page

xmenu_logo

 xmenu_logo : a little (64x60) sprite, mode 4/8/33 (q40)
extern struct WM_sprite xmenu_logo;

Retour en haut de la page

Radio_Range_Select

 Radio_Range_Select : color_code  : for paper and ink
                      initial     : initially set choice
                      title       : a string used as a title for the
                                    popup window
                      explanation : a text explaining the choice
                      mini        : the number on the minimal radio buttons
                      maxi        : the number on the maximal radio buttons
                      step        : the step between radio buttons


 return value:
              -1 : ESC was used to exit the window
               n : on exit, radio button n was selected
long Radio_Range_Select(
                 const colourSet * color_code,
                 const long        initial,
                 const char *      title,
                 const char *      explanation,
                 const long        mini,
                 const long        maxi,
                 const long        step
                );

Retour à la page QL