adesklets.commands
index
commands.py

adesklets commands module 
 
===   2005-04-13 20:06:34   === 
Automatically generated by `setup.py protoize' from 
files `../prototypes' and `../enums'. 
0 constants and 154 functions successfully created.

 
Modules
        
adesklets.commands_handler
adesklets.strings
 
Functions
        
add_color_to_color_range(distance_away)
Add a color to a color range
 
int distance_away
add_path_to_font_path(path)
Add a font path
 
const char *path
apply_color_modifier()
Apply a color modifier
 
void
apply_color_modifier_to_rectangle(x, y, width, height)
Apply a color modifier
 
int x, int y, int width,int height
apply_filter(script)
Apply a dynamic filter
 
const char * script
blend_image_onto_image(source_image, merge_alpha, source_x, source_y, source_width, source_height, destination_x, destination_y, destination_width, destination_height)
Blend images together
 
int source_image,char merge_alpha, int source_x,int source_y, int
source_width,int source_height, int destination_x,int destination_y,
int destination_width,int destination_height
blend_image_onto_image_at_angle(source_image, merge_alpha, source_x, source_y, source_width, source_height, destination_x, destination_y, angle_x, angle_y)
Blend images together
 
int source_image,char merge_alpha, int source_x,int source_y, int
source_width,int source_height,int destination_x,int destination_y,
int angle_x,int angle_y
blend_image_onto_image_skewed(source_image, merge_alpha, source_x, source_y, source_width, source_height, destination_x, destination_y, h_angle_x, h_angle_y, v_angle_x, v_angle_y)
Blend images together
 
int source_image,char merge_alpha, int source_x,int source_y, int
source_width,int source_height,int destination_x,int destination_y,
int h_angle_x,int h_angle_y, int v_angle_x,int v_angle_y
charset_status()
Get charset capabilities
 
void
clone_image()
Create a copy of an image
 
void
color_modifiers_info()
Get information on all color modifiers
 
void
color_modifiers_reset_all()
Free all color modifiers
 
void
color_ranges_info()
Get information on all color ranges
 
void
color_ranges_reset_all()
Free all color ranges
 
void
context_get_angle()
Get context angle
 
void
context_get_anti_alias()
Get context anti alias
 
void
context_get_blend()
Get context blending
 
void
context_get_cliprect()
Get clipping rectange
 
void
context_get_color()
Get context color
 
void
context_get_color_modifier()
Get context color modifier
 
void
context_get_color_range()
Get context color range
 
void
context_get_direction()
Get context direction
 
void
context_get_dither()
Get context dither
 
void
context_get_filter()
Get context filter
 
void
context_get_font()
Get context font
 
void
context_get_image()
Get context image
 
void
context_get_operation()
Get context operation
 
void
context_set_angle(angle)
Set context angle
 
double angle
context_set_anti_alias(anti_alias)
Set context anti-alias
 
bool anti_alias
context_set_blend(blend)
Set context blending
 
bool blend
context_set_cliprect(x, y, w, h)
Set context clipping rectangle
 
int x, int y, int w, int h
context_set_color(red, green, blue, alpha)
Set context RGBA color
 
int red, int green, int blue, int alpha
context_set_color_modifier(color_modifier =None)
Set context color modifier
 
[int color_modifier]
context_set_color_range(color_range =None)
Set context color range
 
[int color_range]
context_set_direction(direction)
Set context direction
 
enum DIRECTIONS direction
context_set_dither(dither)
Set context dither
 
bool dither
context_set_filter(filter =None)
Set context filter
 
[int filter]
context_set_font(font =None)
Set context font
 
[int font]
context_set_image(image)
Set context image
 
int image
context_set_operation(operation)
Set context operation
 
enum OPERATIONS operation
create_color_modifier()
Create a color modifier
 
void
create_color_range()
Create a color range
 
void
create_filter()
Create a filter
 
void
create_image(width, height)
Create an image
 
