Logo Search packages:      
Sourcecode: adesklets version File versions

commands.py

00001 """ 
adesklets commands module 

===   2005-04-02 13:40:14   === 
Automatically generated by `setup.py protoize' from 
files `../prototypes' and `../enums'. 
15 constants and 154 functions successfully created. 

""" 
# Imports 
# 
from error_handler import ADESKLETSError 
import commands_handler 
import strings 

# Constants 
# 
TEXT_TO_RIGHT        =  0 
TEXT_TO_LEFT         =  1 
TEXT_TO_DOWN         =  2 
TEXT_TO_UP           =  3 
TEXT_TO_ANGLE        =  4 
OP_COPY              =  0 
OP_ADD               =  1 
OP_SUBSTRACT         =  2 
OP_RESHADE           =  3 
CHANNEL_RED          =  0 
CHANNEL_GREEN        =  1 
CHANNEL_BLUE         =  2 
CHANNEL_ALPHA        =  3 
WINDOW_UNMANAGED     =  0 
WINDOW_MANAGED       =  1 

# Functions 
# 
00036 def time_gate(gate):
      """
      Set a time gate

      double gate
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'time_gate',   gate 
      return comm.out()

00046 def help(command=None):
      """
      Display short help about a command

      [const char * command]
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'help',   strings.String(command) 
      return comm.out()

00056 def ping():
      """
      Ping the interpreter

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'ping' 
      return comm.out()

00066 def pause(delay=None):
      """
      Freeze the interpreter for debugging

      [int delay]
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'pause',   strings.String(delay) 
      return comm.out()

00076 def version():
      """
      Get interpreter version

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'version' 
      return comm.out()

00086 def get_id():
      """
      Get current applet identificator

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'get_id' 
      return comm.out()

00096 def history(filename=None):
      """
      List/save commands history

      [const char * filename]
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'history',   strings.String(filename) 
      return comm.out()

00106 def set(name=None, value=None):
      """
      Set or unset a textual variable

      [const * char name, const * char value]
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'set',   strings.String(name), strings.String(value) 
      return comm.out()

00116 def unset_all():
      """
      Unset all defined textual variables

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'unset_all' 
      return comm.out()

00126 def echo(string):
      """
      Echo a string

      const char * string
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'echo',   strings.String(string) 
      return comm.out()

00136 def start_recording():
      """
      Start recording a macro

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'start_recording' 
      return comm.out()

00146 def stop_recording():
      """
      Stop recording the macro

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'stop_recording' 
      return comm.out()

00156 def play_get_abort_on_events():
      """
      Get replays interuptable status

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'play_get_abort_on_events' 
      return comm.out()

00166 def play_set_abort_on_events(abort):
      """
      Set replays to be interuptable

      bool abort
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'play_set_abort_on_events',   strings.String(abort) 
      return comm.out()

00176 def play(beginning, end):
      """
      Play a given macro

      int beginning, int end
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'play',   beginning, end 
      return comm.out()

00186 def context_get_dither():
      """
      Get context dither

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_get_dither' 
      return comm.out()

00196 def context_get_anti_alias():
      """
      Get context anti alias

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_get_anti_alias' 
      return comm.out()

00206 def context_get_blend():
      """
      Get context blending

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_get_blend' 
      return comm.out()

00216 def context_get_operation():
      """
      Get context operation

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_get_operation' 
      return comm.out()

00226 def context_get_cliprect():
      """
      Get clipping rectange

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_get_cliprect' 
      return comm.out()

00236 def context_get_image():
      """
      Get context image

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_get_image' 
      return comm.out()

00246 def context_get_font():
      """
      Get context font

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_get_font' 
      return comm.out()

00256 def context_get_color_range():
      """
      Get context color range

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_get_color_range' 
      return comm.out()

00266 def context_get_color_modifier():
      """
      Get context color modifier

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_get_color_modifier' 
      return comm.out()

00276 def context_get_filter():
      """
      Get context filter

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_get_filter' 
      return comm.out()

00286 def context_get_color():
      """
      Get context color

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_get_color' 
      return comm.out()

00296 def context_get_angle():
      """
      Get context angle

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_get_angle' 
      return comm.out()

00306 def context_get_direction():
      """
      Get context direction

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_get_direction' 
      return comm.out()

