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)  

Fl_x.cxx File Reference

#include <config.h>
#include <FL/Fl.H>
#include <FL/x.H>
#include <FL/Fl_Window.H>
#include <FL/fl_utf8.h>
#include <FL/Fl_Tooltip.H>
#include <FL/fl_draw.H>
#include <stdio.h>
#include <stdlib.h>
#include "flstring.h"
#include <unistd.h>
#include <sys/time.h>
#include <X11/Xmd.h>
#include <X11/Xlocale.h>
#include <X11/Xlib.h>
Include dependency graph for Fl_x.cxx:

Go to the source code of this file.

Classes

struct  FD

Defines

#define CONSOLIDATE_MOTION   1
#define POLLIN   1
#define POLLOUT   4
#define POLLERR   8
#define POOR_XIM

Functions

int fl_wait (double time_to_wait)
int fl_ready ()
char * fl_get_font_xfld (int fnum, int size)
void fl_new_ic ()
void fl_reset_spot (void)
void fl_set_spot (int font, int size, int X, int Y, int W, int H, Fl_Window *win)
void fl_set_status (int x, int y, int w, int h)
void fl_init_xim ()
void fl_open_display ()
void fl_open_display (Display *d)
void fl_close_display ()
void fl_sendClientMessage (Window window, Atom message, unsigned long d0, unsigned long d1=0, unsigned long d2=0, unsigned long d3=0, unsigned long d4=0)
int fl_handle (const XEvent &thisevent)
void fl_fix_focus ()
const char * fl_filename_name (const char *name)

Variables

FL_EXPORT Fl_Display_Devicefl_display_device = (Fl_Display_Device*)&fl_xlib_display
 Points to the platform's display.
FL_EXPORT Fl_Graphics_Driverfl_graphics_driver = (Fl_Graphics_Driver*)&fl_xlib_driver
 Points to the driver that currently receives all graphics requests.
FL_EXPORT Fl_Surface_Devicefl_surface = (Fl_Surface_Device*)fl_display_device
 Points to the surface that currently receives all graphics requests.
void(* fl_lock_function )() = nothing
void(* fl_unlock_function )() = nothing
Display * fl_display
 END TIMERS //////////////////////////////////////////////////////////////////////////.
Window fl_message_window = 0
int fl_screen
XVisualInfo * fl_visual
Colormap fl_colormap
XIM fl_xim_im = 0
XIC fl_xim_ic = 0
char fl_is_over_the_spot = 0
Atom fl_XdndAware
Atom fl_XdndSelection
Atom fl_XdndEnter
Atom fl_XdndTypeList
Atom fl_XdndPosition
Atom fl_XdndLeave
Atom fl_XdndDrop
Atom fl_XdndStatus
Atom fl_XdndActionCopy
Atom fl_XdndFinished
Atom fl_XdndURIList
Atom fl_Xatextplainutf
Atom fl_Xatextplain
Atom fl_XaCompoundText
Atom fl_XaUtf8String
Atom fl_XaTextUriList
Atom fl_NET_WM_NAME
Atom fl_NET_WM_ICON_NAME
Fl_Widgetfl_selection_requestor
char * fl_selection_buffer [2]
int fl_selection_length [2]
int fl_selection_buffer_length [2]
char fl_i_own_selection [2] = {0,0}
Window fl_dnd_source_window
Atom * fl_dnd_source_types
Atom fl_dnd_type
Atom fl_dnd_source_action
Atom fl_dnd_action
const XEvent * fl_xevent
ulong fl_event_time
char fl_key_vector [32]
static int py
const int unknown_len = 10
char fl_show_iconic
int fl_background_pixel = -1
int fl_disable_transient_for
Window fl_window
GC fl_gc

Define Documentation

#define CONSOLIDATE_MOTION   1

Definition at line 34 of file Fl_x.cxx.

#define POLLERR   8

Definition at line 80 of file Fl_x.cxx.

Referenced by fl_wait().

#define POLLIN   1

Definition at line 78 of file Fl_x.cxx.

Referenced by fl_wait().

#define POLLOUT   4

Definition at line 79 of file Fl_x.cxx.

Referenced by fl_wait().

#define POOR_XIM

Function Documentation

void fl_close_display ( )

get rid of allocated resources

Definition at line 639 of file Fl_x.cxx.

References Fl::remove_fd().

char* fl_get_font_xfld ( int  fnum,
int  size 
)

Definition at line 232 of file fl_font_x.cxx.

References fl_fonts, fl_open_display(), and Fl_Fontdesc::name.

Referenced by fl_new_ic(), and fl_set_spot().

void fl_init_xim ( )

Definition at line 537 of file Fl_x.cxx.

References fl_new_ic(), NULL, and Fl::warning.

Referenced by fl_handle(), and fl_open_display().

void fl_new_ic ( )

Definition at line 360 of file Fl_x.cxx.

