⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 warglist.h

📁 linux下的E_MAIL客户端源码
💻 H
📖 第 1 页 / 共 2 页
字号:
   RSRC_SET(NumExportTargets,	Cardinal,	"numExportTargets")   RSRC_SET(NumImportTargets,	Cardinal,	"numImportTargets")   RSRC_SET(OffsetX,		Position,	"offsetX")   RSRC_SET(OffsetY,		Position,	"offsetY")   RSRC_SET(OkLabelString,	XmString,	"okLabelString")   RSRC_SET(OperationChangedCallback, XtCallbackList,"operationChangedCallback")   RSRC_SET(OperationCursorIcon,	Widget,	"operationCursorIcon")   RSRC_SET(Orientation,	unsigned char,	"orientation")   DONT_SET(OutputCreate,	XtProc,		"outputCreate")   RSRC_SET(OverrideRedirect,	Boolean,	"overrideRedirect")   RSRC_SET(Packing,		unsigned char,	"packing")   RSRC_SET(PageIncrement,	int,		"pageIncrement")   RSRC_SET(PaneMaximum,	Dimension,	"paneMaximum")   RSRC_SET(PaneMinimum,	Dimension,	"paneMinimum")   RSRC_SET(Pattern,		XmString,	"pattern")   RSRC_SET(PendingDelete,	Boolean,	"pendingDelete")   RSRC_SET(pixmap,		Pixmap,		"pixmap")   RSRC_SET(PopupEnabled,	Boolean,	"popupEnabled")   RSRC_SET(PositionIndex,	short,		"positionIndex")   RSRC_SET(ProcessingDirection,	unsigned char,	"processingDirection")   RSRC_SET(PromptString,	XmString,	"promptString")   RSRC_SET(PushButtonEnabled,	Boolean,	"pushButtonEnabled")   RSRC_SET(RadioAlwaysOne,	Boolean,	"radioAlwaysOne")   RSRC_SET(RadioBehavior,	Boolean,	"radioBehavior")   RSRC_SET(RecomputeSize,	Boolean,	"recomputeSize")   RSRC_SET(RefigureMode,	Boolean,	"refigureMode")   RSRC_SET(RepeatDelay,	int,		"repeatDelay")   RSRC_SET(Resizable,		Boolean,	"resizable")   RSRC_SET(ResizeHeight,	Boolean,	"resizeHeight")   RSRC_SET(ResizePolicy,	unsigned char,	"resizePolicy")   RSRC_SET(ResizeWidth,	Boolean,	"resizeWidth")   RSRC_SET(RightAttachment,	unsigned char,	"rightAttachment")   RSRC_SET(RightOffset,	int,		"rightOffset")   RSRC_SET(RightPosition,	int,		"rightPosition")   RSRC_SET(RightWidget,	Widget,		"rightWidget")   RSRC_SET(RowColumnType,	unsigned char,	"rowColumnType")   RSRC_SET(Rows,		short,		"rows")   RSRC_SET(RubberPositioning,	Boolean,	"rubberPositioning")   RSRC_SET(SashHeight,		Dimension,	"sashHeight")   RSRC_SET(SashIndent,		Position,	"sashIndent")   RSRC_SET(SashShadowThickness,	int,	"sashShadowThickness")   RSRC_SET(SashWidth,		Dimension,	"sashWidth")   RSRC_SET(SaveUnder,		Boolean,	"saveUnder")   RSRC_SET(ScaleHeight,	Dimension,	"scaleHeight")   RSRC_SET(ScaleWidth,		Dimension,	"scaleWidth")   RSRC_SET(ScrollBarDisplayPolicy,	unsigned char,	"scrollBarDisplayPolicy")   RSRC_SET(ScrollBarPlacement,	unsigned char,	"scrollBarPlacement")   RSRC_SET(ScrollHorizontal,	Boolean,	"scrollHorizontal")   RSRC_SET(ScrollLeftSide,	Boolean,	"scrollLeftSide")   RSRC_SET(ScrollTopSide,	Boolean,	"scrollTopSide")   RSRC_SET(ScrollVertical,	Boolean,	"scrollVertical")   RSRC_SET(ScrolledWindowMarginHeight,	short,	"scrolledWindowMarginHeight")   RSRC_SET(ScrolledWindowMarginWidth,	short,	"scrolledWindowMarginWidth")   RSRC_SET(ScrollingPolicy,	unsigned char,	"scrollingPolicy")   RSRC_SET(SelectColor,	Pixel,		"selectColor")   RSRC_SET(SelectInsensitivePixmap,	Pixmap,	"selectInsensitivePixmap")   RSRC_SET(SelectPixmap,	Pixmap,		"selectPixmap")   RSRC_SET(SelectThreshold,	int,		"selectThreshold")   RSRC_SET(SelectedItemCount,	int,		"selectedItemCount")   RSRC_SET(SelectedItems,	XmStringTable,	"selectedItems")   RSRC_SET(SelectionArray,	XtPointer,	"selectionArray")   RSRC_SET(SelectionArrayCount,	int,	"selectionArrayCount")   RSRC_SET(SelectionLabelString,	XmString,	"selectionLabelString")   RSRC_SET(SelectionPolicy,	unsigned char,	"selectionPolicy")   RSRC_SET(Sensitive,		Boolean,	"sensitive")   RSRC_SET(SeparatorOn,	Boolean,	"separatorOn")   RSRC_SET(SeparatorType,	unsigned char,	"separatorType")   RSRC_SET(Set,		Boolean,	"set")   RSRC_SET(ShadowThickness,	short,		"shadowThickness")   RSRC_SET(ShadowType,		unsigned char,	"shadowType")   RSRC_SET(ShellUnitType,	unsigned char,	"shellUnitType")   RSRC_SET(ShowArrows,		Boolean,	"showArrows")   RSRC_SET(ShowAsDefault,	short,		"showAsDefault")   RSRC_SET(ShowSeparator,	Boolean,	"showSeparator")   RSRC_SET(ShowValue,		Boolean,	"showValue")   RSRC_SET(SkipAdjust,		Boolean,	"skipAdjust")   RSRC_SET(SliderSize,		int,		"sliderSize")   DONT_SET(Source,		XmTextSource,	"source")   RSRC_SET(SourceCursorIcon,	Widget,		"sourceCursorIcon")   RSRC_SET(SourcePixmapIcon,	Widget,		"sourcePixmapIcon")   RSRC_SET(Spacing,		Dimension,	"spacing")   RSRC_SET(StateCursorIcon,	Widget,		"stateCursorIcon")   RSRC_SET(StringDirection,	unsigned char,	"stringDirection")   RSRC_SET(SubMenuId,		Widget,		"subMenuId")   RSRC_SET(SymbolPixmap,	Pixmap,		"symbolPixmap")   RSRC_SET(TearOffMenuActivateCallback, XtCallbackList, "tearOffMenuActivateCallback")   RSRC_SET(TearOffMenuDeactivateCallback, XtCallbackList, "tearOffMenuDeactivateCallback")   RSRC_SET(TearOffModel,	unsigned char,	"tearOffModel")   RSRC_SET(TextAccelerators,	XtTranslations,	"textAccelerators")   RSRC_SET(TextColumns,	short,		"textColumns")   RSRC_SET(TextFontList,	XmFontList,	"textFontList")   RSRC_SET(TextString,		XmString,	"textString")   RSRC_SET(TextTranslations,	XtTranslations,	"textTranslations")   RSRC_SET(Title,		char*,		"title")   RSRC_SET(TitleString,	XmString,	"titleString")   RSRC_SET(TopAttachment,	unsigned char,	"topAttachment")   RSRC_SET(TopCharacter,	XmTextPosition,	"topCharacter")   RSRC_SET(TopItemPosition,	int,		"topItemPosition")   RSRC_SET(TopLevelEnterCallback,	XtCallbackList,	"topLevelEnterCallback")   RSRC_SET(TopLevelLeaveCallback,	XtCallbackList,	"topLevelLeaveCallback")   RSRC_SET(TopOffset,		int,		"topOffset")   RSRC_SET(TopPosition,	int,		"topPosition")   RSRC_SET(TopShadowColor,	Pixel,		"topShadowColor")   RSRC_SET(TopShadowPixmap,	Pixmap,		"topShadowPixmap")   RSRC_SET(TopWidget,		Widget,		"topWidget")   RSRC_SET(TransferProc,	XtSelectionCallbackProc,	"transferProc")   RSRC_SET(TransferStatus,	unsigned char,	"transferStatus")   RSRC_SET(Transient,		Boolean,	"transient")   RSRC_SET(Translations,	XtTranslations,	"translations")   RSRC_SET(TraversalOn,	Boolean,	"traversalOn")   RSRC_SET(UnitType,		unsigned char,	"unitType")   RSRC_SET(UnmapCallback,	XtCallbackList,	"unmapCallback")   RSRC_SET(UnpostBehavior,	unsigned char,	"unpostBehavior")   RSRC_SET(UserData,		XtPointer,	"userData")   RSRC_SET(ValidCursorForeground,	Pixel,	"validCursorForeground")   RSRC_SET(Value,		char*,		"value")   RSRC_SET(Value,		int,		"value")   RSRC_SET(VerifyBell,		Boolean,	"verifyBell")   RSRC_SET(VerticalFontUnit,	int,		"verticalFontUnit")   RSRC_SET(VerticalScrollBar,	Widget,		"verticalScrollBar")   RSRC_SET(VerticalSpacing,	int,		"verticalSpacing")   RSRC_SET(VisibleItemCount,	int,		"visibleItemCount")   RSRC_SET(VisibleWhenOff,	Boolean,	"visibleWhenOff")   RSRC_SET(VisualPolicy,	unsigned char,	"visualPolicy")   RSRC_SET(Waitforwm,		Boolean,	"waitforwm")   RSRC_SET(WhichButton,	unsigned int,	"whichButton")   RSRC_SET(Width,		Dimension,	"width")   RSRC_SET(WidthInc,		int,		"widthInc")   RSRC_SET(WindowGroup,	Widget,		"windowGroup")   RSRC_SET(WmTimeout,		int,		"wmTimeout")   RSRC_SET(WordWrap,		Boolean,	"wordWrap")   RSRC_SET(WorkWindow,		Widget,		"workWindow")   RSRC_SET(X,			Position,	"x")   RSRC_SET(Y,			Position,	"y")   RSRC_SET(_Screen,		void*,		"screen")#if XmVersion >= 1002// Constraint Resources -- Valid only in a frame   RSRC_SET(ChildType,		      unsigned char, "childType")   RSRC_SET(ChildHorizontalAlignment, unsigned char, "childHorizontalAlignment")   RSRC_SET(ChildHorizontalSpacing,   Dimension,     "childHorizontalSpacing")   RSRC_SET(ChildVerticalAlignment,   unsigned char, "childVerticalAlignment")#endif   inline WArgList& LeftAttachment(unsigned char to_what, Widget w) {      LeftAttachment(to_what);      LeftWidget(w);      return *this;   }   inline WArgList& LeftAttachment(unsigned char to_what, Widget w,int off) {      LeftAttachment(to_what);      LeftWidget(w);      LeftOffset(off);      return *this;   }   inline WArgList& LeftAttachment(unsigned char to_what, int posoff) {      LeftAttachment(to_what);      if( to_what == XmATTACH_POSITION ) LeftPosition(posoff);      else				 LeftOffset(posoff);      return *this;   }   inline WArgList& LeftAttachment(unsigned char to_what, int pos, int off) {      LeftAttachment(to_what);      LeftPosition(pos);      LeftOffset(off);      return *this;   }   inline WArgList& RightAttachment(unsigned char to_what, Widget w) {      RightAttachment(to_what);      RightWidget(w);      return *this;   }   inline WArgList& RightAttachment(unsigned char to_what, Widget w,int off) {      RightAttachment(to_what);      RightWidget(w);      RightOffset(off);      return *this;   }   inline WArgList& RightAttachment(unsigned char to_what, int posoff) {      RightAttachment(to_what);      if( to_what == XmATTACH_POSITION ) RightPosition(posoff);      else				 RightOffset(posoff);      return *this;   }   inline WArgList& RightAttachment(unsigned char to_what, int pos, int off) {      RightAttachment(to_what);      RightPosition(pos);      RightOffset(off);      return *this;   }   inline WArgList& TopAttachment(unsigned char to_what, Widget w) {      TopAttachment(to_what);      TopWidget(w);      return *this;   }   inline WArgList& TopAttachment(unsigned char to_what, Widget w,int off) {      TopAttachment(to_what);      TopWidget(w);      TopOffset(off);      return *this;   }   inline WArgList& TopAttachment(unsigned char to_what, int posoff) {      TopAttachment(to_what);      if( to_what == XmATTACH_POSITION ) TopPosition(posoff);      else				 TopOffset(posoff);      return *this;   }   inline WArgList& TopAttachment(unsigned char to_what, int pos, int off) {      TopAttachment(to_what);      TopPosition(pos);      TopOffset(off);      return *this;   }   inline WArgList& BottomAttachment(unsigned char to_what, Widget w) {      BottomAttachment(to_what);      BottomWidget(w);      return *this;   }   inline WArgList& BottomAttachment(unsigned char to_what, Widget w,int off) {      BottomAttachment(to_what);      BottomWidget(w);      BottomOffset(off);      return *this;   }   inline WArgList& BottomAttachment(unsigned char to_what, int posoff) {      BottomAttachment(to_what);      if( to_what == XmATTACH_POSITION ) BottomPosition(posoff);      else				 BottomOffset(posoff);      return *this;   }   inline WArgList& BottomAttachment(unsigned char to_what, int pos, int off) {      BottomAttachment(to_what);      BottomPosition(pos);      BottomOffset(off);      return *this;   }};inline Arg&WArgList::Grow (Cardinal n){   // Return a reference to the requested arg if it is present   if (n >= alloc_args) {      // Allocate more if requested arg is not present      int	new_alloc_args = n + 16;      ArgList new_args = new Arg[new_alloc_args];      // Copy any existing args to the new area      if (args && num_args) {         memcpy (new_args, args, num_args * sizeof (Arg));         // Delete existing args if allocated         if (alloc_args) {	    delete args;         }      }      // Store new information      alloc_args = new_alloc_args;      args = new_args;   }      // Return reference to requested argument   return args[n];}inline Arg&WArgList::operator [] (Cardinal n){   if (n < num_args|| n < alloc_args) return args[n];   else				      return Grow(n);}inline WArgList&WArgList::Add (String name, XtArgVal value){// First look to see if this arg is already in the list.//    Use that one if it is   Arg		*a = NULL;   Boolean	found = False;// Loop til a matching name is found or we get to the end of the array   for (int i=0; !found && i<num_args; i++) {      a = &(*this)[i];      if ( strcmp(a->name, name) == 0 ) {	 found = True;      }   }// If the arg was found, then "a" is already set.  If not, set it here   if ( !found ) {      a = &(*this)[num_args];      num_args++;   }   a->name  = name;   a->value = value;   return (*this); }#if 0inline WArgList::WArgList (String name, XtArgVal value, ...)   : args (NULL), num_args (0), alloc_args (0){   String str;   Add (name, value);   va_list argv;   va_start (argv, value);   while (str = va_arg(argv, String))      Add (str, va_arg (argv, XtArgVal));   va_end (argv);}#endif#endif // WArgList_h

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -