コード例 #1
0
ファイル: playtext.c プロジェクト: Jheengut/gmerlin
void
uih_inittext (uih_context * c)
{
  c->text[0] = c->text[1] = c->text[2] = NULL;
  c->textpos[0] = c->textpos[1] = c->textpos[2] = 0;
  c->textwindow[0] = uih_registerw (c, getpos, draw, (void *) 0, 0);
  c->textwindow[1] = uih_registerw (c, getpos, draw, (void *) 1, 0);
  c->textwindow[2] = uih_registerw (c, getpos, draw, (void *) 2, 0);
}
コード例 #2
0
ファイル: filesel.c プロジェクト: Azizou/XaoS
void
ui_buildfilesel(const char *f, const char *m,
		void (*c) (const char *, int))
{
    if (filevisible) {
	x_fatalerror("Internal error!");
    }
    pressedbutton = activebutton = active = -1;
    if (lastdir[0] == 0)
	getcwd(lastdir, 256);
    lastdir[255] = 0;
    currdir = mystrdup(lastdir);
    callback = c;
    active = AFILE;
    filex = 0;
    filey = 0;
    filewidth = uih->image->width;
    fileheight = uih->image->height;
    namestart = dirstart = 0;
    mask = m;
    dir =
	ui_opentext(filex + 2 * BORDERWIDTH, DIRSTART + BORDERHEIGHT,
		    filewidth - 4 * BORDERWIDTH, lastdir);
    filename =
	ui_opentext(filex + 2 * BORDERWIDTH, FILESTART + BORDERHEIGHT,
		    filewidth - 4 * BORDERWIDTH, f);
    filevisible = 1;
    ui_buildnames(LISTWIDTH);
    filew = uih_registerw(uih, filepos, drawfile, 0, DRAWBORDER);
}
コード例 #3
0
ファイル: messg.c プロジェクト: Jheengut/gmerlin
void
uih_initmessages (uih_context * c)
{
  int i;
  for (i = 0; i < NMESSAGES; i++)
    {
      c->messg.message[i] = NULL;
      c->messg.w[i] = uih_registerw (c, getpos, draw, (void *) i, 0);
    }
  c->messg.messagestart = 0;
}