cimg_library::CImgDisplay Struct Reference

This class represents a window which can display CImg images and handles mouse and keyboard events. More...

#include <cimg.h>

List of all members.

Public Member Functions

 CImgDisplay ()
 Create an empty display window.
 CImgDisplay (const unsigned int dimw, const unsigned int dimh, const char *title=0, const unsigned int normalization_type=3, const unsigned int events_type=3, const bool fullscreen_flag=false, const bool closed_flag=false)
 Create a display window with a specified size pwidth x height.
template<typename T >
 CImgDisplay (const CImg< T > &img, const char *title=0, const unsigned int normalization_type=3, const unsigned int events_type=3, const bool fullscreen_flag=false, const bool closed_flag=false)
 Create a display window from an image.
template<typename T >
 CImgDisplay (const CImgList< T > &list, const char *title=0, const unsigned int normalization_type=3, const unsigned int events_type=3, const bool fullscreen_flag=false, const bool closed_flag=false)
 Create a display window from an image list.
 CImgDisplay (const CImgDisplay &disp)
 Create a display window by copying another one.
 ~CImgDisplay ()
 Destructor.
CImgDisplayoperator= (const CImgDisplay &disp)
 Assignment operator.
bool is_empty () const
 Return true is display is empty.
 operator bool () const
 Return false if display is empty.
int dimx () const
 Return display width.
int dimy () const
 Return display height.
int window_dimx () const
 Return display window width.
int window_dimy () const
 Return display window height.
int window_posx () const
 Return X-coordinate of the window.
int window_posy () const
 Return Y-coordinate of the window.
CImgDisplaywait (const unsigned int milliseconds)
 Synchronized waiting function. Same as cimg::wait().
CImgDisplaywait ()
 Wait for an event occuring on the current display.
float frames_per_second ()
 Return the frame per second rate.
template<typename T >
CImgDisplaydisplay (const CImgList< T > &list, const char axe='x', const char align='c')
 Display an image list CImgList<T> into a display window.
template<typename T >
CImgDisplayoperator<< (const CImg< T > &img)
 Display an image CImg<T> into a display window.
template<typename T >
CImgDisplayoperator<< (const CImgList< T > &list)
 Display an image CImg<T> into a display window.
template<typename T >
CImgDisplayresize (const CImg< T > &img, const bool redraw=true)
 Resize a display window with the size of an image.
CImgDisplayresize (const CImgDisplay &disp, const bool redraw=true)
 Resize a display window using the size of the given display disp.
CImgDisplayresize (const bool redraw=true)
 Resize a display window in its current size.
template<typename tp , typename tf , typename tc , typename to >
CImgDisplaydisplay_object3d (const tp &points, const CImgList< tf > &primitives, const CImgList< tc > &colors, const to &opacities, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=false, const float focale=500.0f, const float ambient_light=0.05f, const bool display_axes=true, float *const pose_matrix=0)
 Display a 3d object.
template<typename tp , typename tf , typename tc >
CImgDisplaydisplay_object3d (const tp &points, const CImgList< tf > &primitives, const CImgList< tc > &colors, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=false, const float focale=500.0f, const float ambient_light=0.05f, const bool display_axes=true, float *const pose_matrix=0, const float opacity=1.0f)
 Display a 3D object.
CImgDisplaytoggle_fullscreen ()
 Toggle fullscreen mode.
CImgDisplayflush ()
 Clear mouse and key states of the current display.
bool is_key (const bool remove=false)
 Test if any key has been pressed.
bool is_key (const unsigned int key1, const bool remove)
 Test if a key has been pressed.
bool is_key (const unsigned int key1, const unsigned int key2, const bool remove)
 Test if a key sequence has been typed.
bool is_key (const unsigned int key1, const unsigned int key2, const unsigned int key3, const bool remove)
 Test if a key sequence has been typed.
bool is_key (const unsigned int key1, const unsigned int key2, const unsigned int key3, const unsigned int key4, const bool remove)
 Test if a key sequence has been typed.
bool is_key (const unsigned int key1, const unsigned int key2, const unsigned int key3, const unsigned int key4, const unsigned int key5, const bool remove)
 Test if a key sequence has been typed.
bool is_key (const unsigned int key1, const unsigned int key2, const unsigned int key3, const unsigned int key4, const unsigned int key5, const unsigned int key6, const bool remove)
 Test if a key sequence has been typed.
