summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_cnp.eo
blob: 7089648072a5b922a260aa1e8461ef659285110a (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
enum Efl.Cnp.Mode
{
   markup = 0,
   no_image,
   plain
}

interface Efl.Cnp {
   methods {
      @property mode {
         [[Control pasting of text and images for the widget.

           Normally the entry allows both text and images to be pasted.
           By setting cnp_mode to be #EFL_CNP_MODE_NO_IMAGE, this prevents images from being copy or past.
           By setting cnp_mode to be #EFL_CNP_MODE_PLAINTEXT, this remove all tags in text .

           Note: This only changes the behaviour of text.
            ]]
         set {
         }
         get {
         }
         values {
            mode: Efl.Cnp.Mode; [[One of #Efl_Cnp_Mode: #EFL_CNP_MODE_MARKUP, #EFL_CNP_MODE_NO_IMAGE, #EFL_CNP_MODE_PLAINTEXT.]]
         }
      }
      copy {
         [[This executes a "copy" action on the text of the object.]]
         return: const (char)*; [[Returns copied text]]
      }
      cut {
         [[This executes a "cut" action on the text of the object.]]
         return: const (char)*; [[Returns cutted text]]
      }
      paste {
         [[This executes a "paste" action on the text of the object.]]
         return: const (char)*; [[Returns pasted text]]
      }
   }
}