Objects
Align the text to center.
Align the text to the right.
Display current battery status and level.
Display a bar of the current battery level.
Display current battery level.
Change the current paint color to the default color.
Change the current paint color to the value of color.
Parameters:
- color - a color name or hexadecimal value
Display the percentage of cpu usage.
Display the percentage of cpu usage in a bar.
Display the percentage of cpu usage in a bar.
Display a historical graph of cpu usage.
Parameters:
- color1 - left most color of graph
- color2 - right most color of graph
cpugraph(hw, color1, color2)
Display a historical graph of cpu usage.
Parameters:
- hw - height,width of the graph such as 32,120
- color1 - left most color of graph
- color2 - right most color of graph
Display the download speed for a network interface.
Parameters:
- device - network device such as eth0 or wlan0
Display a historical graph of download speeds for a device.
Parameters:
- device - network device such as eth0 or wlan0
- hw - height,width of the graph
- color1 - left most color of graph
- color2 - right most color of graph
Reset to the current font.
Change to the font described in font
Parameters:
- font - The font to switch to for drawing
Returns firts CPU's frequency in MHz.
Returns CPU n's frequency in MHz.
Parameters:
Display current file system usage in a usage bar.
Parameters:
- mountPoint - Mount point such as /sdcard, /system or /data
Display available diskspace.
Parameters:
- mountPoint - Mount point such as /sdcard, /system or /data
Display disk size.
Parameters:
- mountPoint - Mount point such as /sdcard, /system or /data
Display the amount of disk usage.
Parameters:
- mountPoint - Mount point such as /sdcard, /system or /data
Display the amount of disk usage.
Parameters:
- mountPoint - Mount point such as /sdcard, /system or /data
goto(position)
Change current horizontal location to postition
Parameters:
- position - the new position
Draw a horizontal rule using the default line height.
Draw a horizontal rule using a line height of lh.
Parameters:
- lh - a number, used as the new line height
Draw the image specified by the path. The cursor position will not be
changed.
Changed the current update interval.
Display the kernel version.
length(minLength, maxLength, object)
Limit an objects output to a certain number of characters.
Parameters:
- minLength - minimum length of the string
- maxLength - max length of the string
- object - a text object whose output will be limited to N characters
Display the 1, 5 and 15 minute load avgerage of jobs in the run queue.
Display either 1, 5 or 15 minute load avgerage of jobs in the run queue.
Parameters:
- idx - An integer value, 1 >e; idx <e; 3.
Display memory used in a bar graph.
Display memory used in a bar graph.
Parameters:
- hw - comma delimited string of height and width
Display the maximum available memory.
Display the percentage of memory being used.
Move text horizontally by N pixels
Parameters:
- pixels - the number of pixels
printf(format, objects)
Accepts a format string and other text objects.
Parameters:
- format - a format string as describe in...
- objects - a variable list of text objects
Display the total number of forks since boot.
Display the systems time since the system was booted, including deep
sleep.
Number of processes in runnable state.
Draw a stippled horizontal rule with the default spacing.
Draw a stippled horizontal rule with the default spacing.
Parameters:
- spacing - a number to specify the size of the dashes.
Display the amount of swap memory being used.
Display swap memory used in a bar graph.
Display swap used in a bar graph.
Parameters:
- hw - comma delimited string of height and width
Display the maximum swap memory available.
Display the percentage of swap memory being used.
Prints the local time formatted according to parameter.
Parameters:
- format - uses C's strftime format to specify time format.
top(var, num)
Display information about the top running processes. For example to
display the top three processes, and their cpu usage:
${top name 1}${top cpu 1}
${top name 2}${top cpu 2}
${top name 3}${top cpu 3}
Parameters:
- var - The name of the variable to display
- num - An integer, >e; 1
Display information about the top memory consuming processes. For
example to display the top three processes, and their mem usage:
${top name 1}${top mem 1}
${top name 2}${top mem 2}
${top name 3}${top mem 3}
Parameters:
- var - The name of the variable to display
- num - An integer, >e; 1
Display the download speed for a network interface.
Parameters:
- device - network device such as eth0 or wlan0
Display the download speed for a network interface.
Parameters:
- device - network device such as eth0 or wlan0
Display the upload speed for a network interface.
Parameters:
- device - network device such as eth0 or wlan0
upspeedgraph(device, hw, color1, color2)
Display a historical graph of upload speeds for a device.
Parameters:
- device - network device such as eth0 or wlan0
- hw - height,width of the graph
- color1 - left most color of graph
- color2 - right most color of graph
Display the systems uptime. On android this does not include when the
system enters deep sleep. @see Realtime.
Change current vertical location to postition
Parameters:
- position - the new position
Move text vertically by N pixels
Parameters:
- pixels - the number of pixels