bool is_key (const unsigned int key1, const unsigned int key2, const unsigned int key3, const unsigned int key4, const unsigned int key5, const unsigned int key6, const unsigned int key7, const bool remove)
 Test if a key sequence has been typed.
bool is_key (const unsigned int key1, const unsigned int key2, const unsigned int key3, const unsigned int key4, const unsigned int key5, const unsigned int key6, const unsigned int key7, const unsigned int key8, const bool remove)
 Test if a key sequence has been typed.
bool is_key (const unsigned int key1, const unsigned int key2, const unsigned int key3, const unsigned int key4, const unsigned int key5, const unsigned int key6, const unsigned int key7, const unsigned int key8, const unsigned int key9, const bool remove)
 Test if a key sequence has been typed.
bool is_key (const unsigned int *const keyseq, const unsigned int N, const bool remove=true)
 Test if a key sequence has been typed.
CImgDisplayassign ()
 In-place version of the destructor.
CImgDisplayassign (const unsigned int dimw, const unsigned int dimh, const char *title=0, const unsigned int normalization_type=3, const unsigned int events_type=3, const bool fullscreen_flag=false, const bool closed_flag=false)
 In-place version of the previous constructor.
template<typename T >
CImgDisplayassign (const CImg< T > &img, const char *title=0, const unsigned int normalization_type=3, const unsigned int events_type=3, const bool fullscreen_flag=false, const bool closed_flag=false)
 In-place version of the previous constructor.
template<typename T >
CImgDisplayassign (const CImgList< T > &list, const char *title=0, const unsigned int normalization_type=3, const unsigned int events_type=3, const bool fullscreen_flag=false, const bool closed_flag=false)
 In-place version of the previous constructor.
CImgDisplayassign (const CImgDisplay &disp)
 In-place version of the previous constructor.
template<typename T >
CImgDisplaydisplay (const CImg< T > &img)
 Display an image in a window.
CImgDisplayresize (const int width, const int height, const bool redraw=true)
 Resize window.
CImgDisplaymove (const int posx, const int posy)
 Move window.
CImgDisplayset_mouse (const int posx, const int posy)
 Move mouse pointer to a specific location.
CImgDisplayhide_mouse ()
 Hide mouse pointer.
CImgDisplayshow_mouse ()
 Show mouse pointer.
CImgDisplayshow ()
 Show a closed display.
CImgDisplayclose ()
 Close a visible display.
CImgDisplayset_title (const char *format,...)
 Set the window title.
CImgDisplaypaint ()
 Re-paint image content in window.
template<typename T >
CImgDisplayrender (const CImg< T > &img)
 Render image buffer into GDI native image format.
template<typename T >
const CImgDisplaysnapshot (CImg< T > &img) const
 Take a snapshot of the display in the specified image.

Static Public Member Functions

static void wait (CImgDisplay &disp1)
 Wait for any event occuring on the display disp1.
static void wait (CImgDisplay &disp1, CImgDisplay &disp2)
 Wait for any event occuring either on the display disp1 or disp2.
static void wait (CImgDisplay &disp1, CImgDisplay &disp2, CImgDisplay &disp3)
 Wait for any event occuring either on the display disp1, disp2 or disp3.
static void wait (CImgDisplay &disp1, CImgDisplay &disp2, CImgDisplay &disp3, CImgDisplay &disp4)
 Wait for any event occuring either on the display disp1, disp2, disp3 or disp4.
template<typename t , typename T >
static void _render_resize (const T *ptrs, const unsigned int ws, const unsigned int hs, t *ptrd, const unsigned int wd, const unsigned int hd)
static int screen_dimx ()
 Return the width of the screen resolution.
static int screen_dimy ()
 Return the height of the screen resolution.
static void wait_all ()
 Wait for a window event in any CImg window.

Public Attributes

unsigned int width
 Width of the display.
unsigned int height
 Height of the display.
unsigned int normalization
 Normalization type used for the display.
unsigned int events
 Range of events detected by the display.
char * title
 Display title.
volatile int window_x
 X-pos of the display on the screen.
volatile int window_y
 Y-pos of the display on the screen.
volatile unsigned int window_width
 Width of the underlying window.
volatile unsigned int window_height
 Height of the underlying window.
volatile int mouse_x
 X-coordinate of the mouse pointer on the display.
volatile int mouse_y
 Y-coordinate of the mouse pointer on the display.
