sdl Reference Manual

Synopsis

public class Cursor {
    public    Rect                      area ;
    public    int16                     hot_x ;
    public    int16                     hot_y ;
    public    uchar*                    data ;
    public    uchar*                    mask ;
    public    uchar****                 save ;


    public                              Cursor                    ( uchar*              data,
                                                                    uchar*              mask,
                                                                    int                 w,
                                                                    int                 h,
                                                                    int                 hot_x,
                                                                    int                 hot_y ) ;


    public    static uchar              get_state                 ( int                 x,
                                                                    int                 y ) ;
    public    static uchar              get_relative_state        ( int                 x,
                                                                    int                 y ) ;
    public    static void               warp                      ( uint16              x,
                                                                    uint16              y ) ;
    public    static Cursor             get                       (  ) ;
    public    static void               set                       ( Cursor              cursor ) ;
    public    static int                show                      ( int                 toggle ) ;
}

Cursor Description

Details

Constructor Details

Cursor ()
    public                              Cursor                    ( uchar*              data,
                                                                    uchar*              mask,
                                                                    int                 w,
                                                                    int                 h,
                                                                    int                 hot_x,
                                                                    int                 hot_y ) ;		

Field Details

area
    public    Rect                      area ;		

hot_x
    public    int16                     hot_x ;		

hot_y
    public    int16                     hot_y ;		

data
    public    uchar*                    data ;		

mask
    public    uchar*                    mask ;		

save
    public    uchar****                 save ;		

Signal Details

Property Details

Method Details

get_state ()
    public    static uchar              get_state                 ( int                 x,
                                                                    int                 y ) ;		

get_relative_state ()
    public    static uchar              get_relative_state        ( int                 x,
                                                                    int                 y ) ;		

warp ()
    public    static void               warp                      ( uint16              x,
                                                                    uint16              y ) ;		

get ()
    public    static Cursor             get                       (  ) ;		

set ()
    public    static void               set                       ( Cursor              cursor ) ;		

show ()
    public    static int                show                      ( int                 toggle ) ;		


Created by Valadoc