"Fossies" - the Fresh Open Source Software Archive

Member "chandler-1.0.3/external/wx/wxPython-r218/include/wx/msw/cursor.h" (5 Dec 2007, 1320 Bytes) of archive /windows/misc/Chandler_src_1.0.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /////////////////////////////////////////////////////////////////////////////
    2 // Name:        wx/msw/cursor.h
    3 // Purpose:     wxCursor class
    4 // Author:      Julian Smart
    5 // Modified by:
    6 // Created:     01/02/97
    7 // RCS-ID:      $Id: cursor.h 49804 2007-11-10 01:09:42Z VZ $
    8 // Copyright:   (c) Julian Smart
    9 // Licence:     wxWindows licence
   10 /////////////////////////////////////////////////////////////////////////////
   11 
   12 #ifndef _WX_CURSOR_H_
   13 #define _WX_CURSOR_H_
   14 
   15 #include "wx/msw/gdiimage.h"
   16 
   17 class WXDLLIMPEXP_FWD_CORE wxImage;
   18 
   19 // Cursor
   20 class WXDLLEXPORT wxCursor : public wxGDIImage
   21 {
   22 public:
   23     // constructors
   24     wxCursor();
   25     wxCursor(const wxImage& image);
   26     wxCursor(const char bits[], int width, int height,
   27              int hotSpotX = -1, int hotSpotY = -1,
   28              const char maskBits[] = NULL);
   29     wxCursor(const wxString& name,
   30              long flags = wxBITMAP_TYPE_CUR_RESOURCE,
   31              int hotSpotX = 0, int hotSpotY = 0);
   32     wxCursor(int idCursor);
   33     virtual ~wxCursor();
   34 
   35     // implementation only
   36     void SetHCURSOR(WXHCURSOR cursor) { SetHandle((WXHANDLE)cursor); }
   37     WXHCURSOR GetHCURSOR() const { return (WXHCURSOR)GetHandle(); }
   38 
   39 protected:
   40     virtual wxGDIImageRefData *CreateData() const;
   41 
   42 private:
   43     DECLARE_DYNAMIC_CLASS(wxCursor)
   44 };
   45 
   46 #endif
   47     // _WX_CURSOR_H_