fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
  SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation)  

win32.H File Reference

#include <windows.h>
#include <FL/Fl_Device.H>
#include "Fl_Window.H"
Include dependency graph for win32.H:

Go to the source code of this file.

Classes

struct  XRectangle
class  Fl_X
struct  Fl_XMap

Defines

#define LPMINMAXINFO   MINMAXINFO*
#define VK_LWIN   0x5B
#define VK_RWIN   0x5C
#define VK_APPS   0x5D
#define XDestroyWindow(a, b)   DestroyWindow(b)
#define XMapWindow(a, b)   ShowWindow(b, SW_RESTORE)
#define XUnmapWindow(a, b)   ShowWindow(b, SW_HIDE)
#define fl_create_offscreen(w, h)   CreateCompatibleBitmap( (fl_gc ? fl_gc : fl_GetDC(0) ) , w, h)
#define fl_begin_offscreen(b)
#define fl_end_offscreen()   fl_pop_clip(); RestoreDC(fl_gc, _savedc); DeleteDC(fl_gc); _ss->set_current(); fl_window=_sw; fl_gc = _sgc
#define fl_delete_offscreen(bitmap)   DeleteObject(bitmap);

Typedefs

typedef HWND Window
typedef POINT XPoint
typedef HRGN Fl_Region
typedef HBITMAP Fl_Offscreen
typedef HBITMAP Fl_Bitmask

Functions

FL_EXPORT void fl_clip_region (Fl_Region)
Fl_Region XRectangleRegion (int x, int y, int w, int h)
void XDestroyRegion (Fl_Region r)
void XClipBox (Fl_Region r, XRectangle *rect)
Window fl_xid (const Fl_Window *w)
FL_EXPORT Fl_Windowfl_find (Window xid)
COLORREF fl_RGB ()
HPEN fl_pen ()
FL_EXPORT HBRUSH fl_brush ()
FL_EXPORT HBRUSH fl_brush_action (int)
FL_EXPORT HDC fl_GetDC (Window)
FL_EXPORT void fl_release_dc (HWND w, HDC dc)
FL_EXPORT void fl_save_dc (HWND w, HDC dc)
FL_EXPORT HDC fl_makeDC (HBITMAP)
FL_EXPORT void fl_copy_offscreen (int x, int y, int w, int h, HBITMAP pixmap, int srcx, int srcy)
FL_EXPORT void fl_copy_offscreen_with_alpha (int x, int y, int w, int h, HBITMAP pixmap, int srcx, int srcy)
FL_EXPORT Fl_Bitmask fl_create_bitmask (int w, int h, const uchar *data)
FL_EXPORT Fl_Bitmask fl_create_alphamask (int w, int h, int d, int ld, const uchar *data)
FL_EXPORT void fl_delete_bitmask (Fl_Bitmask bm)
void fl_open_callback (void(*)(const char *))
 Register a function called for each file dropped onto an application icon.
FL_EXPORT int fl_parse_color (const char *p, uchar &r, uchar &g, uchar &b)

Variables

FL_EXPORT HCURSOR fl_default_cursor
FL_EXPORT UINT fl_wake_msg
FL_EXPORT char fl_override_redirect
FL_EXPORT int fl_background_pixel
FL_EXPORT struct Fl_XMapfl_current_xmap
FL_EXPORT HINSTANCE fl_display
 END TIMERS //////////////////////////////////////////////////////////////////////////.
FL_EXPORT Window fl_window
FL_EXPORT HDC fl_gc
FL_EXPORT HPALETTE fl_palette
FL_EXPORT MSG fl_msg

Define Documentation

#define fl_begin_offscreen (   b)
Value:

Definition at line 129 of file win32.H.

#define fl_create_offscreen (   w,
  h 
)    CreateCompatibleBitmap( (fl_gc ? fl_gc : fl_GetDC(0) ) , w, h)

Definition at line 124 of file win32.H.

#define fl_delete_offscreen (   bitmap)    DeleteObject(bitmap);

Definition at line 140 of file win32.H.

#define fl_end_offscreen ( )    fl_pop_clip(); RestoreDC(fl_gc, _savedc); DeleteDC(fl_gc); _ss->set_current(); fl_window=_sw; fl_gc = _sgc

Definition at line 134 of file win32.H.

#define LPMINMAXINFO   MINMAXINFO*

Definition at line 40 of file win32.H.

#define VK_APPS   0x5D

Definition at line 45 of file win32.H.

#define VK_LWIN   0x5B

Definition at line 43 of file win32.H.

#define VK_RWIN   0x5C

Definition at line 44 of file win32.H.

#define XDestroyWindow (   a,
  b 
)    DestroyWindow(b)

Definition at line 65 of file win32.H.

Referenced by Fl_Window::hide().

#define XMapWindow (   a,
  b 
)    ShowWindow(b, SW_RESTORE)

