Module constants

Constants

Tables

KEY Key Codes
COLOR Color palatte
FONT Fonts
MODE Camera shooting mode
ICON_TYPE Menu icon type
UNIT Menu value unit
DEPENDS_ON Dependency for a menu item

Class font

font:width(text) Gets the width of some text in this font.
font.height The height of this font in pixels


Tables

KEY
Key Codes

Fields:

  • HALFSHUTTER
  • UNPRESS_HALFSHUTTER
  • FULLSHUTTER
  • UNPRESS_FULLSHUTTER
  • WHEEL_UP
  • WHEEL_DOWN
  • WHEEL_LEFT
  • WHEEL_RIGHT
  • SET
  • UNPRESS_SET
  • JOY_CENTER
  • UP
  • UP_RIGHT
  • UP_LEFT
  • RIGHT
  • LEFT
  • DOWN_RIGHT
  • DOWN_LEFT
  • DOWN
  • UNPRESS_UDLR
  • ZOOMIN
  • MENU
  • INFO
  • PLAY
  • TRASH
  • RATE
  • REC
  • LV
  • Q
  • PICSTYLE
  • FLASH_MOVIE
  • UNPRESS_FLASH_MOVIE
  • DP
  • UNPRES_DP
  • TOUCH_1_FINGER
  • UNTOUCH_1_FINGER
  • TOUCH_2_FINGER
  • UNTOUCH_2_FINGER
COLOR
Color palatte

Fields:

  • TRANSPARENT
  • WHITE
  • BLACK
  • TRANSPARENT_BLACK
  • LIGHT_GRAY
  • GRAY
  • DARK_GRAY
  • CYAN
  • GREEN1
  • GREEN2
  • RED
  • LIGHT_BLUE
  • BLUE
  • DARK_RED
  • MAGENTA
  • YELLOW
  • ORANGE
  • ALMOST_BLACK
  • ALMOST_WHITE
  • DARK_GREEN1_MOD
  • DARK_GREEN2_MOD
  • DARK_ORANGE_MOD
  • DARK_CYAN1_MOD
  • DARK_CYAN2_MOD
  • gray func converts integer percentage to shade of gray
FONT
Fonts

Fields:

MODE
Camera shooting mode

Fields:

  • P
  • TV
  • AV
  • M
  • BULB
  • ADEP
  • C
  • C2
  • C3
  • CA
  • AUTO
  • NOFLASH
  • PORTRAIT
  • LANDSCAPE
  • MACRO
  • SPORTS
  • NIGHT
  • MOVIE
ICON_TYPE
Menu icon type

Fields:

  • AUTO
  • BOOL
  • DICE
  • PERCENT
  • ALWAYS_ON
  • ACTION
  • BOOL_NEG
  • DISABLE_SOME_FEATURE
  • SUBMENU
  • DICE_OFF
  • PERCENT_OFF
  • PERCENT_LOG
  • PERCENT_LOG_OFF
UNIT
Menu value unit

Fields:

  • EV
  • x10
  • PERCENT
  • PERCENT_x10
  • ISO
  • HEX
  • DEC
  • TIME
DEPENDS_ON
Dependency for a menu item

Fields:

  • GLOBAL_DRAW
  • LIVEVIEW
  • NOT_LIVEVIEW
  • MOVIE_MODE
  • PHOTO_MODE
  • AUTOFOCUS
  • MANUAL_FOCUS
  • CFN_AF_HALFSHUTTER
  • CFN_AF_BACK_BUTTON
  • EXPSIM
  • NOT_EXPSIM
  • CHIPPED_LENS
  • M_MODE
  • MANUAL_ISO
  • SOUND_RECORDING
  • NOT_SOUND_RECORDING

Class font

Font.

TODO: move to a module.

font:width(text)
Gets the width of some text in this font.

Parameters:

font.height
The height of this font in pixels
  • height int
generated by LDoc 1.4.3 Last updated 2018-12-23 23:12:04