[View] [Edit] [Lock] [References] [Attachments] [History] [Home] [Changes] [Search] [Help]
api[imlib2] index
SwikiCodeRobot @> #apiImlib2Index
Prerequisites
"Check FFI is actually included in the image"
self require: #FFIDynamicLibrary in: #(
'build/node/library/node-ffi/node-ffi.st.js'
'u8:aleReimondo/node-ffi/node-ffi.st.js'
)
API implementation
FFIDynamicLibrary subclass: #Imlib2 category: #Imlib2!
Imlib2 comment: '
Wrapper to Imlib2
See https://docs.enlightenment.org/api/imlib2/html/index.html
or http://adesklets.sourceforge.net/doc/imlib2/imlib2_8c.html
'!
! Imlib2 class methodsFor: #spec !
libraryName
" Private - Returns the name of library file. "
^'libImlib2.so.1.4.6'! !
! Imlib2 class methodsFor: #spec !
specLiteral
" Private - Returns the specification literal of library file.
See http://adesklets.sourceforge.net/doc/imlib2/imlib2_8c.html "
^#(
#(imlib_add_color_to_color_range #(void #(#(distanceAway int))))
#(imlib_add_path_to_font_path #(void #(#(path string))))
#(imlib_apply_color_modifier_to_rectangle #(void #(#(x int) #(y int) #(width int) #(height int))))
#(imlib_blend_image_onto_image #(void #(#(sourceImage int) #(mergeAlpha string) #(sourceX int) #(sourceY int) #(sourceWidth int) #(sourceHeight int) #(destinationX int) #(destinationY int) #(destinationWidth int) #(destinationHeight int))))
#(imlib_blend_image_onto_image_at_angle #(void #( #(sourceImage int) #(mergeAlpha string) #(sourceX int) #(sourceY int) #(sourceWidth int) #(sourceHeight int) #(destinationX int) #(destinationY int) #(destinationWidth int) #(destinationHeight int) #(angleX int) #(angleY int) )))
#(imlib_blend_image_onto_image_skewed #(void #( #(sourceImage int) #(mergeAlpha string) #(sourceX int) #(sourceY int) #(sourceWidth int) #(sourceHeight int) #(destinationX int) #(destinationY int) #(destinationWidth int) #(destinationHeight int) #(hAngleX int) #(hAngleY int) #(vAngleX int) #(vAngleY int) )))
#(imlib_clone_image #(int #()))
#(imlib_context_get_angle #(double #()))
#(imlib_context_get_anti_alias #(int #()))
#(imlib_context_get_blend #(int #()))
#(imlib_context_get_color #(void #(#(red 'int*') #(green 'int*') #(blue 'int*') #(alpha 'int*') )))
#(imlib_context_get_color_cmya #(void #(#(cyan 'int*') #(magenta 'int*') #(yellow 'int*') #(alpha 'int*') )))
#(imlib_context_get_color_hlsa #(void #(#(hue 'int*') #(lightness 'int*') #(saturation 'int*') #(alpha 'int*') )))
#(imlib_context_get_color_hsva #(void #(#(hue 'int*') #(saturation 'int*') #(value 'int*') #(alpha 'int*') )))
#(imlib_context_get_color_modifier #(int"Imlib_Color_Modifier" #()))
#(imlib_context_get_color_range #(int"Imlib_Color_Range" #()))
#(imlib_context_get_direction #(int"Imlib_Text_Direction" #()))
#(imlib_context_get_dither #(int #()))
#(imlib_context_get_dither_mask #(int #()))
#(imlib_context_get_filter #(int"Imlib_Filter" #()))
#(imlib_context_get_font #(int"Imlib_Font" #()))
#(imlib_context_get_image #(int"Imlib_Image" #()))
#(imlib_context_get_imlib_color #(int"Imlib_Color" #()))
#(imlib_context_get_mask_alpha_threshold #(int #()))
#(imlib_context_get_operation#(int"Imlib_Operation" #()))
#(imlib_context_get_progress_function #(int"Imlib_Progress_Function" #()))
#(imlib_context_get_progress_granularity #(int #()))
#(imlib_context_set_angle #(void #(#(angle double))))
#(imlib_context_set_anti_alias #(void #(#(antiAlias int))))
#(imlib_context_set_blend #(void #(#(blend int))))
#(imlib_context_set_cliprect #(void #(#(x int) #(y int) #(w int) #(h int))))
#(imlib_context_set_color #(void #(#(red int) #(green int) #(blue int) #(alpha int))))
#(imlib_context_set_color_cmya #(void #(#(cyan int) #(magenta int) #(yellow int) #(alpha int))))
#(imlib_context_set_color_hlsa #(void #(#(hue int) #(lightness int) #(saturation int) #(alpha int))))
#(imlib_context_set_color_hsva #(void #(#(hue int) #(saturation int) #(value int) #(alpha int))))
#(imlib_context_set_color_modifier #(void #(#(colorModifier int))))
#(imlib_context_set_color_range #(void #(#(colorRange int))))
#(imlib_context_set_direction #(void #(#(direction int))))
#(imlib_context_set_dither #(void #(#(dither int))))
#(imlib_context_set_dither_mask #(void #(#(ditherMask int))))
#(imlib_context_set_filter #(void #(#(filter int))))
#(imlib_context_set_font #(void #(#(font int))))
#(imlib_context_set_image #(void #(#(image int))))
#(imlib_context_set_mask_alpha_threshold #(void #(#(maskAlphaThreshold int))))
#(imlib_context_set_operation #(void #(#(operation int))))
#(imlib_context_set_progress_function #(void #(#(callback int))))
#(imlib_context_set_progress_granularity #(void #(#(granularity int))))
#(imlib_create_color_modifier #(int"Imlib_Color_Modifier" #()))
#(imlib_create_color_range #(int"Imlib_Color_Range" #()))
#(imlib_create_cropped_image #(int"Imlib_Image" #(#(x int) #(y int) #(width int) #(height int))))
#(imlib_create_cropped_scaled_image #(int"Imlib_Image" #(#(x int) #(y int) #(width int) #(height int) #(sizeX int) #(sizeY int))))
#(imlib_create_image #(int"Imlib_Image" #( #(width int) #(height int))))
#(imlib_create_image_using_data #(int"Imlib_Image" #(#(width int) #(height int) #(data 'long*'))))
#(imlib_create_image_using_copied_data #(int"Imlib_Image" #(#(width int) #(height int) #(data 'long*'))))
#(imlib_create_rotated_image #(int"Imlib_Image" #(#(angle double))))
#(imlib_free_font_list #(void #(#(fontList 'char**') #(number int))))
#(imlib_get_cache_size #(int #()))
#(imlib_get_color_modifier_tables #(void #(#(redTable 'int*') #(greenTable 'int*') #(blueTable 'int*') #(alphaTable 'int*'))))
#(imlib_get_color_usage #(int #()))
#(imlib_get_font_ascent #(int #()))
#(imlib_get_font_cache_size #(int #()))
#(imlib_get_font_descent #(int #()))
#(imlib_get_maximum_font_ascent #(int #()))
#(imlib_get_maximum_font_descent #(int #()))
#(imlib_get_text_advance #(void #(#(text string) #(horizontalAdvanceReturn 'int*') #(verticalAdvanceReturn 'int*'))))
#(imlib_get_text_inset #(int #(#(text string))))
#(imlib_get_text_size #(int #(#(text string) #(widthReturn 'int*') #(heightReturn 'int*'))))
#(imlib_image_attach_data_value #(void #(#(key string) #(data 'void*') #(value int) #(destructor 'void*'))))
#(imlib_image_blur #(int #(#(radius int))))
#(imlib_image_copy_alpha_rectangle_to_image #(void #(#(source int) #(x int) #(y int) #(width int) #(height int) #(destinationX int) #(destinationY int))))
#(imlib_image_copy_rect #(void #(#(x int) #(y int) #(width int) #(height int) #(newX int) #(newY int))))
#(imlib_image_draw_ellipse #(void #(#(xc int) #(yc int) #(a int) #(b int))))
#(imlib_image_draw_line #(int"Imlib_Updates" #(#(x1 int) #(y1 int) #(x2 int) #(y2 int) #(makeUpdates int))))
#(imlib_image_draw_polygon #(void #(#(poly int) #(closed int))))
#(imlib_image_draw_rectangle #(void #(#(x int) #(y int) #(width int) #(height int))))
#(imlib_image_fill_color_range_rectangle #(void #(#(x int) #(y int) #(width int) #(height int) #(angle double))))
#(imlib_image_fill_ellipse #(void #(#(xc int) #(yc int) #(a int) #(b int))))
#(imlib_image_fill_hsva_color_range_rectangle #(void #(#(x int) #(y int) #(width int) #(height int) #(angle double))))
#(imlib_image_fill_polygon #(void #(#(poly int))))
#(imlib_image_fill_rectangle #(void #(#(x int) #(y int) #(width int) #(height int))))
#(imlib_image_format #(string #()))
#(imlib_image_get_attached_data #('void*' #(#(key string))))
#(imlib_image_get_attached_value #(int #(#(key string))))
#(imlib_image_get_border #(void #(#(border 'int*'))))
#(imlib_image_get_data #('void*' #()))
#(imlib_image_get_data_for_reading_only #('void*' #()))
#(imlib_image_get_filename #('void*' #()))
#(imlib_image_has_alpha #(Bool #()))
#(imlib_image_orientate #(void #(#(orientation int))))
#(imlib_image_put_back_data #(void #(#(data 'int*'))))
#(imlib_image_query_pixel #(void #(#(x int) #(y int) #(colorReturn 'int*'))))
#(imlib_image_query_pixel_cmya #(void #(#(x int) #(y int) #(cyan 'int*') #(magenta 'int*') #(yellow 'int*') #(alpha 'int*'))))
#(imlib_image_query_pixel_hlsa #(void #(#(x int) #(y int) #(hue 'int*') #(lightness 'int*') #(saturation 'int*') #(alpha 'int*'))))
#(imlib_image_query_pixel_hsva #(void #(#(x int) #(y int) #(hue 'int*') #(saturation 'int*') #(value 'int*') #(alpha 'int*'))))
#(imlib_image_remove_and_free_attached_data_value #(void #(#(key string))))
#(imlib_image_remove_attached_data_value #(void #(#(key string))))
#(imlib_image_scroll_rect #(void #(#(x int) #(y int) #(width int) #(height int) #(deltaX int) #(deltaY int))))
#(imlib_image_set_border #(void #(#(border 'int*'))))
#(imlib_image_set_changes_on_disk #(void #()))
#(imlib_image_set_format #(void #(#(format string))))
#(imlib_image_set_has_alpha #(void #(#(hasAlpha int))))
#(imlib_image_set_irrelevant_alpha #(void #(#(irrelevant int))))
#(imlib_image_set_irrelevant_border #(void #(#(irrelevant int))))
#(imlib_image_set_irrelevant_format #(void #(#(irrelevant int))))
#(imlib_image_sharpen #(void #(#(radius int))))
#(imlib_image_tile #(void #()))
#(imlib_image_tile_horizontal #(void #()))
#(imlib_image_tile_vertical #(void #()))
#(imlib_list_font_path #(int"char**" #(#(numberReturn 'int*'))))
#(imlib_list_fonts #(int"char**" #(#(numberReturn 'int*'))))
#(imlib_load_font #(int"Imlib_Font" #(#(fontName string))))
#(imlib_load_image #(int"Imlib_Image" #(#(fileName string))))
#(imlib_load_image_immediately #(int"Imlib_Image" #(#(fileName string))))
#(imlib_load_image_immediately_without_cache #(int"Imlib_Image" #(#(fileName string))))
#(imlib_load_image_with_error_return #(int"Imlib_Image" #(#(fileName string) #(errorReturn 'int*'))))
#(imlib_load_image_without_cache #(int"Imlib_Image" #(#(fileName string))))
#(imlib_modify_color_modifier_brightness #(void #(#(brightness double))))
#(imlib_modify_color_modifier_brightness #(void #(#(brightness double))))
#(imlib_modify_color_modifier_contrast #(void #(#(contrast double))))
#(imlib_modify_color_modifier_gamma #(void #(#(gamma double))))
#(imlib_polygon_add_point #(void #(#(poly int) #(x int) #(y int))))
#(imlib_polygon_contains_point #(Bool #(#(poly int) #(x int) #(y int))))
#(imlib_polygon_free #(void #(#(poly int))))
#(imlib_polygon_get_bounds #(void #(#(poly int) #(px1 'int*') #(py1 'int*') #(px2 'int*') #(py2 'int*'))))
#(imlib_remove_font_from_fallback_chain #(void #(#(fallbackFont int))))
#(imlib_remove_path_from_font_path #(void #(#(path string))))
#(imlib_save_image #(void #(#(fileName string))))
#(imlib_save_image_with_error_return #(void #(#(fileName string) #(error 'int*'))))
#(imlib_set_cache_size #(void #(#(bytes int))))
#(imlib_set_color_modifier_tables #(void #(#(redTable 'int*') #(greenTable 'int*') #(blueTable 'int*') #(alphaTable 'int*'))))
#(imlib_set_color_usage #(void #(#(max int))))
#(imlib_set_font_cache_size #(void #(#(bytes int))))
#(imlib_text_draw #(void #(#(x int) #(y int) #(text string))))
#(imlib_text_draw_with_return_metrics #(void #(#(x int) #(y int) #(text string) #(widthReturn 'int*') #(heightReturn 'int*') #(horizontalAdvanceReturn 'int*') #(verticalAdvanceReturn 'int*'))))
#(imlib_text_get_index_and_location #(int #(#(text string) #(x int) #(y int) #(charXReturn 'int*') #(charYReturn 'int*') #(charWidthReturn 'int*') #(charHeightReturn 'int*'))))
#(imlib_text_get_location_at_index #(void #(#(text string) #(index int) #(charXReturn 'int*') #(charYReturn 'int*') #(charWidthReturn 'int*') #(charHeightReturn 'int*'))))
#(imlib_update_append_rect #(int"Imlib_Updates" #(#(updates int) #(x int) #(y int) #(w int) #(h int))))
#(imlib_updates_append_updates #(int"Imlib_Updates" #(#(updates int) #(appendedUpdates int))))
#(imlib_updates_clone #(int"Imlib_Updates" #(#(updates int))))
#(imlib_updates_free #(void #(#(updates int))))
#(imlib_updates_get_coordinates #(void #(#(updates int) #(xReturn 'int*') #(yReturn 'int*') #(widthReturn 'int*') #(heightReturn 'int*'))))
#(imlib_updates_get_next #(int"Imlib_Updates" #(#(updates int))))
#(imlib_updates_init #(int"Imlib_Updates" #()))
#(imlib_updates_merge #(int"Imlib_Updates" #(#(updates int) #(w int) #(h int))))
#(imlib_updates_merge_for_rendering #(int"Imlib_Updates" #(#(updates int) #(w int) #(h int))))
#(imlib_updates_set_coordinates #(void #(#(updates int) #(x int) #(y int) #(width int) #(height int))))
#(imlib_create_image_from_drawable #(int"Imlib_Image" #(#(mask int) #(x int) #(y int) #(width int) #(height int) #(needToGrabX int))))
#(imlib_create_image_from_ximage #(int"Imlib_Image" #(#(image int) #(mask int) #(x int) #(y int) #(width int) #(height int) #(needToGrabX int))))
#(imlib_context_set_display #(void #(#(display int))))
#(imlib_context_get_display #(int"Display" #()))
#(imlib_context_set_visual #(void #(#(visual int))))
#(imlib_context_get_visual #(int"Visual" #()))
#(imlib_context_set_colormap #(void #(#(colormap int))))
#(imlib_context_get_colormap #(int"Colormap" #()))
#(imlib_context_set_drawable #(void #(#(drawable int))))
#(imlib_context_get_drawable #(int"Drawable" #()))
#(imlib_context_set_mask #(void #(#(mask int))))
#(imlib_context_get_mask #(int"Mask" #()))
)! !
Imlib2 buildFromLiteral!
References