edje: clean up part text APIs

This commit is contained in:
Jee-Yong Um 2016-08-11 11:05:03 +09:00 committed by Jean-Philippe Andre
parent 42750beba4
commit 7621e28ca4
1 changed files with 60 additions and 65 deletions

View File

@ -1210,24 +1210,23 @@ class Edje.Object (Efl.Canvas.Group.Clipped, Efl.File, Efl.Container, Efl.Part)
data: void_ptr; [[The data associated to the callback function.]] data: void_ptr; [[The data associated to the callback function.]]
} }
} }
part_text_set { @property part_text {
[[Sets the text for an object part]] set {
[[Sets the text for an object part]]
return: bool; [[$true on success, $false otherwise]] return: bool; [[$true on success, $false otherwise]]
params {
@in part: string; [[The part name]]
@in text: string; [[The text string]]
} }
} get {
part_text_get @const { [[Return the text of the object part.
[[Return the text of the object part.
This function returns the text associated to the object part. This function returns the text associated to the object part.
See also @.part_text_set().]] See also @.part_text.set().]]
return: string; [[The text string]] }
params { keys {
@in part: string; [[The part name]] part: string; [[The part name]]
}
values {
text: string; [[The text string]]
} }
} }
@property part_text_escaped { @property part_text_escaped {
@ -1246,33 +1245,31 @@ class Edje.Object (Efl.Canvas.Group.Clipped, Efl.File, Efl.Container, Efl.Part)
text: string; [[The text string]] text: string; [[The text string]]
} }
} }
part_text_unescaped_set { @property part_text_unescaped {
[[Sets the raw (non escaped) text for an object part. 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, 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. if text contain tags, these tags will not be interpreted/parsed by TEXTBLOCK.
See also @.part_text_unescaped_get().]] See also @.part_text_unescaped.get().]]
return: bool;
return: bool;
params {
@in part: string; [[The part name]]
@in text_to_escape: string; [[The text string]]
} }
} get {
part_text_unescaped_get @const { [[Returns the text of the object part, without escaping.
[[Returns the text of the object part, without escaping.
This function is the counterpart of This function is the counterpart of
edje_object_part_text_unescaped_set(). Please notice that the @.part_text_unescaped.set(). Please notice that the
result is newly allocated memory and should be released with free() result is newly allocated memory and should be released with free()
when done. when done.
See also @.part_text_unescaped_set().]] See also @.part_text_unescaped.set().]]
return: char *; [[The allocated text string without escaping, or $null on }
problems.]] keys {
params { part: string; [[The part name]]
@in part: string; [[The part name]] }
values {
text_to_escape: string; [[The text string]]
} }
} }
part_text_append { part_text_append {
@ -1311,42 +1308,40 @@ class Edje.Object (Efl.Canvas.Group.Clipped, Efl.File, Efl.Container, Efl.Part)
@in text: string; [[The text string]] @in text: string; [[The text string]]
} }
} }
part_text_autocapital_type_set { @property part_text_autocapital_type {
[[Set the autocapitalization type on the immodule. set {
[[Set the autocapitalization type on the immodule.
@since 1.1.0]] @since 1.1.0]]
}
get {
[[Retrieves the autocapitalization type
params { @since 1.1.0]]
@in part: string; [[The part name]] }
@in autocapital_type: Edje.Text.Autocapital_Type; [[The type of autocapitalization]] keys {
part: string; [[The part name]]
}
values {
autocapital_type: Edje.Text.Autocapital_Type; [[The type of autocapitalization]]
} }
} }
part_text_autocapital_type_get @const { @property part_text_prediction_allow {
[[Retrieves the autocapitalization type set {
[[Set whether the prediction is allowed or not.
@since 1.1.0]] @since 1.2.0]]
return: Edje.Text.Autocapital_Type; [[The autocapitalization type]]
params {
@in part: string; [[The part name]]
} }
} get {
part_text_prediction_allow_set { [[Get whether the prediction is allowed or not.
[[Set whether the prediction is allowed or not.
@since 1.2.0]] @since 1.2.0]]
params {
@in part: string; [[The part name]]
@in prediction: bool; [[If true, the prediction feature is allowed.]]
} }
} keys {
part_text_prediction_allow_get @const { part: string; [[The part name]]
[[Get whether the prediction is allowed or not. }
values {
@since 1.2.0]] prediction: bool; [[If true, the prediction feature is allowed.]]
return: bool; [[true if prediction feature is allowed.]]
params {
@in part: string; [[The part name]]
} }
} }
part_text_hide_visible_password { part_text_hide_visible_password {