References fl_get_font_xfld(), i, and NULL.

Referenced by fl_handle(), and fl_init_xim().

void fl_open_display ( Display *  d)

Definition at line 587 of file Fl_x.cxx.

References Fl::add_fd(), fl_init_xim(), FL_RGB, num, and Fl::visual().

int fl_ready ( )

Check if there is actually a message pending!

Definition at line 264 of file Fl_x.cxx.

References fl_display, and select().

Referenced by Fl::ready().

void fl_sendClientMessage ( Window  window,
Atom  message,
unsigned long  d0,
unsigned long  d1 = 0,
unsigned long  d2 = 0,
unsigned long  d3 = 0,
unsigned long  d4 = 0 
)

Definition at line 739 of file Fl_x.cxx.

Referenced by fl_handle().

int fl_wait ( double  time_to_wait)

This public function handles all events. It wait a maximum of 'time' secods for an event. This version returns 1 if events other than the timeout timer were processed.

Todo:
there is no socket handling in this code whatsoever

Definition at line 210 of file Fl_x.cxx.

References f, fl_display, fl_lock_function, fl_unlock_function, i, int, POLLERR, POLLIN, POLLOUT, and select().

Referenced by Fl::wait().


Variable Documentation

Definition at line 1533 of file Fl_x.cxx.

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

Definition at line 1534 of file Fl_x.cxx.

FL_EXPORT Fl_Display_Device* fl_display_device = (Fl_Display_Device*)&fl_xlib_display

Points to the platform's display.

Definition at line 56 of file Fl_x.cxx.

Referenced by Fl_Display_Device::display_device(), and fl_copy_offscreen().

Definition at line 737 of file Fl_x.cxx.

Definition at line 736 of file Fl_x.cxx.

Definition at line 734 of file Fl_x.cxx.

Referenced by fl_handle().

Definition at line 733 of file Fl_x.cxx.

Definition at line 735 of file Fl_x.cxx.

Definition at line 780 of file Fl_x.cxx.

Referenced by Fl::grab().

char fl_i_own_selection[2] = {0,0}

Definition at line 712 of file Fl_x.cxx.

Definition at line 301 of file Fl_x.cxx.

char fl_key_vector[32]

Definition at line 782 of file Fl_x.cxx.

Referenced by Fl::event_key(), and Fl::get_key().

void(* fl_lock_function)() = nothing

Definition at line 204 of file Fl_x.cxx.

Definition at line 295 of file Fl_x.cxx.

Referenced by fl_destroy_xft_draw().

Definition at line 328 of file Fl_x.cxx.

Definition at line 327 of file Fl_x.cxx.

Definition at line 709 of file Fl_x.cxx.

Referenced by FLDataObject::GetData().

Definition at line 711 of file Fl_x.cxx.

Definition at line 710 of file Fl_x.cxx.

Referenced by FLDataObject::GetData().

Definition at line 708 of file Fl_x.cxx.

Definition at line 1532 of file Fl_x.cxx.

Referenced by Fl_Window::iconize(), and Fl_X::make().

Points to the surface that currently receives all graphics requests.

Definition at line 58 of file Fl_x.cxx.

Referenced by Fl_Surface_Device::set_current(), and Fl_Surface_Device::surface().

void(* fl_unlock_function)() = nothing

Definition at line 205 of file Fl_x.cxx.

XVisualInfo* fl_visual

Definition at line 297 of file Fl_x.cxx.

Referenced by fl_read_image(), fl_rectf(), fl_xpixel(), Fl::own_colormap(), and Fl::visual().

Definition at line 324 of file Fl_x.cxx.

Definition at line 322 of file Fl_x.cxx.

Definition at line 321 of file Fl_x.cxx.

Definition at line 326 of file Fl_x.cxx.

Definition at line 325 of file Fl_x.cxx.

Referenced by fl_handle().

Definition at line 317 of file Fl_x.cxx.

Referenced by fl_handle().

Definition at line 309 of file Fl_x.cxx.

Definition at line 315 of file Fl_x.cxx.

Definition at line 311 of file Fl_x.cxx.

Definition at line 318 of file Fl_x.cxx.

Definition at line 314 of file Fl_x.cxx.

Definition at line 313 of file Fl_x.cxx.

Definition at line 310 of file Fl_x.cxx.

Definition at line 316 of file Fl_x.cxx.

Definition at line 312 of file Fl_x.cxx.

Definition at line 320 of file Fl_x.cxx.

const XEvent* fl_xevent

Definition at line 779 of file Fl_x.cxx.

XIC fl_xim_ic = 0

Definition at line 300 of file Fl_x.cxx.

Referenced by fl_set_spot().

XIM fl_xim_im = 0

Definition at line 299 of file Fl_x.cxx.

int py

Definition at line 786 of file Fl_x.cxx.

const int unknown_len = 10

Definition at line 827 of file Fl_x.cxx.

Referenced by fl_handle().