volatile unsigned int buttons [512]
 Button state of the mouse.
volatile unsigned int & button
volatile int wheel
 Wheel state of the mouse.
volatile unsigned int & key
 Key value if pressed.
volatile unsigned int keys [512]
volatile unsigned int & released_key
 Key value if released.
volatile unsigned int released_keys [512]
volatile bool is_closed
 Closed state of the window.
volatile bool is_resized
 Resized state of the window.
volatile bool is_moved
 Moved state of the window.
volatile bool is_event
 Event state of the window.
bool is_fullscreen
 Fullscreen state of the display.
float fps_fps
float min
float max
unsigned long timer
unsigned long fps_frames
unsigned long fps_timer


Detailed Description

This class represents a window which can display CImg images and handles mouse and keyboard events.

Creating a CImgDisplay instance opens a window that can be used to display a CImg<T> image of a CImgList<T> image list inside. When a display is created, associated window events (such as mouse motion, keyboard and window size changes) are handled and can be easily detected by testing specific CImgDisplay data fields. See cimg_displays for a complete tutorial on using the CImgDisplay class.

Definition at line 6018 of file cimg.h.


Constructor & Destructor Documentation

cimg_library::CImgDisplay::CImgDisplay (  )  [inline]

Create an empty display window.

Definition at line 6115 of file cimg.h.

cimg_library::CImgDisplay::CImgDisplay ( const unsigned int  dimw,
const unsigned int  dimh,
const char *  title = 0,
const unsigned int  normalization_type = 3,
const unsigned int  events_type = 3,
const bool  fullscreen_flag = false,
const bool  closed_flag = false 
) [inline]

Create a display window with a specified size pwidth x height.

Parameters:
dimw : Width of the display window.
dimh : Height of the display window.
title : Title of the display window.
normalization_type : Normalization type of the display window (see CImgDisplay::normalize).
events_type : Type of events handled by the display window.
fullscreen_flag : Fullscreen mode.
closed_flag : Initially visible mode. A black image will be initially displayed in the display window.

Definition at line 6132 of file cimg.h.

template<typename T >
cimg_library::CImgDisplay::CImgDisplay ( const CImg< T > &  img,
const char *  title = 0,
const unsigned int  normalization_type = 3,
const unsigned int  events_type = 3,
const bool  fullscreen_flag = false,
const bool  closed_flag = false 
) [inline]

Create a display window from an image.

Parameters:
img : Image that will be used to create the display window.
title : Title of the display window
normalization_type : Normalization type of the display window.
events_type : Type of events handled by the display window.
fullscreen_flag : Fullscreen mode.
closed_flag : Initially visible mode.

Definition at line 6152 of file cimg.h.

template<typename T >
cimg_library::CImgDisplay::CImgDisplay ( const CImgList< T > &  list,
const char *  title = 0,
const unsigned int  normalization_type = 3,
const unsigned int  events_type = 3,
const bool  fullscreen_flag = false,
const bool  closed_flag = false 
) [inline]

Create a display window from an image list.

Parameters:
list : The list of images to display.
title : Title of the display window
normalization_type : Normalization type of the display window.
events_type : Type of events handled by the display window.
fullscreen_flag : Fullscreen mode.
closed_flag : Initially visible mode.

Definition at line 6171 of file cimg.h.

cimg_library::CImgDisplay::CImgDisplay ( const CImgDisplay disp  )  [inline]

Create a display window by copying another one.

Parameters:
disp : Display window to copy.

Definition at line 6185 of file cimg.h.

cimg_library::CImgDisplay::~CImgDisplay (  )  [inline]

Destructor.

Definition at line 6194 of file cimg.h.


Member Function Documentation

template<typename t , typename T >
static void cimg_library::CImgDisplay::_render_resize ( const T *  ptrs,
const unsigned int  ws,
const unsigned int  hs,
t *  ptrd,
const unsigned int  wd,
const unsigned int  hd 
) [inline, static]

Definition at line 6379 of file cimg.h.

References memcpy().

CImgDisplay& cimg_library::CImgDisplay::assign ( const CImgDisplay disp  )  [inline]

In-place version of the previous constructor.

Definition at line 6543 of file cimg.h.

References height, and width.

template<typename T >
CImgDisplay& cimg_library::CImgDisplay::assign ( const CImgList< T > &  list,
const char *  title = 0,
const unsigned int  normalization_type = 3,
const unsigned int  events_type = 3,
const bool  fullscreen_flag = false,
const bool  closed_flag = false 
) [inline]

