Enlightenment CVS committal
Author : sebastid
Project : e17
Module : libs/esmart
Dir : e17/libs/esmart/src/lib/esmart_textarea
Modified Files:
Esmart_Textarea.h esmart_textarea_public.c
Log Message:
EAPI
===================================================================
RCS file: /cvs/e/e17/libs/esmart/src/lib/esmart_textarea/Esmart_Textarea.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- Esmart_Textarea.h 5 Sep 2005 09:55:14 -0000 1.8
+++ Esmart_Textarea.h 6 Sep 2006 07:17:48 -0000 1.9
@@ -1,6 +1,27 @@
#ifndef ESMART_TEXTAREA_H
#define ESMART_TEXTAREA_H
+#ifdef EAPI
+#undef EAPI
+#endif
+#ifdef WIN32
+# ifdef BUILDING_DLL
+# define EAPI __declspec(dllexport)
+# else
+# define EAPI __declspec(dllimport)
+# endif
+#else
+# ifdef __GNUC__
+# if __GNUC__ >= 4
+# define EAPI __attribute__ ((visibility("default")))
+# else
+# define EAPI
+# endif
+# else
+# define EAPI
+# endif
+#endif
+
#include <Evas.h>
enum Esmart_Textarea_Key_Modifiers /* several key modifiers */
@@ -65,49 +86,49 @@
typedef struct _Esmart_Text_Area Esmart_Text_Area;
/* text area public api */
-Evas_Object *esmart_textarea_add(Evas *evas);
-void esmart_textarea_cursor_goto_cursor(Evas_Object *o);
-void esmart_textarea_cursor_move_left(Evas_Object *o);
-void esmart_textarea_cursor_move_right(Evas_Object *o);
-void esmart_textarea_cursor_move_down(Evas_Object *o);
-void esmart_textarea_cursor_move_up(Evas_Object *o);
-void esmart_textarea_cursor_move_home(Evas_Object *o);
-void esmart_textarea_cursor_move_end(Evas_Object *o);
-void esmart_textarea_cursor_delete_right(Evas_Object *o);
-void esmart_textarea_cursor_delete_left(Evas_Object *o);
-void esmart_textarea_focus_set(Evas_Object *o, Evas_Bool focus);
-void esmart_textarea_bg_set(Evas_Object *o, Evas_Object *bg);
-Evas_Object *esmart_textarea_bg_get(Evas_Object *o);
-void esmart_textarea_text_insert(Evas_Object *o, const char *text);
-void esmart_textarea_cursor_set(Evas_Object *o, Evas_Object *c);
-void esmart_textarea_clear(Evas_Object *o);
-void esmart_textarea_cursor_pos_set(Evas_Object *o, int pos);
-int esmart_textarea_cursor_pos_get(Evas_Object *o);
-int esmart_textarea_length_get(Evas_Object *o);
-int esmart_textarea_cursor_line_get(Evas_Object *o);
-int esmart_textarea_lines_get(Evas_Object *o);
-int esmart_textarea_line_start_pos_get(Evas_Object *o);
-int esmart_textarea_line_end_pos_get(Evas_Object *o);
-Evas_Bool esmart_textarea_line_get(Evas_Object *o, int line, Evas_Coord
*lx, Evas_Coord *ly, Evas_Coord *lw, Evas_Coord *lh);
-Evas_Bool esmart_textarea_char_pos_get(Evas_Object *o, int pos,
Evas_Coord *lx, Evas_Coord *ly, Evas_Coord *lw, Evas_Coord *lh);
-int esmart_textarea_char_coords_get(Evas_Object *o, Evas_Coord x,
Evas_Coord y, Evas_Coord *cx, Evas_Coord *cy, Evas_Coord *cw, Evas_Coord *ch);
-void esmart_textarea_text_insert(Evas_Object *o, const char *text);
-char *esmart_textarea_text_get(Evas_Object *o, int len);
-void esmart_textarea_text_del(Evas_Object *o, int len);
-void esmart_textarea_format_insert(Evas_Object *o, const char
*format);
-int esmart_textarea_format_next_pos_get(Evas_Object *o);
-int esmart_textarea_format_next_count_get(Evas_Object *o);
-const char *esmart_textarea_format_next_get(Evas_Object *o, int n);
-void esmart_textarea_format_next_del(Evas_Object *o, int n);
-int esmart_textarea_format_prev_pos_get(Evas_Object *o);
-int esmart_textarea_format_prev_count_get(Evas_Object *o);
-const char *esmart_textarea_format_prev_get(Evas_Object *o, int n);
-void esmart_textarea_format_prev_del(Evas_Object *o, int n);
-char *esmart_textarea_format_current_get(Evas_Object *o);
-void esmart_textarea_format_size_get(Evas_Object *o, Evas_Coord *w,
Evas_Coord *h);
-void esmart_textarea_native_size_get(Evas_Object *o, Evas_Coord *w,
Evas_Coord *h);
-int esmart_textarea_native_lines_get(Evas_Object *o);
+EAPI Evas_Object *esmart_textarea_add(Evas *evas);
+EAPI void esmart_textarea_cursor_goto_cursor(Evas_Object *o);
+EAPI void esmart_textarea_cursor_move_left(Evas_Object *o);
+EAPI void esmart_textarea_cursor_move_right(Evas_Object *o);
+EAPI void esmart_textarea_cursor_move_down(Evas_Object *o);
+EAPI void esmart_textarea_cursor_move_up(Evas_Object *o);
+EAPI void esmart_textarea_cursor_move_home(Evas_Object *o);
+EAPI void esmart_textarea_cursor_move_end(Evas_Object *o);
+EAPI void esmart_textarea_cursor_delete_right(Evas_Object *o);
+EAPI void esmart_textarea_cursor_delete_left(Evas_Object *o);
+EAPI void esmart_textarea_focus_set(Evas_Object *o, Evas_Bool
focus);
+EAPI void esmart_textarea_bg_set(Evas_Object *o, Evas_Object *bg);
+EAPI Evas_Object *esmart_textarea_bg_get(Evas_Object *o);
+EAPI void esmart_textarea_text_insert(Evas_Object *o, const char
*text);
+EAPI void esmart_textarea_cursor_set(Evas_Object *o, Evas_Object
*c);
+EAPI void esmart_textarea_clear(Evas_Object *o);
+EAPI void esmart_textarea_cursor_pos_set(Evas_Object *o, int pos);
+EAPI int esmart_textarea_cursor_pos_get(Evas_Object *o);
+EAPI int esmart_textarea_length_get(Evas_Object *o);
+EAPI int esmart_textarea_cursor_line_get(Evas_Object *o);
+EAPI int esmart_textarea_lines_get(Evas_Object *o);
+EAPI int esmart_textarea_line_start_pos_get(Evas_Object *o);
+EAPI int esmart_textarea_line_end_pos_get(Evas_Object *o);
+EAPI Evas_Bool esmart_textarea_line_get(Evas_Object *o, int line,
Evas_Coord *lx, Evas_Coord *ly, Evas_Coord *lw, Evas_Coord *lh);
+EAPI Evas_Bool esmart_textarea_char_pos_get(Evas_Object *o, int pos,
Evas_Coord *lx, Evas_Coord *ly, Evas_Coord *lw, Evas_Coord *lh);
+EAPI int esmart_textarea_char_coords_get(Evas_Object *o,
Evas_Coord x, Evas_Coord y, Evas_Coord *cx, Evas_Coord *cy, Evas_Coord *cw,
Evas_Coord *ch);
+EAPI void esmart_textarea_text_insert(Evas_Object *o, const char
*text);
+EAPI char *esmart_textarea_text_get(Evas_Object *o, int len);
+EAPI void esmart_textarea_text_del(Evas_Object *o, int len);
+EAPI void esmart_textarea_format_insert(Evas_Object *o, const char
*format);
+EAPI int esmart_textarea_format_next_pos_get(Evas_Object *o);
+EAPI int esmart_textarea_format_next_count_get(Evas_Object *o);
+EAPI const char *esmart_textarea_format_next_get(Evas_Object *o, int n);
+EAPI void esmart_textarea_format_next_del(Evas_Object *o, int n);
+EAPI int esmart_textarea_format_prev_pos_get(Evas_Object *o);
+EAPI int esmart_textarea_format_prev_count_get(Evas_Object *o);
+EAPI const char *esmart_textarea_format_prev_get(Evas_Object *o, int n);
+EAPI void esmart_textarea_format_prev_del(Evas_Object *o, int n);
+EAPI char *esmart_textarea_format_current_get(Evas_Object *o);
+EAPI void esmart_textarea_format_size_get(Evas_Object *o,
Evas_Coord *w, Evas_Coord *h);
+EAPI void esmart_textarea_native_size_get(Evas_Object *o,
Evas_Coord *w, Evas_Coord *h);
+EAPI int esmart_textarea_native_lines_get(Evas_Object *o);
-Esmart_Text_Area_Format *esmart_textarea_format_get(Evas_Object *o);
+EAPI Esmart_Text_Area_Format *esmart_textarea_format_get(Evas_Object *o);
#endif
===================================================================
RCS file:
/cvs/e/e17/libs/esmart/src/lib/esmart_textarea/esmart_textarea_public.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- esmart_textarea_public.c 3 Apr 2005 01:57:54 -0000 1.6
+++ esmart_textarea_public.c 6 Sep 2006 07:17:48 -0000 1.7
@@ -7,7 +7,7 @@
*/
/* create a new textarea */
-Evas_Object *
+EAPI Evas_Object *
esmart_textarea_add(Evas *evas)
{
Evas_Object *t;
@@ -16,7 +16,7 @@
}
/* update cursor location automatically */
-void
+EAPI void
esmart_textarea_cursor_goto_cursor(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -26,7 +26,7 @@
}
/* move cursor to the left 1 char */
-void
+EAPI void
esmart_textarea_cursor_move_left(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -36,7 +36,7 @@
}
/* move cursor to the right 1 char */
-void
+EAPI void
esmart_textarea_cursor_move_right(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -46,7 +46,7 @@
}
/* move cursor down 1 char */
-void
+EAPI void
esmart_textarea_cursor_move_down(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -56,7 +56,7 @@
}
/* move cursor up 1 char */
-void
+EAPI void
esmart_textarea_cursor_move_up(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -66,7 +66,7 @@
}
/* move cursor to home position */
-void
+EAPI void
esmart_textarea_cursor_move_home(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -76,7 +76,7 @@
}
/* move cursor to end position */
-void
+EAPI void
esmart_textarea_cursor_move_end(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -86,7 +86,7 @@
}
/* delete 1 char from the right */
-void
+EAPI void
esmart_textarea_cursor_delete_right(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -96,7 +96,7 @@
}
/* delete 1 char from the left */
-void
+EAPI void
esmart_textarea_cursor_delete_left(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -106,7 +106,7 @@
}
/* focus / unfocus textarea */
-void
+EAPI void
esmart_textarea_focus_set(Evas_Object *o, Evas_Bool focus)
{
Esmart_Text_Area *t;
@@ -117,7 +117,7 @@
/* override default background with an Evas_Object */
-void
+EAPI void
esmart_textarea_bg_set(Evas_Object *o, Evas_Object *bg)
{
Esmart_Text_Area *t;
@@ -126,7 +126,7 @@
_esmart_textarea_bg_set(t, bg);
}
-Evas_Object *
+EAPI Evas_Object *
esmart_textarea_bg_get(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -137,7 +137,7 @@
/* override default cursor with an Evas_Object */
-void
+EAPI void
esmart_textarea_cursor_set(Evas_Object *o, Evas_Object *c)
{
Esmart_Text_Area *t;
@@ -147,7 +147,7 @@
}
/* insert text into the text area at current cursor */
-void
+EAPI void
esmart_textarea_text_insert(Evas_Object *o, const char *text)
{
Esmart_Text_Area *t;
@@ -157,7 +157,7 @@
}
/* clear the textarea */
-void
+EAPI void
esmart_textarea_clear(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -168,7 +168,7 @@
}
/* set the cursor's position */
-void
+EAPI void
esmart_textarea_cursor_pos_set(Evas_Object *o, int pos)
{
Esmart_Text_Area *t;
@@ -178,7 +178,7 @@
_esmart_textarea_cursor_goto_cursor(t);
}
-int
+EAPI int
esmart_textarea_cursor_pos_get(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -187,7 +187,7 @@
return _esmart_textarea_cursor_pos_get(t);
}
-int
+EAPI int
esmart_textarea_length_get(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -196,7 +196,7 @@
return _esmart_textarea_length_get(t);
}
-int
+EAPI int
esmart_textarea_cursor_line_get(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -205,7 +205,7 @@
return _esmart_textarea_cursor_line_get(t);
}
-int
+EAPI int
esmart_textarea_lines_get(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -214,7 +214,7 @@
return _esmart_textarea_lines_get(t);
}
-int
+EAPI int
esmart_textarea_line_start_pos_get(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -223,7 +223,7 @@
return _esmart_textarea_line_start_pos_get(t);
}
-int
+EAPI int
esmart_textarea_line_end_pos_get(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -232,7 +232,7 @@
return _esmart_textarea_line_end_pos_get(t);
}
-Evas_Bool
+EAPI Evas_Bool
esmart_textarea_line_get(Evas_Object *o, int line, Evas_Coord *lx,
Evas_Coord *ly, Evas_Coord *lw, Evas_Coord *lh)
{
@@ -242,7 +242,7 @@
return _esmart_textarea_line_get(t, line, lx, ly, lw, lh);
}
-Evas_Bool
+EAPI Evas_Bool
esmart_textarea_char_pos_get(Evas_Object *o, int pos, Evas_Coord *cx,
Evas_Coord *cy, Evas_Coord *cw, Evas_Coord *ch)
{
@@ -252,7 +252,7 @@
return _esmart_textarea_char_pos_get(t, pos, cx, cy, cw, ch);
}
-int
+EAPI int
esmart_textarea_char_coords_get(Evas_Object *o, Evas_Coord x, Evas_Coord y,
Evas_Coord *cx, Evas_Coord *cy, Evas_Coord *cw,
Evas_Coord *ch)
@@ -265,7 +265,7 @@
-char *
+EAPI char *
esmart_textarea_text_get(Evas_Object *o, int len)
{
Esmart_Text_Area *t;
@@ -274,7 +274,7 @@
return _esmart_textarea_text_get(t, len);
}
-void
+EAPI void
esmart_textarea_text_del(Evas_Object *o, int len)
{
Esmart_Text_Area *t;
@@ -283,7 +283,7 @@
return _esmart_textarea_text_del(t, len);
}
-void
+EAPI void
esmart_textarea_format_insert(Evas_Object *o, const char *format)
{
Esmart_Text_Area *t;
@@ -292,7 +292,7 @@
_esmart_textarea_format_insert(t, format);
}
-int
+EAPI int
esmart_textarea_format_next_pos_get(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -301,7 +301,7 @@
return _esmart_textarea_format_next_pos_get(t);
}
-int
+EAPI int
esmart_textarea_format_next_count_get(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -310,7 +310,7 @@
return _esmart_textarea_format_next_count_get(t);
}
-const char *
+EAPI const char *
esmart_textarea_format_next_get(Evas_Object *o, int n)
{
Esmart_Text_Area *t;
@@ -319,7 +319,7 @@
return _esmart_textarea_format_next_get(t, n);
}
-void
+EAPI void
esmart_textarea_format_next_del(Evas_Object *o, int n)
{
Esmart_Text_Area *t;
@@ -328,7 +328,7 @@
_esmart_textarea_format_next_del(t, n);
}
-int
+EAPI int
esmart_textarea_format_prev_pos_get(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -337,7 +337,7 @@
return _esmart_textarea_format_prev_pos_get(t);
}
-int
+EAPI int
esmart_textarea_format_prev_count_get(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -346,7 +346,7 @@
return _esmart_textarea_format_prev_count_get(t);
}
-const char *
+EAPI const char *
esmart_textarea_format_prev_get(Evas_Object *o, int n)
{
Esmart_Text_Area *t;
@@ -355,7 +355,7 @@
return _esmart_textarea_format_prev_get(t, n);
}
-void
+EAPI void
esmart_textarea_format_prev_del(Evas_Object *o, int n)
{
Esmart_Text_Area *t;
@@ -364,7 +364,7 @@
_esmart_textarea_format_prev_del(t, n);
}
-char *
+EAPI char *
esmart_textarea_format_current_get(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -373,7 +373,7 @@
return _esmart_textarea_format_current_get(t);
}
-void
+EAPI void
esmart_textarea_format_size_get(Evas_Object *o, Evas_Coord *w,
Evas_Coord *h)
{
@@ -383,7 +383,7 @@
_esmart_textarea_format_size_get(t, w, h);
}
-void
+EAPI void
esmart_textarea_native_size_get(Evas_Object *o, Evas_Coord *w,
Evas_Coord *h)
{
@@ -393,7 +393,7 @@
_esmart_textarea_native_size_get(t, w, h);
}
-int
+EAPI int
esmart_textarea_native_lines_get(Evas_Object *o)
{
Esmart_Text_Area *t;
@@ -402,7 +402,7 @@
return _esmart_textarea_native_lines_get(t);
}
-Esmart_Text_Area_Format *
+EAPI Esmart_Text_Area_Format *
esmart_textarea_format_get(Evas_Object *o)
{
Esmart_Text_Area *t;
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs