org.scaloid.util

Configuration

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
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val HDPI: Int

  7. val LDPI: Int

  8. val MDPI: Int

  9. val XHDPI: Int

  10. val XXHDPI: Int

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Annotations
    @inline()
  31. def square(implicit context: Context): Boolean

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

    Definition Classes
    AnyRef
  33. def toString(): String

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

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

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

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

    Annotations
    @inline()

Inherited from AnyRef

Inherited from Any

Ungrouped