aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/edje/edje_object.eo
diff options
context:
space:
mode:
authorDaniel Hirt <hirt.danny@gmail.com>2017-06-09 17:55:40 +0300
committerDaniel Hirt <hirt.danny@gmail.com>2017-06-12 00:10:05 +0300
commit98dad1a52b0c75c18191b069c87ebb6f493e74ca (patch)
tree0f234bc27ad1fb726710b1517737df23f9b5e71f /src/lib/edje/edje_object.eo
parentText: enhance cursor_get to ask for a "get type" (diff)
downloadefl-98dad1a52b0c75c18191b069c87ebb6f493e74ca.tar.gz
Canvas layout: port 'part_text' to Efl.Text.*
The following API is now supported with efl_part: - Efl.Text.text { set; get; } - Efl.Text.Cursor.cursor { get; } - Efl.Text.Cursor.cursor_paragraph_first; - Efl.Text.Cursor.cursor_paragraph_last; - Efl.Text.Cursor.cursor_position { set; get; } - Efl.Text.Cursor.cursor_coord_set; - Efl.Text.Cursor.cursor_line_char_first; - Efl.Text.Cursor.cursor_line_char_last; - Efl.Text.Cursor.cursor_char_next; - Efl.Text.Cursor.cursor_char_prev; - Efl.Text.Cursor.cursor_line_jump_by; - Efl.Text.Cursor.cursor_copy; - Efl.Text.Cursor.cursor_content { get; } - Efl.Text.Cursor.cursor_geometry { get; } - Efl.Text.Cursor.cursor_text_insert; Many of the 'part_text' functionality was moved to legacy, too. See the edje_object.eo to see which ones are still supported.
Diffstat (limited to 'src/lib/edje/edje_object.eo')
-rw-r--r--src/lib/edje/edje_object.eo482
1 files changed, 0 insertions, 482 deletions
diff --git a/src/lib/edje/edje_object.eo b/src/lib/edje/edje_object.eo
index 6a0860b371..62e6b3b04e 100644
--- a/src/lib/edje/edje_object.eo
+++ b/src/lib/edje/edje_object.eo
@@ -780,88 +780,6 @@ class Edje.Object (Efl.Canvas.Group.Clipped, Efl.File, Efl.Container, Efl.Part,
data: void_ptr; [[The data associated to the callback function.]]
}
}
- @property part_text_escaped {
- set {
- [[Sets the text for an object part, but converts HTML escapes to UTF8
-
- This converts the given string text to UTF8 assuming it contains HTML
- style escapes like "&amp;" and "&copy;" etc. IF the part is of type TEXT,
- as opposed to TEXTBLOCK.
-
- @since 1.2]]
- return: bool; [[$true on success, $false otherwise]]
- }
- values {
- part: string; [[The part name]]
- text: string; [[The text string]]
- }
- }
- @property part_text_unescaped {
- set {
- [[Sets the raw (non escaped) text for an object part.
-
- This function will not do escape for you if it is a TEXTBLOCK part, that is,
- if text contain tags, these tags will not be interpreted/parsed by TEXTBLOCK.
-
- See also @.part_text_unescaped.get().]]
- return: bool; [[$true on success, $false otherwise]]
- values {
- text_to_escape: string; [[The text string]]
- }
- }
- get {
- [[Returns the text of the object part, without escaping.
-
- This function is the counterpart of
- @.part_text_unescaped.set(). Please notice that the
- result is newly allocated memory and should be released with free()
- when done.
-
- See also @.part_text_unescaped.set().]]
- values {
- text_to_escape: own(ptr(char)); [[The text string]]
- }
- }
- keys {
- part: string; [[The part name]]
- }
- }
- part_text_append {
- [[Inserts text for an object part.
-
- This function inserts the text for an object part at the end; It does not
- move the cursor.
-
- @since 1.1]]
-
- params {
- @in part: string; [[The part name]]
- @in text: string; [[The text string]]
- }
- }
- part_text_insert {
- [[Inserts text for an object part.
-
- This function inserts the text for an object part just before the
- cursor position.]]
-
- params {
- @in part: string; [[The part name]]
- @in text: string; [[The text string]]
- }
- }
- part_text_user_insert @const {
- [[This function inserts text as if the user has inserted it.
-
- This means it actually registers as a change and emits signals, triggers
- callbacks as appropriate.
-
- @since 1.2.0]]
- params {
- @in part: string; [[The part name]]
- @in text: string; [[The text string]]
- }
- }
@property part_text_autocapital_type {
set {
[[Sets the autocapitalization type on the immodule.
@@ -898,187 +816,6 @@ class Edje.Object (Efl.Canvas.Group.Clipped, Efl.File, Efl.Container, Efl.Part,
prediction: bool; [[If $true, the prediction feature is allowed.]]
}
}
- part_text_hide_visible_password {
- [[Hides visible last character for password mode.
-
- @since 1.18.0]]
- params {
- @in part: string; [[The part name]]
- }
- return: bool; [[$true if the visible character is hidden. $false if there is no visible character or the object is not set for password mode.]]
- }
- @property part_text_cursor_begin {
- set {
- [[Moves the cursor to the beginning of the text part
- \@ref evas_textblock_cursor_paragraph_first]]
- }
- values {
- part: string; [[The part name]]
- cur: Edje.Cursor; [[The edje cursor to work on]]
- }
- }
- @property part_text_cursor_end {
- set {
- [[Moves the cursor to the end of the text part.
- \@ref evas_textblock_cursor_paragraph_last]]
- }
- values {
- part: string; [[The part name]]
- cur: Edje.Cursor; [[The edje cursor to work on]]
- }
- }
- @property part_text_cursor_line_begin {
- set {
- [[Moves the cursor to the beginning of the line.
- \@ref evas_textblock_cursor_line_char_first]]
- }
- values {
- part: string; [[The part name]]
- cur: Edje.Cursor; [[The edje cursor to work on]]
- }
- }
- @property part_text_cursor_line_end {
- set {
- [[Moves the cursor to the end of the line.
- \@ref evas_textblock_cursor_line_char_last]]
- }
- values {
- part: string; [[The part name]]
- cur: Edje.Cursor; [[The edje cursor to work on]]
- }
- }
- part_text_cursor_prev {
- [[Moves the cursor to the previous char
- \@ref evas_textblock_cursor_char_prev]]
-
- return: bool; [[$true on success, $false otherwise]]
- params {
- @in part: string; [[The part name]]
- @in cur: Edje.Cursor; [[The edje cursor to work on]]
- }
- }
- part_text_cursor_next {
- [[Advances the cursor to the next cursor position.
- \@ref evas_textblock_cursor_char_next]]
-
- return: bool; [[$true on success, $false otherwise]]
- params {
- @in part: string; [[The part name]]
- @in cur: Edje.Cursor; [[The edje cursor to advance]]
- }
- }
- part_text_cursor_up {
- [[Moves the cursor to the char above the current cursor position.]]
-
- return: bool; [[$true on success, $false otherwise]]
- params {
- @in part: string; [[The part name]]
- @in cur: Edje.Cursor; [[The edje cursor to work on]]
- }
- }
- part_text_cursor_down {
- [[Moves the cursor to the char below the current cursor position.]]
-
- return: bool; [[$true on success, $false otherwise]]
- params {
- @in part: string; [[The part name]]
- @in cur: Edje.Cursor; [[The edje cursor to work on]]
- }
- }
- @property part_text_cursor_geometry {
- get {
- [[Returns the cursor geometry of the part relative to the edje
- object.]]
- }
- keys {
- part: string; [[The part name]]
- }
- values {
- x: int; [[Cursor X position]]
- y: int; [[Cursor Y position]]
- w: int; [[Cursor width]]
- h: int; [[Cursor height]]
- }
- }
- @property part_text_cursor_coord {
- set {
- [[Position the given cursor to a X,Y position.
-
- This is frequently used with the user cursor.]]
-
- return: bool; [[$true on success, $false otherwise]]
- }
- values {
- part: string; [[The part containing the object.]]
- cur: Edje.Cursor; [[The cursor to adjust.]]
- x: int; [[X Coordinate.]]
- y: int; [[Y Coordinate.]]
- }
- }
- @property part_text_cursor_pos {
- set {
- [[Sets the cursor position to the given value
-
- @since 1.1.0]]
- }
- get {
- [[Retrieves the current position of the cursor
-
- @since 1.1.0]]
- }
- keys {
- part: string; [[The part name]]
- cur: Edje.Cursor; [[The cursor to move]]
- }
- values {
- pos: int; [[The position of the cursor]]
- }
- }
- part_text_cursor_copy {
- [[Copies the cursor to another cursor.]]
-
- params {
- @in part: string; [[The part name]]
- @in src: Edje.Cursor; [[The cursor to copy from]]
- @in dst: Edje.Cursor; [[The cursor to copy to]]
- }
- }
- @property part_text_cursor_content {
- get {
- [[Returns the content (char) at the cursor position.
- \@ref evas_textblock_cursor_content_get
-
- You must free the return (if not $null) after you are done with it.]]
- return: own(ptr(char)); [[The character string pointed to (may be a multi-byte utf8 sequence) terminated by a null byte.]]
- }
- keys {
- part: string; [[The part name]]
- cur: Edje.Cursor; [[The cursor to use]]
- }
- }
- @property part_text_cursor_is_format {
- get {
- [[Returns whether the cursor points to a format.
- \@ref evas_textblock_cursor_is_format]]
- return: bool; [[$true if the cursor points to a format, $false otherwise.]]
- }
- keys {
- part: string; [[The part name]]
- cur: Edje.Cursor; [[The cursor to adjust.]]
- }
- }
- @property part_text_cursor_is_visible_format {
- get {
- [[Returns $true if the cursor points to a visible format
- For example \\t, \\n, item and etc.
- \@ref evas_textblock_cursor_format_is_visible_get]]
- return: bool; [[$true if the cursor points to a visible format, $false otherwise.]]
- }
- keys {
- part: string; [[The part name]]
- cur: Edje.Cursor; [[The cursor to adjust.]]
- }
- }
@property item_provider {
set {
[[Sets the function that provides item objects for named items in an edje entry text
@@ -1179,38 +916,6 @@ class Edje.Object (Efl.Canvas.Group.Clipped, Efl.File, Efl.Container, Efl.Part,
@in part: string; [[The part name]]
}
}
- part_text_style_user_peek @const {
- [[Returns the text of the object part.
-
- This function returns the style associated with the textblock part.
-
- @since 1.2.0]]
- return: string; [[The text string]]
- params {
- @in part: string; [[The part name]]
- }
- }
- part_text_style_user_push {
- [[Sets the style of the
-
- This function sets the style associated with the textblock part.
-
- @since 1.2.0]]
-
- params {
- @in part: string; [[The part name]]
- @in style: string; [[The style to set (textblock conventions).]]
- }
- }
- part_text_style_user_pop {
- [[Deletes the top style form the user style stack.
-
- @since 1.2.0]]
-
- params {
- @in part: string; [[The part name]]
- }
- }
@property part_text_input_hint {
set {
[[Sets the input hint which allows input methods to fine-tune their behavior.
@@ -1430,193 +1135,6 @@ class Edje.Object (Efl.Canvas.Group.Clipped, Efl.File, Efl.Container, Efl.Part,
ondemand: bool; [[If $true, the input panel will be shown in case of only Mouse up event. (Focus event will be ignored.)]]
}
}
- @property part_text_anchor_geometry {
- get {
- [[Returns a list of Evas_Textblock_Rectangle anchor rectangles.
-
- This function return a list of Evas_Textblock_Rectangle anchor
- rectangles.]]
- return: const(list<ptr(const(Evas.Textblock_Rectangle))>); [[The list of anchor rects (const Evas_Textblock_Rectangle
- *), do not modify! Geometry is relative to entry part.]]
- }
- keys {
- part: string; [[The part name]]
- anchor: string; [[The anchor name]]
- }
- }
- @property part_text_anchor_list {
- get {
- [[Returns a list of char anchor names.
-
- This function returns a list of char anchor names.]]
- return: const(list<string>); [[The list of anchors (const char *), do not modify!]]
- }
- keys {
- part: string; [[The part name]]
- }
- }
- text_insert_filter_callback_add {
- [[Adds a filter function for newly inserted text.
-
- Whenever text is inserted (not the same as set) into the given part,
- the list of filter functions will be called to decide if and how the new
- text will be accepted.
- There are three types of filters, EDJE_TEXT_FILTER_TEXT,
- EDJE_TEXT_FILTER_FORMAT and EDJE_TEXT_FILTER_MARKUP.
- The text parameter in the func filter can be modified by the user and
- it's up to him to free the one passed if he's to change the pointer. If
- doing so, the newly set text should be malloc'ed, as once all the filters
- are called Edje will free it.
- If the text is to be rejected, freeing it and setting the pointer to $null
- will make Edje break out of the filter cycle and reject the inserted
- text.
-
- Warning: This function will be deprecated because of difficulty in use.
- The type(format, text, or markup) of text should be always
- checked in the filter function for correct filtering.
- Please use edje_object_text_markup_filter_callback_add() instead. There
- is no need to check the type of text in the filter function
- because the text is always markup.
- Warning: If you use this function with
- edje_object_text_markup_filter_callback_add() together, all
- Edje_Text_Filter_Cb functions and Edje_Markup_Filter_Cb functions
- will be executed, and then filtered text will be inserted.
-
- See also @.text_insert_filter_callback_del, @.text_insert_filter_callback_del_full
- and @.text_markup_filter_callback_add]]
-
- params {
- @in part: string; [[The part name]]
- @in func: Edje.Text.Filter_Cb; [[The callback function that will act as filter]]
- @in data: void_ptr; [[User provided data to pass to the filter function]]
- }
- }
- text_insert_filter_callback_del {
- [[Deletes a function from the filter list.
-
- Delete the given func filter from the list in part. Returns
- the user data pointer given when added.
-
- See also @.text_insert_filter_callback_add and @.text_insert_filter_callback_del_full]]
-
- return: void_ptr; [[The user data pointer if successful, or $null otherwise]]
- params {
- @in part: string; [[The part name]]
- @in func: Edje.Text.Filter_Cb; [[The function callback to remove]]
- }
- }
- text_insert_filter_callback_del_full {
- [[Deletes a function and matching user data from the filter list.
-
- Delete the given func filter and data user data from the list
- in part.
- Returns the user data pointer given when added.
-
- See also @.text_insert_filter_callback_add and @.text_insert_filter_callback_del]]
-
- return: void_ptr; [[The same data pointer if successful, or $null otherwise]]
- params {
- @in part: string; [[The part name]]
- @in func: Edje.Text.Filter_Cb; [[The function callback to remove]]
- @in data: void_ptr; [[The data passed to the callback function]]
- }
- }
- text_markup_filter_callback_add {
- [[Adds a markup filter function for newly inserted text.
-
- Whenever text is inserted (not the same as set) into the given part,
- the list of markup filter functions will be called to decide if and how
- the new text will be accepted.
- The text parameter in the func filter is always markup. It can be
- modified by the user and it's up to him to free the one passed if he's to
- change the pointer. If doing so, the newly set text should be malloc'ed,
- as once all the filters are called Edje will free it.
- If the text is to be rejected, freeing it and setting the pointer to $null
- will make Edje break out of the filter cycle and reject the inserted
- text.
- This function is different from edje_object_text_insert_filter_callback_add()
- in that the text parameter in the fucn filter is always markup.
-
- Warning: If you use this function with
- edje_object_text_insert_filter_callback_add() togehter, all
- Edje_Text_Filter_Cb functions and Edje_Markup_Filter_Cb functions
- will be executed, and then filtered text will be inserted.
-
- See also @.text_markup_filter_callback_del, @.text_markup_filter_callback_del_full
- and @.text_insert_filter_callback_add
-
- @since 1.2.0]]
-
- params {
- @in part: string; [[The part name]]
- @in func: Edje.Markup_Filter_Cb; [[The callback function that will act as markup filter]]
- @in data: void_ptr; [[User provided data to pass to the filter function]]
- }
- }
- text_markup_filter_callback_del {
- [[Deletes a function from the markup filter list.
-
- Delete the given func filter from the list in part. Returns
- the user data pointer given when added.
-
- See also @.text_markup_filter_callback_add and @.text_markup_filter_callback_del_full
-
- @since 1.2.0]]
-
- return: void_ptr; [[The user data pointer if successful, or $null otherwise]]
- params {
- @in part: string; [[The part name]]
- @in func: Edje.Markup_Filter_Cb; [[The function callback to remove]]
- }
- }
- text_markup_filter_callback_del_full {
- [[Deletes a function and matching user data from the markup filter list.
-
- Delete the given func filter and data user data from the list
- in part.
- Returns the user data pointer given when added.
-
- See also @.text_markup_filter_callback_add and @.text_markup_filter_callback_del
-
- @since 1.2.0]]
-
- return: void_ptr; [[The same data pointer if successful, or $null otherwise]]
- params {
- @in part: string; [[The part name]]
- @in func: Edje.Markup_Filter_Cb; [[The function callback to remove]]
- @in data: void_ptr; [[The data passed to the callback function]]
- }
- }
- @property part_text_item_geometry {
- get {
- [[Returns item geometry.
-
- This function return a list of Evas_Textblock_Rectangle item
- rectangles.]]
- return: bool; [[$1 if item exists, $0 if not]]
- }
- keys {
- part: string; [[The part name]]
- item: string; [[The item name]]
- }
- values {
- cx: int; [[Item x return (relative to entry part)]]
- cy: int; [[Item y return (relative to entry part)]]
- cw: int; [[Item width return]]
- ch: int; [[Item height return]]
- }
- }
- @property part_text_item_list {
- get {
- [[Returns a list of char item names.
-
- This function returns a list of char item names.]]
- return: const(list<string>); [[The list of items (const char *), do not modify!]]
- }
- keys {
- part: string; [[The part name]]
- }
- }
/* TEXT PART APIS END ------------------------------------------------ */
@property seat {