00316 def context_set_dither(dither):
      """
      Set context dither

      bool dither
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_set_dither',   strings.String(dither) 
      return comm.out()

00326 def context_set_anti_alias(anti_alias):
      """
      Set context anti-alias

      bool anti_alias
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_set_anti_alias',   strings.String(anti_alias) 
      return comm.out()

00336 def context_set_blend(blend):
      """
      Set context blending

      bool blend
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_set_blend',   strings.String(blend) 
      return comm.out()

00346 def context_set_operation(operation):
      """
      Set context operation

      enum OPERATIONS operation
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_set_operation',   operation 
      return comm.out()

00356 def context_set_cliprect(x, y, w, h):
      """
      Set context clipping rectangle

      int x, int y, int w, int h
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_set_cliprect',   x, y, w, h 
      return comm.out()

00366 def context_set_image(image):
      """
      Set context image

      int image
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_set_image',   image 
      return comm.out()

00376 def context_set_font(font=None):
      """
      Set context font

      [int font]
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_set_font',   strings.String(font) 
      return comm.out()

00386 def context_set_color_range(color_range=None):
      """
      Set context color range

      [int color_range]
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_set_color_range',   strings.String(color_range) 
      return comm.out()

00396 def context_set_color_modifier(color_modifier=None):
      """
      Set context color modifier

      [int color_modifier]
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_set_color_modifier',   strings.String(color_modifier) 
      return comm.out()

00406 def context_set_filter(filter=None):
      """
      Set context filter

      [int filter]
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_set_filter',   strings.String(filter) 
      return comm.out()

00416 def context_set_color(red, green, blue, alpha):
      """
      Set context RGBA color

      int red, int green, int blue, int alpha
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_set_color',   red, green, blue, alpha 
      return comm.out()

00426 def context_set_angle(angle):
      """
      Set context angle

      double angle
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_set_angle',   angle 
      return comm.out()

00436 def context_set_direction(direction):
      """
      Set context direction

      enum DIRECTIONS direction
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'context_set_direction',   direction 
      return comm.out()

00446 def add_color_to_color_range(distance_away):
      """
      Add a color to a color range

      int distance_away
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'add_color_to_color_range',   distance_away 
      return comm.out()

00456 def 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
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'blend_image_onto_image',   source_image, merge_alpha, source_x, source_y, source_width, source_height, destination_x, destination_y, destination_width, destination_height 
      return comm.out()

00470 def 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
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   '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 
      return comm.out()

00484 def 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
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   '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 
      return comm.out()

00498 def apply_filter(script):
      """
      Apply a dynamic filter

      const char * script
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'apply_filter',   strings.String(script) 
      return comm.out()

00508 def get_text_size(text):
      """
      Get size of text

      const char * text
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'get_text_size',   strings.String(text) 
      return comm.out()

00518 def get_text_advance(text):
      """
      Get advance of text

      const char * text
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'get_text_advance',   strings.String(text) 
      return comm.out()

00528 def text_draw(x, y, text):
      """
      Draw a text string

      int x, int y, const char *text
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'text_draw',   x, y, strings.String(text) 
      return comm.out()

00538 def modify_color_modifier_gamma(gamma_value):
      """
      Modify gamma correction

      double gamma_value
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'modify_color_modifier_gamma',   gamma_value 
      return comm.out()

00548 def modify_color_modifier_brightness(brightness_value):
      """
      Modify brightness

      double brightness_value
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'modify_color_modifier_brightness',   brightness_value 
      return comm.out()

00558 def modify_color_modifier_contrast(contrast_value):
      """
      Modify contrast

      double contrast_value
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'modify_color_modifier_contrast',   contrast_value 
      return comm.out()

00568 def get_color_modifier_tables():
      """
      Get tables for a color modifier

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'get_color_modifier_tables' 
      return comm.out()

00578 def set_color_modifier_tables(table):
      """
      Set tables for a color modifier

      unsigned char * table
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'set_color_modifier_tables',   strings.String(table) 
      return comm.out()

00588 def get_color_modifier_value(table, index):
      """
      Get a value for a color modifier

      enum RGBA_TABLES table, int index
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'get_color_modifier_value',   table, index 
      return comm.out()

00598 def set_color_modifier_value(table, index, value):
      """
      Set a value for a color modifier

      enum RGBA_TABLES table, int index, int value
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'set_color_modifier_value',   table, index, value 
      return comm.out()

00608 def apply_color_modifier():
      """
      Apply a color modifier

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'apply_color_modifier' 
      return comm.out()

