summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2015-04-17 10:34:00 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2015-04-17 11:35:43 +0300
commit9ffa09d72948cb86140b250afd66404305317dda (patch)
tree1e8df15cebd3de9b18d1d99f676f40237e2a338b
parentb3833978c82c7b8445f51af576d7e8869560d426 (diff)
Elm.Entry: Fix compile warning and doc issues
-rw-r--r--efl/elementary/entry.pyx118
1 files changed, 94 insertions, 24 deletions
diff --git a/efl/elementary/entry.pyx b/efl/elementary/entry.pyx
index cda125d..5d49562 100644
--- a/efl/elementary/entry.pyx
+++ b/efl/elementary/entry.pyx
@@ -804,12 +804,41 @@ cdef class EntryAnchorInfo(object):
804 The info sent in the callback for the ``anchor,clicked`` signals emitted 804 The info sent in the callback for the ``anchor,clicked`` signals emitted
805 by entries. 805 by entries.
806 806
807 :var name: The name of the anchor, as stated in its href. 807 .. attribute:: name
808 :var button: The mouse button used to click on it. 808
809 :var x: Anchor geometry, relative to canvas. 809 The name of the anchor, as stated in its href.
810 :var y: Anchor geometry, relative to canvas. 810
811 :var w: Anchor geometry, relative to canvas. 811 :type: string
812 :var h: Anchor geometry, relative to canvas. 812
813 .. attribute:: button
814
815 The mouse button used to click on it.
816
817 :type: :class:`~efl.elementary.button.Button`
818
819 .. attribute:: x
820
821 Anchor geometry, relative to canvas.
822
823 :type: int
824
825 .. attribute:: y
826
827 Anchor geometry, relative to canvas.
828
829 :type: int
830
831 .. attribute:: w
832
833 Anchor geometry, relative to canvas.
834
835 :type: int
836
837 .. attribute:: h
838
839 Anchor geometry, relative to canvas.
840
841 :type: int
813 842
814 """ 843 """
815 cdef: 844 cdef:
@@ -834,16 +863,50 @@ cdef object _entryanchor_conv(void *addr):
834cdef class EntryAnchorHoverInfo(object): 863cdef class EntryAnchorHoverInfo(object):
835 """EntryAnchorHoverInfo(...) 864 """EntryAnchorHoverInfo(...)
836 865
837 The info sent in the callback for ``anchor,clicked`` signals emitted by 866 The info sent in the callback for ``anchor,hover,opened`` signals emitted
838 the entries. 867 by the entries.
868
869 .. attribute:: anchor_info
870
871 The actual anchor info.
872
873 :type: :class:`EntryAnchorInfo`
839 874
840 :var anchor_info: The actual anchor info. 875 .. attribute:: hover
841 :var hover: The hover object to use for the popup. 876
842 :var hover_parent: Geometry of the object used as parent by the hover. 877 The hover object to use for the popup.
843 :var hover_left: Hint indicating if there's space for content on the left side of the hover. 878
844 :var hover_right: Hint indicating content fits on the right side of the hover. 879 :type: :class:`~efl.elementary.hover.Hover`
845 :var hover_top: Hint indicating content fits on top of the hover. 880
846 :var hover_bottom: Hint indicating content fits below the hover. 881 .. attribute:: hover_parent
882
883 The object used as parent by the hover.
884
885 :type: :class:`~efl.eo.Eo`
886
887 .. attribute:: hover_left
888
889 Hint indicating if there's space for content on the left side of the hover.
890
891 :type: bool
892
893 .. attribute:: hover_right
894
895 Hint indicating content fits on the right side of the hover.
896
897 :type: bool
898
899 .. attribute:: hover_top
900
901 Hint indicating content fits on top of the hover.
902
903 :type: bool
904
905 .. attribute:: hover_bottom
906
907 Hint indicating content fits below the hover.
908
909 :type: bool
847 910
848 """ 911 """
849 cdef: 912 cdef:
@@ -855,7 +918,7 @@ cdef class EntryAnchorHoverInfo(object):
855 @staticmethod 918 @staticmethod
856 cdef EntryAnchorHoverInfo create(Elm_Entry_Anchor_Hover_Info *addr): 919 cdef EntryAnchorHoverInfo create(Elm_Entry_Anchor_Hover_Info *addr):
857 cdef EntryAnchorHoverInfo self = EntryAnchorHoverInfo.__new__(EntryAnchorHoverInfo) 920 cdef EntryAnchorHoverInfo self = EntryAnchorHoverInfo.__new__(EntryAnchorHoverInfo)
858 self.anchor_info = _entryanchor_conv(addr.anchor_info) 921 self.anchor_info = _entryanchor_conv(<void *>addr.anchor_info)
859 self.hover = object_from_instance(addr.hover) 922 self.hover = object_from_instance(addr.hover)
860 self.hover_parent = (addr.hover_parent.x, addr.hover_parent.y, 923 self.hover_parent = (addr.hover_parent.x, addr.hover_parent.y,
861 addr.hover_parent.w, addr.hover_parent.h) 924 addr.hover_parent.w, addr.hover_parent.h)
@@ -908,9 +971,13 @@ cdef class Entry(LayoutClass):
908 971
909 If there is styles in the user style stack, the properties in the 972 If there is styles in the user style stack, the properties in the
910 top style of user style stack will replace the properties in current 973 top style of user style stack will replace the properties in current
911 theme. The input style is specified in format 974 theme. The input style is specified in format::
912 ``tag='property=value'`` (i.e. ``DEFAULT='font=Sans 975
913 font_size=60'hilight=' + font_weight=Bold'``). 976 tag='property=value'
977
978 i.e.::
979
980 DEFAULT='font=Sans font_size=60' hilight=' + font_weight=Bold'
914 981
915 :param string style: The style user to push 982 :param string style: The style user to push
916 983
@@ -1075,11 +1142,14 @@ cdef class Entry(LayoutClass):
1075 functions; The former will either not work at all, or break the correct 1142 functions; The former will either not work at all, or break the correct
1076 functionality. 1143 functionality.
1077 1144
1078 IMPORTANT: Many functions may change (i.e delete and create a new one) 1145 .. warning::
1079 the internal textblock object. Do NOT cache the returned object, and try 1146
1080 not to mix calls on this object with regular elm_entry calls (which may 1147 Many functions may change (i.e delete and create a new one) the
1081 change the internal textblock object). This applies to all cursors 1148 internal textblock object. Do NOT cache the returned object, and
1082 returned from textblock calls, and all the other derivative values. 1149 try not to mix calls on this object with regular elm_entry calls
1150 (which may change the internal textblock object). This applies to
1151 all cursors returned from textblock calls, and all the other
1152 derivative values.
1083 1153
1084 :type: :py:class:`~efl.evas.Textblock` 1154 :type: :py:class:`~efl.evas.Textblock`
1085 1155