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

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

Go to the source code of this file.

Classes

struct  Fl_XMap
 

Macros

#define fl_xid(w)   fl_xid_(w)
 
#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 HRGN Fl_Region
 
typedef HWND Window
 
typedef POINT XPoint
 
typedef HBITMAP Fl_Offscreen
 
typedef HBITMAP Fl_Bitmask
 

Functions

FL_EXPORT Window fl_xid_ (const Fl_Window *w)
 
FL_EXPORT Fl_Windowfl_find (Window xid)
 
void fl_clip_region (Fl_Region)
 
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 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 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. cb will be called with a single Unix-style file name and path. If multiple files were dropped, cb will be called multiple times. More...
 
FL_EXPORT int fl_parse_color (const char *p, uchar &r, uchar &g, uchar &b)
 

Variables

FL_EXPORT struct Fl_XMapfl_current_xmap
 
FL_EXPORT HINSTANCE fl_display
 END TIMERS. More...
 
FL_EXPORT Window fl_window
 
FL_EXPORT HDC fl_gc
 
FL_EXPORT MSG fl_msg
 

Macro Definition Documentation

◆ fl_begin_offscreen

#define fl_begin_offscreen (   b)
Value:
HDC _sgc=fl_gc; Window _sw=fl_window; \
fl_gc=fl_makeDC(b); int _savedc = SaveDC(fl_gc); fl_window=(HWND)b; fl_push_no_clip()

Definition at line 137 of file win32.H.

◆ fl_create_offscreen

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

Definition at line 134 of file win32.H.

◆ fl_delete_offscreen

#define fl_delete_offscreen (   bitmap)    DeleteObject(bitmap)

Definition at line 147 of file win32.H.

◆ fl_end_offscreen

#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 142 of file win32.H.

◆ fl_xid

#define fl_xid (   w)    fl_xid_(w)

Definition at line 108 of file win32.H.

Typedef Documentation

◆ Fl_Bitmask

typedef HBITMAP Fl_Bitmask

Definition at line 150 of file win32.H.

◆ Fl_Offscreen

typedef HBITMAP Fl_Offscreen

Definition at line 133 of file win32.H.

◆ Fl_Region

typedef HRGN Fl_Region

Definition at line 29 of file win32.H.

◆ Window

typedef HWND Window

Definition at line 30 of file win32.H.

◆ XPoint

typedef POINT XPoint

Definition at line 31 of file win32.H.

Function Documentation

◆ fl_brush()

◆ fl_brush_action()

FL_EXPORT HBRUSH fl_brush_action ( int  )

◆ fl_copy_offscreen()

FL_EXPORT void fl_copy_offscreen ( int  x,
int  y,
int  w,
int  h,
HBITMAP  pixmap,
int  srcx,
int  srcy 
)

◆ fl_create_alphamask()

FL_EXPORT Fl_Bitmask fl_create_alphamask ( int  w,
int  h,
int  d,
int  ld,
const uchar data 
)

Definition at line 170 of file Fl_Bitmap.cxx.

◆ fl_create_bitmask()

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

Definition at line 156 of file Fl_Bitmap.cxx.

◆ fl_delete_bitmask()

FL_EXPORT void fl_delete_bitmask ( Fl_Bitmask  bm)

Definition at line 161 of file Fl_Bitmap.cxx.

◆ fl_find()

FL_EXPORT Fl_Window* fl_find ( Window  xid)

Definition at line 730 of file Fl.cxx.

◆ fl_GetDC()

FL_EXPORT HDC fl_GetDC ( Window  )

◆ fl_makeDC()

FL_EXPORT HDC fl_makeDC ( HBITMAP  )

◆ fl_parse_color()

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

Definition at line 122 of file Fl_get_system_colors.cxx.

◆ fl_pen()

HPEN fl_pen ( )
inline

Definition at line 121 of file win32.H.

