mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
removed compile warnings in wmtext :-)
This commit is contained in:
@@ -1431,10 +1431,18 @@ void WMSetTextHasRuler(WMText *tPtr, Bool shouldhave);
|
||||
|
||||
void WMShowTextRuler(WMText *tPtr, Bool show);
|
||||
|
||||
void WMSetTextUseMonoFont(WMText *tPtr, Bool mono);
|
||||
void WMSetTextEditable(WMText *tPtr, Bool editable);
|
||||
|
||||
int WMGetTextEditable(WMText *tPtr);
|
||||
|
||||
void WMSetTextUsesMonoFont(WMText *tPtr, Bool mono);
|
||||
|
||||
int WMGetTextUsesMonoFont(WMText *tPtr);
|
||||
|
||||
void WMSetTextIgnoresNewline(WMText *tPtr, Bool ignore);
|
||||
|
||||
int WMGetTextIgnoresNewline(WMText *tPtr);
|
||||
|
||||
void WMSetTextDefaultFont(WMText *tPtr, WMFont *font);
|
||||
|
||||
WMFont * WMGetTextDefaultFont(WMText *tPtr);
|
||||
@@ -1449,7 +1457,17 @@ void WMPrependTextStream(WMText *tPtr, char *text);
|
||||
|
||||
void WMAppendTextStream(WMText *tPtr, char *text);
|
||||
|
||||
WMData * WMGetTextSelected(WMText *tPtr);
|
||||
/* free the returned text */
|
||||
char * WMGetTextStream(WMText *tPtr);
|
||||
|
||||
/* destroy the bag */
|
||||
WMBag * WMGetTextStreamObjects(WMText *tPtr);
|
||||
|
||||
/* free the returned text */
|
||||
char * WMGetTextSelected(WMText *tPtr);
|
||||
|
||||
/* destroy the bag */
|
||||
WMBag * WMGetTextSelectedObjects(WMText *tPtr);
|
||||
|
||||
void *WMCreateTextBlockWithObject(WMWidget *w, char *description,
|
||||
WMColor *color, unsigned short first, unsigned short reserved);
|
||||
@@ -1465,6 +1483,11 @@ void WMGetTextBlockProperties(void *vtb, unsigned int *first,
|
||||
unsigned int *kanji, unsigned int *underlined, int *script,
|
||||
unsigned int *marginN);
|
||||
|
||||
void WMSetTextSelectionColor(WMText *tPtr, WMColor *color);
|
||||
|
||||
void WMSetTextSelectionFont(WMText *tPtr, WMFont *font);
|
||||
|
||||
void WMSetTextAlignment(WMText *tPtr, WMAlignment alignment);
|
||||
|
||||
/* parser related stuff... see how it can be done in testtext.c */
|
||||
|
||||
|
||||
@@ -329,9 +329,9 @@ static void handleEvents(XEvent * event, void *data)
|
||||
if (verifyMarkerMove(rPtr, event->xmotion.x)) {
|
||||
GC gc = WMColorGC(WMDarkGrayColor(rPtr->view->screen));
|
||||
|
||||
paintRuler(rPtr);
|
||||
if (rPtr->moveAction)
|
||||
(rPtr->moveAction) (rPtr, rPtr->clientData);
|
||||
paintRuler(rPtr);
|
||||
XSetLineAttributes(rPtr->view->screen->display, gc, 1,
|
||||
LineSolid, CapNotLast, JoinMiter);
|
||||
XDrawLine(rPtr->pview->screen->display,
|
||||
|
||||
@@ -1075,13 +1075,14 @@ int main(int argc, char **argv)
|
||||
*
|
||||
* Put the testSomething() function you want to test here.
|
||||
*/
|
||||
testTabView(scr);
|
||||
testColorWell(scr);
|
||||
|
||||
|
||||
testDragAndDrop(scr);
|
||||
testDragAndDrop(scr);
|
||||
testFontPanel(scr);
|
||||
|
||||
#if 0
|
||||
|
||||
testDragAndDrop(scr);
|
||||
testDragAndDrop(scr);
|
||||
|
||||
testScrollView(scr);
|
||||
|
||||
testButton(scr);
|
||||
@@ -1089,10 +1090,9 @@ int main(int argc, char **argv)
|
||||
testFrame(scr);
|
||||
|
||||
|
||||
testColorWell(scr);
|
||||
testTabView(scr);
|
||||
|
||||
|
||||
testFontPanel(scr);
|
||||
|
||||
testSplitView(scr);
|
||||
|
||||
|
||||
671
WINGs/wtext.c
671
WINGs/wtext.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user