亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fl_arg.cxx

?? flnx 0.17 是做嵌入linux gui 必備工具箱
?? CXX
字號:
//// "$Id: Fl_arg.cxx,v 1.1.1.1 2003/08/07 21:18:40 jasonk Exp $"//// Optional argument initialization code for the Fast Light Tool Kit (FLTK).//// Copyright 1998-1999 by Bill Spitzak and others.//// This library is free software; you can redistribute it and/or// modify it under the terms of the GNU Library General Public// License as published by the Free Software Foundation; either// version 2 of the License, or (at your option) any later version.//// This library is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU// Library General Public License for more details.//// You should have received a copy of the GNU Library General Public// License along with this library; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307// USA.//// Please report all bugs and problems to "fltk-bugs@easysw.com".//// OPTIONAL initialization code for a program using fltk.// You do not need to call this!  Feel free to make up your own switches.#include <FL/Fl.H>#include <FL/x.H>#include <FL/Fl_Window.H>#include <FL/filename.H>#include <FL/fl_draw.H>#include <ctype.h>#include <string.h>#ifdef WIN32int XParseGeometry(const char*, int*, int*, unsigned int*, unsigned int*);#define NoValue		0x0000#define XValue  	0x0001#define YValue		0x0002#define WidthValue  	0x0004#define HeightValue  	0x0008#define AllValues 	0x000F#define XNegative 	0x0010#define YNegative 	0x0020#endifstatic int match(const char *a, const char *match, int atleast = 1) {  const char *b = match;  while (*a && (*a == *b || tolower(*a) == *b)) {a++; b++;}  return !*a && b >= match+atleast;}// flags set by previously parsed arguments:extern char fl_show_iconic; // in Fl_x.Cstatic char arg_called;static char return_i;static const char *name;static const char *geometry;static const char *title;// these are in Fl_get_system_colors and are set by the switches:extern const char *fl_fg;extern const char *fl_bg;extern const char *fl_bg2;// consume a switch from argv.  Returns number of words eaten, 0 on error:int Fl::arg(int argc, char **argv, int &i) {  arg_called = 1;  const char *s = argv[i];  if (!s) {i++; return 1;}	// something removed by calling program?  // a word that does not start with '-', or a word after a '--', or  // the word '-' by itself all start the "non-switch arguments" to  // a program.  Return 0 to indicate that we don't understand the  // word, but set a flag (return_i) so that args() will return at  // that point:  if (s[0] != '-' || s[1] == '-' || !s[1]) {return_i = 1; return 0;}  s++; // point after the dash  if (match(s, "iconic")) {    fl_show_iconic = 1;    i++;    return 1;  }  const char *v = argv[i+1];  if (i >= argc-1 || !v)    return 0;	// all the rest need an argument, so if missing it is an error  if (match(s, "geometry")) {#ifndef NANO_X	//tanghao    int flags, gx, gy; unsigned int gw, gh;    flags = XParseGeometry(v, &gx, &gy, &gw, &gh);    if (!flags) return 0;#endif    geometry = v;#ifndef WIN32  } else if (match(s, "display")) {    Fl::display(v);#endif  } else if (match(s, "title")) {    title = v;  } else if (match(s, "name")) {    name = v;  } else if (match(s, "bg2", 3) || match(s, "background2", 11)) {    fl_bg2 = v;  } else if (match(s, "bg") || match(s, "background")) {    fl_bg = v;  } else if (match(s, "fg") || match(s, "foreground")) {    fl_fg = v;  } else return 0; // unrecognized  i += 2;  return 2;}// consume all switches from argv.  Returns number of words eaten.// Returns zero on error.  'i' will either point at first word that// does not start with '-', at the error word, or after a '--', or at// argc.  If your program does not take any word arguments you can// report an error if i < argc.int Fl::args(int argc, char** argv, int& i, int (*cb)(int,char**,int&)) {  arg_called = 1;  i = 1; // skip argv[0]  while (i < argc) {    if (cb && cb(argc,argv,i)) continue;    if (!arg(argc,argv,i)) return return_i ? i : 0;  }  return i;}// show a main window, use any parsed argumentsvoid Fl_Window::show(int argc, char **argv) {  if (!argc) {show(); return;}  if (!arg_called) Fl::args(argc,argv);  // set colors first, so background_pixel is correct:  static char beenhere;  if (!beenhere) {    beenhere = 1;    Fl::get_system_colors(); // opens display!  May call Fl::fatal()    if (geometry) {      int flags = 0, gx = x(), gy = y(); unsigned int gw = w(), gh = h();#ifndef NANO_X      flags = XParseGeometry(geometry, &gx, &gy, &gw, &gh);      if (flags & XNegative) gx = Fl::w()-w()+gx;      if (flags & YNegative) gy = Fl::h()-h()+gy;#endif      //  int mw,mh; minsize(mw,mh);      //  if (mw > gw) gw = mw;      //  if (mh > gh) gh = mh;      Fl_Widget *r = resizable();      if (!r) resizable(this);      // for WIN32 we assumme window is not mapped yet:#ifndef NANO_X      if (flags & (XValue | YValue))	x(-1), resize(gx,gy,gw,gh);      else	size(gw,gh);#endif    resizable(r);    }  }  if (name) {xclass(name); name = 0;}  else if (!xclass()) xclass(filename_name(argv[0]));  if (title) {label(title); title = 0;}  else if (!label()) label(xclass());  show();#ifndef WIN32  // set the command string, used by state-saving window managers:  int i;  int n=0; for (i=0; i<argc; i++) n += strlen(argv[i])+1;#ifdef __GNUC__  char buffer[n];#else  char *buffer = new char[n];#endif  char *p = buffer;  for (i=0; i<argc; i++) for (const char *q = argv[i]; (*p++ = *q++););#ifndef NANO_X  XChangeProperty(fl_display, fl_xid(this), XA_WM_COMMAND, XA_STRING, 8, 0,		  (unsigned char *)buffer, p-buffer-1);#endif#ifndef __GNUC__  delete[] buffer;#endif#endif}// Calls useful for simple demo programs, with automatic help message:static const char * const helpmsg ="options are:\n"" -d[isplay] host:n.n\n"" -g[eometry] WxH+X+Y\n"" -t[itle] windowtitle\n"" -n[ame] classname\n"" -i[conic]\n"" -fg color\n"" -bg color\n"" -bg2 color";const char * const Fl::help = helpmsg+13;void Fl::args(int argc, char **argv) {  int i; if (Fl::args(argc,argv,i) < argc) Fl::error(helpmsg);}#ifdef WIN32/* the following function was stolen from the X sources as indicated. *//* Copyright 	Massachusetts Institute of Technology  1985, 1986, 1987 *//* $XConsortium: XParseGeom.c,v 11.18 91/02/21 17:23:05 rws Exp $ *//*Permission to use, copy, modify, distribute, and sell this software and itsdocumentation for any purpose is hereby granted without fee, provided thatthe above copyright notice appear in all copies and that both thatcopyright notice and this permission notice appear in supportingdocumentation, and that the name of M.I.T. not be used in advertising orpublicity pertaining to distribution of the software without specific,written prior permission.  M.I.T. makes no representations about thesuitability of this software for any purpose.  It is provided "as is"without express or implied warranty.*//* *    XParseGeometry parses strings of the form *   "=<width>x<height>{+-}<xoffset>{+-}<yoffset>", where *   width, height, xoffset, and yoffset are unsigned integers. *   Example:  "=80x24+300-49" *   The equal sign is optional. *   It returns a bitmask that indicates which of the four values *   were actually found in the string.  For each value found, *   the corresponding argument is updated;  for each value *   not found, the corresponding argument is left unchanged.  */static int ReadInteger(char* string, char** NextString){  register int Result = 0;  int Sign = 1;      if (*string == '+')    string++;  else if (*string == '-') {    string++;    Sign = -1;  }  for (; (*string >= '0') && (*string <= '9'); string++) {    Result = (Result * 10) + (*string - '0');  }  *NextString = string;  if (Sign >= 0)    return (Result);  else    return (-Result);}int XParseGeometry(const char* string, int* x, int* y,		   unsigned int* width, unsigned int* height){  int mask = NoValue;  register char *strind;  unsigned int tempWidth, tempHeight;  int tempX, tempY;  char *nextCharacter;  if ( (string == NULL) || (*string == '\0')) return(mask);  if (*string == '=')    string++;  /* ignore possible '=' at beg of geometry spec */  strind = (char *)string;  if (*strind != '+' && *strind != '-' && *strind != 'x') {    tempWidth = ReadInteger(strind, &nextCharacter);    if (strind == nextCharacter)       return (0);    strind = nextCharacter;    mask |= WidthValue;  }  if (*strind == 'x' || *strind == 'X') {	    strind++;    tempHeight = ReadInteger(strind, &nextCharacter);    if (strind == nextCharacter)      return (0);    strind = nextCharacter;    mask |= HeightValue;  }  if ((*strind == '+') || (*strind == '-')) {    if (*strind == '-') {      strind++;      tempX = -ReadInteger(strind, &nextCharacter);      if (strind == nextCharacter)	return (0);      strind = nextCharacter;      mask |= XNegative;    } else {      strind++;      tempX = ReadInteger(strind, &nextCharacter);      if (strind == nextCharacter)	return(0);      strind = nextCharacter;      }    mask |= XValue;    if ((*strind == '+') || (*strind == '-')) {      if (*strind == '-') {	strind++;	tempY = -ReadInteger(strind, &nextCharacter);	if (strind == nextCharacter)	  return(0);	strind = nextCharacter;	mask |= YNegative;      } else {	strind++;	tempY = ReadInteger(strind, &nextCharacter);	if (strind == nextCharacter)	  return(0);	strind = nextCharacter;      }      mask |= YValue;    }  }	  /* If strind isn't at the end of the string the it's an invalid     geometry specification. */  if (*strind != '\0') return (0);  if (mask & XValue)    *x = tempX;  if (mask & YValue)    *y = tempY;  if (mask & WidthValue)    *width = tempWidth;  if (mask & HeightValue)    *height = tempHeight;  return (mask);}#endif // ifdef WIN32//// End of "$Id: Fl_arg.cxx,v 1.1.1.1 2003/08/07 21:18:40 jasonk Exp $".//

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
kk眼镜猥琐国模调教系列一区二区 | 麻豆国产91在线播放| 亚洲精品国久久99热| 国产精品久久久久久福利一牛影视| 久久这里只有精品视频网| 精品国产91久久久久久久妲己| 337p粉嫩大胆噜噜噜噜噜91av| 久久欧美一区二区| 国产精品污www在线观看| 中文字幕一区二区三区视频| 中文字幕五月欧美| 亚洲成av人片| 久久国产福利国产秒拍| 99久久精品免费精品国产| 91蝌蚪porny成人天涯| 欧美综合一区二区| 欧美乱妇20p| 亚洲福利电影网| 亚洲日本欧美天堂| 亚洲一区二区四区蜜桃| 久久av中文字幕片| 99久久精品免费| 91精品午夜视频| 久久久久久久久久电影| 亚洲人xxxx| 男女性色大片免费观看一区二区 | 久久综合久久综合久久综合| 中文字幕精品在线不卡| 亚洲成人一区在线| 成人午夜av影视| 欧美久久久久中文字幕| 欧美高清在线精品一区| 亚洲二区视频在线| 成人一级片在线观看| 欧美丝袜自拍制服另类| 久久久久免费观看| 亚洲综合一区在线| 国产福利91精品一区二区三区| 欧美影院一区二区三区| 日本一区二区三区在线观看| 亚洲综合精品久久| 国模冰冰炮一区二区| 99这里都是精品| 欧美一区二区三区四区高清 | 欧美日韩国产精品成人| 2020国产精品自拍| 亚洲动漫第一页| 日韩一区二区三区视频在线 | 91美女在线看| 26uuu国产在线精品一区二区| 亚洲综合丝袜美腿| 不卡的av中国片| 国产亚洲精品bt天堂精选| 日日夜夜精品免费视频| 91在线一区二区三区| 中文字幕不卡一区| 国产老肥熟一区二区三区| 欧美肥妇free| 日本不卡123| 欧美日韩不卡一区二区| 亚洲高清免费观看高清完整版在线观看 | 欧美亚洲动漫另类| 亚洲免费电影在线| 99久久99久久综合| 久久久久久久综合色一本| 蜜臀99久久精品久久久久久软件| 欧美狂野另类xxxxoooo| 亚洲视频免费看| 成人免费视频免费观看| 精品久久国产老人久久综合| 亚洲美女免费视频| 蜜桃视频免费观看一区| 欧美揉bbbbb揉bbbbb| 国产精品久久久久久久午夜片 | 日本午夜精品视频在线观看| 欧美少妇一区二区| 亚洲成人激情av| 日韩一级在线观看| 国产精品一区二区你懂的| 国产亚洲欧美色| 成人黄色国产精品网站大全在线免费观看 | 亚洲综合一区二区| 精品视频999| 麻豆91免费看| 国产亚洲一区二区三区| 不卡影院免费观看| 亚洲精品免费一二三区| 欧美高清dvd| 国模娜娜一区二区三区| 国产精品伦一区二区三级视频| 91丨九色丨国产丨porny| 亚洲成国产人片在线观看| 日韩午夜激情av| 国产成人亚洲综合a∨婷婷| 亚洲色图在线视频| 欧美日产在线观看| 国产精品白丝av| 亚洲国产一二三| 欧美大片免费久久精品三p| 懂色av一区二区在线播放| 一区二区三区在线免费视频| 日韩一区二区在线观看视频| 成人av网站在线观看| 天天综合网天天综合色| 国产清纯在线一区二区www| 91久久一区二区| 国产综合色产在线精品| 亚洲男女毛片无遮挡| 日韩精品综合一本久道在线视频| 99久精品国产| 久草这里只有精品视频| 亚洲一二三四在线| 亚洲国产电影在线观看| 91精品国产美女浴室洗澡无遮挡| 成人午夜短视频| 久久精品99久久久| 亚洲成a人v欧美综合天堂下载 | 91国偷自产一区二区三区观看| 免费成人小视频| 亚洲国产视频一区二区| 国产精品三级av| 精品久久久久久久久久久久久久久久久| 色哟哟一区二区| 成人深夜在线观看| 久久国产精品99久久久久久老狼| 亚洲小说春色综合另类电影| 日本一区二区三区高清不卡| 日韩欧美精品在线| 欧美夫妻性生活| 欧美日韩综合在线| 日本精品一级二级| 不卡一区二区在线| 成人免费黄色大片| 国产高清精品久久久久| 国内精品写真在线观看| 免费成人性网站| 日韩国产精品久久| 视频一区欧美日韩| 三级在线观看一区二区| 婷婷综合在线观看| 日韩高清一区在线| 日韩精品福利网| 日本va欧美va精品| 美女国产一区二区三区| 老司机精品视频在线| 麻豆精品在线看| 国产精品一二三在| 福利电影一区二区| jlzzjlzz国产精品久久| 成人性生交大片免费看中文| 国产99久久久国产精品潘金| 成人免费视频caoporn| 高清在线观看日韩| 91视频在线观看| 在线一区二区三区| 欧美日韩精品一区二区| 欧美日韩一区二区电影| 911精品国产一区二区在线| 欧美一区二区三区白人| 精品动漫一区二区三区在线观看| 久久一区二区视频| ...av二区三区久久精品| 亚洲欧美日韩国产一区二区三区| 一区二区三区在线播放| 视频一区视频二区在线观看| 蜜桃视频在线观看一区二区| 国产精品资源网站| 不卡一区在线观看| 欧美日韩mp4| 久久久蜜桃精品| 亚洲久草在线视频| 午夜久久电影网| 国产高清精品久久久久| 在线视频一区二区三| 欧美成人激情免费网| 国产精品伦一区| 日韩精品亚洲一区二区三区免费| 韩国精品一区二区| 欧洲精品中文字幕| 精品国产乱码久久久久久免费 | 国产精品二三区| 天堂资源在线中文精品| 国产一区二区精品久久91| av一本久道久久综合久久鬼色| 欧美日本一区二区三区四区| 久久精品亚洲精品国产欧美| 亚洲一级二级三级在线免费观看| 久久69国产一区二区蜜臀| 91麻豆成人久久精品二区三区| 欧美麻豆精品久久久久久| 久久人人超碰精品| 偷拍日韩校园综合在线| 成人午夜精品一区二区三区| 91精品婷婷国产综合久久性色| 国产精品网站在线| 免费成人你懂的| 欧美在线视频你懂得| 欧美高清在线视频| 黑人巨大精品欧美黑白配亚洲| 欧美亚洲一区二区在线|