1 /* $Id: window.h,v 1.9 2002/07/11 21:18:12 slobasso Exp $ */
3 #ifndef NEDIT_WINDOW_H_INCLUDED
4 #define NEDIT_WINDOW_H_INCLUDED
9 #include <X11/Intrinsic.h>
11 WindowInfo
*CreateWindow(const char *title
, char *geometry
, int iconic
);
12 void CloseWindow(WindowInfo
*window
);
14 void UpdateWindowTitle(const WindowInfo
*window
);
15 void UpdateWindowReadOnly(WindowInfo
*window
);
16 void UpdateStatsLine(WindowInfo
*window
);
17 void UpdateLineNumDisp(WindowInfo
*window
);
18 void UpdateWMSizeHints(WindowInfo
*window
);
19 void UpdateMinPaneHeights(WindowInfo
*window
);
20 void SetWindowModified(WindowInfo
*window
, int modified
);
21 void MakeSelectionVisible(WindowInfo
*window
, Widget textPane
);
22 int GetSelection(Widget widget
, int *left
, int *right
);
23 int GetSimpleSelection(textBuffer
*buf
, int *left
, int *right
);
24 char *GetTextRange(Widget widget
, int left
, int right
);
25 WindowInfo
*FindWindowWithFile(const char *name
, const char *path
);
26 void SetAutoIndent(WindowInfo
*window
, int state
);
27 void SetShowMatching(WindowInfo
*window
, int state
);
28 void SetFonts(WindowInfo
*window
, const char *fontName
, const char *italicName
,
29 const char *boldName
, const char *boldItalicName
);
30 void SetOverstrike(WindowInfo
*window
, int overstrike
);
31 void SetAutoWrap(WindowInfo
*window
, int state
);
32 void SetWrapMargin(WindowInfo
*window
, int margin
);
33 void SplitWindow(WindowInfo
*window
);
34 Widget
GetPaneByIndex(WindowInfo
*window
, int paneIndex
);
35 int WidgetToPaneIndex(WindowInfo
*window
, Widget w
);
36 void ClosePane(WindowInfo
*window
);
37 void ShowStatsLine(WindowInfo
*window
, int state
);
38 void ShowISearchLine(WindowInfo
*window
, int state
);
39 void TempShowISearch(WindowInfo
*window
, int state
);
40 void ShowLineNumbers(WindowInfo
*window
, int state
);
41 void SetModeMessage(WindowInfo
*window
, char *message
);
42 void ClearModeMessage(WindowInfo
*window
);
43 WindowInfo
*WidgetToWindow(Widget w
);
44 void AddSmallIcon(Widget shell
);
45 void SetTabDist(WindowInfo
*window
, int tabDist
);
46 void SetEmTabDist(WindowInfo
*window
, int emTabDist
);
48 #endif /* NEDIT_WINDOW_H_INCLUDED */