In-place version of the previous constructor.

Definition at line 6535 of file cimg.h.

References cimg_library::CImgList< T >::size.

template<typename T >
CImgDisplay& cimg_library::CImgDisplay::assign ( const CImg< T > &  img,
const char *  title = 0,
const unsigned int  normalization_type = 3,
const unsigned int  events_type = 3,
const bool  fullscreen_flag = false,
const bool  closed_flag = false 
) [inline]

In-place version of the previous constructor.

Definition at line 6527 of file cimg.h.

References cimg_library::CImg< T >::width.

CImgDisplay& cimg_library::CImgDisplay::assign ( const unsigned int  dimw,
const unsigned int  dimh,
const char *  title = 0,
const unsigned int  normalization_type = 3,
const unsigned int  events_type = 3,
const bool  fullscreen_flag = false,
const bool  closed_flag = false 
) [inline]

In-place version of the previous constructor.

Definition at line 6518 of file cimg.h.

CImgDisplay& cimg_library::CImgDisplay::assign (  )  [inline]

In-place version of the destructor.

Definition at line 6513 of file cimg.h.

Referenced by cimg_library::CImgList< T >::display(), and cimg_library::CImg< T >::display().

CImgDisplay& cimg_library::CImgDisplay::close (  )  [inline]

Close a visible display.

Definition at line 6590 of file cimg.h.

int cimg_library::CImgDisplay::dimx (  )  const [inline]

Return display width.

Definition at line 6214 of file cimg.h.

Referenced by cimg_library::cimg::dialog().

int cimg_library::CImgDisplay::dimy (  )  const [inline]

Return display height.

Definition at line 6219 of file cimg.h.

Referenced by cimg_library::cimg::dialog().

template<typename T >
CImgDisplay& cimg_library::CImgDisplay::display ( const CImg< T > &  img  )  [inline]

Display an image in a window.

Definition at line 6548 of file cimg.h.

References cimg_library::CImg< T >::width.

template<typename T >
CImgDisplay& cimg_library::CImgDisplay::display ( const CImgList< T > &  list,
const char  axe = 'x',
const char  align = 'c' 
) [inline]

Display an image list CImgList<T> into a display window.

First, all images of the list are appended into a single image used for visualization, then this image is displayed in the current display window.

Parameters:
list : The list of images to display.
axe : The axe used to append the image for visualization. Can be 'x' (default),'y','z' or 'v'.
align : Defines the relative alignment of images when displaying images of different sizes. Can be 'c' (centered, which is the default), 'p' (top alignment) and 'n' (bottom aligment).
See also:
CImg::get_append()

Definition at line 6304 of file cimg.h.

References cimg_library::CImgList< T >::get_append().

Referenced by cimg_library::cimg::dialog(), cimg_library::CImg< T >::display(), and cimg_library::CImg< T >::get_coordinates().

template<typename tp , typename tf , typename tc >
CImgDisplay& cimg_library::CImgDisplay::display_object3d ( const tp &  points,
const CImgList< tf > &  primitives,
const CImgList< tc > &  colors,
const bool  centering = true,
const int  render_static = 4,
const int  render_motion = 1,
const bool  double_sided = false,
const float  focale = 500.0f,
const float  ambient_light = 0.05f,
const bool  display_axes = true,
float *const   pose_matrix = 0,
const float  opacity = 1.0f 
) [inline]

Display a 3D object.

Definition at line 6356 of file cimg.h.

template<typename tp , typename tf , typename tc , typename to >
CImgDisplay& cimg_library::CImgDisplay::display_object3d ( const tp &  points,
const CImgList< tf > &  primitives,
const CImgList< tc > &  colors,
const to &  opacities,
const bool  centering = true,
const int  render_static = 4,
const int  render_motion = 1,
const bool  double_sided = false,
const float  focale = 500.0f,
const float  ambient_light = 0.05f,
const bool  display_axes = true,
float *const   pose_matrix = 0 
) [inline]

Display a 3d object.

Definition at line 6340 of file cimg.h.

CImgDisplay& cimg_library::CImgDisplay::flush (  )  [inline]

Clear mouse and key states of the current display.

Definition at line 6402 of file cimg.h.

float cimg_library::CImgDisplay::frames_per_second (  )  [inline]

Return the frame per second rate.

Definition at line 6282 of file cimg.h.