int width, int height
create_image_using_data(width, height, data)
Create an image from data
 
int width, int height,unsigned int * data
echo(string)
Echo a string
 
const char * string
events_get_echo()
Get events echo status
 
void
events_get_send_sigusr1()
Get sending of SIGUSR1 to parent on event
 
void
events_info()
Get all caught events
 
void
filter_constants(a, r, g, b)
Set filter constants
 
int a, int r, int g, int b
filter_divisors(a, r, g, b)
Set filter divisors
 
int a, int r, int g, int b
filter_set(xoff, yoff, a, r, g, b)
Set filter
 
int xoff, int yoff, int a, int r, int g, int b
filter_set_alpha(xoff, yoff, a, r, g, b)
Set filter alpha channel
 
int xoff, int yoff, int a, int r, int g, int b
filter_set_blue(xoff, yoff, a, r, g, b)
Set filter blue channel
 
int xoff, int yoff, int a, int r, int g, int b
filter_set_green(xoff, yoff, a, r, g, b)
Set filter grean channel
 
int xoff, int yoff, int a, int r, int g, int b
filter_set_red(xoff, yoff, a, r, g, b)
Set filter red channel
 
int xoff, int yoff, int a, int r, int g, int b
filters_info()
Get information on all filters
 
void
filters_reset_all()
Free all filters
 
void
fonts_info()
Get information on all fonts
 
void
fonts_reset_all()
Free all fonts
 
void
free_color_modifier(color_modifier)
Free a color modifier
 
int color_modifier
free_color_range(color_range)
Free a color range
 
int color_range
free_filter(filter)
Free a filter
 
int filter
free_font(font)
Free a font
 
int font
free_image(image)
Free an image
 
int image
get_charset()
Get input charset
 
void
get_color_modifier_tables()
Get tables for a color modifier
 
void
get_color_modifier_value(table, index)
Get a value for a color modifier
 
enum RGBA_TABLES table, int index
get_id()
Get current applet identificator
 
void
get_text_advance(text)
Get advance of text
 
const char * text
get_text_size(text)
Get size of text
 
const char * text
help(command=None)
Display short help about a command
 
[const char * command]
history(filename =None)
List/save commands history
 
[const char * filename]
image_blur(radius)
Blur an image
 
int radius
image_copy_alpha_rectangle_to_image(image_source, x, y, width, height, destination_x, destination_y)
Transfert alpha channel
 
int image_source,int x, int y, int width,int height,int
destination_x,int destination_y
image_copy_alpha_to_image(image_source, x, y)
Transfert alpha channel
 
int image_source, int x,int y
image_draw_ellipse(xc, yc, a, b)
Draw an ellipse
 
int xc, int yc, int a, int b
image_draw_line(x1, y1, x2, y2, make_updates)
Draw a line
 
int x1, int y1, int x2, int y2,char make_updates
image_draw_polygon(poly, closed)
Draw a polygon onto image
 
int poly, unsigned char closed
image_draw_rectangle(x, y, width, height)
Draw a rectangle
 
int x, int y, int width, int height
image_fill_color_range_rectangle(x, y, width, height, angle)
Draw a gradian filled rectange
 
int x, int y, int width,int height, double angle
image_fill_ellipse(xc, yc, a, b)
Fill an ellipse
 
int xc, int yc, int a, int b
image_fill_polygon(poly)
Fill a polygon onto image
 
int poly
image_fill_rectangle(x, y, width, height)
Draw a filled rectangle
 
int x, int y, int width, int height
image_filter_recurse()
void
image_flip_diagonal()
Flip an image diagonally
 
void
image_flip_horizontal()
Flip an image horizontally
 
void
image_flip_vertical()
Flip an image vertically
 
void
image_get_data()
Get the data of an image
 
void
image_get_filename()
Get filename of an image
 
void
image_get_height()
Get height of an image
 
void
image_get_width()
Get width of an image
 