References fl_current_xmap, and Fl_XMap::pen.

◆ fl_RGB()

◆ fl_xid_()

FL_EXPORT Window fl_xid_ ( const Fl_Window w)

Definition at line 2711 of file Fl_win32.cxx.

Variable Documentation

◆ fl_current_xmap

FL_EXPORT struct Fl_XMap * fl_current_xmap

◆ fl_display

FL_EXPORT HINSTANCE fl_display

END TIMERS.

Definition at line 2147 of file Fl_win32.cxx.

Referenced by Fl_Graphics_Driver::arc(), Fl_Graphics_Driver::circle(), Fl_Xlib_Graphics_Driver::color(), Fl_Window::combine_mask(), dnd_aware(), Fl_Xlib_Graphics_Driver::draw(), draw_current_rect(), Fl_Graphics_Driver::end_complex_polygon(), Fl_Graphics_Driver::end_line(), Fl_Graphics_Driver::end_points(), Fl_Graphics_Driver::end_polygon(), Fl_Menu_Window::erase(), Fl::event_key(), figure_out_visual(), find_best_font(), fl_beep(), fl_create_bitmask(), fl_drawUCS4(), Fl_GTK_File_Chooser::fl_gtk_chooser_wrapper(), fl_parse_color(), fl_scroll(), fl_xft_width(), fl_xpixel(), fl_xxfont(), Fl_Menu_Window::flush(), Fl_Double_Window::flush(), Fl_Overlay_Window::flush(), Fl::flush(), fontopen(), Fl::free_color(), Fl::get_key(), getsyscolor(), Fl::grab(), Fl_Window::handle(), Fl_Double_Window::hide(), Fl_Window::hide(), Fl_Window::iconize(), innards(), Fl_Graphics_Driver::line(), Fl_Graphics_Driver::line_style(), Fl_Graphics_Driver::loop(), Fl::own_colormap(), Fl_Graphics_Driver::pie(), Fl_Graphics_Driver::point(), Fl_Graphics_Driver::polygon(), Fl_Image_Surface::prepare_(), read_win_rectangle(), Fl_Graphics_Driver::rect(), Fl_Graphics_Driver::rectf(), Fl_Double_Window::resize(), Fl_Graphics_Driver::restore_clip(), Fl_Xlib_Graphics_Driver::rtl_draw(), Fl::scheme(), screen_init(), Fl_Menu_Window::show(), Fl_Window::show(), test_visual(), Fl_Xlib_Graphics_Driver::text_extents(), utf8extents(), Fl::visual(), Fl_Graphics_Driver::xyline(), Fl_Graphics_Driver::yxline(), and Fl_Image_Surface::~Fl_Image_Surface().

◆ fl_gc

FL_EXPORT HDC fl_gc

Definition at line 2568 of file Fl_win32.cxx.

◆ fl_msg

FL_EXPORT MSG fl_msg

Definition at line 362 of file Fl_win32.cxx.

Referenced by fl_ready(), fl_wait(), and WndProc().

◆ fl_window

b
long b
Definition: jpegint.h:397
Fl_Display_Device::display_device
static Fl_Display_Device * display_device()
Definition: Fl_Device.cxx:83
Fl_Surface_Device::surface
static Fl_Surface_Device * surface()
Definition: Fl_Device.H:574
Fl_Surface_Device::set_current
virtual void set_current(void)
Make this surface the current drawing surface. This surface will receive all future graphics requests...
Definition: Fl_Device.cxx:44
fl_gc
FL_EXPORT HDC fl_gc
Definition: Fl_win32.cxx:2568
fl_push_no_clip
void fl_push_no_clip()
Definition: fl_draw.H:95
fl_window
FL_EXPORT Window fl_window
Definition: Fl_win32.cxx:2571
fl_makeDC
FL_EXPORT HDC fl_makeDC(HBITMAP)
Window
class FLWindow * Window
Definition: mac.H:32