Object

org.scaloid.util

Configuration

Related Doc: package util

Permalink

object Configuration

Shortcuts for various device support.

import org.scaloid.util.Configuration._

if(long) SButton("This button is shown only for a long screen dimension (" + width + ", " + height + ")")
if(landscape) SLinearLayout {
  SButton("Buttons for")
  SButton("landscape layout")
}
if(dpi >= HDPI) SButton("You have a high resolution display!")
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Configuration
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val HDPI: Int

    Permalink
  5. val LDPI: Int

    Permalink
  6. val MDPI: Int

    Permalink
  7. val TVDPI: Int

    Permalink
  8. val XHDPI: Int

    Permalink
  9. val XXHDPI: Int

    Permalink
  10. val XXXHDPI: Int

    Permalink
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def conf(implicit context: Context): Configuration

    Permalink
    Annotations
    @inline()
  14. def displayMetrics(implicit context: Context): DisplayMetrics

    Permalink
    Annotations
    @inline()
  15. def dpi(implicit context: Context): Int

    Permalink
    Annotations
    @inline()
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. def height(implicit context: Context): Int

    Permalink
    Annotations
    @inline()
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def landscape(implicit context: Context): Boolean

    Permalink
    Annotations
    @inline()
  24. def locale(implicit context: Context): Locale

    Permalink
    Annotations
    @inline()
  25. def long(implicit context: Context): Boolean

    Permalink
    Annotations
    @inline()
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. def orientation(implicit context: Context): Int

    Permalink
    Annotations
    @inline()
  30. def portrait(implicit context: Context): Boolean

    Permalink
    Annotations
    @inline()
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def width(implicit context: Context): Int

    Permalink
    Annotations
    @inline()

Deprecated Value Members

  1. def square(implicit context: Context): Boolean

    Permalink
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version )

Inherited from AnyRef

Inherited from Any

Ungrouped