void
image_has_alpha()
Get alpha channel setting of an image
 
void
image_orientate(orientation)
Orientate an image
 
int orientation
image_query_pixel(x, y)
Query a pixel value
 
int x, int y
image_set_changes_on_disk()
Set image load time behavior
 
void
image_set_format(format)
Set image format
 
const char *format
image_set_has_alpha(has_alpha)
Set alpha channel of an image
 
bool has_alpha
image_sharpen(radius)
Sharpen an image
 
int radius
images_info()
Get information on all images
 
void
images_reset_all()
Free all images and refresh foreground
 
void
list_font_path()
List all fonts path
 
void
list_fonts()
List all fonts
 
void
load_font(font_name)
Load a font
 
const char *font_name
load_image(file)
Load an image from disk
 
const char *file
load_image_without_cache(file)
Load an image from disk bypassing the cache
 
const char *file
menu_add_item(add_item)
Add an item to current menu
 
const char * add_item
menu_add_menu()
Add a new menu
 
void
menu_add_separator()
Add a separator to current menu
 
void
menu_add_submenu(submenu)
Add a submenu to current menu
 
const char * submenu
menu_end_submenu()
End a submenu construction
 
void
menu_fire(menu)
Fire a given menu
 
int menu
menu_reset_all()
Reset all menus to initial state
 
void
modify_color_modifier_brightness(brightness_value)
Modify brightness
 
double brightness_value
modify_color_modifier_contrast(contrast_value)
Modify contrast
 
double contrast_value
modify_color_modifier_gamma(gamma_value)
Modify gamma correction
 
double gamma_value
pause(delay=None)
Freeze the interpreter for debugging
 
[int delay]
ping()
Ping the interpreter
 
void
play(beginning, end)
Play a given macro
 
int beginning, int end
play_get_abort_on_events()
Get replays interuptable status
 
void
play_set_abort_on_events(abort)
Set replays to be interuptable
 
bool abort
polygon_add_point(poly, x, y)
Add point to a polygon
 
int poly, int x, int y
polygon_free(poly)
Free a polygon
 
int poly
polygon_new()
Create a polygon
 
void
polygons_info()
Get information on all polygons
 
void
polygons_reset_all()
Free all polygons
 
void
quit()
Quit the program
 
void
remove_path_from_font_path(path)
Remove a font path
 
const char *path
save_image(filename)
Save an image to disk
 
const char *filename
screen_get_depth()
Get screen depth
 
void
screen_get_height()
Get screen height
 
void
screen_get_width()
Get screen width
 
void
set(name=None, value=None)
Set or unset a textual variable
 
[const * char name, const * char value]
set_charset(charset)
Set input charset
 
const char * charset
set_color_modifier_tables(table)
Set tables for a color modifier
 
unsigned char * table
set_color_modifier_value(table, index, value)
Set a value for a color modifier
 
enum RGBA_TABLES table, int index, int value
start_recording()
Start recording a macro
 
void
stop_recording()
Stop recording the macro
 
void
text_draw(x, y, text)
Draw a text string
 
int x, int y, const char *text
time_gate(gate)
Set a time gate
 
double gate
unset_all()
Unset all defined textual variables
 
void
version()
Get interpreter version
 
void
window_get_background_grab()
Get automatic grab
 
void
window_get_background_image()
Get background image
 
void
window_get_managed_status()
Get managed status
 
void
window_get_transparency()
Get automatic transparency
 
void
window_hide()
Unmap the window from the screen
 
void
window_reset(manager)
Reset the window
 
enum WINDOW_MANAGER manager
window_resize(width, height)
Resize the window
 
int width, int height
window_set_background_grab(grab)
Set automatic grab
 
bool grab
window_set_background_image(image)
Set background image
 
int image
window_set_transparency(transparency)
Set automatic transparency
 
bool transparency
window_show()
Map the window on the screen
 
void
x_status()
Status of connection to X Window server
 
void