Definition at line 66 of file win32.H.

Referenced by Fl_Overlay_Window::flush(), Fl_Window::handle(), main(), and Fl_X::make_xid().

#define XUnmapWindow (   a,
  b 
)    ShowWindow(b, SW_HIDE)

Definition at line 67 of file win32.H.

Referenced by Fl_Overlay_Window::flush(), and Fl_Window::handle().


Typedef Documentation

typedef HBITMAP Fl_Bitmask

Definition at line 143 of file win32.H.

typedef HBITMAP Fl_Offscreen

Definition at line 123 of file win32.H.

typedef HRGN Fl_Region

Definition at line 54 of file win32.H.

typedef HWND Window

Definition at line 51 of file win32.H.

typedef POINT XPoint

Definition at line 52 of file win32.H.


Function Documentation

FL_EXPORT HBRUSH fl_brush_action ( int  )

Definition at line 137 of file fl_color_win32.cxx.

References Fl_XMap::brush, fl_current_xmap, fl_gc, FL_N_BRUSH, i, NULL, and Fl_XMap::rgb.

Referenced by fl_brush().

FL_EXPORT void fl_copy_offscreen ( int  x,
int  y,
int  w,
int  h,
HBITMAP  pixmap,
int  srcx,
int  srcy 
)
FL_EXPORT void fl_copy_offscreen_with_alpha ( int  x,
int  y,
int  w,
int  h,
HBITMAP  pixmap,
int  srcx,
int  srcy 
)
FL_EXPORT Fl_Bitmask fl_create_alphamask ( int  w,
int  h,
int  d,
int  ld,
const uchar data 
)

Definition at line 179 of file Fl_Bitmap.cxx.

FL_EXPORT Fl_Bitmask fl_create_bitmask ( int  w,
int  h,
const uchar data 
)

Definition at line 165 of file Fl_Bitmap.cxx.

FL_EXPORT void fl_delete_bitmask ( Fl_Bitmask  bm)

Definition at line 170 of file Fl_Bitmap.cxx.

FL_EXPORT Fl_Window* fl_find ( Window  xid)

Definition at line 616 of file Fl.cxx.

Referenced by FLDropTarget::DragEnter(), Fl::first_window(), fl_handle(), and fl_read_image().

FL_EXPORT HDC fl_GetDC ( Window  )
FL_EXPORT HDC fl_makeDC ( HBITMAP  )

Referenced by Fl_Double_Window::flush().

FL_EXPORT int fl_parse_color ( const char *  p,
uchar r,
uchar g,
uchar b 
)

Definition at line 131 of file Fl_get_system_colors.cxx.

HPEN fl_pen ( ) [inline]

Definition at line 109 of file win32.H.

References fl_current_xmap, and Fl_XMap::pen.

FL_EXPORT void fl_release_dc ( HWND  w,
HDC  dc 
)

Definition at line 1887 of file Fl_win32.cxx.

References Win_DC_List::dc, Win_DC_List::next, and Win_DC_List::saved_dc.

Referenced by fl_GetDC(), and Fl_Window::hide().

FL_EXPORT void fl_save_dc ( HWND  w,
HDC  dc 
)

Definition at line 1874 of file Fl_win32.cxx.

References Win_DC_List::dc, Win_DC_List::next, NULL, Win_DC_List::saved_dc, w, and Win_DC_List::window.

Referenced by fl_GetDC().

Window fl_xid ( const Fl_Window w) [inline]

Definition at line 97 of file win32.H.

References Fl_X::i(), and Fl_X::xid.

void XClipBox ( Fl_Region  r,
XRectangle rect 
) [inline]

Definition at line 58 of file win32.H.

References XRectangle::height, XRectangle::width, XRectangle::x, and XRectangle::y.

Referenced by Fl_Graphics_Driver::clip_box().

Fl_Region XRectangleRegion ( int  x,
int  y,
int  w,
int  h 
)

Variable Documentation

FL_EXPORT int fl_background_pixel

Definition at line 1533 of file Fl_x.cxx.

Referenced by Fl_X::make_xid(), and Fl_Menu_Window::show().

FL_EXPORT HCURSOR fl_default_cursor

Definition at line 100 of file Fl_mac.cxx.

Referenced by fl_open_display(), and Fl_X::make().

FL_EXPORT HDC fl_gc

Definition at line 97 of file Fl_mac.cxx.

FL_EXPORT MSG fl_msg

Definition at line 342 of file Fl_win32.cxx.

FL_EXPORT char fl_override_redirect
FL_EXPORT HPALETTE fl_palette

Definition at line 51 of file fl_color_win32.cxx.

Referenced by fl_rectf().

FL_EXPORT UINT fl_wake_msg

Definition at line 1379 of file Fl_win32.cxx.

Referenced by fl_wait().