Constants

Throughout the FancyPants JavaScript API, developers may find certain input parameters to be a predefined set of string, the constant strings do not have a predefined symbol however, thus developers are required to enter the text string (case insensitive) directly for the parameters. Similarly, for API that returns an output that either contains or is a constant string, the predefined string will always be coming from one of the tables below.

Directions

Direction
left
right
up
down

Color Effects

Name of Effect Description on Param
Red
Green
Blue
Color Hex string representing the color number value in ARGB format. For example, “0xffff0000” will set the color to red.
Grey
Sepia
Flip
Mirror
WetFloor
Warhol
Stylised
AlienMap
RandomMap
Circle
Rotate
AlphaMap
HBlur
AHBlur
AVBlur

Shader Effects

Effect name
sinewave
dampripple
reflect
ripple

File Browser Traversal Modes

Mode
any
noparent
disabled

File Browser Filters

Filter
audio
video
photo
image
playlist
all

Key

key (physical)
Alt_L Alt_R apostrophe backslash BackSpace
bracketleft bracketright Caps_Lock comma Control_L
Control_R Delete Down End equal
Escape F1 F2 F3 F4
F5 F6 F7 F8 F9
F10 F11 F12 grave Home
Insert KP_Add KP_Begin KP_Delete KP_Divide
KP_Down KP_End KP_Enter KP_Home KP_Insert
KP_Left KP_Multiply KP_Next KP_Prior KP_Right
KP_Subtract KP_Up Left Menu minus
Next Num_Lock Pause period Prior
Return Right Scroll_Lock semicolon Shift_L
Shift_R slash space Super_L Super_R
Tab Up 0 1 2
3 4 5 6 7
8 9 a b c
d e f g h
i j k l m
n o p q r
s t u v w
x y z

Media States

State Description
invalid This is a read-only state and cannot be set through FpMedia.set(“state”).
stop
play
pause
open
buffering This is a read-only state and cannot be set through FpMedia.set(“state”).

Media Whence

Whence
set
cur
end

Media Errors

Error
unknown
io
memory
fileformat
data
eof
input
videocodec
audiocodec

Object Types

List of Simple Object Types
text
image
rectangle
line
container
layout
media
List of Widget Types
button
calendar
checkbox
cube
filebrowser
flip
keyboard
multiselect
progressbar
scrollbar
scrolllist
slider
textarea
textentry

Orientations

Orientation
horizontal
vertical

Layout Child Modes

Mode
left
top
right
bottom
center

Appear Modes for Horizontal and Vertical Scrollbars

Mode
auto
always
never

Scrolllist Scroll Modes

Mode
auto
scroll when needed
always
always scroll

Text effects

Effect
None
Shadow
Outline
SoftOutline
Glow
OutlineShadow
FarShadow
OutlineSoftShadow
SoftShadow
FarSoftShadow

Text Styles

Style
normal
emphasis
strong
heading
small
kbentry
key

Text Alignments

Alignment
left
center
right

Back to main - Copyright © 2015 Fluffy Spider Techologies - http://fluffyspider.com