Back to index

im-sdk  12.3.91
Classes | Defines | Typedefs | Functions
XAuxMethods.h File Reference
#include "XSunExt.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _XAuxAttribute
struct  _XAuxCallbackStruct
struct  _xaux_methods
struct  _XAux_SesDspParaNode

Defines

#define XAUX_DISPLAY   1
#define XAUX_SCREENNUM   2
#define XAUX_HTTWINDOW   3
#define XAUX_FONTSET   4
#define XAUX_AREA   5
#define XAUX_AREANEEDED   6
#define XAUX_COLORMAP   7
#define XAUX_STDCOLORMAP   8
#define XAUX_FOREGROUND   9
#define XAUX_BACKGROUND   10
#define XAUX_BACKGROUNDPIXMAP   11
#define XAUX_LOCATION   12
#define XAUX_FONTNAME   13
#define XAUX_CURSOR   14
#define XAUX_REPLYCALLBACK   15
#define XAUX_REPLYCLIENTDATA   16
#define XAUX_GC   17
#define XAUX_TOPLEVEL   18

Typedefs

typedef struct _XAuxAttribute XAuxAttribute
typedef struct _XAuxCallbackStruct XAuxCallbackStruct
typedef struct _xaux_methods xaux_methods_t
typedef struct _XAux_SesDspParaNode XAux_SesDspParaNode

Functions

Bool XAux_Create (int, XAuxAttribute *, int)
Bool XAux_SetValues (int, XAuxAttribute *, int)
Bool XAux_GetValues (int, XAuxAttribute *, int)
Bool XAux_Start (int, XIMAuxStartCallbackStruct *)
Bool XAux_Draw (int, XIMAuxDrawCallbackStruct *)
Bool XAux_Done (int, XIMAuxDoneCallbackStruct *)
Bool XAux_SetFocus (int)
Bool XAux_UnsetFocus (int)
Bool XAux_Destroy (int)

Class Documentation

struct _XAuxAttribute

Definition at line 47 of file XAuxMethods.h.

Class Members
int nAttrID
int nLenName
int nLenValue
int nType
char * pszName
void * pvValue
struct _XAuxCallbackStruct

Definition at line 57 of file XAuxMethods.h.

Class Members
int nEngClsIdx
int nNumIntVal
int nNumStrVal
int * pnIntVal
char * pszEngName
char * pszStrVal

Define Documentation

#define XAUX_AREA   5

Definition at line 97 of file XAuxMethods.h.

#define XAUX_AREANEEDED   6

Definition at line 98 of file XAuxMethods.h.

#define XAUX_BACKGROUND   10

Definition at line 102 of file XAuxMethods.h.

#define XAUX_BACKGROUNDPIXMAP   11

Definition at line 103 of file XAuxMethods.h.

#define XAUX_COLORMAP   7

Definition at line 99 of file XAuxMethods.h.

#define XAUX_CURSOR   14

Definition at line 106 of file XAuxMethods.h.

#define XAUX_DISPLAY   1

Definition at line 93 of file XAuxMethods.h.

#define XAUX_FONTNAME   13

Definition at line 105 of file XAuxMethods.h.

#define XAUX_FONTSET   4

Definition at line 96 of file XAuxMethods.h.

#define XAUX_FOREGROUND   9

Definition at line 101 of file XAuxMethods.h.

#define XAUX_GC   17

Definition at line 109 of file XAuxMethods.h.

#define XAUX_HTTWINDOW   3

Definition at line 95 of file XAuxMethods.h.

#define XAUX_LOCATION   12

Definition at line 104 of file XAuxMethods.h.

#define XAUX_REPLYCALLBACK   15

Definition at line 107 of file XAuxMethods.h.

#define XAUX_REPLYCLIENTDATA   16

Definition at line 108 of file XAuxMethods.h.

#define XAUX_SCREENNUM   2

Definition at line 94 of file XAuxMethods.h.

#define XAUX_STDCOLORMAP   8

Definition at line 100 of file XAuxMethods.h.

#define XAUX_TOPLEVEL   18

Definition at line 110 of file XAuxMethods.h.


Typedef Documentation

typedef struct _xaux_methods xaux_methods_t
typedef struct _XAuxAttribute XAuxAttribute

Function Documentation

Bool XAux_Create ( int  ,
XAuxAttribute ,
int   
)

Definition at line 514 of file XAuxMethods.c.

{
       XAux_SesDspParaNode  *pThisSdpn;
       
printf("Creating...nIcID[%d]\n", nIcID);

       pThisSdpn = GetNodeAddressByIcID(nIcID);
       /* Not existed, alloc memory for it */
       if(pThisSdpn == NULL)
       {
              pThisSdpn  = PrefixNewNode(nIcID);
              if (pThisSdpn == NULL)
                     return FALSE;
       }
                     
       SetAuxNodeValues(pThisSdpn, pAttrArray, nArraySize);
       /* Create GUI, and set ->wndIM, wndBmp1, wndBmp2 ... */

printf("Creating GUI\n");
       CreateGUI(pThisSdpn);

       pThisSdpn->nWndStatus = FALSE;
       
       return TRUE;
}

Here is the call graph for this function:

Bool XAux_Destroy ( int  )

Definition at line 748 of file XAuxMethods.c.

{
       BOOL    status;
       
/*
printf("Destroying...nIcID\n", nIcID);
*/
       /* remove specified node */
       /* Should Destroy Windows for this nIcID */
       status = DestroyNode (nIcID);
       return status;
}

Here is the call graph for this function:

