Page MenuHomePhabricator

Open, Incoming QueuePublic


interface @beta Efl.Canvas.Textblock_Factory

[[Object factory that creates Efl.Canvas.Object objects.

  Translates a given key to an object (item), to be later placed in a text
  for higher level usages. The translation implementation is left to be
  decided by the inheriting class, whether it is by treating the $key as an
  image path, or a key associated with a real-path in a hashtable
  or something else entirely.
methods {
   create {
      [[Translates a given $key to an item object, and returns the object.
        The returned object should be owned by the passed $object.
      params {
         object: Efl.Canvas.Object; [[The parent of the created object]]
         key: string; [[Key that is associated to an item object]]
      return: Efl.Canvas.Object @move;


Related Objects

ali.alzyod moved this task from Backlog to Evaluating on the efl: api board.Jan 13 2020, 11:15 PM
ali.alzyod moved this task from Evaluating to Backlog on the efl: api board.Jan 14 2020, 12:32 AM

I think we can find out the better way for this kind of support.
Current one looks a bit difficult for developers. (And, I cannot imagine well what would be happened with this feature).

I am also wondering of we can just reuse Efl.Ui.Factory, where the model has a single key...