void CheckBoxMenu::drawInner() { GUI_SetColor(CHECKBOX_INNER_COLOR); GUI_FillRect(x0+CheckBox_A_margin+CheckBox_A_padding, y0+CheckBox_A_margin+CheckBox_A_padding, x0+CheckBox_A_margin+CheckBox_A_padding+getAS(), y0+CheckBox_A_margin+CheckBox_A_padding+getAS()); }
void CheckBoxMenu::clearInner() { GUI_SetColor(MENU_TEXT_BK_NORMAL_COLOR); GUI_FillRect(x0+CheckBox_A_margin+CheckBox_A_padding, y0+CheckBox_A_margin+CheckBox_A_padding, x0+CheckBox_A_margin+CheckBox_A_padding+getAS(), y0+CheckBox_A_margin+CheckBox_A_padding+getAS()); }
static void parseFunction(ParseResult info, HeapTuple procTup) { /* The user's function definition must be the fully * qualified name of a java method short of parameter * signature. */ char* ip; char* ep; char* bp = getAS(procTup, &ep); info->buffer = bp; /* The AS clause can have two formats * * <class name> "." <method name> [ "(" <parameter decl> ["," <parameter decl> ... ] ")" ] * or * "UDT" "[" <class name> "]" <UDT function type> * where <UDT function type> is one of "input", "output", "receive" or "send" */ if(ep - bp >= 4 && strncasecmp(bp, "udt[", 4) == 0) { parseUDT(info, bp + 4, ep); return; } info->isUDT = false; /* Scan backwards from ep. */ ip = ep - 1; if(*ip == ')') { /* We have an explicit parameter type declaration */ *ip-- = 0; while(ip > bp && *ip != '(') --ip; if(ip == bp) { ereport(ERROR, ( errcode(ERRCODE_SYNTAX_ERROR), errmsg("Unbalanced parenthesis"))); } info->parameters = ip + 1; *ip-- = 0; } /* Find last '.' occurrence. */ while(ip > bp && *ip != '.') --ip; if(ip == bp) { ereport(ERROR, ( errcode(ERRCODE_SYNTAX_ERROR), errmsg("Did not find <fully qualified class>.<method name>"))); } info->methodName = ip + 1; *ip = 0; /* Check if we have a return type declaration */ while(--ip > bp) { if(*ip == '=') { info->className = ip + 1; *ip = 0; break; } } if(info->className != 0) info->returnType = bp; else info->className = bp; elog(DEBUG3, "className = '%s', methodName = '%s', parameters = '%s', returnType = '%s'", info->className == 0 ? "null" : info->className, info->methodName == 0 ? "null" : info->methodName, info->parameters == 0 ? "null" : info->parameters, info->returnType == 0 ? "null" : info->returnType); }