abstract
class
IconAndText extends AnyRef
Instance Constructors
-
new
IconAndText(text: TextBox, offx: Double, offy: Double, padx: Double, pady: Double)
Abstract Value Members
-
abstract
def
height: Double
-
abstract
def
render(backend: Backend, camera: Camera, xLeft: Double, yBottom: Double): Unit
-
abstract
def
setIcon(backend: Backend, url: String): Unit
-
abstract
def
setText(backend: Backend, text: String): Unit
-
abstract
def
width: Double
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
ascent: Double
-
def
clone(): AnyRef
-
def
descent: Double
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
val
offx: Double
-
val
offy: Double
-
val
padx: Double
-
val
pady: Double
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
A wrapper for a text and an icon.
The text is dynamic and therefore specified at each rendering. The icon is fixed by the style and specified only at construction, excepted if the icon name is "dynamic" in which case it is taken from the "ui.icon" attribute of the element.
The constructor parameters
offx
,offy
,padx
andpady
are expressed in pixels. The represent the offset of the text according to its origin and the padding around the text. Thetext
parameter is aTextBox
that allows to wrap the text.XXX TODO This should really be called "ElementContents".