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

📄 textp.h

📁 nedit 是一款linux下的开发源码的功能强大的编辑器
💻 H
字号:
/* $Id: textP.h,v 1.8 2003/04/18 01:07:39 n8gray Exp $ */#ifndef NEDIT_TEXTP_H_INCLUDED#define NEDIT_TEXTP_H_INCLUDED/********************************************************************************									       ** textP.h - Text Editing Widget	private include file			       **									       ********************************************************************************/#include "textBuf.h"#include "textDisp.h"#include <X11/Intrinsic.h>#include <X11/Xlib.h>#include <X11/X.h>#include <Xm/XmP.h>#include <Xm/PrimitiveP.h>#include <X11/CoreP.h>enum dragStates {NOT_CLICKED, PRIMARY_CLICKED, SECONDARY_CLICKED,	CLICKED_IN_SELECTION,  PRIMARY_DRAG, PRIMARY_RECT_DRAG, SECONDARY_DRAG,	SECONDARY_RECT_DRAG, PRIMARY_BLOCK_DRAG, DRAG_CANCELED, MOUSE_PAN};enum multiClickStates {NO_CLICKS, ONE_CLICK, TWO_CLICKS, THREE_CLICKS};typedef struct _TextClassPart{    int ignore;} TextClassPart;typedef struct _TextClassRec{    CoreClassPart  core_class;    XmPrimitiveClassPart primitive_class;    TextClassPart  text_class;} TextClassRec;extern TextClassRec nTextClassRec;typedef struct _TextPart {    /* resources */    Pixel selectFGPixel, selectBGPixel, highlightFGPixel, highlightBGPixel;    Pixel cursorFGPixel, lineNumFGPixel, calltipFGPixel, calltipBGPixel;    XFontStruct *fontStruct;    Boolean pendingDelete;    Boolean autoShowInsertPos;    Boolean autoWrap;    Boolean autoWrapPastedText;    Boolean continuousWrap;    Boolean autoIndent;    Boolean smartIndent;    Boolean overstrike;    Boolean heavyCursor;    Boolean readOnly;    Boolean hidePointer;    int rows, columns;    int marginWidth, marginHeight;    int cursorBlinkRate;    int wrapMargin;    int emulateTabs;    int lineNumCols;    char *delimiters;    Cardinal cursorVPadding;    Widget hScrollBar, vScrollBar;    XtCallbackList focusInCB;    XtCallbackList focusOutCB;    XtCallbackList cursorCB;    XtCallbackList dragStartCB;    XtCallbackList dragEndCB;    XtCallbackList smartIndentCB;    /* private state */    textDisp *textD;			/* Pointer to display information */    int anchor, rectAnchor;		/* Anchors for drag operations and    					   rectangular drag operations */    int dragState;			/* Why is the mouse being dragged    					   and what is being acquired */    int multiClickState;		/* How long is this multi-click    					   sequence so far */    int btnDownX, btnDownY;		/* Mark the position of last btn down    					   action for deciding when to begin    					   paying attention to motion actions,    					   and where to paste columns */    Time lastBtnDown;			/* Timestamp of last button down event    					   for multi-click recognition */    int mouseX, mouseY;			/* Last known mouse position in drag    					   operation (for autoscroll) */    int selectionOwner;			/* True if widget owns the selection */    int motifDestOwner;			/* " " owns the motif destination */    int emTabsBeforeCursor;		/* If non-zero, number of consecutive    					   emulated tabs just entered.  Saved    					   so chars can be deleted as a unit */    XtIntervalId autoScrollProcID;	/* id of Xt timer proc for autoscroll */    XtIntervalId cursorBlinkProcID;	/* id of timer proc for cursor blink */    textBuffer *dragOrigBuf;	    	/* backup buffer copy used during    	    	    	    	    	   block dragging of selections */    int dragXOffset, dragYOffset;   	/* offsets between cursor location and    	    	    	    	    	   actual insertion point in drag */    int dragType;   	    	    	/* style of block drag operation */    int dragInsertPos;	    	    	/* location where text being block    	    	    	    	    	   dragged was last inserted */    int dragRectStart;	    	    	/* rect. offset "" */    int dragInserted;	    	    	/* # of characters inserted at drag    	    	    	    	    	   destination in last drag position */    int dragDeleted;	    	    	/* # of characters deleted "" */    int dragSourceDeletePos;	    	/* location from which move source    	    	    	    	    	   text was removed at start of drag */    int dragSourceInserted; 	    	/* # of chars. inserted when move    	    	    	    	    	   source text was deleted */    int dragSourceDeleted;  	    	/* # of chars. deleted "" */    int dragNLines; 	    	    	/* # of newlines in text being drag'd */    XmString backlightCharTypes;	/* background class string to parse */} TextPart;typedef struct _TextRec {   CorePart        core;   XmPrimitivePart primitive;   TextPart        text;} TextRec;#endif /* NEDIT_TEXTP_H_INCLUDED */

⌨️ 快捷键说明

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