diff --git a/src/x49gpng/ui.c b/src/x49gpng/ui.c index 4c04e88..3e90cd5 100644 --- a/src/x49gpng/ui.c +++ b/src/x49gpng/ui.c @@ -32,1498 +32,4302 @@ #define DEBUG_LAYOUT true static const x49gp_ui_key_t x49gp_ui_keys[] = { - {"F1", "A", "Y=", NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 0, 0, - 36, 22, 5, 1, ( 1 << 5 ), ( 1 << 1 ), 1}, - {"F2", "B", "WIN", NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 50, 0, - 36, 22, 5, 2, ( 1 << 5 ), ( 1 << 2 ), 2}, - {"F3", "C", "GRAPH", NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 99, 0, - 36, 22, 5, 3, ( 1 << 5 ), ( 1 << 3 ), 3}, - {"F4", - "D", "2D/3D", - NULL, NULL, - UI_COLOR_BLACK, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, - 12.0, UI_LAYOUT_LEFT, - 149, 0, - 36, 22, - 5, 4, - ( 1 << 5 ), - ( 1 << 4 ), - 4 }, - {"F5", - "E", "TBLSET", - NULL, NULL, - UI_COLOR_BLACK, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, - 12.0, UI_LAYOUT_LEFT, - 198, 0, - 36, 22, - 5, 5, - ( 1 << 5 ), - ( 1 << 5 ), - 5 }, - {"F6", - "F", "TABLE", - NULL, NULL, - UI_COLOR_BLACK, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, - 12.0, UI_LAYOUT_LEFT, - 247, 0, - 36, 22, - 5, 6, - ( 1 << 5 ), - ( 1 << 6 ), - 6 }, - {"APPS", - "G", "FILES", - "BEGIN", NULL, - UI_COLOR_WHITE, 10.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, - 10.0, UI_LAYOUT_BELOW, - 0, 44, - 36, 28, - 5, 7, - ( 1 << 5 ), - ( 1 << 7 ), - 7 }, - {"MODE", - "H", "CUSTOM", - "END", NULL, - UI_COLOR_WHITE, 10.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, - 10.0, UI_LAYOUT_BELOW, - 50, 44, - 36, 28, - 6, 5, - ( 1 << 6 ), - ( 1 << 5 ), - 5 }, - {"TOOL", "I", "i", "I", NULL, UI_COLOR_WHITE, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, 10.0, UI_LAYOUT_BELOW, 99, 44, - 36, 28, 6, 6, ( 1 << 6 ), ( 1 << 6 ), 6}, - {"V\\kern-1 AR", - "J", "UPDIR", - "COPY", NULL, - UI_COLOR_WHITE, 10.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, - 10.0, UI_LAYOUT_BELOW, - 0, 92, - 36, 28, - 6, 7, - ( 1 << 6 ), - ( 1 << 7 ), - 7 }, - {"STO \\triangleright", - "K", "RCL", - "CUT", NULL, - UI_COLOR_WHITE, 10.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, - 10.0, UI_LAYOUT_BELOW, - 50, 92, - 36, 28, - 7, 1, - ( 1 << 7 ), - ( 1 << 1 ), - 1 }, - {"NXT", - "L", "PREV", - "PASTE", NULL, - UI_COLOR_WHITE, 10.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, - 10.0, UI_LAYOUT_BELOW, - 99, 92, - 36, 28, - 7, 2, - ( 1 << 7 ), - ( 1 << 2 ), - 2 }, - {NULL, NULL, NULL, NULL, NULL, UI_COLOR_SILVER, 0.0, 0, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 200, - 38, 33, 33, 6, 1, ( 1 << 6 ), ( 1 << 1 ), 1}, - {NULL, NULL, NULL, NULL, NULL, UI_COLOR_SILVER, 0.0, 0, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 164, - 66, 33, 33, 6, 2, ( 1 << 6 ), ( 1 << 2 ), 2}, - {NULL, NULL, NULL, NULL, NULL, UI_COLOR_SILVER, 0.0, 0, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 200, - 94, 33, 33, 6, 3, ( 1 << 6 ), ( 1 << 3 ), 3}, - {NULL, NULL, NULL, NULL, NULL, UI_COLOR_SILVER, 0.0, 0, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 236, - 66, 33, 33, 6, 4, ( 1 << 6 ), ( 1 << 4 ), 4}, - {"HIST", - "M", "CMD", - "UNDO", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 0, 141, - 46, 28, - 4, 1, - ( 1 << 4 ), - ( 1 << 1 ), - 1 }, - {"EV\\kern-1 AL", - "N", "PRG", - "CHARS", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 59, 141, - 46, 28, - 3, 1, - ( 1 << 3 ), - ( 1 << 1 ), - 1 }, - {"\\tick", - "O", "MTRW", - "EQW", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 119, 141, - 46, 28, - 2, 1, - ( 1 << 2 ), - ( 1 << 1 ), - 1 }, - {"S\\kern-1 Y\\kern-1 M\\kern-1 B", - "P", "MTH", - "CAT", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 179, 141, - 46, 28, - 1, 1, - ( 1 << 1 ), - ( 1 << 1 ), - 1 }, - {"\\arrowleftdblfull", - NULL, "DEL", - "CLEAR", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 0.0, 0, - 238, 141, - 46, 28, - 0, 1, - ( 1 << 0 ), - ( 1 << 1 ), - 1 }, - {"Y\\super x\\/super", - "Q", "\\math_e\\xsuperior", - "LN", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 0, 183, - 46, 28, - 4, 2, - ( 1 << 4 ), - ( 1 << 2 ), - 2 }, - {"\\radical\\overscore\\kern-7 X", - "R", "\\math_x\\twosuperior", - "\\xsuperior\\kern-4\\math_radical\\overscore\\kern-5\\math_y", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 59, 183, - 46, 28, - 3, 2, - ( 1 << 3 ), - ( 1 << 2 ), - 2 }, - {"SIN", - "S", "ASIN", - "\\math_summation", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 119, 183, - 46, 28, - 2, 2, - ( 1 << 2 ), - ( 1 << 2 ), - 2 }, - {"COS", - "T", "ACOS", - "\\math_partialdiff", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 179, 183, - 46, 28, - 1, 2, - ( 1 << 1 ), - ( 1 << 2 ), - 2 }, - {"TAN", - "U", "ATAN", - "\\math_integral", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 238, 183, - 46, 28, - 0, 2, - ( 1 << 0 ), - ( 1 << 2 ), - 2 }, - {"EEX", - "V", "10\\xsuperior", - "LOG", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 0, 225, - 46, 28, - 4, 3, - ( 1 << 4 ), - ( 1 << 3 ), - 3 }, - {"+\\divisionslash\\minus", - "W", "\\math_notequal", - "\\math_equal", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 59, 225, - 46, 28, - 3, 3, - ( 1 << 3 ), - ( 1 << 3 ), - 3 }, - {"X", - "X", "\\math_lessequal", - "\\math_less", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 119, 225, - 46, 28, - 2, 3, - ( 1 << 2 ), - ( 1 << 3 ), - 3 }, - {"1/X", - "Y", "\\math_greaterequal", - "\\math_greater", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 179, 225, - 46, 28, - 1, 3, - ( 1 << 1 ), - ( 1 << 3 ), - 3 }, - {"\\divide", - "Z", "ABS", - "ARG", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT_NO_SPACE, - 238, 225, - 46, 28, - 0, 3, - ( 1 << 0 ), - ( 1 << 3 ), - 3 }, - {"ALPHA", NULL, "USER", "ENTRY", NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 0, 267, 46, 32, - 0, 0, 0, 0, 4}, - {"7", NULL, "S.SLV", "NUM.SLV", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 59, 267, - 46, 32, 3, 4, ( 1 << 3 ), ( 1 << 4 ), 4}, - {"8", NULL, "EXP&LN", "TRIG", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 119, 267, - 46, 32, 2, 4, ( 1 << 2 ), ( 1 << 4 ), 4}, - {"9", NULL, "FINANCE", "TIME", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 179, 267, - 46, 32, 1, 4, ( 1 << 1 ), ( 1 << 4 ), 4}, - {"\\multiply", NULL, "[ ]", "\" \"", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 238, 267, - 46, 32, 0, 4, ( 1 << 0 ), ( 1 << 4 ), 4}, - {"\\uparrowleft", - NULL, NULL, - NULL, NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 0, 313, - 46, 32, - 0, 0, - 0, 0, - 5 }, - {"4", NULL, "CALC", "ALG", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 59, 313, - 46, 32, 3, 5, ( 1 << 3 ), ( 1 << 5 ), 5}, - {"5", NULL, "MATRICES", "STAT", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 119, 313, - 46, 32, 2, 5, ( 1 << 2 ), ( 1 << 5 ), 5}, - {"6", NULL, "CONVERT", "UNITS", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 179, 313, - 46, 32, 1, 5, ( 1 << 1 ), ( 1 << 5 ), 5}, - {"\\minus", NULL, "( )", "_", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 238, 313, - 46, 32, 0, 5, ( 1 << 0 ), ( 1 << 5 ), 5}, - {"\\uparrowright", - NULL, NULL, - NULL, NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 0, 359, - 46, 32, - 0, 0, - 0, 0, - 6 }, - {"1", NULL, "ARITH", "CMPLX", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 59, 359, - 46, 32, 3, 6, ( 1 << 3 ), ( 1 << 6 ), 6}, - {"2", NULL, "DEF", "LIB", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 119, 359, - 46, 32, 2, 6, ( 1 << 2 ), ( 1 << 6 ), 6}, - {"3", - NULL, "\\math_numbersign", - "BASE", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 179, 359, - 46, 32, - 1, 6, - ( 1 << 1 ), - ( 1 << 6 ), - 6 }, - {"+", - NULL, "{ }", - "\\guillemotleft\\ \\guillemotright", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 238, 359, - 46, 32, - 0, 6, - ( 1 << 0 ), - ( 1 << 6 ), - 6 }, - {"ON", NULL, "CONT", "OFF", "CANCEL", UI_COLOR_WHITE, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 0, 405, 46, 32, - 0, 0, 0, 0, 0}, - {"0", - NULL, "\\math_infinity", - "\\math_arrowright", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 59, 405, - 46, 32, - 3, 7, - ( 1 << 3 ), - ( 1 << 7 ), - 7 }, - {"\\bullet", - NULL, ": :", - "\\math_downarrowleft", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 119, 405, - 46, 32, - 2, 7, - ( 1 << 2 ), - ( 1 << 7 ), - 7 }, - {"SPC", - NULL, "\\math_pi", - "\\large_comma", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 179, 405, - 46, 32, - 1, 7, - ( 1 << 1 ), - ( 1 << 7 ), - 7 }, - {"ENTER", - NULL, "ANS", - "\\arrowright NUM", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 238, 405, - 46, 32, - 0, 7, - ( 1 << 0 ), - ( 1 << 7 ), - 7 }, + {.label = "F1", + .letter = "A", + .left = "Y=", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 1, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F2", + .letter = "B", + .left = "WIN", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 50, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 2, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F3", + .letter = "C", + .left = "GRAPH", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 99, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 3, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F4", + .letter = "D", + .left = "2D/3D", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 149, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 4, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F5", + .letter = "E", + .left = "TBLSET", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 198, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 5, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F6", + .letter = "F", + .left = "TABLE", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 247, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 6, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "APPS", + .letter = "G", + .left = "FILES", + .right = "BEGIN", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 0, + .y = 44, + .width = 36, + .height = 28, + .column = 5, + .row = 7, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "MODE", + .letter = "H", + .left = "CUSTOM", + .right = "END", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 50, + .y = 44, + .width = 36, + .height = 28, + .column = 6, + .row = 5, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "TOOL", + .letter = "I", + .left = "i", + .right = "I", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 99, + .y = 44, + .width = 36, + .height = 28, + .column = 6, + .row = 6, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "V\\kern-1 AR", + .letter = "J", + .left = "UPDIR", + .right = "COPY", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 0, + .y = 92, + .width = 36, + .height = 28, + .column = 6, + .row = 7, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "STO \\triangleright", + .letter = "K", + .left = "RCL", + .right = "CUT", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 50, + .y = 92, + .width = 36, + .height = 28, + .column = 7, + .row = 1, + .columnbit = ( 1 << 7 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "NXT", + .letter = "L", + .left = "PREV", + .right = "PASTE", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 99, + .y = 92, + .width = 36, + .height = 28, + .column = 7, + .row = 2, + .columnbit = ( 1 << 7 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = NULL, + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 0.0, + .font_weight = 0, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 200, + .y = 38, + .width = 33, + .height = 33, + .column = 6, + .row = 1, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_SILVER}, + {.label = NULL, + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 0.0, + .font_weight = 0, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 164, + .y = 66, + .width = 33, + .height = 33, + .column = 6, + .row = 2, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_SILVER}, + {.label = NULL, + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 0.0, + .font_weight = 0, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 200, + .y = 94, + .width = 33, + .height = 33, + .column = 6, + .row = 3, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_SILVER}, + {.label = NULL, + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 0.0, + .font_weight = 0, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 236, + .y = 66, + .width = 33, + .height = 33, + .column = 6, + .row = 4, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_SILVER}, + {.label = "HIST", + .letter = "M", + .left = "CMD", + .right = "UNDO", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 141, + .width = 46, + .height = 28, + .column = 4, + .row = 1, + .columnbit = ( 1 << 4 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "EV\\kern-1 AL", + .letter = "N", + .left = "PRG", + .right = "CHARS", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 59, + .y = 141, + .width = 46, + .height = 28, + .column = 3, + .row = 1, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\tick", + .letter = "O", + .left = "MTRW", + .right = "EQW", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 119, + .y = 141, + .width = 46, + .height = 28, + .column = 2, + .row = 1, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "S\\kern-1 Y\\kern-1 M\\kern-1 B", + .letter = "P", + .left = "MTH", + .right = "CAT", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 179, + .y = 141, + .width = 46, + .height = 28, + .column = 1, + .row = 1, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\arrowleftdblfull", + .letter = NULL, + .left = "DEL", + .right = "CLEAR", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 141, + .width = 46, + .height = 28, + .column = 0, + .row = 1, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "Y\\super x\\/super", + .letter = "Q", + .left = "\\math_e\\xsuperior", + .right = "LN", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 183, + .width = 46, + .height = 28, + .column = 4, + .row = 2, + .columnbit = ( 1 << 4 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\radical\\overscore\\kern-7 X", + .letter = "R", + .left = "\\math_x\\twosuperior", + .right = "\\xsuperior\\kern-4\\math_radical\\overscore\\kern-5\\math_y", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 59, + .y = 183, + .width = 46, + .height = 28, + .column = 3, + .row = 2, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "SIN", + .letter = "S", + .left = "ASIN", + .right = "\\math_summation", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 119, + .y = 183, + .width = 46, + .height = 28, + .column = 2, + .row = 2, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "COS", + .letter = "T", + .left = "ACOS", + .right = "\\math_partialdiff", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 179, + .y = 183, + .width = 46, + .height = 28, + .column = 1, + .row = 2, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "TAN", + .letter = "U", + .left = "ATAN", + .right = "\\math_integral", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 238, + .y = 183, + .width = 46, + .height = 28, + .column = 0, + .row = 2, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "EEX", + .letter = "V", + .left = "10\\xsuperior", + .right = "LOG", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 225, + .width = 46, + .height = 28, + .column = 4, + .row = 3, + .columnbit = ( 1 << 4 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "+\\divisionslash\\minus", + .letter = "W", + .left = "\\math_notequal", + .right = "\\math_equal", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 59, + .y = 225, + .width = 46, + .height = 28, + .column = 3, + .row = 3, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "X", + .letter = "X", + .left = "\\math_lessequal", + .right = "\\math_less", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 119, + .y = 225, + .width = 46, + .height = 28, + .column = 2, + .row = 3, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "1/X", + .letter = "Y", + .left = "\\math_greaterequal", + .right = "\\math_greater", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 179, + .y = 225, + .width = 46, + .height = 28, + .column = 1, + .row = 3, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\divide", + .letter = "Z", + .left = "ABS", + .right = "ARG", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT_NO_SPACE, + .x = 238, + .y = 225, + .width = 46, + .height = 28, + .column = 0, + .row = 3, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "ALPHA", + .letter = NULL, + .left = "USER", + .right = "ENTRY", + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 267, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 4, + .bg_color = UI_COLOR_YELLOW}, + {.label = "7", + .letter = NULL, + .left = "S.SLV", + .right = "NUM.SLV", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 267, + .width = 46, + .height = 32, + .column = 3, + .row = 4, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "8", + .letter = NULL, + .left = "EXP&LN", + .right = "TRIG", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 267, + .width = 46, + .height = 32, + .column = 2, + .row = 4, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "9", + .letter = NULL, + .left = "FINANCE", + .right = "TIME", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 267, + .width = 46, + .height = 32, + .column = 1, + .row = 4, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\multiply", + .letter = NULL, + .left = "[ ]", + .right = "\" \"", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 267, + .width = 46, + .height = 32, + .column = 0, + .row = 4, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\uparrowleft", + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 313, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 5, + .bg_color = UI_COLOR_WHITE}, + {.label = "4", + .letter = NULL, + .left = "CALC", + .right = "ALG", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 313, + .width = 46, + .height = 32, + .column = 3, + .row = 5, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "5", + .letter = NULL, + .left = "MATRICES", + .right = "STAT", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 313, + .width = 46, + .height = 32, + .column = 2, + .row = 5, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "6", + .letter = NULL, + .left = "CONVERT", + .right = "UNITS", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 313, + .width = 46, + .height = 32, + .column = 1, + .row = 5, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\minus", + .letter = NULL, + .left = "( )", + .right = "_", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 313, + .width = 46, + .height = 32, + .column = 0, + .row = 5, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\uparrowright", + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 359, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 6, + .bg_color = UI_COLOR_ORANGE}, + {.label = "1", + .letter = NULL, + .left = "ARITH", + .right = "CMPLX", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 359, + .width = 46, + .height = 32, + .column = 3, + .row = 6, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "2", + .letter = NULL, + .left = "DEF", + .right = "LIB", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 359, + .width = 46, + .height = 32, + .column = 2, + .row = 6, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "3", + .letter = NULL, + .left = "\\math_numbersign", + .right = "BASE", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 359, + .width = 46, + .height = 32, + .column = 1, + .row = 6, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "+", + .letter = NULL, + .left = "{ }", + .right = "\\guillemotleft\\ \\guillemotright", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 359, + .width = 46, + .height = 32, + .column = 0, + .row = 6, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "ON", + .letter = NULL, + .left = "CONT", + .right = "OFF", + .below = "CANCEL", + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 405, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 0, + .bg_color = UI_COLOR_BLACK}, + {.label = "0", + .letter = NULL, + .left = "\\math_infinity", + .right = "\\math_arrowright", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 405, + .width = 46, + .height = 32, + .column = 3, + .row = 7, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\bullet", + .letter = NULL, + .left = ": :", + .right = "\\math_downarrowleft", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 405, + .width = 46, + .height = 32, + .column = 2, + .row = 7, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "SPC", + .letter = NULL, + .left = "\\math_pi", + .right = "\\large_comma", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 405, + .width = 46, + .height = 32, + .column = 1, + .row = 7, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "ENTER", + .letter = NULL, + .left = "ANS", + .right = "\\arrowright NUM", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 405, + .width = 46, + .height = 32, + .column = 0, + .row = 7, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, }; #define X49GP_UI_NR_KEYS ( sizeof( x49gp_ui_keys ) / sizeof( x49gp_ui_keys[ 0 ] ) ) static const x49gp_ui_key_t x49gp_newrpl_ui_keys[] = { - {"F1", "A", NULL, NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 0, 0, - 36, 22, 5, 1, ( 1 << 5 ), ( 1 << 1 ), 1}, - {"F2", "B", NULL, NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 50, 0, - 36, 22, 5, 2, ( 1 << 5 ), ( 1 << 2 ), 2}, - {"F3", "C", NULL, NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 99, 0, - 36, 22, 5, 3, ( 1 << 5 ), ( 1 << 3 ), 3}, - {"F4", "D", NULL, NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 149, 0, - 36, 22, 5, 4, ( 1 << 5 ), ( 1 << 4 ), 4}, - {"F5", "E", NULL, NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 198, 0, - 36, 22, 5, 5, ( 1 << 5 ), ( 1 << 5 ), 5}, - {"F6", "F", NULL, NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 247, 0, - 36, 22, 5, 6, ( 1 << 5 ), ( 1 << 6 ), 6}, - {"", "G", NULL, NULL, NULL, UI_COLOR_WHITE, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, 10.0, UI_LAYOUT_BELOW, 0, 44, - 36, 28, 5, 7, ( 1 << 5 ), ( 1 << 7 ), 7}, - {"", "H", NULL, NULL, NULL, UI_COLOR_WHITE, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, 10.0, UI_LAYOUT_BELOW, 50, 44, - 36, 28, 6, 5, ( 1 << 6 ), ( 1 << 5 ), 5}, - {"", "I", NULL, NULL, NULL, UI_COLOR_WHITE, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, 10.0, UI_LAYOUT_BELOW, 99, 44, - 36, 28, 6, 6, ( 1 << 6 ), ( 1 << 6 ), 6}, - {"", "J", NULL, NULL, NULL, UI_COLOR_WHITE, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, 10.0, UI_LAYOUT_BELOW, 0, 92, - 36, 28, 6, 7, ( 1 << 6 ), ( 1 << 7 ), 7}, - {"", "K", NULL, NULL, NULL, UI_COLOR_WHITE, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, 10.0, UI_LAYOUT_BELOW, 50, 92, - 36, 28, 7, 1, ( 1 << 7 ), ( 1 << 1 ), 1}, - {"", "L", NULL, NULL, NULL, UI_COLOR_WHITE, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, 10.0, UI_LAYOUT_BELOW, 99, 92, - 36, 28, 7, 2, ( 1 << 7 ), ( 1 << 2 ), 2}, - {"", "", "UPDIR", NULL, NULL, UI_COLOR_SILVER, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 200, 38, - 33, 33, 6, 1, ( 1 << 6 ), ( 1 << 1 ), 1}, - {"", "", "BEG COPY", NULL, NULL, UI_COLOR_SILVER, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 164, 66, - 33, 33, 6, 2, ( 1 << 6 ), ( 1 << 2 ), 2}, - {"", "", "CUT", NULL, NULL, UI_COLOR_SILVER, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 200, 94, - 33, 33, 6, 3, ( 1 << 6 ), ( 1 << 3 ), 3}, - {"", "", "END PASTE", NULL, NULL, UI_COLOR_SILVER, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 236, 66, - 33, 33, 6, 4, ( 1 << 6 ), ( 1 << 4 ), 4}, - {"S\\kern-1 T\\kern-1 O\\kern-1\\triangleright", - "M", "RCL", - "PREV.M", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 0, 141, - 46, 28, - 4, 1, - ( 1 << 4 ), - ( 1 << 1 ), - 1 }, - {"EV\\kern-1 AL", - "N", NULL, - NULL, NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 59, 141, - 46, 28, - 3, 1, - ( 1 << 3 ), - ( 1 << 1 ), - 1 }, - {"\\tick", - "O", NULL, - NULL, NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 119, 141, - 46, 28, - 2, 1, - ( 1 << 2 ), - ( 1 << 1 ), - 1 }, - {"M\\kern-1 E\\kern-1 N\\kern-1 U", - "P", NULL, - NULL, NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 179, 141, - 46, 28, - 1, 1, - ( 1 << 1 ), - ( 1 << 1 ), - 1 }, - {"\\arrowleftdblfull", - NULL, NULL, - "CLEAR", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 0.0, 0, - 238, 141, - 46, 28, - 0, 1, - ( 1 << 0 ), - ( 1 << 1 ), - 1 }, - {"Y\\super x\\/super", - "Q", "\\math_e\\xsuperior", - "LN", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 0, 183, - 46, 28, - 4, 2, - ( 1 << 4 ), - ( 1 << 2 ), - 2 }, - {"\\radical\\overscore\\kern-7 X", - "R", "\\math_x\\twosuperior", - "\\xsuperior\\kern-4\\math_radical\\overscore\\kern-5\\math_y", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 59, 183, - 46, 28, - 3, 2, - ( 1 << 3 ), - ( 1 << 2 ), - 2 }, - {"SIN", - "S", "ASIN", - NULL, NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 119, 183, - 46, 28, - 2, 2, - ( 1 << 2 ), - ( 1 << 2 ), - 2 }, - {"COS", - "T", "ACOS", - NULL, NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 179, 183, - 46, 28, - 1, 2, - ( 1 << 1 ), - ( 1 << 2 ), - 2 }, - {"TAN", - "U", "ATAN", - NULL, NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 238, 183, - 46, 28, - 0, 2, - ( 1 << 0 ), - ( 1 << 2 ), - 2 }, - {"EEX", - "V", "10\\xsuperior", - "LOG", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 0, 225, - 46, 28, - 4, 3, - ( 1 << 4 ), - ( 1 << 3 ), - 3 }, - {"+\\divisionslash\\minus", - "W", "\\math_notequal", - "\\math_equal", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 59, 225, - 46, 28, - 3, 3, - ( 1 << 3 ), - ( 1 << 3 ), - 3 }, - {"X", - "X", "\\math_lessequal", - "\\math_less", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 119, 225, - 46, 28, - 2, 3, - ( 1 << 2 ), - ( 1 << 3 ), - 3 }, - {"1/X", - "Y", "\\math_greaterequal", - "\\math_greater", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 179, 225, - 46, 28, - 1, 3, - ( 1 << 1 ), - ( 1 << 3 ), - 3 }, - {"\\divide", - "Z", "ABS", - "ARG", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT_NO_SPACE, - 238, 225, - 46, 28, - 0, 3, - ( 1 << 0 ), - ( 1 << 3 ), - 3 }, - {"ALPHA", "", "", "ENTRY", NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 0, 267, 46, 32, - 0, 0, 0, 0, 4}, - {"7", "", "", "NUM.SLV", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 59, 267, - 46, 32, 3, 4, ( 1 << 3 ), ( 1 << 4 ), 4}, - {"8", NULL, NULL, NULL, NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 119, 267, - 46, 32, 2, 4, ( 1 << 2 ), ( 1 << 4 ), 4}, - {"9", "", "", "TIME", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 179, 267, - 46, 32, 1, 4, ( 1 << 1 ), ( 1 << 4 ), 4}, - {"\\multiply", NULL, "[ ]", "\" \"", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 238, 267, - 46, 32, 0, 4, ( 1 << 0 ), ( 1 << 4 ), 4}, - {"\\uparrowleft", - NULL, NULL, - NULL, NULL, - UI_COLOR_BLACK, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 0, 313, - 46, 32, - 0, 0, - 0, 0, - 5 }, - {"4", NULL, NULL, NULL, NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 59, 313, - 46, 32, 3, 5, ( 1 << 3 ), ( 1 << 5 ), 5}, - {"5", NULL, NULL, NULL, NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 119, 313, - 46, 32, 2, 5, ( 1 << 2 ), ( 1 << 5 ), 5}, - {"6", NULL, "CONVERT", "UNITS", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 179, 313, - 46, 32, 1, 5, ( 1 << 1 ), ( 1 << 5 ), 5}, - {"\\minus", NULL, "( )", "_", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 238, 313, - 46, 32, 0, 5, ( 1 << 0 ), ( 1 << 5 ), 5}, - {"\\uparrowright", - NULL, NULL, - NULL, NULL, - UI_COLOR_BLACK, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 0, 359, - 46, 32, - 0, 0, - 0, 0, - 6 }, - {"1", "", "ARITH", "CMPLX", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 59, 359, - 46, 32, 3, 6, ( 1 << 3 ), ( 1 << 6 ), 6}, - {"2", "", "", "LIB", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 119, 359, - 46, 32, 2, 6, ( 1 << 2 ), ( 1 << 6 ), 6}, - {"3", - NULL, "\\math_numbersign", - "BASE", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 179, 359, - 46, 32, - 1, 6, - ( 1 << 1 ), - ( 1 << 6 ), - 6 }, - {"+", - NULL, "{ }", - "\\guillemotleft\\ \\guillemotright", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 238, 359, - 46, 32, - 0, 6, - ( 1 << 0 ), - ( 1 << 6 ), - 6 }, - {"ON", NULL, NULL, "OFF", NULL, UI_COLOR_WHITE, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 0, 405, 46, 32, - 0, 0, 0, 0, 0}, - {"0", - NULL, "\\math_infinity", - "\\math_arrowright", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 59, 405, - 46, 32, - 3, 7, - ( 1 << 3 ), - ( 1 << 7 ), - 7 }, - {"\\bullet", - NULL, ": :", - "\\math_downarrowleft", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 119, 405, - 46, 32, - 2, 7, - ( 1 << 2 ), - ( 1 << 7 ), - 7 }, - {"SPC", - NULL, "\\math_pi", - "\\large_comma", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 179, 405, - 46, 32, - 1, 7, - ( 1 << 1 ), - ( 1 << 7 ), - 7 }, - {"ENTER", - NULL, NULL, - "\\arrowright NUM", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 238, 405, - 46, 32, - 0, 7, - ( 1 << 0 ), - ( 1 << 7 ), - 7 }, + {.label = "F1", + .letter = "A", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 1, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F2", + .letter = "B", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 50, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 2, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F3", + .letter = "C", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 99, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 3, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F4", + .letter = "D", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 149, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 4, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F5", + .letter = "E", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 198, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 5, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F6", + .letter = "F", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 247, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 6, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "", + .letter = "G", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 0, + .y = 44, + .width = 36, + .height = 28, + .column = 5, + .row = 7, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "", + .letter = "H", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 50, + .y = 44, + .width = 36, + .height = 28, + .column = 6, + .row = 5, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "", + .letter = "I", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 99, + .y = 44, + .width = 36, + .height = 28, + .column = 6, + .row = 6, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "", + .letter = "J", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 0, + .y = 92, + .width = 36, + .height = 28, + .column = 6, + .row = 7, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "", + .letter = "K", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 50, + .y = 92, + .width = 36, + .height = 28, + .column = 7, + .row = 1, + .columnbit = ( 1 << 7 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "", + .letter = "L", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 99, + .y = 92, + .width = 36, + .height = 28, + .column = 7, + .row = 2, + .columnbit = ( 1 << 7 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "", + .letter = "", + .left = "UPDIR", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 200, + .y = 38, + .width = 33, + .height = 33, + .column = 6, + .row = 1, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_SILVER}, + {.label = "", + .letter = "", + .left = "BEG COPY", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 164, + .y = 66, + .width = 33, + .height = 33, + .column = 6, + .row = 2, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_SILVER}, + {.label = "", + .letter = "", + .left = "CUT", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 200, + .y = 94, + .width = 33, + .height = 33, + .column = 6, + .row = 3, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_SILVER}, + {.label = "", + .letter = "", + .left = "END PASTE", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 236, + .y = 66, + .width = 33, + .height = 33, + .column = 6, + .row = 4, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_SILVER}, + {.label = "S\\kern-1 T\\kern-1 O\\kern-1\\triangleright", + .letter = "M", + .left = "RCL", + .right = "PREV.M", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 141, + .width = 46, + .height = 28, + .column = 4, + .row = 1, + .columnbit = ( 1 << 4 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "EV\\kern-1 AL", + .letter = "N", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 59, + .y = 141, + .width = 46, + .height = 28, + .column = 3, + .row = 1, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\tick", + .letter = "O", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 119, + .y = 141, + .width = 46, + .height = 28, + .column = 2, + .row = 1, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "M\\kern-1 E\\kern-1 N\\kern-1 U", + .letter = "P", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 179, + .y = 141, + .width = 46, + .height = 28, + .column = 1, + .row = 1, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\arrowleftdblfull", + .letter = NULL, + .left = NULL, + .right = "CLEAR", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 141, + .width = 46, + .height = 28, + .column = 0, + .row = 1, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "Y\\super x\\/super", + .letter = "Q", + .left = "\\math_e\\xsuperior", + .right = "LN", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 183, + .width = 46, + .height = 28, + .column = 4, + .row = 2, + .columnbit = ( 1 << 4 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\radical\\overscore\\kern-7 X", + .letter = "R", + .left = "\\math_x\\twosuperior", + .right = "\\xsuperior\\kern-4\\math_radical\\overscore\\kern-5\\math_y", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 59, + .y = 183, + .width = 46, + .height = 28, + .column = 3, + .row = 2, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "SIN", + .letter = "S", + .left = "ASIN", + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 119, + .y = 183, + .width = 46, + .height = 28, + .column = 2, + .row = 2, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "COS", + .letter = "T", + .left = "ACOS", + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 179, + .y = 183, + .width = 46, + .height = 28, + .column = 1, + .row = 2, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "TAN", + .letter = "U", + .left = "ATAN", + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 238, + .y = 183, + .width = 46, + .height = 28, + .column = 0, + .row = 2, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "EEX", + .letter = "V", + .left = "10\\xsuperior", + .right = "LOG", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 225, + .width = 46, + .height = 28, + .column = 4, + .row = 3, + .columnbit = ( 1 << 4 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "+\\divisionslash\\minus", + .letter = "W", + .left = "\\math_notequal", + .right = "\\math_equal", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 59, + .y = 225, + .width = 46, + .height = 28, + .column = 3, + .row = 3, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "X", + .letter = "X", + .left = "\\math_lessequal", + .right = "\\math_less", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 119, + .y = 225, + .width = 46, + .height = 28, + .column = 2, + .row = 3, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "1/X", + .letter = "Y", + .left = "\\math_greaterequal", + .right = "\\math_greater", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 179, + .y = 225, + .width = 46, + .height = 28, + .column = 1, + .row = 3, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\divide", + .letter = "Z", + .left = "ABS", + .right = "ARG", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT_NO_SPACE, + .x = 238, + .y = 225, + .width = 46, + .height = 28, + .column = 0, + .row = 3, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "ALPHA", + .letter = "", + .left = "", + .right = "ENTRY", + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 267, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 4, + .bg_color = UI_COLOR_YELLOW}, + {.label = "7", + .letter = "", + .left = "", + .right = "NUM.SLV", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 267, + .width = 46, + .height = 32, + .column = 3, + .row = 4, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "8", + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 267, + .width = 46, + .height = 32, + .column = 2, + .row = 4, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "9", + .letter = "", + .left = "", + .right = "TIME", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 267, + .width = 46, + .height = 32, + .column = 1, + .row = 4, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\multiply", + .letter = NULL, + .left = "[ ]", + .right = "\" \"", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 267, + .width = 46, + .height = 32, + .column = 0, + .row = 4, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\uparrowleft", + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 313, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 5, + .bg_color = UI_COLOR_WHITE}, + {.label = "4", + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 313, + .width = 46, + .height = 32, + .column = 3, + .row = 5, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "5", + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 313, + .width = 46, + .height = 32, + .column = 2, + .row = 5, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "6", + .letter = NULL, + .left = "CONVERT", + .right = "UNITS", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 313, + .width = 46, + .height = 32, + .column = 1, + .row = 5, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\minus", + .letter = NULL, + .left = "( )", + .right = "_", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 313, + .width = 46, + .height = 32, + .column = 0, + .row = 5, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\uparrowright", + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 359, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 6, + .bg_color = UI_COLOR_ORANGE}, + {.label = "1", + .letter = "", + .left = "ARITH", + .right = "CMPLX", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 359, + .width = 46, + .height = 32, + .column = 3, + .row = 6, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "2", + .letter = "", + .left = "", + .right = "LIB", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 359, + .width = 46, + .height = 32, + .column = 2, + .row = 6, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "3", + .letter = NULL, + .left = "\\math_numbersign", + .right = "BASE", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 359, + .width = 46, + .height = 32, + .column = 1, + .row = 6, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "+", + .letter = NULL, + .left = "{ }", + .right = "\\guillemotleft\\ \\guillemotright", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 359, + .width = 46, + .height = 32, + .column = 0, + .row = 6, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "ON", + .letter = NULL, + .left = NULL, + .right = "OFF", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 405, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 0, + .bg_color = UI_COLOR_BLACK}, + {.label = "0", + .letter = NULL, + .left = "\\math_infinity", + .right = "\\math_arrowright", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 405, + .width = 46, + .height = 32, + .column = 3, + .row = 7, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\bullet", + .letter = NULL, + .left = ": :", + .right = "\\math_downarrowleft", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 405, + .width = 46, + .height = 32, + .column = 2, + .row = 7, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "SPC", + .letter = NULL, + .left = "\\math_pi", + .right = "\\large_comma", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 405, + .width = 46, + .height = 32, + .column = 1, + .row = 7, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "ENTER", + .letter = NULL, + .left = NULL, + .right = "\\arrowright NUM", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 405, + .width = 46, + .height = 32, + .column = 0, + .row = 7, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, }; #define X49GP_NEWRPL_UI_NR_KEYS ( sizeof( x49gp_newrpl_ui_keys ) / sizeof( x49gp_newrpl_ui_keys[ 0 ] ) ) static const x49gp_ui_key_t x50g_ui_keys[] = { - {"F1", "A", "Y=", NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 0, 0, - 36, 22, 5, 1, ( 1 << 5 ), ( 1 << 1 ), 1}, - {"F2", "B", "WIN", NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 50, 0, - 36, 22, 5, 2, ( 1 << 5 ), ( 1 << 2 ), 2}, - {"F3", "C", "GRAPH", NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 99, 0, - 36, 22, 5, 3, ( 1 << 5 ), ( 1 << 3 ), 3}, - {"F4", - "D", "2D/3D", - NULL, NULL, - UI_COLOR_BLACK, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, - 12.0, UI_LAYOUT_LEFT, - 149, 0, - 36, 22, - 5, 4, - ( 1 << 5 ), - ( 1 << 4 ), - 4 }, - {"F5", - "E", "TBLSET", - NULL, NULL, - UI_COLOR_BLACK, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, - 12.0, UI_LAYOUT_LEFT, - 198, 0, - 36, 22, - 5, 5, - ( 1 << 5 ), - ( 1 << 5 ), - 5 }, - {"F6", - "F", "TABLE", - NULL, NULL, - UI_COLOR_BLACK, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, - 12.0, UI_LAYOUT_LEFT, - 247, 0, - 36, 22, - 5, 6, - ( 1 << 5 ), - ( 1 << 6 ), - 6 }, - {"APPS", - "G", "FILES", - "BEGIN", NULL, - UI_COLOR_WHITE, 10.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, - 10.0, UI_LAYOUT_BELOW, - 0, 44, - 36, 28, - 5, 7, - ( 1 << 5 ), - ( 1 << 7 ), - 7 }, - {"MODE", - "H", "CUSTOM", - "END", NULL, - UI_COLOR_WHITE, 10.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, - 10.0, UI_LAYOUT_BELOW, - 50, 44, - 36, 28, - 6, 5, - ( 1 << 6 ), - ( 1 << 5 ), - 5 }, - {"TOOL", "I", "i", "I", NULL, UI_COLOR_WHITE, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, 10.0, UI_LAYOUT_BELOW, 99, 44, - 36, 28, 6, 6, ( 1 << 6 ), ( 1 << 6 ), 6}, - {"V\\kern-1 AR", - "J", "UPDIR", - "COPY", NULL, - UI_COLOR_WHITE, 10.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, - 10.0, UI_LAYOUT_BELOW, - 0, 92, - 36, 28, - 6, 7, - ( 1 << 6 ), - ( 1 << 7 ), - 7 }, - {"STO \\triangleright", - "K", "RCL", - "CUT", NULL, - UI_COLOR_WHITE, 10.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, - 10.0, UI_LAYOUT_BELOW, - 50, 92, - 36, 28, - 7, 1, - ( 1 << 7 ), - ( 1 << 1 ), - 1 }, - {"NXT", - "L", "PREV", - "PASTE", NULL, - UI_COLOR_WHITE, 10.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, - 10.0, UI_LAYOUT_BELOW, - 99, 92, - 36, 28, - 7, 2, - ( 1 << 7 ), - ( 1 << 2 ), - 2 }, - {NULL, NULL, NULL, NULL, NULL, UI_COLOR_SILVER, 0.0, 0, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 200, - 38, 33, 33, 6, 1, ( 1 << 6 ), ( 1 << 1 ), 1}, - {NULL, NULL, NULL, NULL, NULL, UI_COLOR_SILVER, 0.0, 0, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 164, - 66, 33, 33, 6, 2, ( 1 << 6 ), ( 1 << 2 ), 2}, - {NULL, NULL, NULL, NULL, NULL, UI_COLOR_SILVER, 0.0, 0, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 200, - 94, 33, 33, 6, 3, ( 1 << 6 ), ( 1 << 3 ), 3}, - {NULL, NULL, NULL, NULL, NULL, UI_COLOR_SILVER, 0.0, 0, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 236, - 66, 33, 33, 6, 4, ( 1 << 6 ), ( 1 << 4 ), 4}, - {"HIST", - "M", "CMD", - "UNDO", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 0, 141, - 46, 28, - 4, 1, - ( 1 << 4 ), - ( 1 << 1 ), - 1 }, - {"EV\\kern-1 AL", - "N", "PRG", - "CHARS", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 59, 141, - 46, 28, - 3, 1, - ( 1 << 3 ), - ( 1 << 1 ), - 1 }, - {"\\tick", - "O", "MTRW", - "EQW", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 119, 141, - 46, 28, - 2, 1, - ( 1 << 2 ), - ( 1 << 1 ), - 1 }, - {"S\\kern-1 Y\\kern-1 M\\kern-1 B", - "P", "MTH", - "CAT", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 179, 141, - 46, 28, - 1, 1, - ( 1 << 1 ), - ( 1 << 1 ), - 1 }, - {"\\arrowleftdblfull", - NULL, "DEL", - "CLEAR", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 0.0, 0, - 238, 141, - 46, 28, - 0, 1, - ( 1 << 0 ), - ( 1 << 1 ), - 1 }, - {"Y\\super x\\/super", - "Q", "\\math_e\\xsuperior", - "LN", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 0, 183, - 46, 28, - 4, 2, - ( 1 << 4 ), - ( 1 << 2 ), - 2 }, - {"\\radical\\overscore\\kern-7 X", - "R", "\\math_x\\twosuperior", - "\\xsuperior\\kern-4\\math_radical\\overscore\\kern-5\\math_y", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 59, 183, - 46, 28, - 3, 2, - ( 1 << 3 ), - ( 1 << 2 ), - 2 }, - {"SIN", - "S", "ASIN", - "\\math_summation", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 119, 183, - 46, 28, - 2, 2, - ( 1 << 2 ), - ( 1 << 2 ), - 2 }, - {"COS", - "T", "ACOS", - "\\math_partialdiff", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 179, 183, - 46, 28, - 1, 2, - ( 1 << 1 ), - ( 1 << 2 ), - 2 }, - {"TAN", - "U", "ATAN", - "\\math_integral", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 238, 183, - 46, 28, - 0, 2, - ( 1 << 0 ), - ( 1 << 2 ), - 2 }, - {"EEX", - "V", "10\\xsuperior", - "LOG", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 0, 225, - 46, 28, - 4, 3, - ( 1 << 4 ), - ( 1 << 3 ), - 3 }, - {"+\\divisionslash\\minus", - "W", "\\math_notequal", - "\\math_equal", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 59, 225, - 46, 28, - 3, 3, - ( 1 << 3 ), - ( 1 << 3 ), - 3 }, - {"X", - "X", "\\math_lessequal", - "\\math_less", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 119, 225, - 46, 28, - 2, 3, - ( 1 << 2 ), - ( 1 << 3 ), - 3 }, - {"1/X", - "Y", "\\math_greaterequal", - "\\math_greater", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 179, 225, - 46, 28, - 1, 3, - ( 1 << 1 ), - ( 1 << 3 ), - 3 }, - {"\\divide", - "Z", "ABS", - "ARG", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT_NO_SPACE, - 238, 225, - 46, 28, - 0, 3, - ( 1 << 0 ), - ( 1 << 3 ), - 3 }, - {"ALPHA", NULL, "USER", "ENTRY", NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 0, 267, 46, 32, - 0, 0, 0, 0, 4}, - {"7", NULL, "S.SLV", "NUM.SLV", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 59, 267, - 46, 32, 3, 4, ( 1 << 3 ), ( 1 << 4 ), 4}, - {"8", NULL, "EXP&LN", "TRIG", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 119, 267, - 46, 32, 2, 4, ( 1 << 2 ), ( 1 << 4 ), 4}, - {"9", NULL, "FINANCE", "TIME", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 179, 267, - 46, 32, 1, 4, ( 1 << 1 ), ( 1 << 4 ), 4}, - {"\\multiply", NULL, "[ ]", "\" \"", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 238, 267, - 46, 32, 0, 4, ( 1 << 0 ), ( 1 << 4 ), 4}, - {"\\uparrowleft", - NULL, NULL, - NULL, NULL, - UI_COLOR_BLACK, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 0, 313, - 46, 32, - 0, 0, - 0, 0, - 5 }, - {"4", NULL, "CALC", "ALG", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 59, 313, - 46, 32, 3, 5, ( 1 << 3 ), ( 1 << 5 ), 5}, - {"5", NULL, "MATRICES", "STAT", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 119, 313, - 46, 32, 2, 5, ( 1 << 2 ), ( 1 << 5 ), 5}, - {"6", NULL, "CONVERT", "UNITS", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 179, 313, - 46, 32, 1, 5, ( 1 << 1 ), ( 1 << 5 ), 5}, - {"\\minus", NULL, "( )", "_", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 238, 313, - 46, 32, 0, 5, ( 1 << 0 ), ( 1 << 5 ), 5}, - {"\\uparrowright", - NULL, NULL, - NULL, NULL, - UI_COLOR_BLACK, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 0, 359, - 46, 32, - 0, 0, - 0, 0, - 6 }, - {"1", NULL, "ARITH", "CMPLX", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 59, 359, - 46, 32, 3, 6, ( 1 << 3 ), ( 1 << 6 ), 6}, - {"2", NULL, "DEF", "LIB", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 119, 359, - 46, 32, 2, 6, ( 1 << 2 ), ( 1 << 6 ), 6}, - {"3", - NULL, "\\math_numbersign", - "BASE", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 179, 359, - 46, 32, - 1, 6, - ( 1 << 1 ), - ( 1 << 6 ), - 6 }, - {"+", - NULL, "{ }", - "\\guillemotleft\\ \\guillemotright", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 238, 359, - 46, 32, - 0, 6, - ( 1 << 0 ), - ( 1 << 6 ), - 6 }, - {"ON", NULL, "CONT", "OFF", "CANCEL", UI_COLOR_WHITE, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 0, 405, 46, 32, - 0, 0, 0, 0, 0}, - {"0", - NULL, "\\math_infinity", - "\\math_arrowright", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 59, 405, - 46, 32, - 3, 7, - ( 1 << 3 ), - ( 1 << 7 ), - 7 }, - {"\\bullet", - NULL, ": :", - "\\math_downarrowleft", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 119, 405, - 46, 32, - 2, 7, - ( 1 << 2 ), - ( 1 << 7 ), - 7 }, - {"SPC", - NULL, "\\math_pi", - "\\large_comma", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 179, 405, - 46, 32, - 1, 7, - ( 1 << 1 ), - ( 1 << 7 ), - 7 }, - {"ENTER", - NULL, "ANS", - "\\arrowright NUM", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 238, 405, - 46, 32, - 0, 7, - ( 1 << 0 ), - ( 1 << 7 ), - 7 }, + {.label = "F1", + .letter = "A", + .left = "Y=", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 1, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F2", + .letter = "B", + .left = "WIN", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 50, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 2, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F3", + .letter = "C", + .left = "GRAPH", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 99, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 3, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F4", + .letter = "D", + .left = "2D/3D", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 149, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 4, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F5", + .letter = "E", + .left = "TBLSET", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 198, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 5, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F6", + .letter = "F", + .left = "TABLE", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 247, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 6, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "APPS", + .letter = "G", + .left = "FILES", + .right = "BEGIN", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 0, + .y = 44, + .width = 36, + .height = 28, + .column = 5, + .row = 7, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "MODE", + .letter = "H", + .left = "CUSTOM", + .right = "END", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 50, + .y = 44, + .width = 36, + .height = 28, + .column = 6, + .row = 5, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "TOOL", + .letter = "I", + .left = "i", + .right = "I", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 99, + .y = 44, + .width = 36, + .height = 28, + .column = 6, + .row = 6, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "V\\kern-1 AR", + .letter = "J", + .left = "UPDIR", + .right = "COPY", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 0, + .y = 92, + .width = 36, + .height = 28, + .column = 6, + .row = 7, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "STO \\triangleright", + .letter = "K", + .left = "RCL", + .right = "CUT", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 50, + .y = 92, + .width = 36, + .height = 28, + .column = 7, + .row = 1, + .columnbit = ( 1 << 7 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "NXT", + .letter = "L", + .left = "PREV", + .right = "PASTE", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 99, + .y = 92, + .width = 36, + .height = 28, + .column = 7, + .row = 2, + .columnbit = ( 1 << 7 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = NULL, + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 0.0, + .font_weight = 0, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 200, + .y = 38, + .width = 33, + .height = 33, + .column = 6, + .row = 1, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_SILVER}, + {.label = NULL, + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 0.0, + .font_weight = 0, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 164, + .y = 66, + .width = 33, + .height = 33, + .column = 6, + .row = 2, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_SILVER}, + {.label = NULL, + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 0.0, + .font_weight = 0, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 200, + .y = 94, + .width = 33, + .height = 33, + .column = 6, + .row = 3, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_SILVER}, + {.label = NULL, + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 0.0, + .font_weight = 0, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 236, + .y = 66, + .width = 33, + .height = 33, + .column = 6, + .row = 4, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_SILVER}, + {.label = "HIST", + .letter = "M", + .left = "CMD", + .right = "UNDO", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 141, + .width = 46, + .height = 28, + .column = 4, + .row = 1, + .columnbit = ( 1 << 4 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "EV\\kern-1 AL", + .letter = "N", + .left = "PRG", + .right = "CHARS", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 59, + .y = 141, + .width = 46, + .height = 28, + .column = 3, + .row = 1, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\tick", + .letter = "O", + .left = "MTRW", + .right = "EQW", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 119, + .y = 141, + .width = 46, + .height = 28, + .column = 2, + .row = 1, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "S\\kern-1 Y\\kern-1 M\\kern-1 B", + .letter = "P", + .left = "MTH", + .right = "CAT", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 179, + .y = 141, + .width = 46, + .height = 28, + .column = 1, + .row = 1, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\arrowleftdblfull", + .letter = NULL, + .left = "DEL", + .right = "CLEAR", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 141, + .width = 46, + .height = 28, + .column = 0, + .row = 1, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "Y\\super x\\/super", + .letter = "Q", + .left = "\\math_e\\xsuperior", + .right = "LN", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 183, + .width = 46, + .height = 28, + .column = 4, + .row = 2, + .columnbit = ( 1 << 4 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\radical\\overscore\\kern-7 X", + .letter = "R", + .left = "\\math_x\\twosuperior", + .right = "\\xsuperior\\kern-4\\math_radical\\overscore\\kern-5\\math_y", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 59, + .y = 183, + .width = 46, + .height = 28, + .column = 3, + .row = 2, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "SIN", + .letter = "S", + .left = "ASIN", + .right = "\\math_summation", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 119, + .y = 183, + .width = 46, + .height = 28, + .column = 2, + .row = 2, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "COS", + .letter = "T", + .left = "ACOS", + .right = "\\math_partialdiff", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 179, + .y = 183, + .width = 46, + .height = 28, + .column = 1, + .row = 2, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "TAN", + .letter = "U", + .left = "ATAN", + .right = "\\math_integral", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 238, + .y = 183, + .width = 46, + .height = 28, + .column = 0, + .row = 2, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "EEX", + .letter = "V", + .left = "10\\xsuperior", + .right = "LOG", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 225, + .width = 46, + .height = 28, + .column = 4, + .row = 3, + .columnbit = ( 1 << 4 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "+\\divisionslash\\minus", + .letter = "W", + .left = "\\math_notequal", + .right = "\\math_equal", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 59, + .y = 225, + .width = 46, + .height = 28, + .column = 3, + .row = 3, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "X", + .letter = "X", + .left = "\\math_lessequal", + .right = "\\math_less", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 119, + .y = 225, + .width = 46, + .height = 28, + .column = 2, + .row = 3, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "1/X", + .letter = "Y", + .left = "\\math_greaterequal", + .right = "\\math_greater", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 179, + .y = 225, + .width = 46, + .height = 28, + .column = 1, + .row = 3, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\divide", + .letter = "Z", + .left = "ABS", + .right = "ARG", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT_NO_SPACE, + .x = 238, + .y = 225, + .width = 46, + .height = 28, + .column = 0, + .row = 3, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "ALPHA", + .letter = NULL, + .left = "USER", + .right = "ENTRY", + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 267, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 4, + .bg_color = UI_COLOR_YELLOW}, + {.label = "7", + .letter = NULL, + .left = "S.SLV", + .right = "NUM.SLV", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 267, + .width = 46, + .height = 32, + .column = 3, + .row = 4, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "8", + .letter = NULL, + .left = "EXP&LN", + .right = "TRIG", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 267, + .width = 46, + .height = 32, + .column = 2, + .row = 4, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "9", + .letter = NULL, + .left = "FINANCE", + .right = "TIME", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 267, + .width = 46, + .height = 32, + .column = 1, + .row = 4, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\multiply", + .letter = NULL, + .left = "[ ]", + .right = "\" \"", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 267, + .width = 46, + .height = 32, + .column = 0, + .row = 4, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\uparrowleft", + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 313, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 5, + .bg_color = UI_COLOR_WHITE}, + {.label = "4", + .letter = NULL, + .left = "CALC", + .right = "ALG", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 313, + .width = 46, + .height = 32, + .column = 3, + .row = 5, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "5", + .letter = NULL, + .left = "MATRICES", + .right = "STAT", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 313, + .width = 46, + .height = 32, + .column = 2, + .row = 5, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "6", + .letter = NULL, + .left = "CONVERT", + .right = "UNITS", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 313, + .width = 46, + .height = 32, + .column = 1, + .row = 5, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\minus", + .letter = NULL, + .left = "( )", + .right = "_", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 313, + .width = 46, + .height = 32, + .column = 0, + .row = 5, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\uparrowright", + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 359, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 6, + .bg_color = UI_COLOR_ORANGE}, + {.label = "1", + .letter = NULL, + .left = "ARITH", + .right = "CMPLX", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 359, + .width = 46, + .height = 32, + .column = 3, + .row = 6, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "2", + .letter = NULL, + .left = "DEF", + .right = "LIB", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 359, + .width = 46, + .height = 32, + .column = 2, + .row = 6, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "3", + .letter = NULL, + .left = "\\math_numbersign", + .right = "BASE", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 359, + .width = 46, + .height = 32, + .column = 1, + .row = 6, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "+", + .letter = NULL, + .left = "{ }", + .right = "\\guillemotleft\\ \\guillemotright", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 359, + .width = 46, + .height = 32, + .column = 0, + .row = 6, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "ON", + .letter = NULL, + .left = "CONT", + .right = "OFF", + .below = "CANCEL", + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 405, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 0, + .bg_color = UI_COLOR_BLACK}, + {.label = "0", + .letter = NULL, + .left = "\\math_infinity", + .right = "\\math_arrowright", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 405, + .width = 46, + .height = 32, + .column = 3, + .row = 7, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\bullet", + .letter = NULL, + .left = ": :", + .right = "\\math_downarrowleft", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 405, + .width = 46, + .height = 32, + .column = 2, + .row = 7, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "SPC", + .letter = NULL, + .left = "\\math_pi", + .right = "\\large_comma", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 405, + .width = 46, + .height = 32, + .column = 1, + .row = 7, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "ENTER", + .letter = NULL, + .left = "ANS", + .right = "\\arrowright NUM", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 405, + .width = 46, + .height = 32, + .column = 0, + .row = 7, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, }; #define X50G_UI_NR_KEYS ( sizeof( x50g_ui_keys ) / sizeof( x50g_ui_keys[ 0 ] ) ) static const x49gp_ui_key_t x50g_newrpl_ui_keys[] = { - {"F1", "A", NULL, NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 0, 0, - 36, 22, 5, 1, ( 1 << 5 ), ( 1 << 1 ), 1}, - {"F2", "B", NULL, NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 50, 0, - 36, 22, 5, 2, ( 1 << 5 ), ( 1 << 2 ), 2}, - {"F3", "C", NULL, NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 99, 0, - 36, 22, 5, 3, ( 1 << 5 ), ( 1 << 3 ), 3}, - {"F4", "D", NULL, NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 149, 0, - 36, 22, 5, 4, ( 1 << 5 ), ( 1 << 4 ), 4}, - {"F5", "E", NULL, NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 198, 0, - 36, 22, 5, 5, ( 1 << 5 ), ( 1 << 5 ), 5}, - {"F6", "F", NULL, NULL, NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_TINY, 12.0, UI_LAYOUT_LEFT, 247, 0, - 36, 22, 5, 6, ( 1 << 5 ), ( 1 << 6 ), 6}, - {"", "G", NULL, NULL, NULL, UI_COLOR_WHITE, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, 10.0, UI_LAYOUT_BELOW, 0, 44, - 36, 28, 5, 7, ( 1 << 5 ), ( 1 << 7 ), 7}, - {"", "H", NULL, NULL, NULL, UI_COLOR_WHITE, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, 10.0, UI_LAYOUT_BELOW, 50, 44, - 36, 28, 6, 5, ( 1 << 6 ), ( 1 << 5 ), 5}, - {"", "I", NULL, NULL, NULL, UI_COLOR_WHITE, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, 10.0, UI_LAYOUT_BELOW, 99, 44, - 36, 28, 6, 6, ( 1 << 6 ), ( 1 << 6 ), 6}, - {"", "J", NULL, NULL, NULL, UI_COLOR_WHITE, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, 10.0, UI_LAYOUT_BELOW, 0, 92, - 36, 28, 6, 7, ( 1 << 6 ), ( 1 << 7 ), 7}, - {"", "K", NULL, NULL, NULL, UI_COLOR_WHITE, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, 10.0, UI_LAYOUT_BELOW, 50, 92, - 36, 28, 7, 1, ( 1 << 7 ), ( 1 << 1 ), 1}, - {"", "L", NULL, NULL, NULL, UI_COLOR_WHITE, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_SMALL, 10.0, UI_LAYOUT_BELOW, 99, 92, - 36, 28, 7, 2, ( 1 << 7 ), ( 1 << 2 ), 2}, - {"", "", "UPDIR", NULL, NULL, UI_COLOR_SILVER, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 200, 38, - 33, 33, 6, 1, ( 1 << 6 ), ( 1 << 1 ), 1}, - {"", "", "BEG COPY", NULL, NULL, UI_COLOR_SILVER, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 164, 66, - 33, 33, 6, 2, ( 1 << 6 ), ( 1 << 2 ), 2}, - {"", "", "CUT", NULL, NULL, UI_COLOR_SILVER, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 200, 94, - 33, 33, 6, 3, ( 1 << 6 ), ( 1 << 3 ), 3}, - {"", "", "END PASTE", NULL, NULL, UI_COLOR_SILVER, 10.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_ROUND, 0.0, 0, 236, 66, - 33, 33, 6, 4, ( 1 << 6 ), ( 1 << 4 ), 4}, - {"S\\kern-1 T\\kern-1 O\\kern-1\\triangleright", - "M", "RCL", - "PREV.M", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 0, 141, - 46, 28, - 4, 1, - ( 1 << 4 ), - ( 1 << 1 ), - 1 }, - {"EV\\kern-1 AL", - "N", NULL, - NULL, NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 59, 141, - 46, 28, - 3, 1, - ( 1 << 3 ), - ( 1 << 1 ), - 1 }, - {"\\tick", - "O", NULL, - NULL, NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 119, 141, - 46, 28, - 2, 1, - ( 1 << 2 ), - ( 1 << 1 ), - 1 }, - {"M\\kern-1 E\\kern-1 N\\kern-1 U", - "P", NULL, - NULL, NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 179, 141, - 46, 28, - 1, 1, - ( 1 << 1 ), - ( 1 << 1 ), - 1 }, - {"\\arrowleftdblfull", - NULL, NULL, - "CLEAR", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 0.0, 0, - 238, 141, - 46, 28, - 0, 1, - ( 1 << 0 ), - ( 1 << 1 ), - 1 }, - {"Y\\super x\\/super", - "Q", "\\math_e\\xsuperior", - "LN", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 0, 183, - 46, 28, - 4, 2, - ( 1 << 4 ), - ( 1 << 2 ), - 2 }, - {"\\radical\\overscore\\kern-7 X", - "R", "\\math_x\\twosuperior", - "\\xsuperior\\kern-4\\math_radical\\overscore\\kern-5\\math_y", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 59, 183, - 46, 28, - 3, 2, - ( 1 << 3 ), - ( 1 << 2 ), - 2 }, - {"SIN", - "S", "ASIN", - NULL, NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 119, 183, - 46, 28, - 2, 2, - ( 1 << 2 ), - ( 1 << 2 ), - 2 }, - {"COS", - "T", "ACOS", - NULL, NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 179, 183, - 46, 28, - 1, 2, - ( 1 << 1 ), - ( 1 << 2 ), - 2 }, - {"TAN", - "U", "ATAN", - NULL, NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 238, 183, - 46, 28, - 0, 2, - ( 1 << 0 ), - ( 1 << 2 ), - 2 }, - {"EEX", - "V", "10\\xsuperior", - "LOG", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 0, 225, - 46, 28, - 4, 3, - ( 1 << 4 ), - ( 1 << 3 ), - 3 }, - {"+\\divisionslash\\minus", - "W", "\\math_notequal", - "\\math_equal", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 59, 225, - 46, 28, - 3, 3, - ( 1 << 3 ), - ( 1 << 3 ), - 3 }, - {"X", - "X", "\\math_lessequal", - "\\math_less", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 119, 225, - 46, 28, - 2, 3, - ( 1 << 2 ), - ( 1 << 3 ), - 3 }, - {"1/X", - "Y", "\\math_greaterequal", - "\\math_greater", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT, - 179, 225, - 46, 28, - 1, 3, - ( 1 << 1 ), - ( 1 << 3 ), - 3 }, - {"\\divide", - "Z", "ABS", - "ARG", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_NORMAL, - 12.0, UI_LAYOUT_LEFT_NO_SPACE, - 238, 225, - 46, 28, - 0, 3, - ( 1 << 0 ), - ( 1 << 3 ), - 3 }, - {"ALPHA", "", "", "ENTRY", NULL, UI_COLOR_BLACK, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 0, 267, 46, 32, - 0, 0, 0, 0, 4}, - {"7", "", "", "NUM.SLV", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 59, 267, - 46, 32, 3, 4, ( 1 << 3 ), ( 1 << 4 ), 4}, - {"8", NULL, NULL, NULL, NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 119, 267, - 46, 32, 2, 4, ( 1 << 2 ), ( 1 << 4 ), 4}, - {"9", "", "", "TIME", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 179, 267, - 46, 32, 1, 4, ( 1 << 1 ), ( 1 << 4 ), 4}, - {"\\multiply", NULL, "[ ]", "\" \"", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 238, 267, - 46, 32, 0, 4, ( 1 << 0 ), ( 1 << 4 ), 4}, - {"\\uparrowleft", - NULL, NULL, - NULL, NULL, - UI_COLOR_BLACK, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 0, 313, - 46, 32, - 0, 0, - 0, 0, - 5 }, - {"4", NULL, NULL, NULL, NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 59, 313, - 46, 32, 3, 5, ( 1 << 3 ), ( 1 << 5 ), 5}, - {"5", NULL, NULL, NULL, NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 119, 313, - 46, 32, 2, 5, ( 1 << 2 ), ( 1 << 5 ), 5}, - {"6", NULL, "CONVERT", "UNITS", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 179, 313, - 46, 32, 1, 5, ( 1 << 1 ), ( 1 << 5 ), 5}, - {"\\minus", NULL, "( )", "_", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 238, 313, - 46, 32, 0, 5, ( 1 << 0 ), ( 1 << 5 ), 5}, - {"\\uparrowright", - NULL, NULL, - NULL, NULL, - UI_COLOR_BLACK, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 0, 359, - 46, 32, - 0, 0, - 0, 0, - 6 }, - {"1", "", "ARITH", "CMPLX", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 59, 359, - 46, 32, 3, 6, ( 1 << 3 ), ( 1 << 6 ), 6}, - {"2", "", "", "LIB", NULL, UI_COLOR_WHITE, 19.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 119, 359, - 46, 32, 2, 6, ( 1 << 2 ), ( 1 << 6 ), 6}, - {"3", - NULL, "\\math_numbersign", - "BASE", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 179, 359, - 46, 32, - 1, 6, - ( 1 << 1 ), - ( 1 << 6 ), - 6 }, - {"+", - NULL, "{ }", - "\\guillemotleft\\ \\guillemotright", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 238, 359, - 46, 32, - 0, 6, - ( 1 << 0 ), - ( 1 << 6 ), - 6 }, - {"ON", NULL, NULL, "OFF", NULL, UI_COLOR_WHITE, 12.0, CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, 0.0, 0, 0, 405, 46, 32, - 0, 0, 0, 0, 0}, - {"0", - NULL, "\\math_infinity", - "\\math_arrowright", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 59, 405, - 46, 32, - 3, 7, - ( 1 << 3 ), - ( 1 << 7 ), - 7 }, - {"\\bullet", - NULL, ": :", - "\\math_downarrowleft", NULL, - UI_COLOR_WHITE, 19.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 119, 405, - 46, 32, - 2, 7, - ( 1 << 2 ), - ( 1 << 7 ), - 7 }, - {"SPC", - NULL, "\\math_pi", - "\\large_comma", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 179, 405, - 46, 32, - 1, 7, - ( 1 << 1 ), - ( 1 << 7 ), - 7 }, - {"ENTER", - NULL, NULL, - "\\arrowright NUM", NULL, - UI_COLOR_WHITE, 12.0, - CAIRO_FONT_WEIGHT_BOLD, UI_SHAPE_BUTTON_LARGE, - 0.0, 0, - 238, 405, - 46, 32, - 0, 7, - ( 1 << 0 ), - ( 1 << 7 ), - 7 }, + {.label = "F1", + .letter = "A", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 1, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F2", + .letter = "B", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 50, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 2, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F3", + .letter = "C", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 99, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 3, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F4", + .letter = "D", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 149, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 4, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F5", + .letter = "E", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 198, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 5, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "F6", + .letter = "F", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_TINY, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 247, + .y = 0, + .width = 36, + .height = 22, + .column = 5, + .row = 6, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_GRAYSCALE_5}, + {.label = "", + .letter = "G", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 0, + .y = 44, + .width = 36, + .height = 28, + .column = 5, + .row = 7, + .columnbit = ( 1 << 5 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "", + .letter = "H", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 50, + .y = 44, + .width = 36, + .height = 28, + .column = 6, + .row = 5, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "", + .letter = "I", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 99, + .y = 44, + .width = 36, + .height = 28, + .column = 6, + .row = 6, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "", + .letter = "J", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 0, + .y = 92, + .width = 36, + .height = 28, + .column = 6, + .row = 7, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "", + .letter = "K", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 50, + .y = 92, + .width = 36, + .height = 28, + .column = 7, + .row = 1, + .columnbit = ( 1 << 7 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "", + .letter = "L", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_SMALL, + .letter_size = 10.0, + .layout = UI_LAYOUT_BELOW, + .x = 99, + .y = 92, + .width = 36, + .height = 28, + .column = 7, + .row = 2, + .columnbit = ( 1 << 7 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "", + .letter = "", + .left = "UPDIR", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 200, + .y = 38, + .width = 33, + .height = 33, + .column = 6, + .row = 1, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_SILVER}, + {.label = "", + .letter = "", + .left = "BEG COPY", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 164, + .y = 66, + .width = 33, + .height = 33, + .column = 6, + .row = 2, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_SILVER}, + {.label = "", + .letter = "", + .left = "CUT", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 200, + .y = 94, + .width = 33, + .height = 33, + .column = 6, + .row = 3, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_SILVER}, + {.label = "", + .letter = "", + .left = "END PASTE", + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 10.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_ROUND, + .letter_size = 0.0, + .layout = 0, + .x = 236, + .y = 66, + .width = 33, + .height = 33, + .column = 6, + .row = 4, + .columnbit = ( 1 << 6 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_SILVER}, + {.label = "S\\kern-1 T\\kern-1 O\\kern-1\\triangleright", + .letter = "M", + .left = "RCL", + .right = "PREV.M", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 141, + .width = 46, + .height = 28, + .column = 4, + .row = 1, + .columnbit = ( 1 << 4 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "EV\\kern-1 AL", + .letter = "N", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 59, + .y = 141, + .width = 46, + .height = 28, + .column = 3, + .row = 1, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\tick", + .letter = "O", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 119, + .y = 141, + .width = 46, + .height = 28, + .column = 2, + .row = 1, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "M\\kern-1 E\\kern-1 N\\kern-1 U", + .letter = "P", + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 179, + .y = 141, + .width = 46, + .height = 28, + .column = 1, + .row = 1, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\arrowleftdblfull", + .letter = NULL, + .left = NULL, + .right = "CLEAR", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 141, + .width = 46, + .height = 28, + .column = 0, + .row = 1, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 1 ), + .eint = 1, + .bg_color = UI_COLOR_BLACK}, + {.label = "Y\\super x\\/super", + .letter = "Q", + .left = "\\math_e\\xsuperior", + .right = "LN", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 183, + .width = 46, + .height = 28, + .column = 4, + .row = 2, + .columnbit = ( 1 << 4 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\radical\\overscore\\kern-7 X", + .letter = "R", + .left = "\\math_x\\twosuperior", + .right = "\\xsuperior\\kern-4\\math_radical\\overscore\\kern-5\\math_y", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 59, + .y = 183, + .width = 46, + .height = 28, + .column = 3, + .row = 2, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "SIN", + .letter = "S", + .left = "ASIN", + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 119, + .y = 183, + .width = 46, + .height = 28, + .column = 2, + .row = 2, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "COS", + .letter = "T", + .left = "ACOS", + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 179, + .y = 183, + .width = 46, + .height = 28, + .column = 1, + .row = 2, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "TAN", + .letter = "U", + .left = "ATAN", + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 238, + .y = 183, + .width = 46, + .height = 28, + .column = 0, + .row = 2, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 2 ), + .eint = 2, + .bg_color = UI_COLOR_BLACK}, + {.label = "EEX", + .letter = "V", + .left = "10\\xsuperior", + .right = "LOG", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 0, + .y = 225, + .width = 46, + .height = 28, + .column = 4, + .row = 3, + .columnbit = ( 1 << 4 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "+\\divisionslash\\minus", + .letter = "W", + .left = "\\math_notequal", + .right = "\\math_equal", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 59, + .y = 225, + .width = 46, + .height = 28, + .column = 3, + .row = 3, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "X", + .letter = "X", + .left = "\\math_lessequal", + .right = "\\math_less", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 119, + .y = 225, + .width = 46, + .height = 28, + .column = 2, + .row = 3, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "1/X", + .letter = "Y", + .left = "\\math_greaterequal", + .right = "\\math_greater", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT, + .x = 179, + .y = 225, + .width = 46, + .height = 28, + .column = 1, + .row = 3, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\divide", + .letter = "Z", + .left = "ABS", + .right = "ARG", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_NORMAL, + .letter_size = 12.0, + .layout = UI_LAYOUT_LEFT_NO_SPACE, + .x = 238, + .y = 225, + .width = 46, + .height = 28, + .column = 0, + .row = 3, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 3 ), + .eint = 3, + .bg_color = UI_COLOR_BLACK}, + {.label = "ALPHA", + .letter = "", + .left = "", + .right = "ENTRY", + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 267, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 4, + .bg_color = UI_COLOR_YELLOW}, + {.label = "7", + .letter = "", + .left = "", + .right = "NUM.SLV", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 267, + .width = 46, + .height = 32, + .column = 3, + .row = 4, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "8", + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 267, + .width = 46, + .height = 32, + .column = 2, + .row = 4, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "9", + .letter = "", + .left = "", + .right = "TIME", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 267, + .width = 46, + .height = 32, + .column = 1, + .row = 4, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\multiply", + .letter = NULL, + .left = "[ ]", + .right = "\" \"", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 267, + .width = 46, + .height = 32, + .column = 0, + .row = 4, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 4 ), + .eint = 4, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\uparrowleft", + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 313, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 5, + .bg_color = UI_COLOR_WHITE}, + {.label = "4", + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 313, + .width = 46, + .height = 32, + .column = 3, + .row = 5, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "5", + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 313, + .width = 46, + .height = 32, + .column = 2, + .row = 5, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "6", + .letter = NULL, + .left = "CONVERT", + .right = "UNITS", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 313, + .width = 46, + .height = 32, + .column = 1, + .row = 5, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\minus", + .letter = NULL, + .left = "( )", + .right = "_", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 313, + .width = 46, + .height = 32, + .column = 0, + .row = 5, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 5 ), + .eint = 5, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\uparrowright", + .letter = NULL, + .left = NULL, + .right = NULL, + .below = NULL, + .color = UI_COLOR_BLACK, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 359, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 6, + .bg_color = UI_COLOR_ORANGE}, + {.label = "1", + .letter = "", + .left = "ARITH", + .right = "CMPLX", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 359, + .width = 46, + .height = 32, + .column = 3, + .row = 6, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "2", + .letter = "", + .left = "", + .right = "LIB", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 359, + .width = 46, + .height = 32, + .column = 2, + .row = 6, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "3", + .letter = NULL, + .left = "\\math_numbersign", + .right = "BASE", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 359, + .width = 46, + .height = 32, + .column = 1, + .row = 6, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "+", + .letter = NULL, + .left = "{ }", + .right = "\\guillemotleft\\ \\guillemotright", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 359, + .width = 46, + .height = 32, + .column = 0, + .row = 6, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 6 ), + .eint = 6, + .bg_color = UI_COLOR_BLACK}, + {.label = "ON", + .letter = NULL, + .left = NULL, + .right = "OFF", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 0, + .y = 405, + .width = 46, + .height = 32, + .column = 0, + .row = 0, + .columnbit = 0, + .rowbit = 0, + .eint = 0, + .bg_color = UI_COLOR_BLACK}, + {.label = "0", + .letter = NULL, + .left = "\\math_infinity", + .right = "\\math_arrowright", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 59, + .y = 405, + .width = 46, + .height = 32, + .column = 3, + .row = 7, + .columnbit = ( 1 << 3 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "\\bullet", + .letter = NULL, + .left = ": :", + .right = "\\math_downarrowleft", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 19.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 119, + .y = 405, + .width = 46, + .height = 32, + .column = 2, + .row = 7, + .columnbit = ( 1 << 2 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "SPC", + .letter = NULL, + .left = "\\math_pi", + .right = "\\large_comma", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 179, + .y = 405, + .width = 46, + .height = 32, + .column = 1, + .row = 7, + .columnbit = ( 1 << 1 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, + {.label = "ENTER", + .letter = NULL, + .left = NULL, + .right = "\\arrowright NUM", + .below = NULL, + .color = UI_COLOR_WHITE, + .font_size = 12.0, + .font_weight = CAIRO_FONT_WEIGHT_BOLD, + .shape = UI_SHAPE_BUTTON_LARGE, + .letter_size = 0.0, + .layout = 0, + .x = 238, + .y = 405, + .width = 46, + .height = 32, + .column = 0, + .row = 7, + .columnbit = ( 1 << 0 ), + .rowbit = ( 1 << 7 ), + .eint = 7, + .bg_color = UI_COLOR_BLACK}, }; #define X50G_NEWRPL_UI_NR_KEYS ( sizeof( x50g_newrpl_ui_keys ) / sizeof( x50g_newrpl_ui_keys[ 0 ] ) ) @@ -2885,6 +5689,15 @@ static void x49gp_button_realize( GtkWidget* widget, gpointer user_data ) cairo_stroke( cr ); #endif + cairo_set_source_rgb( cr, ui->colors[key->bg_color].red / 65535.0, ui->colors[key->bg_color].green / 65535.0, ui->colors[key->bg_color].blue / 65535.0 ); + cairo_set_line_width( cr, 1.0 ); + cairo_move_to( cr, xoffset, yoffset ); + cairo_line_to( cr, xoffset + w - 1, yoffset ); + cairo_line_to( cr, xoffset + w - 1, yoffset + h - 1 ); + cairo_line_to( cr, xoffset, yoffset + h - 1 ); + cairo_close_path( cr ); + cairo_fill( cr ); + if ( key->letter ) { x49gp_ui_text_size( cr, opt.font, key->letter_size, &xoff, &yoff, &width, &height, &ascent, &descent, 1, CAIRO_FONT_SLANT_NORMAL, key->font_weight, key->letter ); @@ -3281,7 +6094,7 @@ static int gui_load( x49gp_module_t* module, GKeyFile* keyfile ) int fd = x49gp_module_open_rodata( module, ui->calculator == UI_CALCULATOR_HP49GP || ui->calculator == UI_CALCULATOR_HP49GP_NEWRPL ? "hp49g+-cropped.png" - : "blank.png" /* "hp50g-cropped.png" */, + : /* "blank.png" */ "hp50g-cropped.png", &imagefile ); if ( fd < 0 ) return fd; @@ -3299,8 +6112,8 @@ static int gui_load( x49gp_module_t* module, GKeyFile* keyfile ) ui->lcd_x_offset = ( ui->width - ui->lcd_width ) / 2; ui->lcd_y_offset = 48; // 69; - ui->kb_x_offset = 10; // 36; - ui->kb_y_offset = ui->lcd_y_offset + ui->lcd_height + 56;// 280; // 301; + ui->kb_x_offset = 10; // 36; + ui->kb_y_offset = ui->lcd_y_offset + ui->lcd_height + 56; // 280; // 301; ui->window = gtk_window_new( GTK_WINDOW_TOPLEVEL ); gtk_widget_set( ui->window, "can-focus", true, NULL ); diff --git a/src/x49gpng/x49gp_ui.h b/src/x49gpng/x49gp_ui.h index a6ed036..4cbd676 100644 --- a/src/x49gpng/x49gp_ui.h +++ b/src/x49gpng/x49gp_ui.h @@ -79,6 +79,7 @@ typedef struct { unsigned char columnbit; unsigned char rowbit; int eint; + x49gp_ui_color_t bg_color; } x49gp_ui_key_t; typedef struct {