Enums

Home   Previous   


Contents

Details

enum EM_BG_CUSTOMIZE{        //measure unit type
    EM_BG_CUSTOMIZE_PIXEL = 0, //pixel
    EM_BG_CUSTOMIZE_INCH,      //inch
    EM_BG_CUSTOMIZE_CM         //centimeter
};

enum EM_BG_IMAGE_SHOW_TYPE{ //show type of background image
    EM_BG_IMAGE_TILE = 0,      //title
    EM_BG_IMAGE_CENTER,        //center
    EM_BG_IMAGE_STRETCH,       //stretch
    EM_BG_IMAGE_FIT
};

enum EM_BG_ORIENTATION{
    EM_BG_HORIZONTAL = 0, //horizontal
    EM_BG_VERTICAL,       //vertical
};

enum EM_BG_TYPE{     //backgound type
    EM_BG_IMAGE = 0,  //image
    EM_BG_COLOR,      //color
    EM_BG_TRANSPARENT //transparent
};

enum EM_CURSOR{
    EM_CURSOR_ORIGINAL = 0,
    EM_CURSOR_DRAG,
    EM_CURSOR_ROTATE,
    EM_CURSOR_WAIT
};

enum EM_EVENT_STATE{
    PRESSED = 0,
    RELEASED
};

enum EM_EVENT_TYPE{
    EVENT_NOEVENT = -1,
    EVENT_MOUSE,
    EVENT_KEYBOARD,
    EVENT_SYSTEM
};

enum EM_FONT_ORDER{
    EM_FONT_ORDER_L = 0, //left(default)
    EM_FONT_ORDER_R,     //right
    EM_FONT_ORDER_C      //center
};

enum EM_FONT_STYLE{            //font style
    EM_FONT_STYLE_NORMAL = 0x00, //normal
    EM_FONT_STYLE_B      = 0x01, //broaden
    EM_FONT_STYLE_I      = 0x02, //inclined
    EM_FONT_STYLE_U      = 0x04  //underline
};

enum EM_IMAGE_TYPE{
    EM_IMAGE_NON = 0,
    EM_IMAGE_BMP,
    EM_IMAGE_GIF,
    EM_IMAGE_JPG,
    EM_IMAGE_PNG,
    EM_IMAGE_ICO,
    EM_IMAGE_TIF,
    EM_IMAGE_TGA,
    EM_IMAGE_WMF = 10
};

enum EM_KEY{
    KEY_NON = -1,
    KEY_DELETE = 127,
    KEY_UP = 273,
    KEY_DOWN = 274,
    KEY_RIGHT = 275,
    KEY_LEFT = 276
};

enum EM_LAYER_TYPE{     //layer type
    EM_LAYER_CANVAS = 0, //canvas layer
    EM_LAYER_FRAME,      //frame layer
    EM_LAYER_IMAGE,      //image layer
    EM_LAYER_TEXT        //text layer
};

enum EM_LINE_STYLE{ //line style
    LS_SOLID = 0,    // ______________
    LS_DASH,         // --------------
    LS_DOT,          // ..............
    LS_DASHDOT,
    LS_DASHDOTDOT,
    LS_WIDTH         // ┅┅┅┅┅┅┅
};

enum EM_MOUSE_ACTIVE{
    MOUSE_MOVE = 5,
    MOUSE_UP,
    MOUSE_DOWN
};

enum EM_MOUSE_TYPE{
    MOUSE_LEFT = 1,
    MOUSE_MIDDLE,
    MOUSE_RIGHT
};

enum EM_PIXEL_FORMAT{
    PIX_FMT_NONE= -1,
    PIX_FMT_YUV420P,        //Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples)
    PIX_FMT_YUV422,         //Packed pixel, Y0 Cb Y1 Cr
    PIX_FMT_RGB24,          //Packed pixel, 3 bytes per pixel, RGBRGB...
    PIX_FMT_BGR24,          //Packed pixel, 3 bytes per pixel, BGRBGR...
    PIX_FMT_YUV422P,        //Planar YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples)
    PIX_FMT_YUV444P,        //Planar YUV 4:4:4 (1 Cr & Cb sample per 1x1 Y samples)
    PIX_FMT_RGBA32,         //Packed pixel, 4 bytes per pixel, BGRABGRA..., stored in cpu endianness
    PIX_FMT_YUV410P,        //Planar YUV 4:1:0 (1 Cr & Cb sample per 4x4 Y samples)
    PIX_FMT_YUV411P,        //Planar YUV 4:1:1 (1 Cr & Cb sample per 4x1 Y samples)
    PIX_FMT_RGB565,         //always stored in cpu endianness
    PIX_FMT_RGB555,         //always stored in cpu endianness, most significant bit to 1
    PIX_FMT_GRAY8,
    PIX_FMT_MONOWHITE,      //0 is white
    PIX_FMT_MONOBLACK,      //0 is black
    PIX_FMT_PAL8,           //8 bit with RGBA palette
    PIX_FMT_YUVJ420P,       //Planar YUV 4:2:0 full scale (jpeg)
    PIX_FMT_YUVJ422P,       //Planar YUV 4:2:2 full scale (jpeg)
    PIX_FMT_YUVJ444P,       //Planar YUV 4:4:4 full scale (jpeg)
    PIX_FMT_XVMC_MPEG2_MC,  //XVideo Motion Acceleration via common packet passing(xvmc_render.h)
    PIX_FMT_XVMC_MPEG2_IDCT,
    PIX_FMT_UYVY422,        //Packed pixel, Cb Y0 Cr Y1
    PIX_FMT_UYVY411,        //Packed pixel, Cb Y0 Y1 Cr Y2 Y3
    PIX_FMT_NB
};

enum EM_SYSTEM_TYPE{
    SYS_LAYER_ADD = 0,
    SYS_LAYER_DEL,
    SYS_LAYER_SEL,
    SYS_LAYER_CHANGED,

    SYS_UN_COPY,
    SYS_UN_PASTE,
    SYS_UN_UNDO,
    SYS_UN_REDO,

    SYS_CAN_COPY,
    SYS_CAN_PASTE,
    SYS_CAN_UNDO,
    SYS_CAN_REDO,

    SYS_QUIT
};