Logo Search packages:      
Sourcecode: rgtk version File versions  Download package

gdkFuncs.c

#include "gtkUtils.h"
#include "gdkFuncs.h"
#include "gdkEnum.h"


#include "RGtk.h"

USER_OBJECT_
 S_gdk_visual_get_best_depth (  )
{


    int ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_visual_get_best_depth (  );
  _result = asRInt ( ans );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_image_get_pixel ( USER_OBJECT_ s_image, USER_OBJECT_ s_x, USER_OBJECT_ s_y )
{
   GdkImage * image = ( GdkImage * ) getPtrValue( s_image ) ;
   int x = INTEGER_DATA( s_x )[0] ;
   int y = INTEGER_DATA( s_y )[0] ;


    unsigned int ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_image_get_pixel ( image, x, y );
  _result = asRInt ( ans );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_colormap_get_system (  )
{


    GdkColormap * ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_colormap_get_system (  );
   _result = toRPointer(ans, "GdkColormap");


  return(_result);
}
 

USER_OBJECT_
 S_gdk_visual_get_system (  )
{


    GdkVisual * ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_visual_get_system (  );
   _result = toRPointer(ans, "GdkVisual");


  return(_result);
}
 

USER_OBJECT_
 S_gdk_window_hide ( USER_OBJECT_ s_window )
{
   GdkWindow * window = ( GdkWindow * ) getPtrValue( s_window ) ;


   USER_OBJECT_ _result = NULL_USER_OBJECT;

        gdk_window_hide ( window );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_window_set_cursor ( USER_OBJECT_ s_win, USER_OBJECT_ s_cursor )
{
   GdkWindow * win = ( GdkWindow * ) getPtrValue( s_win ) ;
   GdkCursor * cursor = ( GdkCursor * ) getPtrValue( s_cursor ) ;


   USER_OBJECT_ _result = NULL_USER_OBJECT;

        gdk_window_set_cursor ( win, cursor );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_font_id ( USER_OBJECT_ s_font )
{
   GdkFont * font = ( GdkFont * ) getPtrValue( s_font ) ;


    int ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_font_id ( font );
  _result = asRInt ( ans );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_region_rect_in ( USER_OBJECT_ s_region, USER_OBJECT_ s_rect )
{
   GdkRegion * region = ( GdkRegion * ) getPtrValue( s_region ) ;
   GdkRectangle * rect = ( GdkRectangle * ) getPtrValue( s_rect ) ;


    GdkOverlapType ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_region_rect_in ( region, rect );
   _result =  S_check_GdkOverlapType_value (asRInt( ans ));


  return(_result);
}
 

USER_OBJECT_
 S_gdk_region_new (  )
{


    GdkRegion * ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_region_new (  );
   _result = toRPointer(ans, "GdkRegion");


  return(_result);
}
 

USER_OBJECT_
 S_gdk_region_point_in ( USER_OBJECT_ s_region, USER_OBJECT_ s_x, USER_OBJECT_ s_y )
{
   GdkRegion * region = ( GdkRegion * ) getPtrValue( s_region ) ;
   int x = INTEGER_DATA( s_x )[0] ;
   int y = INTEGER_DATA( s_y )[0] ;


    Rboolean ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_region_point_in ( region, x, y );
  _result = asRLogical ( ans );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_region_union_with_rect ( USER_OBJECT_ s_region, USER_OBJECT_ s_rect )
{
   GdkRegion * region = ( GdkRegion * ) getPtrValue( s_region ) ;
   GdkRectangle * rect = ( GdkRectangle * ) getPtrValue( s_rect ) ;


    GdkRegion * ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_region_union_with_rect ( region, rect );
   _result = toRPointer(ans, "GdkRegion");


  return(_result);
}
 

USER_OBJECT_
 S_gdk_region_shrink ( USER_OBJECT_ s_region, USER_OBJECT_ s_dx, USER_OBJECT_ s_dy )
{
   GdkRegion * region = ( GdkRegion * ) getPtrValue( s_region ) ;
   int dx = INTEGER_DATA( s_dx )[0] ;
   int dy = INTEGER_DATA( s_dy )[0] ;


   USER_OBJECT_ _result = NULL_USER_OBJECT;

        gdk_region_shrink ( region, dx, dy );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_pixmap_new ( USER_OBJECT_ s_window, USER_OBJECT_ s_width, USER_OBJECT_ s_height, USER_OBJECT_ s_depth )
{
   GdkWindow * window = ( GdkWindow * ) getPtrValue( s_window ) ;
   int width = INTEGER_DATA( s_width )[0] ;
   int height = INTEGER_DATA( s_height )[0] ;
   int depth = INTEGER_DATA( s_depth )[0] ;


    GdkPixmap * ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_pixmap_new ( window, width, height, depth );
   _result = toRPointer(ans, "GdkPixmap");


  return(_result);
}
 

USER_OBJECT_
 S_gdk_colormap_alloc_color ( USER_OBJECT_ s_colormap, USER_OBJECT_ s_color, USER_OBJECT_ s_writable, USER_OBJECT_ s_best_match )
{
   GdkColormap * colormap = ( GdkColormap * ) getPtrValue( s_colormap ) ;
   GdkColor * color = ( GdkColor * ) getPtrValue( s_color ) ;
   Rboolean writable = LOGICAL_DATA( s_writable )[0] ;
   Rboolean best_match = LOGICAL_DATA( s_best_match )[0] ;


    Rboolean ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_colormap_alloc_color ( colormap, color, writable, best_match );
  _result = asRLogical ( ans );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_colormap_new ( USER_OBJECT_ s_visual, USER_OBJECT_ s_allocate )
{
   GdkVisual * visual = ( GdkVisual * ) getPtrValue( s_visual ) ;
   int allocate = INTEGER_DATA( s_allocate )[0] ;


    GdkColormap * ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_colormap_new ( visual, allocate );
   _result = toRPointer(ans, "GdkColormap");


  return(_result);
}
 

USER_OBJECT_
 S_gdk_rectangle_union ( USER_OBJECT_ s_src1, USER_OBJECT_ s_src2, USER_OBJECT_ s_dest )
{
   GdkRectangle * src1 = ( GdkRectangle * ) getPtrValue( s_src1 ) ;
   GdkRectangle * src2 = ( GdkRectangle * ) getPtrValue( s_src2 ) ;
   GdkRectangle * dest = ( GdkRectangle * ) getPtrValue( s_dest ) ;


   USER_OBJECT_ _result = NULL_USER_OBJECT;

        gdk_rectangle_union ( src1, src2, dest );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_window_show ( USER_OBJECT_ s_window )
{
   GdkWindow * window = ( GdkWindow * ) getPtrValue( s_window ) ;


   USER_OBJECT_ _result = NULL_USER_OBJECT;

        gdk_window_show ( window );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_image_new ( USER_OBJECT_ s_type, USER_OBJECT_ s_visual, USER_OBJECT_ s_width, USER_OBJECT_ s_height )
{
   GdkImageType type = ( GdkImageType ) INTEGER_DATA( s_type )[0] ;
   GdkVisual * visual = ( GdkVisual * ) getPtrValue( s_visual ) ;
   int width = INTEGER_DATA( s_width )[0] ;
   int height = INTEGER_DATA( s_height )[0] ;


    GdkImage * ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_image_new ( type, visual, width, height );
   _result = toRPointer(ans, "GdkImage");


  return(_result);
}
 

USER_OBJECT_
 S_gdk_colormap_get_visual ( USER_OBJECT_ s_colormap )
{
   GdkColormap * colormap = ( GdkColormap * ) getPtrValue( s_colormap ) ;


    GdkVisual * ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_colormap_get_visual ( colormap );
   _result = toRPointer(ans, "GdkVisual");


  return(_result);
}
 

USER_OBJECT_
 S_gdk_region_offset ( USER_OBJECT_ s_region, USER_OBJECT_ s_dx, USER_OBJECT_ s_dy )
{
   GdkRegion * region = ( GdkRegion * ) getPtrValue( s_region ) ;
   int dx = INTEGER_DATA( s_dx )[0] ;
   int dy = INTEGER_DATA( s_dy )[0] ;


   USER_OBJECT_ _result = NULL_USER_OBJECT;

        gdk_region_offset ( region, dx, dy );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_window_new ( USER_OBJECT_ s_parent, USER_OBJECT_ s_attributes, USER_OBJECT_ s_attributes_mask )
{
   GdkWindow * parent = ( GdkWindow * ) getPtrValue( s_parent ) ;
   GdkWindowAttr * attributes = ( GdkWindowAttr * ) getPtrValue( s_attributes ) ;
   int attributes_mask = INTEGER_DATA( s_attributes_mask )[0] ;


    GdkWindow * ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_window_new ( parent, attributes, attributes_mask );
   _result = toRPointer(ans, "GdkWindow");


  return(_result);
}
 

USER_OBJECT_
 S_gdk_image_get ( USER_OBJECT_ s_window, USER_OBJECT_ s_x, USER_OBJECT_ s_y, USER_OBJECT_ s_width, USER_OBJECT_ s_height )
{
   GdkWindow * window = ( GdkWindow * ) getPtrValue( s_window ) ;
   int x = INTEGER_DATA( s_x )[0] ;
   int y = INTEGER_DATA( s_y )[0] ;
   int width = INTEGER_DATA( s_width )[0] ;
   int height = INTEGER_DATA( s_height )[0] ;


    GdkImage * ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_image_get ( window, x, y, width, height );
   _result = toRPointer(ans, "GdkImage");


  return(_result);
}
 

USER_OBJECT_
 S_gdk_window_clear_area_e ( USER_OBJECT_ s_window, USER_OBJECT_ s_x, USER_OBJECT_ s_y, USER_OBJECT_ s_width, USER_OBJECT_ s_height )
{
   GdkWindow * window = ( GdkWindow * ) getPtrValue( s_window ) ;
   int x = INTEGER_DATA( s_x )[0] ;
   int y = INTEGER_DATA( s_y )[0] ;
   int width = INTEGER_DATA( s_width )[0] ;
   int height = INTEGER_DATA( s_height )[0] ;


   USER_OBJECT_ _result = NULL_USER_OBJECT;

        gdk_window_clear_area_e ( window, x, y, width, height );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_visual_get_best_type (  )
{


    GdkVisualType ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_visual_get_best_type (  );
   _result =  S_check_GdkVisualType_value (asRInt( ans ));


  return(_result);
}
 

USER_OBJECT_
 S_gdk_font_equal ( USER_OBJECT_ s_fonta, USER_OBJECT_ s_fontb )
{
   GdkFont * fonta = ( GdkFont * ) getPtrValue( s_fonta ) ;
   GdkFont * fontb = ( GdkFont * ) getPtrValue( s_fontb ) ;


    int ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_font_equal ( fonta, fontb );
  _result = asRInt ( ans );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_window_clear_area ( USER_OBJECT_ s_window, USER_OBJECT_ s_x, USER_OBJECT_ s_y, USER_OBJECT_ s_width, USER_OBJECT_ s_height )
{
   GdkWindow * window = ( GdkWindow * ) getPtrValue( s_window ) ;
   int x = INTEGER_DATA( s_x )[0] ;
   int y = INTEGER_DATA( s_y )[0] ;
   int width = INTEGER_DATA( s_width )[0] ;
   int height = INTEGER_DATA( s_height )[0] ;


   USER_OBJECT_ _result = NULL_USER_OBJECT;

        gdk_window_clear_area ( window, x, y, width, height );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_region_empty ( USER_OBJECT_ s_region )
{
   GdkRegion * region = ( GdkRegion * ) getPtrValue( s_region ) ;


    Rboolean ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_region_empty ( region );
  _result = asRLogical ( ans );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_window_get_parent ( USER_OBJECT_ s_window )
{
   GdkWindow * window = ( GdkWindow * ) getPtrValue( s_window ) ;


    GdkWindow * ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_window_get_parent ( window );
   _result = toRPointer(ans, "GdkWindow");


  return(_result);
}
 

USER_OBJECT_
 S_gdk_image_put_pixel ( USER_OBJECT_ s_image, USER_OBJECT_ s_x, USER_OBJECT_ s_y, USER_OBJECT_ s_pixel )
{
   GdkImage * image = ( GdkImage * ) getPtrValue( s_image ) ;
   int x = INTEGER_DATA( s_x )[0] ;
   int y = INTEGER_DATA( s_y )[0] ;
   unsigned int pixel = INTEGER_DATA( s_pixel )[0] ;


   USER_OBJECT_ _result = NULL_USER_OBJECT;

        gdk_image_put_pixel ( image, x, y, pixel );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_colormap_get_system_size (  )
{


    int ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_colormap_get_system_size (  );
  _result = asRInt ( ans );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_region_equal ( USER_OBJECT_ s_region1, USER_OBJECT_ s_region2 )
{
   GdkRegion * region1 = ( GdkRegion * ) getPtrValue( s_region1 ) ;
   GdkRegion * region2 = ( GdkRegion * ) getPtrValue( s_region2 ) ;


    Rboolean ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_region_equal ( region1, region2 );
  _result = asRLogical ( ans );


  return(_result);
}
 

USER_OBJECT_
 S_gdk_rectangle_intersect ( USER_OBJECT_ s_src1, USER_OBJECT_ s_src2, USER_OBJECT_ s_dest )
{
   GdkRectangle * src1 = ( GdkRectangle * ) getPtrValue( s_src1 ) ;
   GdkRectangle * src2 = ( GdkRectangle * ) getPtrValue( s_src2 ) ;
   GdkRectangle * dest = ( GdkRectangle * ) getPtrValue( s_dest ) ;


    int ans ;
   USER_OBJECT_ _result = NULL_USER_OBJECT;

       ans =  gdk_rectangle_intersect ( src1, src2, dest );
  _result = asRInt ( ans );


  return(_result);
}
 


Generated by  Doxygen 1.6.0   Back to index