forked from enlightenment/efl
Evas text: Migrate types to .eo.
This commit is contained in:
parent
ae3b5a8f9b
commit
b2370c4766
|
@ -57,16 +57,6 @@ EAPI extern Evas_Version * evas_version;
|
||||||
* @todo finish api documentation
|
* @todo finish api documentation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* BiDi exposed stuff */
|
|
||||||
/*FIXME: document */
|
|
||||||
typedef enum _Evas_BiDi_Direction
|
|
||||||
{
|
|
||||||
EVAS_BIDI_DIRECTION_NATURAL,
|
|
||||||
EVAS_BIDI_DIRECTION_NEUTRAL = EVAS_BIDI_DIRECTION_NATURAL,
|
|
||||||
EVAS_BIDI_DIRECTION_LTR,
|
|
||||||
EVAS_BIDI_DIRECTION_RTL
|
|
||||||
} Evas_BiDi_Direction;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Identifier of callbacks to be set for Evas canvases or Evas
|
* Identifier of callbacks to be set for Evas canvases or Evas
|
||||||
* objects.
|
* objects.
|
||||||
|
@ -3211,36 +3201,6 @@ EAPI Eina_Bool evas_object_image_extension_can_load_fast_get
|
||||||
#define EVAS_TEXT_STYLE_SHADOW_DIRECTION_SET(x, s) \
|
#define EVAS_TEXT_STYLE_SHADOW_DIRECTION_SET(x, s) \
|
||||||
do { x = ((x) & ~EVAS_TEXT_STYLE_MASK_SHADOW_DIRECTION) | (s); } while (0)
|
do { x = ((x) & ~EVAS_TEXT_STYLE_MASK_SHADOW_DIRECTION) | (s); } while (0)
|
||||||
|
|
||||||
/**
|
|
||||||
* @typedef Evas_Text_Style_Type
|
|
||||||
*
|
|
||||||
* Types of styles to be applied on text objects. The @c
|
|
||||||
* EVAS_TEXT_STYLE_SHADOW_DIRECTION_* ones are to be ORed together with others
|
|
||||||
* imposing shadow, to change shadow's direction
|
|
||||||
*/
|
|
||||||
typedef enum _Evas_Text_Style_Type
|
|
||||||
{
|
|
||||||
EVAS_TEXT_STYLE_PLAIN, /**< plain, standard text */
|
|
||||||
EVAS_TEXT_STYLE_SHADOW, /**< text with shadow underneath */
|
|
||||||
EVAS_TEXT_STYLE_OUTLINE, /**< text with an outline */
|
|
||||||
EVAS_TEXT_STYLE_SOFT_OUTLINE, /**< text with a soft outline */
|
|
||||||
EVAS_TEXT_STYLE_GLOW, /**< text with a glow effect */
|
|
||||||
EVAS_TEXT_STYLE_OUTLINE_SHADOW, /**< text with both outline and shadow effects */
|
|
||||||
EVAS_TEXT_STYLE_FAR_SHADOW, /**< text with (far) shadow underneath */
|
|
||||||
EVAS_TEXT_STYLE_OUTLINE_SOFT_SHADOW, /**< text with outline and soft shadow effects combined */
|
|
||||||
EVAS_TEXT_STYLE_SOFT_SHADOW, /**< text with (soft) shadow underneath */
|
|
||||||
EVAS_TEXT_STYLE_FAR_SOFT_SHADOW, /**< text with (far soft) shadow underneath */
|
|
||||||
|
|
||||||
/* OR these to modify shadow direction (3 bits needed) */
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_RIGHT = (0x0 << 4), /**< shadow growing to bottom right */
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM = (0x1 << 4), /**< shadow growing to the bottom */
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_LEFT = (0x2 << 4), /**< shadow growing to bottom left */
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_LEFT = (0x3 << 4), /**< shadow growing to the left */
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_LEFT = (0x4 << 4), /**< shadow growing to top left */
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP = (0x5 << 4), /**< shadow growing to the top */
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_RIGHT = (0x6 << 4), /**< shadow growing to top right */
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_RIGHT = (0x7 << 4) /**< shadow growing to the right */
|
|
||||||
} Evas_Text_Style_Type;
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -184,7 +184,7 @@ class Evas.Text (Evas.Object, Efl.Text, Efl.Text_Properties)
|
||||||
@see evas_object_text_style_set() for more details. */
|
@see evas_object_text_style_set() for more details. */
|
||||||
}
|
}
|
||||||
values {
|
values {
|
||||||
style: Evas_Text_Style_Type; /*@ a style type. */
|
style: Evas.Text_Style_Type; /*@ a style type. */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property glow_color {
|
@property glow_color {
|
||||||
|
@ -257,12 +257,12 @@ class Evas.Text (Evas.Object, Efl.Text, Efl.Text_Properties)
|
||||||
}
|
}
|
||||||
values {
|
values {
|
||||||
name: const(char)*; /*@ Object name as used in the program code */
|
name: const(char)*; /*@ Object name as used in the program code */
|
||||||
eobj: Eo*; /*@ Eo object to use through proxy rendering */
|
eobj: Evas.Object *; /*@ Eo object to use through proxy rendering */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property max_descent {
|
@property max_descent {
|
||||||
get {
|
get {
|
||||||
return: Evas_Coord;
|
return: Evas.Coord;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property style_pad {
|
@property style_pad {
|
||||||
|
@ -283,56 +283,56 @@ class Evas.Text (Evas.Object, Efl.Text, Efl.Text_Properties)
|
||||||
Retrieves the direction of the text currently being displayed in the
|
Retrieves the direction of the text currently being displayed in the
|
||||||
text object.
|
text object.
|
||||||
@return the direction of the text */
|
@return the direction of the text */
|
||||||
return: Evas_BiDi_Direction;
|
return: Evas.BiDi_Direction;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property ascent {
|
@property ascent {
|
||||||
get {
|
get {
|
||||||
return: Evas_Coord;
|
return: Evas.Coord;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property horiz_advance {
|
@property horiz_advance {
|
||||||
get {
|
get {
|
||||||
return: Evas_Coord;
|
return: Evas.Coord;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property inset {
|
@property inset {
|
||||||
get {
|
get {
|
||||||
return: Evas_Coord;
|
return: Evas.Coord;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property max_ascent {
|
@property max_ascent {
|
||||||
get {
|
get {
|
||||||
return: Evas_Coord;
|
return: Evas.Coord;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property vert_advance {
|
@property vert_advance {
|
||||||
get {
|
get {
|
||||||
return: Evas_Coord;
|
return: Evas.Coord;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property descent {
|
@property descent {
|
||||||
get {
|
get {
|
||||||
return: Evas_Coord;
|
return: Evas.Coord;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
last_up_to_pos @const {
|
last_up_to_pos @const {
|
||||||
/*@ Returns the logical position of the last char in the text up to the pos given. this is NOT the position of the last char because of the possibility of RTL in the text. */
|
/*@ Returns the logical position of the last char in the text up to the pos given. this is NOT the position of the last char because of the possibility of RTL in the text. */
|
||||||
return: int(-1);
|
return: int(-1);
|
||||||
params {
|
params {
|
||||||
@in x: Evas_Coord; /*@ in */
|
@in x: Evas.Coord; /*@ in */
|
||||||
@in y: Evas_Coord; /*@ in */
|
@in y: Evas.Coord; /*@ in */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
char_coords_get @const {
|
char_coords_get @const {
|
||||||
return: int;
|
return: int;
|
||||||
params {
|
params {
|
||||||
@in x: Evas_Coord; /*@ in */
|
@in x: Evas.Coord; /*@ in */
|
||||||
@in y: Evas_Coord; /*@ in */
|
@in y: Evas.Coord; /*@ in */
|
||||||
@out cx: Evas_Coord; /*@ out */
|
@out cx: Evas.Coord; /*@ out */
|
||||||
@out cy: Evas_Coord; /*@ out */
|
@out cy: Evas.Coord; /*@ out */
|
||||||
@out cw: Evas_Coord; /*@ out */
|
@out cw: Evas.Coord; /*@ out */
|
||||||
@out ch: Evas_Coord; /*@ out */
|
@out ch: Evas.Coord; /*@ out */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
char_pos_get @const {
|
char_pos_get @const {
|
||||||
|
@ -349,10 +349,10 @@ class Evas.Text (Evas.Object, Efl.Text, Efl.Text_Properties)
|
||||||
return: bool;
|
return: bool;
|
||||||
params {
|
params {
|
||||||
@in pos: int; /*@ The character position to request co-ordinates for. */
|
@in pos: int; /*@ The character position to request co-ordinates for. */
|
||||||
@out cx: Evas_Coord; /*@ A pointer to an @c Evas_Coord to store the X value in (can be NULL). */
|
@out cx: Evas.Coord; /*@ A pointer to an @c Evas_Coord to store the X value in (can be NULL). */
|
||||||
@out cy: Evas_Coord; /*@ A pointer to an @c Evas_Coord to store the Y value in (can be NULL). */
|
@out cy: Evas.Coord; /*@ A pointer to an @c Evas_Coord to store the Y value in (can be NULL). */
|
||||||
@out cw: Evas_Coord; /*@ A pointer to an @c Evas_Coord to store the Width value in (can be NULL). */
|
@out cw: Evas.Coord; /*@ A pointer to an @c Evas_Coord to store the Width value in (can be NULL). */
|
||||||
@out ch: Evas_Coord; /*@ A pointer to an @c Evas_Coord to store the Height value in (can be NULL). */
|
@out ch: Evas.Coord; /*@ A pointer to an @c Evas_Coord to store the Height value in (can be NULL). */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,6 +58,45 @@ enum Evas.Display_Mode {
|
||||||
dont_change = 3 /**< Use this mode when an object should not change its display mode */
|
dont_change = 3 /**< Use this mode when an object should not change its display mode */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum Evas.BiDi_Direction {
|
||||||
|
/* BiDi exposed stuff */
|
||||||
|
/*FIXME: document */
|
||||||
|
natural = 0,
|
||||||
|
neutral = 0,
|
||||||
|
ltr,
|
||||||
|
rtl
|
||||||
|
}
|
||||||
|
|
||||||
|
enum Evas.Text_Style_Type {
|
||||||
|
/*@
|
||||||
|
* Types of styles to be applied on text objects. The @c
|
||||||
|
* EVAS_TEXT_STYLE_SHADOW_DIRECTION_* ones are to be ORed together with others
|
||||||
|
* imposing shadow, to change shadow's direction
|
||||||
|
*/
|
||||||
|
legacy: Evas_Text_Style;
|
||||||
|
|
||||||
|
plain, /**< plain, standard text */
|
||||||
|
shadow, /**< text with shadow underneath */
|
||||||
|
outline, /**< text with an outline */
|
||||||
|
soft_outline, /**< text with a soft outline */
|
||||||
|
glow, /**< text with a glow effect */
|
||||||
|
outline_shadow, /**< text with both outline and shadow effects */
|
||||||
|
far_shadow, /**< text with (far) shadow underneath */
|
||||||
|
outline_soft_shadow, /**< text with outline and soft shadow effects combined */
|
||||||
|
soft_shadow, /**< text with (soft) shadow underneath */
|
||||||
|
far_soft_shadow, /**< text with (far soft) shadow underneath */
|
||||||
|
|
||||||
|
/* OR these to modify shadow direction (3 bits needed) */
|
||||||
|
shadow_direction_bottom_right = (0x0 << 4), /**< shadow growing to bottom right */
|
||||||
|
shadow_direction_bottom = (0x1 << 4), /**< shadow growing to the bottom */
|
||||||
|
shadow_direction_bottom_left = (0x2 << 4), /**< shadow growing to bottom left */
|
||||||
|
shadow_direction_left = (0x3 << 4), /**< shadow growing to the left */
|
||||||
|
shadow_direction_top_left = (0x4 << 4), /**< shadow growing to top left */
|
||||||
|
shadow_direction_top = (0x5 << 4), /**< shadow growing to the top */
|
||||||
|
shadow_direction_top_right = (0x6 << 4), /**< shadow growing to top right */
|
||||||
|
shadow_direction_right = (0x7 << 4) /**< shadow growing to the right */
|
||||||
|
}
|
||||||
|
|
||||||
struct Evas.Map; /*@ An opaque handle to map points
|
struct Evas.Map; /*@ An opaque handle to map points
|
||||||
*
|
*
|
||||||
* @see evas_map_new()
|
* @see evas_map_new()
|
||||||
|
|
Loading…
Reference in New Issue