summaryrefslogtreecommitdiff
path: root/src/lib/ector/ector_generic_surface.eo
blob: 5415079906af4d69596a436e8c9876bdd7649b73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
abstract Ector.Generic.Surface (Eo.Base)
{
   eo_prefix: ector_surface;
   properties {
      size {
         set {
            /*@ Changes the size of the given Evas object. */
         }
         get {
            /*@ Retrieves the (rectangular) size of the given Evas object. */
         }
         values {
            int w; /*@ in */
            int h; /*@ in */
         }
      }
      reference_point {
         set {
	    /*@ This define where is (0,0) in pixels coordinate inside the surface */
	 }
	 values {
	    int x;
	    int y;
	 }
      }
   }
   methods {
      renderer_factory_new {
         return: Ector_Renderer *;
	 params {
	    @in const(Eo_Class) * type @nonull;
	 }
      }
   }
   implements {
      @virtual .renderer_factory_new;
      @virtual .reference_point.set;
   }
}