예제 #1
0
파일: key.c 프로젝트: 8l/nhc98
static void KeyEntry(double centreline, char* name, float percentage, int colour)
{
  double namebase;
  double keyboxbase;
  double kstart;


  namebase = centreline - (double) (NORMAL_FONT / 2);
  keyboxbase = centreline - ((double) KEY_BOX_WIDTH / 2);
  
  kstart = graphx0 + graphwidth;

  outputBox(colour,kstart + borderspace, keyboxbase, KEY_BOX_WIDTH, KEY_BOX_WIDTH);

  sprintf(buffer,"%2d%%",(int)(percentage*100+0.5));
  output->Text(JustifyRight
              ,kstart + (double)2.6* KEY_BOX_WIDTH + 2 * borderspace, namebase
              ,KEY_FONT
              ,buffer);

  output->Text(JustifyLeft
              ,kstart + (double)2.9* KEY_BOX_WIDTH + 2 * borderspace, namebase
              ,KEY_FONT
              ,name);
}
예제 #2
0
파일: Output.c 프로젝트: ee08b397/mlkit
void TitleOutlineBox(void)
{
    outputBox(-1,borderspace,borderheight - titleheight - borderspace
              ,titlewidth,titleheight);
}
예제 #3
0
파일: Output.c 프로젝트: ee08b397/mlkit
void BorderOutlineBox(void)
{
    outputBox(-1,0.0,0.0,borderwidth,borderheight);
}