aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_widget_image.c
diff options
context:
space:
mode:
authorcodewarrior <codewarrior>2005-10-24 16:19:17 +0000
committercodewarrior <codewarrior@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-10-24 16:19:17 +0000
commit0924b0a7176ae90de1e1f0a37e8c3c4a4a9a7108 (patch)
tree20db65eb0288a0d4f571717e659297f4e6b78319 /src/bin/e_widget_image.c
parentadd new fileman images to EXTRA_DIST (diff)
downloadenlightenment-0924b0a7176ae90de1e1f0a37e8c3c4a4a9a7108.tar.gz
- add entry widget
- add image widget SVN revision: 17892
Diffstat (limited to 'src/bin/e_widget_image.c')
-rw-r--r--src/bin/e_widget_image.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/bin/e_widget_image.c b/src/bin/e_widget_image.c
new file mode 100644
index 000000000..84f703fff
--- /dev/null
+++ b/src/bin/e_widget_image.c
@@ -0,0 +1,43 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+#include "e.h"
+
+/* local subsystem functions */
+
+/* externally accessible functions */
+Evas_Object *
+e_widget_image_add_from_object(Evas *evas, Evas_Object *object, int minw, int minh)
+{
+ Evas_Object *obj, *o;
+
+ obj = e_widget_add(evas);
+
+ evas_object_show(o);
+ e_widget_can_focus_set(obj, 0);
+ e_widget_min_size_set(obj, minw, minh);
+ e_widget_sub_object_add(obj, o);
+ e_widget_resize_object_set(obj, o);
+
+ return obj;
+}
+
+Evas_Object *
+e_widget_image_add_from_file(Evas *evas, char *file, int minw, int minh)
+{
+ Evas_Object *obj, *o;
+ Evas_Coord mw, mh;
+
+ obj = e_widget_add(evas);
+
+ o = evas_object_image_add(evas);
+ evas_object_image_file_set(o, file, NULL);
+
+ evas_object_show(o);
+ e_widget_can_focus_set(obj, 0);
+ e_widget_min_size_set(obj, minw, minh);
+ e_widget_sub_object_add(obj, o);
+ e_widget_resize_object_set(obj, o);
+}
+
+