Bool XAux_Done ( int  ,
XIMAuxDoneCallbackStruct *   
)

Definition at line 636 of file XAuxMethods.c.

{
       XAux_SesDspParaNode  *pThisSdpn;

/*
printf("Done...nIcID[%d]\n", nIcID);
*/
       pThisSdpn = GetNodeAddressByIcID(nIcID);
       if (pThisSdpn == NULL) return FALSE;

       UnmapGUI(pThisSdpn);
       pThisSdpn->nWndStatus = FALSE;

       if(pAcbs != NULL) free(pAcbs);
       return TRUE;
}

Here is the call graph for this function:

Bool XAux_Draw ( int  ,
XIMAuxDrawCallbackStruct *   
)

Definition at line 571 of file XAuxMethods.c.

{
       int i;
       XAux_SesDspParaNode  *pThisSdpn;
       int num_int, num_str;
       int * int_ptr;
    XIMText * str_ptr;
    int int_val;
    int str_val;

       pThisSdpn = GetNodeAddressByIcID(nIcID);
       if (pThisSdpn == NULL) return FALSE;

printf("Drawing...nIcID[%d]\n", nIcID);

    num_int = pAcbs->count_integer_values;
    num_str = pAcbs->count_string_values;
    int_ptr = pAcbs->integer_values;
    str_ptr = pAcbs->string_values;

printf("num_int=%d\n", num_int);
printf("num_str=%d\n", num_str);

for(i=0;i<num_int;i++){
       printf("int[%d]=%d\n", i, int_ptr[i]);
}

#ifdef notdef
    while (num_int--) {
        int_val = *int_ptr;
        switch (int_val) {
            case 1:
                str_val = *(char *)(str_ptr -> string.multi_byte);
              pThisSdpn->nPuncState = str_val;
                break;
            case 2:
                str_val = *(char *)(str_ptr -> string.multi_byte);
              pThisSdpn->nSkbState = str_val;
                break;
           case 3:
              break;
        }
        int_ptr++;
        str_ptr++;
    }
/*
printf("pThisSdpn->nPuncState = %d, pThisSdpn->nSkbState = %d\n",pThisSdpn->nPuncState, pThisSdpn->nSkbState);
*/
       MapGUI(pThisSdpn);
       pThisSdpn->nWndStatus = TRUE;
       
       free(pAcbs->integer_values);
       free(pAcbs->string_values);
       free(pAcbs);
       /* parse the call_data and do accordingly */
#endif
       return TRUE;
}

Here is the call graph for this function:

Bool XAux_GetValues ( int  ,
XAuxAttribute ,
int   
)

Definition at line 727 of file XAuxMethods.c.

{
       XAux_SesDspParaNode  *pThisSdpn;
       BOOL    status;
       
printf("GetValues...nIcID\n", nIcID);

       pThisSdpn = GetNodeAddressByIcID(nIcID);
       if (pThisSdpn == NULL)
              return FALSE;
              
       status = GetAuxNodeValues(pThisSdpn, pAttrArray, nArraySize);
       return status;
}

Here is the call graph for this function:

Bool XAux_SetFocus ( int  )

Definition at line 657 of file XAuxMethods.c.

{
       XAux_SesDspParaNode  *pThisSdpn;
/*
printf("SetFocus...nIcID[%d]\n", nIcID);
*/
       pThisSdpn = GetNodeAddressByIcID(nIcID);
       if (pThisSdpn == NULL) return FALSE;
              
       if(pThisSdpn->nWndStatus == TRUE) MapGUI(pThisSdpn);
       else UnmapGUI(pThisSdpn);

       /* parse the call_data and do something accordingly */
       return True;
}

Here is the call graph for this function:

Bool XAux_SetValues ( int  ,
XAuxAttribute ,
int   
)

Definition at line 700 of file XAuxMethods.c.

{
       XAux_SesDspParaNode  *pThisSdpn;
       BOOL    status;
       
printf("SetValues...NIcID\n", nIcID);

#ifdef notdef
       pThisSdpn = GetNodeAddressByIcID(nIcID);
       if (pThisSdpn == NULL)
              return FALSE;
       
       status = SetAuxNodeValues(pThisSdpn, pAttrArray, nArraySize);
#endif
       return status;
}

Here is the call graph for this function:

Bool XAux_Start ( int  ,
XIMAuxStartCallbackStruct *   
)

Definition at line 545 of file XAuxMethods.c.

{
       XAux_SesDspParaNode  *pThisSdpn;

printf("Starting...nIcID[%d]\n", nIcID);

       MapGUI(pThisSdpn);

#ifdef notdef
       pThisSdpn = GetNodeAddressByIcID(nIcID);
       if (pThisSdpn == NULL) return FALSE;

       UnmapGUI(pThisSdpn);
       pThisSdpn->nWndStatus = FALSE;

       if(pAcbs != NULL) free(pAcbs);
#endif

       return TRUE;
}

Here is the call graph for this function:

Bool XAux_UnsetFocus ( int  )

Definition at line 677 of file XAuxMethods.c.

{
       XAux_SesDspParaNode  *pThisSdpn;
       
/*
printf("UnsetFocus...nIcID[%d]\n", nIcID);
*/
       pThisSdpn = GetNodeAddressByIcID(nIcID);
       if (pThisSdpn == NULL)
              return FALSE;

/*     UnmapGUI(pThisSdpn);

       pThisSdpn->nWndStatus = FALSE;*/
              
       return TRUE;
}

Here is the call graph for this function: