aboutsummaryrefslogtreecommitdiffstats
path: root/pages/develop/api/efl/canvas/object/event/grabber/property/position.txt
blob: 4ccdf3324a500ce47e6fb26e591280812a8d7b9c (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
~~Title: Efl.Canvas.Object.Event.Grabber.position~~
//Overridden from [[:develop:api:efl:canvas:group:property:position|Efl.Gfx.position]] **(set)**.//===== Signature =====

<code>
@property position @pure_virtual {
    get {
        values {
            pos: Eina.Position2D;
        }
    }
    set {
        values {
            pos: Eina.Position2D;
        }
    }
}
</code>

===== C signature =====

<code c>
Eina_Position2D efl_gfx_position_get(const Eo *obj);
void efl_gfx_position_set(Eo *obj, Eina_Position2D pos);
</code>

===== Values =====

  * **pos** - %%A 2D coordinate in pixel units.%%
===== Description =====

%%The 2D position of a canvas object.%%

%%The position is absolute, in pixels, relative to the top-left corner of the window, within its border decorations (application space).%%


{{page>:develop:api-include:efl:canvas:object:event:grabber:property:position:description&nouser&nolink&nodate}}

==== Getter ====

%%Retrieves the position of the given canvas object.%%


{{page>:develop:api-include:efl:canvas:object:event:grabber:property:position:getter_description&nouser&nolink&nodate}}

==== Setter ====

%%Moves the given canvas object to the given location inside its canvas' viewport. If unchanged this call may be entirely skipped, but if changed this will trigger move events, as well as potential pointer,in or pointer,out events.%%
{{page>:develop:api-include:efl:canvas:object:event:grabber:property:position:getter_description&nouser&nolink&nodate}}


===== Implemented by =====

  * [[:develop:api:efl:gfx:property:position|Efl.Gfx.position]]