References cimg_library::cimg::time().

CImgDisplay& cimg_library::CImgDisplay::hide_mouse (  )  [inline]

Hide mouse pointer.

Definition at line 6572 of file cimg.h.

bool cimg_library::CImgDisplay::is_empty (  )  const [inline]

Return true is display is empty.

Definition at line 6204 of file cimg.h.

bool cimg_library::CImgDisplay::is_key ( const unsigned int *const   keyseq,
const unsigned int  N,
const bool  remove = true 
) [inline]

Test if a key sequence has been typed.

Definition at line 6480 of file cimg.h.

bool cimg_library::CImgDisplay::is_key ( const unsigned int  key1,
const unsigned int  key2,
const unsigned int  key3,
const unsigned int  key4,
const unsigned int  key5,
const unsigned int  key6,
const unsigned int  key7,
const unsigned int  key8,
const unsigned int  key9,
const bool  remove 
) [inline]

Test if a key sequence has been typed.

Definition at line 6472 of file cimg.h.

bool cimg_library::CImgDisplay::is_key ( const unsigned int  key1,
const unsigned int  key2,
const unsigned int  key3,
const unsigned int  key4,
const unsigned int  key5,
const unsigned int  key6,
const unsigned int  key7,
const unsigned int  key8,
const bool  remove 
) [inline]

Test if a key sequence has been typed.

Definition at line 6464 of file cimg.h.

bool cimg_library::CImgDisplay::is_key ( const unsigned int  key1,
const unsigned int  key2,
const unsigned int  key3,
const unsigned int  key4,
const unsigned int  key5,
const unsigned int  key6,
const unsigned int  key7,
const bool  remove 
) [inline]

Test if a key sequence has been typed.

Definition at line 6456 of file cimg.h.

bool cimg_library::CImgDisplay::is_key ( const unsigned int  key1,
const unsigned int  key2,
const unsigned int  key3,
const unsigned int  key4,
const unsigned int  key5,
const unsigned int  key6,
const bool  remove 
) [inline]

Test if a key sequence has been typed.

Definition at line 6449 of file cimg.h.

bool cimg_library::CImgDisplay::is_key ( const unsigned int  key1,
const unsigned int  key2,
const unsigned int  key3,
const unsigned int  key4,
const unsigned int  key5,
const bool  remove 
) [inline]

Test if a key sequence has been typed.

Definition at line 6442 of file cimg.h.

bool cimg_library::CImgDisplay::is_key ( const unsigned int  key1,
const unsigned int  key2,
const unsigned int  key3,
const unsigned int  key4,
const bool  remove 
) [inline]

Test if a key sequence has been typed.

Definition at line 6435 of file cimg.h.

bool cimg_library::CImgDisplay::is_key ( const unsigned int  key1,
const unsigned int  key2,
const unsigned int  key3,
const bool  remove 
) [inline]

Test if a key sequence has been typed.

Definition at line 6429 of file cimg.h.

bool cimg_library::CImgDisplay::is_key ( const unsigned int  key1,
const unsigned int  key2,
const bool  remove 
) [inline]

Test if a key sequence has been typed.

Definition at line 6423 of file cimg.h.

bool cimg_library::CImgDisplay::is_key ( const unsigned int  key1,
const bool  remove 
) [inline]

Test if a key has been pressed.

Definition at line 6417 of file cimg.h.

bool cimg_library::CImgDisplay::is_key ( const bool  remove = false  )  [inline]

Test if any key has been pressed.

Definition at line 6411 of file cimg.h.

Referenced by cimg_library::CImg< T >::get_coordinates().

CImgDisplay& cimg_library::CImgDisplay::move ( const int  posx,
const int  posy 
) [inline]

Move window.

Definition at line 6560 of file cimg.h.

Referenced by cimg_library::cimg::dialog().

cimg_library::CImgDisplay::operator bool (  )  const [inline]

Return false if display is empty.

Definition at line 6209 of file cimg.h.

template<typename T >
CImgDisplay& cimg_library::CImgDisplay::operator<< ( const CImgList< T > &  list  )  [inline]

Display an image CImg<T> into a display window.

Definition at line 6314 of file cimg.h.

template<typename T >
CImgDisplay& cimg_library::CImgDisplay::operator<< ( const CImg< T > &  img  )  [inline]

Display an image CImg<T> into a display window.

Definition at line 6309 of file cimg.h.

