Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : proto

Dir     : e17/proto/edje_cc


Modified Files:
        Etcher.h 


Log Message:

a near complete Etcher.h

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/edje_cc/Etcher.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- Etcher.h    8 Sep 2004 02:04:00 -0000       1.1
+++ Etcher.h    8 Sep 2004 02:07:02 -0000       1.2
@@ -1,23 +1,211 @@
-#ifndef _ETCHER_H_
-#define _ETCHER_H_
+#ifndef ETCHER_H
+#define ETCHER_H
 
-typedef enum Etcher_Program_Actions Etcher_Program_Actions;
-enum Etcher_Program_Actions {
-       ETCHER_ACTION_STATE_SET,
-       ETCHER_ACTION_ACTION_STOP,
-       ETCHER_ACTION_SIGNAL_EMIT,
-       ETCHER_ACTION_DRAG_VAL_SET,
-       ETCHER_ACTION_DRAG_VAL_STEP,
-       ETCHER_ACTION_DRAG_VAL_PAGE
-};
-
-typedef enum Etcher_Transition_Types Etcher_Transition_Types;
-enum Etcher_Transition_Types {
-       ETCHER_TRANSITION_LINEAR,
-       ETCHER_TRANSITION_SINUSOIDAL,
-       ETCHER_TRANSITION_ACCELERATE,
-       ETCHER_TRANSITION_DECELERATE
-};
+typedef enum _Etcher_Image_Type Etcher_Image_Type;
+typedef enum _Etcher_Part_Type Etcher_Part_Type;
+typedef enum _Etcher_Text_Effect Etcher_Text_Effect;
+typedef enum _Etcher_Action Etcher_Action;
+typedef enum _Etcher_Transition Etcher_Transition;
 
-#endif
+typedef struct _Etcher_File Etcher_File;
+typedef struct _Etcher_Data Etcher_Data;
+typedef struct _Etcher_Image Etcher_Image;
+typedef struct _Etcher_Font Etcher_Font;
+typedef struct _Etcher_Group Etcher_Group;
+typedef struct _Etcher_Part Etcher_Part;
+typedef struct _Etcher_Part_State Etcher_Part_State;
+
+
+
+enum _Etcher_Image_Type
+{
+  ETCHER_IMAGE_TYPE_RAW,
+  ETCHER_IMAGE_TYPE_COMP,
+  ETCHER_IMAGE_TYPE_LOSSY,
+  ETCHER_IMAGE_TYPE_EXTERNAL
+
+}
+
+enum _Etcher_Part_Type
+{
+  ETCHER_PART_TYPE_IMAGE,
+  ETCHER_PART_TYPE_TEXT,
+  ETCHER_PART_TYPE_RECT,
+  ETCHER_PART_TYPE_SWALLOW
+}
+
+enum _Etcher_Text_Effect
+{
+  ETCHER_TEXT_EFFECT_NONE,
+  ETCHER_TEXT_EFFECT_PLAIN,
+  ETCHER_TEXT_EFFECT_OUTLINE,
+  ETCHER_TEXT_EFFECT_SHADOW,
+  ETCHER_TEXT_EFFECT_OUTLINE_SHADOW,
+  ETCHER_TEXT_EFFECT_SOFT_SHADOW,
+  ETCHER_TEXT_EFFECT_OUTLINE_SOFT_SHADOW
+}
+
+enum _Etcher_Action
+{
+  ETCHER_ACTION_STATE_SET,
+  ETCHER_ACTION_STOP,
+  ETCHER_ACTION_SIGNAL_EMIT,
+  ETCHER_ACTION_DRAG_VAL_SET,
+  ETCHER_ACTION_DRAG_VAL_STEP,
+  ETCHER_ACTION_DRAG_VAL_PAGE,
+  ETCHER_ACTION_SCRIPT
+}
+
+enum _Etcher_Transition
+{
+  ETCHER_TRANSITION_LINEAR,
+  ETCHER_TRANSITION_SINUSOIDAL,
+  ETCHER_TRANSITION_ACCELERATE,
+  ETCHER_TRANSITION_DECELERATE
+}
+
+struct _Etcher_File
+{
+  Evas_List *images;
+  Evas_List *fonts;
+  
+}
+
+struct _Etcher_Data
+{
+  char *key;
+  char *value;
+}
+
+struct _Etcher_Image
+{
+  char *image;
+  char *path;
+  Etcher_Image_Type type;
+  double value;
+}
+
+struct _Etcher_Font
+{
+  char *name;
+  char *font;
+  char *path;
+}
+
+struct _Etcher_Group
+{
+  char *name;
+  int min, max;
+
+  Evas_List *parts;
+  Evas_List *programs;
+}
+
+struct _Etcher_Part
+{
+  char *name;
+  Etcher_Part_Type type;
+  Etcher_Text_Effect effect;
+  int mouse_events;
+  int repeat_events;
+  int clip_to;
+
+  /* FIXME dragables */
+
+  Evas_List *states;
+}
+
+struct _Etcher_Program 
+{
+  char *name;
+  char *signal;
+  char *source;
+  Evas_List *targets;
+  Evas_List *afters;
 
+  int in1, in2;
+  
+  Etcher_Action action;
+  Etcher_Transition transition;
+  
+}
+
+struct _Etcher_Part_State
+{
+  char *name;
+  double value;
+
+  unsigned char visible;
+
+  struct
+  {
+    double x, y;
+  } align, step;
+
+  struct
+  {
+    double w, h;
+  } min, max;
+
+  struct
+  {
+    double w, h;
+    unsigned char prefer; /* NEITHER = 0, VERTICAL = 1, HORIZONTAL = 2 */
+  } aspect;
+
+  struct
+  {
+    struct
+    {
+      double x, y;
+    } relative, offset;
+    
+    char *to_x;
+    char *to_y;
+  } rel1, rel2;
+
+  struct
+  {
+    Etcher_Image *normal;
+    Evas_List *tween;
+  } image;
+
+  struct
+  {
+    int l, r, t, b;
+  }
+
+  struct
+  {
+    unsigned char r, g, b, a;
+  } color, color2, color3;
+
+  struct {
+    char           smooth; 
+    double         pos_rel_x, pos_rel_y;
+    int            pos_abs_x, pos_abs_y; 
+    double         rel_x, rel_y; 
+    int            abs_x, rel_x; 
+  } fill;
+
+  struct
+  {
+    char          *text; /* if "" or NULL, then leave text unchanged */
+    char          *text_class; /* how to apply/modify the font */
+    char          *font; /* if a specific font is asked for */
+
+    int            size; /* 0 = use user set size */
+
+    struct {
+      unsigned char x, y;
+    } fit, min;
+
+    struct {
+      double      x, y; /* text alignment within bounds */
+    } align;
+  } text;
+
+
+}
+
+#endif




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to