00618 def apply_color_modifier_to_rectangle(x, y, width, height):
      """
      Apply a color modifier

      int x, int y, int width,int height
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'apply_color_modifier_to_rectangle',   x, y, width, height 
      return comm.out()

00628 def load_image_without_cache(file):
      """
      Load an image from disk bypassing the cache

      const char *file
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'load_image_without_cache',   strings.String(file) 
      return comm.out()

00638 def load_image(file):
      """
      Load an image from disk

      const char *file
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'load_image',   strings.String(file) 
      return comm.out()

00648 def save_image(filename):
      """
      Save an image to disk

      const char *filename
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'save_image',   strings.String(filename) 
      return comm.out()

00658 def create_image(width, height):
      """
      Create an image

      int width, int height
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'create_image',   width, height 
      return comm.out()

00668 def create_image_using_data(width, height, data):
      """
      Create an image from data

      int width, int height,unsigned int * data
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'create_image_using_data',   width, height, strings.String(data) 
      return comm.out()

00678 def clone_image():
      """
      Create a copy of an image

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'clone_image' 
      return comm.out()

00688 def free_image(image):
      """
      Free an image

      int image
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'free_image',   image 
      return comm.out()

00698 def load_font(font_name):
      """
      Load a font

      const char *font_name
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'load_font',   strings.String(font_name) 
      return comm.out()

00708 def free_font(font):
      """
      Free a font

      int font
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'free_font',   font 
      return comm.out()

00718 def list_fonts():
      """
      List all fonts

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'list_fonts' 
      return comm.out()

00728 def list_font_path():
      """
      List all fonts path

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'list_font_path' 
      return comm.out()

00738 def add_path_to_font_path(path):
      """
      Add a font path

      const char *path
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'add_path_to_font_path',   strings.String(path) 
      return comm.out()

00748 def remove_path_from_font_path(path):
      """
      Remove a font path

      const char *path
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'remove_path_from_font_path',   strings.String(path) 
      return comm.out()

00758 def create_color_range():
      """
      Create a color range

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'create_color_range' 
      return comm.out()

00768 def free_color_range(color_range):
      """
      Free a color range

      int color_range
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'free_color_range',   color_range 
      return comm.out()

00778 def create_filter():
      """
      Create a filter

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'create_filter' 
      return comm.out()

00788 def free_filter(filter):
      """
      Free a filter

      int filter
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'free_filter',   filter 
      return comm.out()

00798 def create_color_modifier():
      """
      Create a color modifier

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'create_color_modifier' 
      return comm.out()

00808 def free_color_modifier(color_modifier):
      """
      Free a color modifier

      int color_modifier
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'free_color_modifier',   color_modifier 
      return comm.out()

00818 def polygon_new():
      """
      Create a polygon

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'polygon_new' 
      return comm.out()

00828 def polygon_free(poly):
      """
      Free a polygon

      int poly
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'polygon_free',   poly 
      return comm.out()

00838 def polygon_add_point(poly, x, y):
      """
      Add point to a polygon

      int poly, int x, int y
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'polygon_add_point',   poly, x, y 
      return comm.out()

00848 def images_reset_all():
      """
      Free all images and refresh foreground

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'images_reset_all' 
      return comm.out()

00858 def images_info():
      """
      Get information on all images

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'images_info' 
      return comm.out()

00868 def fonts_reset_all():
      """
      Free all fonts

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'fonts_reset_all' 
      return comm.out()

00878 def fonts_info():
      """
      Get information on all fonts

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'fonts_info' 
      return comm.out()

00888 def color_ranges_reset_all():
      """
      Free all color ranges

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'color_ranges_reset_all' 
      return comm.out()

00898 def color_ranges_info():
      """
      Get information on all color ranges

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'color_ranges_info' 
      return comm.out()

00908 def color_modifiers_reset_all():
      """
      Free all color modifiers

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'color_modifiers_reset_all' 
      return comm.out()

00918 def color_modifiers_info():
      """
      Get information on all color modifiers

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'color_modifiers_info' 
      return comm.out()

00928 def filters_reset_all():
      """
      Free all filters

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'filters_reset_all' 
      return comm.out()