CImgDisplay& cimg_library::CImgDisplay::operator= ( const CImgDisplay disp  )  [inline]

Assignment operator.

Definition at line 6199 of file cimg.h.

CImgDisplay& cimg_library::CImgDisplay::paint (  )  [inline]

Re-paint image content in window.

Definition at line 6601 of file cimg.h.

template<typename T >
CImgDisplay& cimg_library::CImgDisplay::render ( const CImg< T > &  img  )  [inline]

Render image buffer into GDI native image format.

Definition at line 6606 of file cimg.h.

References cimg_library::CImg< T >::width.

CImgDisplay& cimg_library::CImgDisplay::resize ( const int  width,
const int  height,
const bool  redraw = true 
) [inline]

Resize window.

Definition at line 6554 of file cimg.h.

CImgDisplay& cimg_library::CImgDisplay::resize ( const bool  redraw = true  )  [inline]

Resize a display window in its current size.

Definition at line 6333 of file cimg.h.

References cimg_library::resize().

CImgDisplay& cimg_library::CImgDisplay::resize ( const CImgDisplay disp,
const bool  redraw = true 
) [inline]

Resize a display window using the size of the given display disp.

Definition at line 6328 of file cimg.h.

References height, cimg_library::resize(), and width.

template<typename T >
CImgDisplay& cimg_library::CImgDisplay::resize ( const CImg< T > &  img,
const bool  redraw = true 
) [inline]

Resize a display window with the size of an image.

Parameters:
img : Input image. image.width and image.height give the new dimensions of the display window.
redraw : If true (default), the current displayed image in the display window will be bloc-interpolated to fit the new dimensions. If false, a black image will be drawn in the resized window.

Definition at line 6323 of file cimg.h.

References cimg_library::CImg< T >::height, cimg_library::resize(), and cimg_library::CImg< T >::width.

Referenced by cimg_library::cimg::dialog(), and cimg_library::CImg< T >::get_coordinates().

static int cimg_library::CImgDisplay::screen_dimx (  )  [inline, static]

Return the width of the screen resolution.

Definition at line 6503 of file cimg.h.

Referenced by cimg_library::CImg< T >::get_coordinates().

static int cimg_library::CImgDisplay::screen_dimy (  )  [inline, static]

Return the height of the screen resolution.

Definition at line 6508 of file cimg.h.

Referenced by cimg_library::CImg< T >::get_coordinates().

CImgDisplay& cimg_library::CImgDisplay::set_mouse ( const int  posx,
const int  posy 
) [inline]

Move mouse pointer to a specific location.

Definition at line 6566 of file cimg.h.

CImgDisplay& cimg_library::CImgDisplay::set_title ( const char *  format,
  ... 
) [inline]

Set the window title.

Definition at line 6595 of file cimg.h.

CImgDisplay& cimg_library::CImgDisplay::show (  )  [inline]

Show a closed display.

Definition at line 6585 of file cimg.h.

Referenced by cimg_library::CImg< T >::get_coordinates().

CImgDisplay& cimg_library::CImgDisplay::show_mouse (  )  [inline]

Show mouse pointer.

Definition at line 6577 of file cimg.h.

template<typename T >
const CImgDisplay& cimg_library::CImgDisplay::snapshot ( CImg< T > &  img  )  const [inline]

Take a snapshot of the display in the specified image.

Definition at line 6612 of file cimg.h.

References cimg_library::CImg< T >::assign().

Referenced by cimg_library::CImg< T >::assign(), and cimg_library::CImg< T >::CImg().

CImgDisplay& cimg_library::CImgDisplay::toggle_fullscreen (  )  [inline]

Toggle fullscreen mode.

Definition at line 6374 of file cimg.h.

Referenced by cimg_library::CImg< T >::get_coordinates().

static void cimg_library::CImgDisplay::wait ( CImgDisplay disp1,
CImgDisplay disp2,
CImgDisplay disp3,
CImgDisplay disp4 
) [inline, static]

Wait for any event occuring either on the display disp1, disp2, disp3 or disp4.

Definition at line 6276 of file cimg.h.

References is_event.

static void cimg_library::CImgDisplay::wait ( CImgDisplay disp1,
CImgDisplay disp2,
CImgDisplay disp3 
) [inline, static]

Wait for any event occuring either on the display disp1, disp2 or disp3.

Definition at line 6270 of file cimg.h.

References is_event.

