Jiyoun Park <jy0703.park@samsung.com>
Myoungwoon Roy Kim(roy_kim) <myoungwoon.kim@samsung.com> <myoungwoon@gmail.com>
Thierry el Borgi <thierry@substantiel.fr>
+Shilpa Singh <shilpa.singh@samsung.com> <shilpasingh.o@gmail.com>
evas_image_loader.extension e.g. evas_image_loader.pdf or
evas_image_loader.xcf or evas_image_loader.xcf.gz etc. etc.
+2011-04-28 Shilpaonkar Singh
+
+ * Textblock: Add "password" tag to turn on/off password in the middle
+ of the textblok. Especially useful for implementing "show last char"
+ for password entries.
unsigned char underline2 : 1;
unsigned char strikethrough : 1;
unsigned char backing : 1;
+ unsigned char password : 1;
};
struct _Evas_Textblock_Style
static const char *itemstr = NULL;
static const char *linefillstr = NULL;
static const char *ellipsisstr = NULL;
+static const char *passwordstr = NULL;
/**
* @internal
itemstr = eina_stringshare_add("item");
linefillstr = eina_stringshare_add("linefill");
ellipsisstr = eina_stringshare_add("ellipsis");
+ passwordstr = eina_stringshare_add("password");
}
format_refcount++;
}
eina_stringshare_del(itemstr);
eina_stringshare_del(linefillstr);
eina_stringshare_del(ellipsisstr);
+ eina_stringshare_del(passwordstr);
}
/**
o->have_ellipsis = 1;
}
}
+ else if (cmd == passwordstr)
+ {
+ if (!strcmp(tmp_param, "off"))
+ fmt->password = 0;
+ else if (!strcmp(tmp_param, "on"))
+ fmt->password = 1;
+ }
if (new_font)
{
fmt->linerelsize = 0.0;
fmt->linegap = 0;
fmt->linerelgap = 0.0;
+ fmt->password = 1;
}
return fmt;
}
/* If we work with a replacement char, create a string which is the same
* but with replacement chars instead of regular chars. */
- if ((repch) && (eina_ustrbuf_length_get(n->unicode)))
+ if ((fmt->password) && (repch) && (eina_ustrbuf_length_get(n->unicode)))
{
int i, ind;
Eina_Unicode *ptr;