00938 def filters_info():
      """
      Get information on all filters

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'filters_info' 
      return comm.out()

00948 def polygons_reset_all():
      """
      Free all polygons

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'polygons_reset_all' 
      return comm.out()

00958 def polygons_info():
      """
      Get information on all polygons

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'polygons_info' 
      return comm.out()

00968 def image_has_alpha():
      """
      Get alpha channel setting of an image

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_has_alpha' 
      return comm.out()

00978 def image_get_width():
      """
      Get width of an image

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_get_width' 
      return comm.out()

00988 def image_get_height():
      """
      Get height of an image

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_get_height' 
      return comm.out()

00998 def image_get_filename():
      """
      Get filename of an image

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_get_filename' 
      return comm.out()

01008 def image_get_data():
      """
      Get the data of an image

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_get_data' 
      return comm.out()

01018 def image_query_pixel(x, y):
      """
      Query a pixel value

      int x, int y
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_query_pixel',   x, y 
      return comm.out()

01028 def image_set_has_alpha(has_alpha):
      """
      Set alpha channel of an image

      bool has_alpha
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_set_has_alpha',   strings.String(has_alpha) 
      return comm.out()

01038 def image_set_changes_on_disk():
      """
      Set image load time behavior

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_set_changes_on_disk' 
      return comm.out()

01048 def image_set_format(format):
      """
      Set image format

      const char *format
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_set_format',   strings.String(format) 
      return comm.out()

01058 def image_filter_recurse():
      """

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_filter_recurse' 
      return comm.out()

01067 def image_draw_line(x1, y1, x2, y2, make_updates):
      """
      Draw a line

      int x1, int y1, int x2, int y2,char make_updates
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_draw_line',   x1, y1, x2, y2, make_updates 
      return comm.out()

01077 def image_draw_rectangle(x, y, width, height):
      """
      Draw a rectangle

      int x, int y, int width, int height
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_draw_rectangle',   x, y, width, height 
      return comm.out()

01087 def image_fill_rectangle(x, y, width, height):
      """
      Draw a filled rectangle

      int x, int y, int width, int height
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_fill_rectangle',   x, y, width, height 
      return comm.out()

01097 def 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
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_fill_color_range_rectangle',   x, y, width, height, angle 
      return comm.out()

01107 def image_draw_ellipse(xc, yc, a, b):
      """
      Draw an ellipse

      int xc, int yc, int a, int b
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_draw_ellipse',   xc, yc, a, b 
      return comm.out()

01117 def image_fill_ellipse(xc, yc, a, b):
      """
      Fill an ellipse

      int xc, int yc, int a, int b
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_fill_ellipse',   xc, yc, a, b 
      return comm.out()

01127 def image_copy_alpha_to_image(image_source, x, y):
      """
      Transfert alpha channel

      int image_source, int x,int y
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_copy_alpha_to_image',   image_source, x, y 
      return comm.out()

01137 def 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
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_copy_alpha_rectangle_to_image',   image_source, x, y, width, height, destination_x, destination_y 
      return comm.out()

01149 def image_draw_polygon(poly, closed):
      """
      Draw a polygon onto image

      int poly, unsigned char closed
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_draw_polygon',   poly, closed 
      return comm.out()

01159 def image_fill_polygon(poly):
      """
      Fill a polygon onto image

      int poly
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_fill_polygon',   poly 
      return comm.out()

01169 def image_flip_horizontal():
      """
      Flip an image horizontally

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_flip_horizontal' 
      return comm.out()

01179 def image_flip_vertical():
      """
      Flip an image vertically

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_flip_vertical' 
      return comm.out()

01189 def image_flip_diagonal():
      """
      Flip an image diagonally

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_flip_diagonal' 
      return comm.out()

01199 def image_orientate(orientation):
      """
      Orientate an image

      int orientation
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_orientate',   orientation 
      return comm.out()

01209 def image_blur(radius):
      """
      Blur an image

      int radius
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_blur',   radius 
      return comm.out()

01219 def image_sharpen(radius):
      """
      Sharpen an image

      int radius
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'image_sharpen',   radius 
      return comm.out()

01229 def filter_set(xoff, yoff, a, r, g, b):
      """
      Set filter

      int xoff, int yoff, int a, int r, int g, int b
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'filter_set',   xoff, yoff, a, r, g, b 
      return comm.out()

01239 def 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
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'filter_set_red',   xoff, yoff, a, r, g, b 
      return comm.out()