static void cimg_library::CImgDisplay::wait ( CImgDisplay disp1,
CImgDisplay disp2 
) [inline, static]

Wait for any event occuring either on the display disp1 or disp2.

Definition at line 6264 of file cimg.h.

References is_event.

static void cimg_library::CImgDisplay::wait ( CImgDisplay disp1  )  [inline, static]

Wait for any event occuring on the display disp1.

Definition at line 6258 of file cimg.h.

References is_event.

CImgDisplay& cimg_library::CImgDisplay::wait (  )  [inline]

Wait for an event occuring on the current display.

Definition at line 6252 of file cimg.h.

References cimg_library::cimg::wait().

CImgDisplay& cimg_library::CImgDisplay::wait ( const unsigned int  milliseconds  )  [inline]

Synchronized waiting function. Same as cimg::wait().

See also:
cimg::wait()

Definition at line 6246 of file cimg.h.

References cimg_library::cimg::wait().

Referenced by cimg_library::cimg::dialog(), and cimg_library::CImg< T >::get_coordinates().

static void cimg_library::CImgDisplay::wait_all (  )  [inline, static]

Wait for a window event in any CImg window.

Definition at line 6582 of file cimg.h.

int cimg_library::CImgDisplay::window_dimx (  )  const [inline]

Return display window width.

Definition at line 6224 of file cimg.h.

int cimg_library::CImgDisplay::window_dimy (  )  const [inline]

Return display window height.

Definition at line 6229 of file cimg.h.

int cimg_library::CImgDisplay::window_posx (  )  const [inline]

Return X-coordinate of the window.

Definition at line 6234 of file cimg.h.

int cimg_library::CImgDisplay::window_posy (  )  const [inline]

Return Y-coordinate of the window.

Definition at line 6239 of file cimg.h.


Member Data Documentation

volatile unsigned int& cimg_library::CImgDisplay::button

volatile unsigned int cimg_library::CImgDisplay::buttons[512]

Button state of the mouse.

Definition at line 6054 of file cimg.h.

Range of events detected by the display.

Definition at line 6030 of file cimg.h.

Referenced by cimg_library::CImg< T >::get_coordinates().

Definition at line 6083 of file cimg.h.

Definition at line 6084 of file cimg.h.

Definition at line 6084 of file cimg.h.

Event state of the window.

Definition at line 6078 of file cimg.h.

Referenced by wait().

Fullscreen state of the display.

Definition at line 6081 of file cimg.h.

Referenced by cimg_library::CImg< T >::get_coordinates().

Moved state of the window.

Definition at line 6075 of file cimg.h.

Resized state of the window.

Definition at line 6072 of file cimg.h.

Referenced by cimg_library::cimg::dialog(), and cimg_library::CImg< T >::get_coordinates().

volatile unsigned int& cimg_library::CImgDisplay::key

volatile unsigned int cimg_library::CImgDisplay::keys[512]

Definition at line 6062 of file cimg.h.

Definition at line 6083 of file cimg.h.

Definition at line 6083 of file cimg.h.

X-coordinate of the mouse pointer on the display.

Definition at line 6048 of file cimg.h.

Referenced by cimg_library::cimg::dialog(), and cimg_library::CImg< T >::get_coordinates().

Y-coordinate of the mouse pointer on the display.

Definition at line 6051 of file cimg.h.

Referenced by cimg_library::cimg::dialog(), and cimg_library::CImg< T >::get_coordinates().

Normalization type used for the display.

Definition at line 6027 of file cimg.h.

Referenced by cimg_library::CImg< T >::get_coordinates().

Key value if released.

Definition at line 6065 of file cimg.h.

volatile unsigned int cimg_library::CImgDisplay::released_keys[512]

Definition at line 6066 of file cimg.h.

Definition at line 6084 of file cimg.h.

Display title.

Definition at line 6033 of file cimg.h.

Wheel state of the mouse.

Definition at line 6058 of file cimg.h.

Referenced by cimg_library::CImg< T >::get_coordinates().

Height of the underlying window.

Definition at line 6045 of file cimg.h.

Width of the underlying window.

Definition at line 6042 of file cimg.h.

X-pos of the display on the screen.

Definition at line 6036 of file cimg.h.

Y-pos of the display on the screen.

Definition at line 6039 of file cimg.h.


The documentation for this struct was generated from the following file:

Generated on Tue Nov 10 01:36:36 2009 for lux by  doxygen 1.5.9