01249 def 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
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'filter_set_green',   xoff, yoff, a, r, g, b 
      return comm.out()

01259 def 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
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'filter_set_blue',   xoff, yoff, a, r, g, b 
      return comm.out()

01269 def 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
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'filter_set_alpha',   xoff, yoff, a, r, g, b 
      return comm.out()

01279 def filter_constants(a, r, g, b):
      """
      Set filter constants

      int a, int r, int g, int b
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'filter_constants',   a, r, g, b 
      return comm.out()

01289 def filter_divisors(a, r, g, b):
      """
      Set filter divisors

      int a, int r, int g, int b
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'filter_divisors',   a, r, g, b 
      return comm.out()

01299 def menu_fire(menu):
      """
      Fire a given menu

      int menu
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'menu_fire',   menu 
      return comm.out()

01309 def menu_reset_all():
      """
      Reset all menus to initial state

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'menu_reset_all' 
      return comm.out()

01319 def menu_add_menu():
      """
      Add a new menu

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'menu_add_menu' 
      return comm.out()

01329 def menu_add_submenu(submenu):
      """
      Add a submenu to current menu

      const char * submenu
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'menu_add_submenu',   strings.String(submenu) 
      return comm.out()

01339 def menu_add_item(add_item):
      """
      Add an item to current menu

      const char * add_item
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'menu_add_item',   strings.String(add_item) 
      return comm.out()

01349 def menu_add_separator():
      """
      Add a separator to current menu

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'menu_add_separator' 
      return comm.out()

01359 def menu_end_submenu():
      """
      End a submenu construction

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'menu_end_submenu' 
      return comm.out()

01369 def events_info():
      """
      Get all caught events

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'events_info' 
      return comm.out()

01379 def events_get_echo():
      """
      Get events echo status

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'events_get_echo' 
      return comm.out()

01389 def events_get_send_sigusr1():
      """
      Get sending of SIGUSR1 to parent on event

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'events_get_send_sigusr1' 
      return comm.out()

01399 def window_reset(manager):
      """
      Reset the window

      enum WINDOW_MANAGER manager
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'window_reset',   manager 
      return comm.out()

01409 def window_show():
      """
      Map the window on the screen

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'window_show' 
      return comm.out()

01419 def window_hide():
      """
      Unmap the window from the screen

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'window_hide' 
      return comm.out()

01429 def window_resize(width, height):
      """
      Resize the window

      int width, int height
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'window_resize',   width, height 
      return comm.out()

01439 def window_get_transparency():
      """
      Get automatic transparency

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'window_get_transparency' 
      return comm.out()

01449 def window_get_background_grab():
      """
      Get automatic grab

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'window_get_background_grab' 
      return comm.out()

01459 def window_get_background_image():
      """
      Get background image

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'window_get_background_image' 
      return comm.out()

01469 def window_get_managed_status():
      """
      Get managed status

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'window_get_managed_status' 
      return comm.out()

01479 def window_set_transparency(transparency):
      """
      Set automatic transparency

      bool transparency
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'window_set_transparency',   strings.String(transparency) 
      return comm.out()

01489 def window_set_background_grab(grab):
      """
      Set automatic grab

      bool grab
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'window_set_background_grab',   strings.String(grab) 
      return comm.out()

01499 def window_set_background_image(image):
      """
      Set background image

      int image
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'window_set_background_image',   image 
      return comm.out()

01509 def screen_get_width():
      """
      Get screen width

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'screen_get_width' 
      return comm.out()

01519 def screen_get_height():
      """
      Get screen height

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'screen_get_height' 
      return comm.out()

01529 def screen_get_depth():
      """
      Get screen depth

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'screen_get_depth' 
      return comm.out()

01539 def get_charset():
      """
      Get input charset

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'get_charset' 
      return comm.out()

01549 def set_charset(charset):
      """
      Set input charset

      const char * charset
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'set_charset',   strings.String(charset) 
      return comm.out()

01559 def charset_status():
      """
      Get charset capabilities

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'charset_status' 
      return comm.out()

01569 def x_status():
      """
      Status of connection to X Window server

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'x_status' 
      return comm.out()

01579 def quit():
      """
      Quit the program

      void
      """
      comm=commands_handler._Static_commands_handler() 
      print >> comm,   'quit' 
      return comm.out()


Generated by  Doxygen 1.6.0   Back to index