Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CImgDisplay Struct Reference

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

#include <CImg.h>

Public Member Functions

Overloaded Operators
template<typename t >
CImgDisplayoperator= (const CImg< t > &img)
 
template<typename t >
CImgDisplayoperator= (const CImgList< t > &list)
 
CImgDisplayoperator= (const CImgDisplay &disp)
 Operator=(). More...
 
 operator bool () const
 Return true if display is not empty. More...
 
Instance Checking
bool is_empty () const
 Return true is display is empty. More...
 
bool is_key (const bool remove=false)
 Test if any key has been pressed. More...
 
bool is_key (const unsigned int key1, const bool remove)
 Test if a key has been pressed. More...
 
bool is_key (const unsigned int key1, const unsigned int key2, const bool remove)
 Test if a key sequence has been typed. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
bool is_key (const unsigned int *const keyseq, const unsigned int N, const bool remove=true)
 Test if a key sequence has been typed. More...
 
void _update_iskey (const unsigned int key, const bool pressed=true)
 

Public Attributes

unsigned int width
 Width of the display. More...
 
unsigned int height
 Height of the display. More...
 
volatile unsigned int window_width
 Width of the underlying window. More...
 
volatile unsigned int window_height
 Height of the underlying window. More...
 
volatile int window_x
 X-pos of the display on the screen. More...
 
volatile int window_y
 Y-pos of the display on the screen. More...
 
volatile int mouse_x
 X-coordinate of the mouse pointer on the display. More...
 
volatile int mouse_y
 Y-coordinate of the mouse pointer on the display. More...
 
unsigned int normalization
 Normalization type used for the display. More...
 
char * title
 Display title. More...
 
volatile unsigned int buttons [512]
 Button state of the mouse. More...
 
volatile unsigned int & button
 
volatile int wheel
 Wheel state of the mouse. More...
 
volatile unsigned int & key
 Key value if pressed. More...
 
volatile unsigned int keys [512]
 
volatile unsigned int & released_key
 Key value if released. More...
 
volatile unsigned int released_keys [512]
 
volatile bool is_closed
 Closed state of the window. More...
 
volatile bool is_resized
 Resized state of the window. More...
 
volatile bool is_moved
 Moved state of the window. More...
 
volatile bool is_event
 Event state of the window. More...
 
volatile bool is_keyESC
 Current state of the corresponding key (exists for all referenced keys). More...
 
volatile bool is_keyF1
 
volatile bool is_keyF2
 
volatile bool is_keyF3
 
volatile bool is_keyF4
 
volatile bool is_keyF5
 
volatile bool is_keyF6
 
volatile bool is_keyF7
 
volatile bool is_keyF8
 
volatile bool is_keyF9
 
volatile bool is_keyF10
 
volatile bool is_keyF11
 
volatile bool is_keyF12
 
volatile bool is_keyPAUSE
 
volatile bool is_key1
 
volatile bool is_key2
 
volatile bool is_key3
 
volatile bool is_key4
 
volatile bool is_key5
 
volatile bool is_key6
 
volatile bool is_key7
 
volatile bool is_key8
 
volatile bool is_key9
 
volatile bool is_key0
 
volatile bool is_keyBACKSPACE
 
volatile bool is_keyINSERT
 
volatile bool is_keyHOME
 
volatile bool is_keyPAGEUP
 
volatile bool is_keyTAB
 
volatile bool is_keyQ
 
volatile bool is_keyW
 
volatile bool is_keyE
 
volatile bool is_keyR
 
volatile bool is_keyT
 
volatile bool is_keyY
 
volatile bool is_keyU
 
volatile bool is_keyI
 
volatile bool is_keyO
 
volatile bool is_keyP
 
volatile bool is_keyDELETE
 
volatile bool is_keyEND
 
volatile bool is_keyPAGEDOWN
 
volatile bool is_keyCAPSLOCK
 
volatile bool is_keyA
 
volatile bool is_keyS
 
volatile bool is_keyD
 
volatile bool is_keyF
 
volatile bool is_keyG
 
volatile bool is_keyH
 
volatile bool is_keyJ
 
volatile bool is_keyK
 
volatile bool is_keyL
 
volatile bool is_keyENTER
 
volatile bool is_keySHIFTLEFT
 
volatile bool is_keyZ
 
volatile bool is_keyX
 
volatile bool is_keyC
 
volatile bool is_keyV
 
volatile bool is_keyB
 
volatile bool is_keyN
 
volatile bool is_keyM
 
volatile bool is_keySHIFTRIGHT
 
volatile bool is_keyARROWUP
 
volatile bool is_keyCTRLLEFT
 
volatile bool is_keyAPPLEFT
 
volatile bool is_keyALT
 
volatile bool is_keySPACE
 
volatile bool is_keyALTGR
 
volatile bool is_keyAPPRIGHT
 
volatile bool is_keyMENU
 
volatile bool is_keyCTRLRIGHT
 
volatile bool is_keyARROWLEFT
 
volatile bool is_keyARROWDOWN
 
volatile bool is_keyARROWRIGHT
 
volatile bool is_keyPAD0
 
volatile bool is_keyPAD1
 
volatile bool is_keyPAD2
 
volatile bool is_keyPAD3
 
volatile bool is_keyPAD4
 
volatile bool is_keyPAD5
 
volatile bool is_keyPAD6
 
volatile bool is_keyPAD7
 
volatile bool is_keyPAD8
 
volatile bool is_keyPAD9
 
volatile bool is_keyPADADD
 
volatile bool is_keyPADSUB
 
volatile bool is_keyPADMUL
 
volatile bool is_keyPADDIV
 
bool is_fullscreen
 Fullscreen state of the display. More...
 
float fps_fps
 
float min
 
float max
 
unsigned long timer
 
unsigned long fps_frames
 
unsigned long fps_timer
 

Constructors / Destructor / Instance Management

 ~CImgDisplay ()
 Destructor. More...
 
 CImgDisplay ()
 Create an empty display window. More...
 
 CImgDisplay (const unsigned int dimw, const unsigned int dimh, const char *title=0, const unsigned int normalization_type=3, const bool fullscreen_flag=false, const bool closed_flag=false)
 Create a display window with a specified size pwidth x height. More...
 
template<typename T >
 CImgDisplay (const CImg< T > &img, const char *title=0, const unsigned int normalization_type=3, const bool fullscreen_flag=false, const bool closed_flag=false)
 Create a display window from an image. More...
 
template<typename T >
 CImgDisplay (const CImgList< T > &list, const char *title=0, const unsigned int normalization_type=3, const bool fullscreen_flag=false, const bool closed_flag=false)
 Create a display window from an image list. More...
 
 CImgDisplay (const CImgDisplay &disp)
 Create a display window by copying another one. More...
 
CImgDisplayassign ()
 In-place version of the destructor. More...
 
CImgDisplayassign (const unsigned int dimw, const unsigned int dimh, const char *title=0, const unsigned int normalization_type=3, const bool fullscreen_flag=false, const bool closed_flag=false)
 In-place version of the previous constructor. More...
 
template<typename T >
CImgDisplayassign (const CImg< T > &img, const char *title=0, const unsigned int normalization_type=3, const bool fullscreen_flag=false, const bool closed_flag=false)
 In-place version of the previous constructor. More...
 
template<typename T >
CImgDisplayassign (const CImgList< T > &list, const char *title=0, const unsigned int normalization_type=3, const bool fullscreen_flag=false, const bool closed_flag=false)
 In-place version of the previous constructor. More...
 
CImgDisplayassign (const CImgDisplay &disp)
 In-place version of the previous constructor. More...
 
static CImgDisplayempty ()
 Return a reference to an empty display. More...
 
static unsigned int _fitscreen (const unsigned int dx, const unsigned int dy=1, const unsigned int dz=1, const int dmin=128, const int dmax=-85, const bool return_last=false)
 

Instance Characteristics

int dimx () const
 Return display width. More...
 
int dimy () const
 Return display height. More...
 
int window_dimx () const
 Return display window width. More...
 
int window_dimy () const
 Return display window height. More...
 
int window_posx () const
 Return X-coordinate of the window. More...
 
int window_posy () const
 Return Y-coordinate of the window. More...
 
float frames_per_second ()
 Return the frame per second rate. More...
 
static int screen_dimx ()
 Return the width of the screen resolution. More...
 
static int screen_dimy ()
 Return the height of the screen resolution. More...
 

Display Manipulation

template<typename T >
CImgDisplaydisplay (const CImg< T > &img)
 Display an image in a window. More...
 
template<typename T >
CImgDisplaydisplay (const CImgList< T > &list, const char axis='x', const char align='p')
 Display an image list CImgList<T> into a display window. More...
 
template<typename T >
CImgDisplayresize (const CImg< T > &img, const bool redraw=true)
 Resize a display window with the size of an image. More...
 
CImgDisplayresize (const CImgDisplay &disp, const bool redraw=true)
 Resize a display window using the size of the given display disp. More...
 
CImgDisplayresize (const bool redraw=true)
 Resize a display window in its current size. More...
 
CImgDisplayresize (const int width, const int height, const bool redraw=true)
 Resize window. More...
 
CImgDisplayfullscreen (const bool redraw=true)
 Set fullscreen mode. More...
 
CImgDisplaynormalscreen (const bool redraw=true)
 Set normal screen mode. More...
 
CImgDisplaytoggle_fullscreen (const bool redraw=true)
 Toggle fullscreen mode. More...
 
CImgDisplayshow ()
 Show a closed display. More...
 
CImgDisplayclose ()
 Close a visible display. More...
 
CImgDisplaymove (const int posx, const int posy)
 Move window. More...
 
CImgDisplayshow_mouse ()
 Show mouse pointer. More...
 
CImgDisplayhide_mouse ()
 Hide mouse pointer. More...
 
CImgDisplayset_mouse (const int posx, const int posy)
 Move mouse pointer to a specific location. More...
 
CImgDisplayset_title (const char *format,...)
 Set the window title. More...
 
template<typename T >
CImgDisplayrender (const CImg< T > &img)
 Render image buffer into GDI native image format. More...
 
CImgDisplaypaint ()
 Re-paint image content in window. More...
 
template<typename T >
const CImgDisplaysnapshot (CImg< T > &img) const
 Take a snapshot of the display in the specified image. More...
 
CImgDisplayflush ()
 Clear all events of the current display. More...
 
CImgDisplaywait (const unsigned int milliseconds)
 Synchronized waiting function. Same as cimg::wait(). More...
 
CImgDisplaywait ()
 Wait for an event occuring on the current display. More...
 
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 void wait (CImgDisplay &disp1)
 Wait for any event occuring on the display disp1. More...
 
static void wait (CImgDisplay &disp1, CImgDisplay &disp2)
 Wait for any event occuring either on the display disp1 or disp2. More...
 
static void wait (CImgDisplay &disp1, CImgDisplay &disp2, CImgDisplay &disp3)
 Wait for any event occuring either on the display disp1, disp2 or disp3. More...
 
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. More...
 
static void wait_all ()
 Wait for a window event in any CImg window. More...
 

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 6114 of file CImg.h.

Constructor & Destructor Documentation

~CImgDisplay ( )
inline

Destructor.

Definition at line 6313 of file CImg.h.

References CImgDisplay::assign().

6313  {
6314  assign();
6315  }
CImgDisplay & assign()
In-place version of the destructor.
Definition: CImg.h:6388

Here is the call graph for this function:

CImgDisplay ( )
inline

Create an empty display window.

Definition at line 6318 of file CImg.h.

6318  :
6319  width(0),height(0),window_width(0),window_height(0),mouse_x(-1),mouse_y(-1),
6321  is_closed(true),is_resized(false),is_moved(false),is_event(false),is_fullscreen(false),min(0),max(0) {}
volatile int mouse_x
X-coordinate of the mouse pointer on the display.
Definition: CImg.h:6135
volatile unsigned int & key
Key value if pressed.
Definition: CImg.h:6154
char * title
Display title.
Definition: CImg.h:6144
unsigned int height
Height of the display.
Definition: CImg.h:6120
volatile unsigned int window_width
Width of the underlying window.
Definition: CImg.h:6123
volatile int wheel
Wheel state of the mouse.
Definition: CImg.h:6151
volatile bool is_resized
Resized state of the window.
Definition: CImg.h:6165
volatile unsigned int & released_key
Key value if released.
Definition: CImg.h:6158
unsigned int width
Width of the display.
Definition: CImg.h:6117
volatile unsigned int keys[512]
Definition: CImg.h:6155
volatile bool is_moved
Moved state of the window.
Definition: CImg.h:6168
volatile int mouse_y
Y-coordinate of the mouse pointer on the display.
Definition: CImg.h:6138
bool is_fullscreen
Fullscreen state of the display.
Definition: CImg.h:6264
unsigned int normalization
Normalization type used for the display.
Definition: CImg.h:6141
volatile unsigned int window_height
Height of the underlying window.
Definition: CImg.h:6126
volatile bool is_event
Event state of the window.
Definition: CImg.h:6171
volatile bool is_closed
Closed state of the window.
Definition: CImg.h:6162
volatile unsigned int buttons[512]
Button state of the mouse.
Definition: CImg.h:6147
volatile unsigned int & button
Definition: CImg.h:6148
volatile unsigned int released_keys[512]
Definition: CImg.h:6159
CImgDisplay ( const unsigned int  dimw,
const unsigned int  dimh,
const char *  title = 0,
const unsigned int  normalization_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
dimwWidth of the display window.
dimhHeight of the display window.
titleTitle of the display window.
normalization_typeNormalization type of the display window (0=none, 1=always, 2=once).
fullscreen_flag: Fullscreen mode.
closed_flag: Initially visible mode. A black image will be initially displayed in the display window.

Definition at line 6332 of file CImg.h.

References CImgDisplay::assign(), and CImgDisplay::title.

6334  :
6335  width(0),height(0),window_width(0),window_height(0),mouse_x(-1),mouse_y(-1),
6337  is_closed(true),is_resized(false),is_moved(false),is_event(false),is_fullscreen(false),min(0),max(0) {
6338  assign(dimw,dimh,title,normalization_type,fullscreen_flag,closed_flag);
6339  }
volatile int mouse_x
X-coordinate of the mouse pointer on the display.
Definition: CImg.h:6135
volatile unsigned int & key
Key value if pressed.
Definition: CImg.h:6154
char * title
Display title.
Definition: CImg.h:6144
unsigned int height
Height of the display.
Definition: CImg.h:6120
volatile unsigned int window_width
Width of the underlying window.
Definition: CImg.h:6123
volatile int wheel
Wheel state of the mouse.
Definition: CImg.h:6151
volatile bool is_resized
Resized state of the window.
Definition: CImg.h:6165
CImgDisplay & assign()
In-place version of the destructor.
Definition: CImg.h:6388
volatile unsigned int & released_key
Key value if released.
Definition: CImg.h:6158
unsigned int width
Width of the display.
Definition: CImg.h:6117
volatile unsigned int keys[512]
Definition: CImg.h:6155
volatile bool is_moved
Moved state of the window.
Definition: CImg.h:6168
volatile int mouse_y
Y-coordinate of the mouse pointer on the display.
Definition: CImg.h:6138
bool is_fullscreen
Fullscreen state of the display.
Definition: CImg.h:6264
unsigned int normalization
Normalization type used for the display.
Definition: CImg.h:6141
volatile unsigned int window_height
Height of the underlying window.
Definition: CImg.h:6126
volatile bool is_event
Event state of the window.
Definition: CImg.h:6171
volatile bool is_closed
Closed state of the window.
Definition: CImg.h:6162
volatile unsigned int buttons[512]
Button state of the mouse.
Definition: CImg.h:6147
volatile unsigned int & button
Definition: CImg.h:6148
volatile unsigned int released_keys[512]
Definition: CImg.h:6159

Here is the call graph for this function:

CImgDisplay ( const CImg< T > &  img,
const char *  title = 0,
const unsigned int  normalization_type = 3,
const bool  fullscreen_flag = false,
const bool  closed_flag = false 
)
inlineexplicit

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.
fullscreen_flag: Fullscreen mode.
closed_flag: Initially visible mode.

Definition at line 6349 of file CImg.h.

References CImgDisplay::assign(), and CImgDisplay::title.

6351  :
6352  width(0),height(0),window_width(0),window_height(0),mouse_x(-1),mouse_y(-1),
6354  is_closed(true),is_resized(false),is_moved(false),is_event(false),is_fullscreen(false),min(0),max(0) {
6355  assign(img,title,normalization_type,fullscreen_flag,closed_flag);
6356  }
volatile int mouse_x
X-coordinate of the mouse pointer on the display.
Definition: CImg.h:6135
volatile unsigned int & key
Key value if pressed.
Definition: CImg.h:6154
char * title
Display title.
Definition: CImg.h:6144
unsigned int height
Height of the display.
Definition: CImg.h:6120
volatile unsigned int window_width
Width of the underlying window.
Definition: CImg.h:6123
volatile int wheel
Wheel state of the mouse.
Definition: CImg.h:6151
volatile bool is_resized
Resized state of the window.
Definition: CImg.h:6165
CImgDisplay & assign()
In-place version of the destructor.
Definition: CImg.h:6388
volatile unsigned int & released_key
Key value if released.
Definition: CImg.h:6158
unsigned int width
Width of the display.
Definition: CImg.h:6117
volatile unsigned int keys[512]
Definition: CImg.h:6155
volatile bool is_moved
Moved state of the window.
Definition: CImg.h:6168
volatile int mouse_y
Y-coordinate of the mouse pointer on the display.
Definition: CImg.h:6138
bool is_fullscreen
Fullscreen state of the display.
Definition: CImg.h:6264
unsigned int normalization
Normalization type used for the display.
Definition: CImg.h:6141
volatile unsigned int window_height
Height of the underlying window.
Definition: CImg.h:6126
volatile bool is_event
Event state of the window.
Definition: CImg.h:6171
volatile bool is_closed
Closed state of the window.
Definition: CImg.h:6162
volatile unsigned int buttons[512]
Button state of the mouse.
Definition: CImg.h:6147
volatile unsigned int & button
Definition: CImg.h:6148
volatile unsigned int released_keys[512]
Definition: CImg.h:6159

Here is the call graph for this function:

CImgDisplay ( const CImgList< T > &  list,
const char *  title = 0,
const unsigned int  normalization_type = 3,
const bool  fullscreen_flag = false,
const bool  closed_flag = false 
)
inlineexplicit

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.
fullscreen_flag: Fullscreen mode.
closed_flag: Initially visible mode.

Definition at line 6366 of file CImg.h.

References CImgDisplay::assign(), and CImgDisplay::title.

6368  :
6369  width(0),height(0),window_width(0),window_height(0),mouse_x(-1),mouse_y(-1),
6371  is_closed(true),is_resized(false),is_moved(false),is_event(false),is_fullscreen(false),min(0),max(0) {
6372  assign(list,title,normalization_type,fullscreen_flag,closed_flag);
6373  }
volatile int mouse_x
X-coordinate of the mouse pointer on the display.
Definition: CImg.h:6135
volatile unsigned int & key
Key value if pressed.
Definition: CImg.h:6154
char * title
Display title.
Definition: CImg.h:6144
unsigned int height
Height of the display.
Definition: CImg.h:6120
volatile unsigned int window_width
Width of the underlying window.
Definition: CImg.h:6123
volatile int wheel
Wheel state of the mouse.
Definition: CImg.h:6151
volatile bool is_resized
Resized state of the window.
Definition: CImg.h:6165
CImgDisplay & assign()
In-place version of the destructor.
Definition: CImg.h:6388
volatile unsigned int & released_key
Key value if released.
Definition: CImg.h:6158
unsigned int width
Width of the display.
Definition: CImg.h:6117
volatile unsigned int keys[512]
Definition: CImg.h:6155
volatile bool is_moved
Moved state of the window.
Definition: CImg.h:6168
volatile int mouse_y
Y-coordinate of the mouse pointer on the display.
Definition: CImg.h:6138
bool is_fullscreen
Fullscreen state of the display.
Definition: CImg.h:6264
unsigned int normalization
Normalization type used for the display.
Definition: CImg.h:6141
volatile unsigned int window_height
Height of the underlying window.
Definition: CImg.h:6126
volatile bool is_event
Event state of the window.
Definition: CImg.h:6171
volatile bool is_closed
Closed state of the window.
Definition: CImg.h:6162
volatile unsigned int buttons[512]
Button state of the mouse.
Definition: CImg.h:6147
volatile unsigned int & button
Definition: CImg.h:6148
volatile unsigned int released_keys[512]
Definition: CImg.h:6159

Here is the call graph for this function:

CImgDisplay ( const CImgDisplay disp)
inline

Create a display window by copying another one.

Parameters
disp: Display window to copy.

Definition at line 6379 of file CImg.h.

References CImgDisplay::assign().

6379  :
6380  width(0),height(0),window_width(0),window_height(0),mouse_x(-1),mouse_y(-1),
6382  is_closed(true),is_resized(false),is_moved(false),is_event(false),is_fullscreen(false),min(0),max(0) {
6383  assign(disp);
6384  }
volatile int mouse_x
X-coordinate of the mouse pointer on the display.
Definition: CImg.h:6135
volatile unsigned int & key
Key value if pressed.
Definition: CImg.h:6154
char * title
Display title.
Definition: CImg.h:6144
unsigned int height
Height of the display.
Definition: CImg.h:6120
volatile unsigned int window_width
Width of the underlying window.
Definition: CImg.h:6123
volatile int wheel
Wheel state of the mouse.
Definition: CImg.h:6151
volatile bool is_resized
Resized state of the window.
Definition: CImg.h:6165
CImgDisplay & assign()
In-place version of the destructor.
Definition: CImg.h:6388
volatile unsigned int & released_key
Key value if released.
Definition: CImg.h:6158
unsigned int width
Width of the display.
Definition: CImg.h:6117
volatile unsigned int keys[512]
Definition: CImg.h:6155
volatile bool is_moved
Moved state of the window.
Definition: CImg.h:6168
volatile int mouse_y
Y-coordinate of the mouse pointer on the display.
Definition: CImg.h:6138
bool is_fullscreen
Fullscreen state of the display.
Definition: CImg.h:6264
unsigned int normalization
Normalization type used for the display.
Definition: CImg.h:6141
volatile unsigned int window_height
Height of the underlying window.
Definition: CImg.h:6126
volatile bool is_event
Event state of the window.
Definition: CImg.h:6171
volatile bool is_closed
Closed state of the window.
Definition: CImg.h:6162
volatile unsigned int buttons[512]
Button state of the mouse.
Definition: CImg.h:6147
volatile unsigned int & button
Definition: CImg.h:6148
volatile unsigned int released_keys[512]
Definition: CImg.h:6159

Here is the call graph for this function:

Member Function Documentation

static unsigned int _fitscreen ( const unsigned int  dx,
const unsigned int  dy = 1,
const unsigned int  dz = 1,
const int  dmin = 128,
const int  dmax = -85,
const bool  return_last = false 
)
inlinestatic

Definition at line 6437 of file CImg.h.

References dy, CImgDisplay::screen_dimx(), and CImgDisplay::screen_dimy().

Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), and CImg< uintT >::get_select_graph().

6438  {
6439  unsigned int nw = dx + (dz>1?dz:0), nh = dy + (dz>1?dz:0);
6440  const unsigned int
6442  mw = dmin<0?(unsigned int)(sw*-dmin/100):(unsigned int)dmin,
6443  mh = dmin<0?(unsigned int)(sh*-dmin/100):(unsigned int)dmin,
6444  Mw = dmax<0?(unsigned int)(sw*-dmax/100):(unsigned int)dmax,
6445  Mh = dmax<0?(unsigned int)(sh*-dmax/100):(unsigned int)dmax;
6446  if (nw<mw) { nh = nh*mw/nw; nh+=(nh==0); nw = mw; }
6447  if (nh<mh) { nw = nw*mh/nh; nw+=(nw==0); nh = mh; }
6448  if (nw>Mw) { nh = nh*Mw/nw; nh+=(nh==0); nw = Mw; }
6449  if (nh>Mh) { nw = nw*Mh/nh; nw+=(nw==0); nh = Mh; }
6450  if (nw<mw) nw = mw;
6451  if (nh<mh) nh = mh;
6452  if (return_last) return nh;
6453  return nw;
6454  }
NT dx
static int screen_dimy()
Return the height of the screen resolution.
Definition: CImg.h:6660
static int screen_dimx()
Return the width of the screen resolution.
Definition: CImg.h:6655
NT dy

Here is the call graph for this function:

Here is the caller graph for this function:

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 
)
inlinestatic

Definition at line 6742 of file CImg.h.

References dy, s, x, and y.

6743  {
6744  unsigned int *const offx = new unsigned int[wd], *const offy = new unsigned int[hd+1], *poffx, *poffy;
6745  float s, curr, old;
6746  s = (float)ws/wd;
6747  poffx = offx; curr = 0; for (unsigned int x = 0; x<wd; ++x) { old=curr; curr+=s; *(poffx++) = (unsigned int)curr-(unsigned int)old; }
6748  s = (float)hs/hd;
6749  poffy = offy; curr = 0; for (unsigned int y = 0; y<hd; ++y) { old=curr; curr+=s; *(poffy++) = ws*((unsigned int)curr-(unsigned int)old); }
6750  *poffy = 0;
6751  poffy = offy;
6752  for (unsigned int y = 0; y<hd; ) {
6753  const T *ptr = ptrs;
6754  poffx = offx;
6755  for (unsigned int x = 0; x<wd; ++x) { *(ptrd++) = *ptr; ptr+=*(poffx++); }
6756  ++y;
6757  unsigned int dy=*(poffy++);
6758  for (;!dy && y<hd; std::memcpy(ptrd, ptrd-wd, sizeof(t)*wd), ++y, ptrd+=wd, dy=*(poffy++)) {}
6759  ptrs+=dy;
6760  }
6761  delete[] offx; delete[] offy;
6762  }
void int int REAL REAL * y
Definition: read.cpp:74
double s
Definition: blastest.C:80
void int int REAL * x
Definition: read.cpp:74
NT dy
void _update_iskey ( const unsigned int  key,
const bool  pressed = true 
)
inline

Definition at line 6586 of file CImg.h.

References _cimg_iskey_case, A, GridConversion::TestFixture::F1(), and GridConversion::TestFixture::F2().

6586  {
6587 #define _cimg_iskey_case(k) if (key==cimg::key##k) is_key##k = pressed;
6594  _cimg_iskey_case(BACKSPACE); _cimg_iskey_case(INSERT); _cimg_iskey_case(HOME);
6598  _cimg_iskey_case(DELETE); _cimg_iskey_case(END); _cimg_iskey_case(PAGEDOWN);
6604  _cimg_iskey_case(SHIFTRIGHT); _cimg_iskey_case(ARROWUP); _cimg_iskey_case(CTRLLEFT);
6605  _cimg_iskey_case(APPLEFT); _cimg_iskey_case(ALT); _cimg_iskey_case(SPACE); _cimg_iskey_case(ALTGR);
6606  _cimg_iskey_case(APPRIGHT); _cimg_iskey_case(MENU); _cimg_iskey_case(CTRLRIGHT);
6607  _cimg_iskey_case(ARROWLEFT); _cimg_iskey_case(ARROWDOWN); _cimg_iskey_case(ARROWRIGHT);
6611  _cimg_iskey_case(PAD9); _cimg_iskey_case(PADADD); _cimg_iskey_case(PADSUB);
6612  _cimg_iskey_case(PADMUL); _cimg_iskey_case(PADDIV);
6613  }
#define _cimg_iskey_case(k)
rational * A
Definition: vinci_lass.c:67
double F1(double x)
Simple test function fixture returns .
double F2(double x)
Simple test function fixture returns .

Here is the call graph for this function:

CImgDisplay& assign ( )
inline

In-place version of the destructor.

Definition at line 6388 of file CImg.h.

Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), CImgDisplay::assign(), CImgDisplay::CImgDisplay(), CImg< uintT >::display_graph(), CImgDisplay::empty(), CImg< uintT >::get_select_graph(), CImgDisplay::operator=(), and CImgDisplay::~CImgDisplay().

6388  {
6389  return *this;
6390  }

Here is the caller graph for this function:

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

In-place version of the previous constructor.

Definition at line 6393 of file CImg.h.

References CImgDisplay::title.

6395  {
6396  throw CImgDisplayException("CImgDisplay() : Display has been required but is not available (cimg_display=0)");
6397  const char* avoid_warning = title + dimw + dimh + normalization_type + (int)fullscreen_flag + (int)closed_flag;
6398  avoid_warning = 0;
6399  return *this;
6400  }
char * title
Display title.
Definition: CImg.h:6144
CImgDisplay& assign ( const CImg< T > &  img,
const char *  title = 0,
const unsigned int  normalization_type = 3,
const bool  fullscreen_flag = false,
const bool  closed_flag = false 
)
inline

In-place version of the previous constructor.

Definition at line 6404 of file CImg.h.

References CImgDisplay::assign(), CImgDisplay::title, and CImg< T >::width.

6406  {
6407  throw CImgDisplayException("CImgDisplay()::assign() : Display has been required but is not available (cimg_display=0)");
6408  const char* avoid_warning = title + img.width + normalization_type + (int)fullscreen_flag + (int)closed_flag;
6409  avoid_warning = 0;
6410  return assign(0,0);
6411  }
char * title
Display title.
Definition: CImg.h:6144
CImgDisplay & assign()
In-place version of the destructor.
Definition: CImg.h:6388

Here is the call graph for this function:

CImgDisplay& assign ( const CImgList< T > &  list,
const char *  title = 0,
const unsigned int  normalization_type = 3,
const bool  fullscreen_flag = false,
const bool  closed_flag = false 
)
inline

In-place version of the previous constructor.

Definition at line 6415 of file CImg.h.

References CImgDisplay::assign(), CImgDisplay::title, and CImgList< T >::width.

6417  {
6418  throw CImgDisplayException("CImgDisplay()::assign() : Display has been required but is not available (cimg_display=0)");
6419  const char* avoid_warning = title + list.width + normalization_type + (int)fullscreen_flag + (int)closed_flag;
6420  avoid_warning = 0;
6421  return assign(0,0);
6422  }
char * title
Display title.
Definition: CImg.h:6144
CImgDisplay & assign()
In-place version of the destructor.
Definition: CImg.h:6388

Here is the call graph for this function:

CImgDisplay& assign ( const CImgDisplay disp)
inline

In-place version of the previous constructor.

Definition at line 6425 of file CImg.h.

References CImgDisplay::assign(), CImgDisplay::height, and CImgDisplay::width.

6425  {
6426  return assign(disp.width,disp.height);
6427  }
CImgDisplay & assign()
In-place version of the destructor.
Definition: CImg.h:6388

Here is the call graph for this function:

CImgDisplay& close ( )
inline

Close a visible display.

Definition at line 6791 of file CImg.h.

6791  {
6792  return *this;
6793  }
int dimx ( ) const
inline

Return display width.

Definition at line 6623 of file CImg.h.

References CImgDisplay::width.

Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), cimg_library::cimg::dialog(), CImg< uintT >::display_graph(), and CImg< uintT >::get_select_graph().

6623  {
6624  return (int)width;
6625  }
unsigned int width
Width of the display.
Definition: CImg.h:6117

Here is the caller graph for this function:

int dimy ( ) const
inline

Return display height.

Definition at line 6628 of file CImg.h.

References CImgDisplay::height.

Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), cimg_library::cimg::dialog(), CImg< uintT >::display_graph(), and CImg< uintT >::get_select_graph().

6628  {
6629  return (int)height;
6630  }
unsigned int height
Height of the display.
Definition: CImg.h:6120

Here is the caller graph for this function:

CImgDisplay& display ( const CImg< T > &  img)
inline

Display an image in a window.

Definition at line 6689 of file CImg.h.

References CImg< T >::width.

Referenced by CImg< uintT >::_get_select(), CImgDisplay::display(), CImg< uintT >::display(), and CImgDisplay::operator=().

6689  {
6690  unsigned int avoid_warning = img.width;
6691  avoid_warning = 0;
6692  return *this;
6693  }

Here is the caller graph for this function:

CImgDisplay& display ( const CImgList< T > &  list,
const char  axis = 'x',
const char  align = 'p' 
)
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.
axis: The axis 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).

Definition at line 6705 of file CImg.h.

References CImgDisplay::display(), and CImgList< T >::get_append().

6705  {
6706  return display(list.get_append(axis,align));
6707  }
CImgDisplay & display(const CImg< T > &img)
Display an image in a window.
Definition: CImg.h:6689

Here is the call graph for this function:

static CImgDisplay& empty ( void  )
inlinestatic

Return a reference to an empty display.

Definition at line 6431 of file CImg.h.

References CImgDisplay::assign().

6431  {
6432  static CImgDisplay _empty;
6433  return _empty.assign();
6434  }
CImgDisplay()
Create an empty display window.
Definition: CImg.h:6318

Here is the call graph for this function:

CImgDisplay& flush ( )
inline

Clear all events of the current display.

Definition at line 6848 of file CImg.h.

References CImgDisplay::buttons, CImgDisplay::fps_fps, CImgDisplay::fps_frames, CImgDisplay::fps_timer, CImgDisplay::is_event, CImgDisplay::is_key0, CImgDisplay::is_key1, CImgDisplay::is_key2, CImgDisplay::is_key3, CImgDisplay::is_key4, CImgDisplay::is_key5, CImgDisplay::is_key6, CImgDisplay::is_key7, CImgDisplay::is_key8, CImgDisplay::is_key9, CImgDisplay::is_keyA, CImgDisplay::is_keyALT, CImgDisplay::is_keyALTGR, CImgDisplay::is_keyAPPLEFT, CImgDisplay::is_keyAPPRIGHT, CImgDisplay::is_keyARROWDOWN, CImgDisplay::is_keyARROWLEFT, CImgDisplay::is_keyARROWRIGHT, CImgDisplay::is_keyARROWUP, CImgDisplay::is_keyB, CImgDisplay::is_keyBACKSPACE, CImgDisplay::is_keyC, CImgDisplay::is_keyCAPSLOCK, CImgDisplay::is_keyCTRLLEFT, CImgDisplay::is_keyCTRLRIGHT, CImgDisplay::is_keyD, CImgDisplay::is_keyDELETE, CImgDisplay::is_keyE, CImgDisplay::is_keyEND, CImgDisplay::is_keyENTER, CImgDisplay::is_keyESC, CImgDisplay::is_keyF, CImgDisplay::is_keyF1, CImgDisplay::is_keyF10, CImgDisplay::is_keyF11, CImgDisplay::is_keyF12, CImgDisplay::is_keyF2, CImgDisplay::is_keyF3, CImgDisplay::is_keyF4, CImgDisplay::is_keyF5, CImgDisplay::is_keyF6, CImgDisplay::is_keyF7, CImgDisplay::is_keyF8, CImgDisplay::is_keyF9, CImgDisplay::is_keyG, CImgDisplay::is_keyH, CImgDisplay::is_keyHOME, CImgDisplay::is_keyI, CImgDisplay::is_keyINSERT, CImgDisplay::is_keyJ, CImgDisplay::is_keyK, CImgDisplay::is_keyL, CImgDisplay::is_keyM, CImgDisplay::is_keyMENU, CImgDisplay::is_keyN, CImgDisplay::is_keyO, CImgDisplay::is_keyP, CImgDisplay::is_keyPAD0, CImgDisplay::is_keyPAD1, CImgDisplay::is_keyPAD2, CImgDisplay::is_keyPAD3, CImgDisplay::is_keyPAD4, CImgDisplay::is_keyPAD5, CImgDisplay::is_keyPAD6, CImgDisplay::is_keyPAD7, CImgDisplay::is_keyPAD8, CImgDisplay::is_keyPAD9, CImgDisplay::is_keyPADADD, CImgDisplay::is_keyPADDIV, CImgDisplay::is_keyPADMUL, CImgDisplay::is_keyPADSUB, CImgDisplay::is_keyPAGEDOWN, CImgDisplay::is_keyPAGEUP, CImgDisplay::is_keyPAUSE, CImgDisplay::is_keyQ, CImgDisplay::is_keyR, CImgDisplay::is_keyS, CImgDisplay::is_keySHIFTLEFT, CImgDisplay::is_keySHIFTRIGHT, CImgDisplay::is_keySPACE, CImgDisplay::is_keyT, CImgDisplay::is_keyTAB, CImgDisplay::is_keyU, CImgDisplay::is_keyV, CImgDisplay::is_keyW, CImgDisplay::is_keyX, CImgDisplay::is_keyY, CImgDisplay::is_keyZ, CImgDisplay::is_moved, CImgDisplay::is_resized, CImgDisplay::keys, CImgDisplay::mouse_x, CImgDisplay::mouse_y, CImgDisplay::released_keys, CImgDisplay::timer, and CImgDisplay::wheel.

Referenced by CImg< uintT >::_display_object3d(), and CImg< uintT >::display_graph().

6848  {
6849  std::memset((void*)buttons,0,512*sizeof(unsigned int));
6850  std::memset((void*)keys,0,512*sizeof(unsigned int));
6851  std::memset((void*)released_keys,0,512*sizeof(unsigned int));
6861  is_keyPADMUL = is_keyPADDIV = false;
6862  is_resized = is_moved = is_event = false;
6863  fps_timer = fps_frames = timer = wheel = 0;
6864  mouse_x = mouse_y = -1;
6865  fps_fps = 0;
6866  return *this;
6867  }
volatile bool is_keyPAUSE
Definition: CImg.h:6187
volatile bool is_keyBACKSPACE
Definition: CImg.h:6198
volatile bool is_keyF7
Definition: CImg.h:6181
volatile bool is_keyF11
Definition: CImg.h:6185
volatile bool is_keyQ
Definition: CImg.h:6203
volatile int mouse_x
X-coordinate of the mouse pointer on the display.
Definition: CImg.h:6135
volatile bool is_keyAPPRIGHT
Definition: CImg.h:6242
volatile bool is_keyARROWRIGHT
Definition: CImg.h:6247
volatile bool is_key9
Definition: CImg.h:6196
volatile bool is_keyPAD3
Definition: CImg.h:6251
volatile bool is_keyPAD6
Definition: CImg.h:6254
volatile bool is_key5
Definition: CImg.h:6192
volatile bool is_keySPACE
Definition: CImg.h:6240
volatile bool is_keyPADMUL
Definition: CImg.h:6260
unsigned long fps_frames
Definition: CImg.h:6268
volatile bool is_keyJ
Definition: CImg.h:6223
volatile bool is_keyF6
Definition: CImg.h:6180
volatile bool is_keyU
Definition: CImg.h:6209
volatile bool is_keyCTRLLEFT
Definition: CImg.h:6237
volatile bool is_keyM
Definition: CImg.h:6234
volatile bool is_keyPAD4
Definition: CImg.h:6252
volatile bool is_keyARROWUP
Definition: CImg.h:6236
volatile bool is_keyPADDIV
Definition: CImg.h:6261
volatile bool is_keyPAD1
Definition: CImg.h:6249
volatile bool is_keyB
Definition: CImg.h:6232
volatile bool is_keyCAPSLOCK
Definition: CImg.h:6216
volatile bool is_keyTAB
Definition: CImg.h:6202
volatile bool is_keyPADSUB
Definition: CImg.h:6259
volatile int wheel
Wheel state of the mouse.
Definition: CImg.h:6151
volatile bool is_keyPAGEDOWN
Definition: CImg.h:6215
volatile bool is_keyF2
Definition: CImg.h:6176
volatile bool is_keyPAD2
Definition: CImg.h:6250
volatile bool is_keyINSERT
Definition: CImg.h:6199
volatile bool is_keyF9
Definition: CImg.h:6183
volatile bool is_keyA
Definition: CImg.h:6217
volatile bool is_keyX
Definition: CImg.h:6229
volatile bool is_resized
Resized state of the window.
Definition: CImg.h:6165
volatile bool is_keyK
Definition: CImg.h:6224
volatile bool is_key8
Definition: CImg.h:6195
volatile bool is_keyF8
Definition: CImg.h:6182
volatile bool is_keyALTGR
Definition: CImg.h:6241
volatile bool is_keyF10
Definition: CImg.h:6184
volatile bool is_key3
Definition: CImg.h:6190
volatile bool is_keyL
Definition: CImg.h:6225
volatile bool is_keyN
Definition: CImg.h:6233
volatile bool is_keyHOME
Definition: CImg.h:6200
volatile bool is_keyALT
Definition: CImg.h:6239
unsigned long timer
Definition: CImg.h:6268
volatile bool is_keyDELETE
Definition: CImg.h:6213
volatile bool is_keyP
Definition: CImg.h:6212
volatile bool is_keySHIFTLEFT
Definition: CImg.h:6227
volatile bool is_key6
Definition: CImg.h:6193
volatile bool is_keyAPPLEFT
Definition: CImg.h:6238
volatile bool is_keyEND
Definition: CImg.h:6214
volatile bool is_keyF3
Definition: CImg.h:6177
volatile unsigned int keys[512]
Definition: CImg.h:6155
volatile bool is_key2
Definition: CImg.h:6189
volatile bool is_keyE
Definition: CImg.h:6205
volatile bool is_keyPAD9
Definition: CImg.h:6257
volatile bool is_keyF1
Definition: CImg.h:6175
volatile bool is_keyESC
Current state of the corresponding key (exists for all referenced keys).
Definition: CImg.h:6174
volatile bool is_keyF
Definition: CImg.h:6220
volatile bool is_moved
Moved state of the window.
Definition: CImg.h:6168
volatile bool is_keyF4
Definition: CImg.h:6178
volatile bool is_keyENTER
Definition: CImg.h:6226
volatile bool is_keyO
Definition: CImg.h:6211
volatile bool is_keyZ
Definition: CImg.h:6228
volatile bool is_keyV
Definition: CImg.h:6231
volatile bool is_keyF12
Definition: CImg.h:6186
volatile bool is_keyD
Definition: CImg.h:6219
volatile bool is_keySHIFTRIGHT
Definition: CImg.h:6235
volatile bool is_keyY
Definition: CImg.h:6208
volatile bool is_keyW
Definition: CImg.h:6204
volatile bool is_keyPAD5
Definition: CImg.h:6253
volatile bool is_keyPAD7
Definition: CImg.h:6255
volatile int mouse_y
Y-coordinate of the mouse pointer on the display.
Definition: CImg.h:6138
volatile bool is_keyR
Definition: CImg.h:6206
volatile bool is_keyC
Definition: CImg.h:6230
volatile bool is_keyPAGEUP
Definition: CImg.h:6201
volatile bool is_keyPAD8
Definition: CImg.h:6256
volatile bool is_key1
Definition: CImg.h:6188
volatile bool is_key7
Definition: CImg.h:6194
volatile bool is_keyI
Definition: CImg.h:6210
volatile bool is_keyPADADD
Definition: CImg.h:6258
volatile bool is_keyG
Definition: CImg.h:6221
volatile bool is_event
Event state of the window.
Definition: CImg.h:6171
volatile bool is_keyPAD0
Definition: CImg.h:6248
volatile bool is_key0
Definition: CImg.h:6197
volatile unsigned int buttons[512]
Button state of the mouse.
Definition: CImg.h:6147
volatile bool is_key4
Definition: CImg.h:6191
volatile bool is_keyARROWLEFT
Definition: CImg.h:6245
volatile bool is_keyF5
Definition: CImg.h:6179
volatile unsigned int released_keys[512]
Definition: CImg.h:6159
volatile bool is_keyS
Definition: CImg.h:6218
volatile bool is_keyCTRLRIGHT
Definition: CImg.h:6244
volatile bool is_keyT
Definition: CImg.h:6207
unsigned long fps_timer
Definition: CImg.h:6268
volatile bool is_keyMENU
Definition: CImg.h:6243
volatile bool is_keyH
Definition: CImg.h:6222
volatile bool is_keyARROWDOWN
Definition: CImg.h:6246

Here is the caller graph for this function:

float frames_per_second ( )
inline

Return the frame per second rate.

Definition at line 6667 of file CImg.h.

References CImgDisplay::fps_fps, CImgDisplay::fps_frames, CImgDisplay::fps_timer, and cimg_library::cimg::time().

6667  {
6668  if (!fps_timer) fps_timer = cimg::time();
6669  const float delta = (cimg::time()-fps_timer)/1000.0f;
6670  ++fps_frames;
6671  if (delta>=1) {
6672  fps_fps = fps_frames/delta;
6673  fps_frames = 0;
6674  fps_timer = cimg::time();
6675  }
6676  return fps_fps;
6677  }
unsigned long fps_frames
Definition: CImg.h:6268
unsigned long time()
Get the value of a system timer with a millisecond precision.
Definition: CImg.h:4605
unsigned long fps_timer
Definition: CImg.h:6268

Here is the call graph for this function:

CImgDisplay& fullscreen ( const bool  redraw = true)
inline

Set fullscreen mode.

Definition at line 6765 of file CImg.h.

References CImgDisplay::is_empty(), CImgDisplay::is_fullscreen, and CImgDisplay::toggle_fullscreen().

6765  {
6766  if (is_empty() || is_fullscreen) return *this;
6767  return toggle_fullscreen(redraw);
6768  }
CImgDisplay & toggle_fullscreen(const bool redraw=true)
Toggle fullscreen mode.
Definition: CImg.h:6779
bool is_fullscreen
Fullscreen state of the display.
Definition: CImg.h:6264
bool is_empty() const
Return true is display is empty.
Definition: CImg.h:6493

Here is the call graph for this function:

CImgDisplay& hide_mouse ( )
inline

Hide mouse pointer.

Definition at line 6808 of file CImg.h.

6808  {
6809  return *this;
6810  }
bool is_empty ( ) const
inline

Return true is display is empty.

Definition at line 6493 of file CImg.h.

References CImgDisplay::height, and CImgDisplay::width.

Referenced by CImgDisplay::fullscreen(), CImgDisplay::normalscreen(), CImgDisplay::operator bool(), and CImgDisplay::wait().

6493  {
6494  return (!width || !height);
6495  }
unsigned int height
Height of the display.
Definition: CImg.h:6120
unsigned int width
Width of the display.
Definition: CImg.h:6117

Here is the caller graph for this function:

bool is_key ( const bool  remove = false)
inline

Test if any key has been pressed.

Definition at line 6498 of file CImg.h.

References CImgDisplay::keys.

Referenced by CImgDisplay::is_key().

6498  {
6499  for (unsigned int *ptrs=(unsigned int*)keys+512-1; ptrs>=keys; --ptrs) if (*ptrs) { if (remove) *ptrs = 0; return true; }
6500  return false;
6501  }
volatile unsigned int keys[512]
Definition: CImg.h:6155

Here is the caller graph for this function:

bool is_key ( const unsigned int  key1,
const bool  remove 
)
inline

Test if a key has been pressed.

Definition at line 6504 of file CImg.h.

References CImgDisplay::keys.

6504  {
6505  for (unsigned int *ptrs=(unsigned int*)keys+512-1; ptrs>=keys; --ptrs) if (*ptrs==key1) { if (remove) *ptrs = 0; return true; }
6506  return false;
6507  }
volatile unsigned int keys[512]
Definition: CImg.h:6155
const unsigned int key1
Definition: CImg.h:2685
bool 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 6510 of file CImg.h.

References CImgDisplay::is_key(), and cimg_library::cimg::key1.

6510  {
6511  const unsigned int seq[] = { key1, key2 };
6512  return is_key(seq,2,remove);
6513  }
bool is_key(const bool remove=false)
Test if any key has been pressed.
Definition: CImg.h:6498
const unsigned int key2
Definition: CImg.h:2686
const unsigned int key1
Definition: CImg.h:2685

Here is the call graph for this function:

bool 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 6516 of file CImg.h.

References CImgDisplay::is_key(), cimg_library::cimg::key1, and cimg_library::cimg::key2.

6516  {
6517  const unsigned int seq[] = { key1, key2, key3 };
6518  return is_key(seq,3,remove);
6519  }
bool is_key(const bool remove=false)
Test if any key has been pressed.
Definition: CImg.h:6498
const unsigned int key2
Definition: CImg.h:2686
const unsigned int key3
Definition: CImg.h:2687
const unsigned int key1
Definition: CImg.h:2685

Here is the call graph for this function:

bool 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 6522 of file CImg.h.

References CImgDisplay::is_key(), cimg_library::cimg::key1, cimg_library::cimg::key2, and cimg_library::cimg::key3.

6523  {
6524  const unsigned int seq[] = { key1, key2, key3, key4 };
6525  return is_key(seq,4,remove);
6526  }
const unsigned int key4
Definition: CImg.h:2688
bool is_key(const bool remove=false)
Test if any key has been pressed.
Definition: CImg.h:6498
const unsigned int key2
Definition: CImg.h:2686
const unsigned int key3
Definition: CImg.h:2687
const unsigned int key1
Definition: CImg.h:2685

Here is the call graph for this function:

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 
)
inline

Test if a key sequence has been typed.

Definition at line 6529 of file CImg.h.

References CImgDisplay::is_key(), cimg_library::cimg::key1, cimg_library::cimg::key2, cimg_library::cimg::key3, and cimg_library::cimg::key4.

6530  {
6531  const unsigned int seq[] = { key1, key2, key3, key4, key5 };
6532  return is_key(seq,5,remove);
6533  }
const unsigned int key4
Definition: CImg.h:2688
bool is_key(const bool remove=false)
Test if any key has been pressed.
Definition: CImg.h:6498
const unsigned int key5
Definition: CImg.h:2689
const unsigned int key2
Definition: CImg.h:2686
const unsigned int key3
Definition: CImg.h:2687
const unsigned int key1
Definition: CImg.h:2685

Here is the call graph for this function:

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 
)
inline

Test if a key sequence has been typed.

Definition at line 6536 of file CImg.h.

References CImgDisplay::is_key(), cimg_library::cimg::key1, cimg_library::cimg::key2, cimg_library::cimg::key3, cimg_library::cimg::key4, and cimg_library::cimg::key5.

6537  {
6538  const unsigned int seq[] = { key1, key2, key3, key4, key5, key6 };
6539  return is_key(seq,6,remove);
6540  }
const unsigned int key4
Definition: CImg.h:2688
bool is_key(const bool remove=false)
Test if any key has been pressed.
Definition: CImg.h:6498
const unsigned int key5
Definition: CImg.h:2689
const unsigned int key2
Definition: CImg.h:2686
const unsigned int key3
Definition: CImg.h:2687
const unsigned int key6
Definition: CImg.h:2690
const unsigned int key1
Definition: CImg.h:2685

Here is the call graph for this function:

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 
)
inline

Test if a key sequence has been typed.

Definition at line 6543 of file CImg.h.

References CImgDisplay::is_key(), cimg_library::cimg::key1, cimg_library::cimg::key2, cimg_library::cimg::key3, cimg_library::cimg::key4, cimg_library::cimg::key5, and cimg_library::cimg::key6.

6545  {
6546  const unsigned int seq[] = { key1, key2, key3, key4, key5, key6, key7 };
6547  return is_key(seq,7,remove);
6548  }
const unsigned int key4
Definition: CImg.h:2688
bool is_key(const bool remove=false)
Test if any key has been pressed.
Definition: CImg.h:6498
const unsigned int key5
Definition: CImg.h:2689
const unsigned int key2
Definition: CImg.h:2686
const unsigned int key3
Definition: CImg.h:2687
const unsigned int key7
Definition: CImg.h:2691
const unsigned int key6
Definition: CImg.h:2690
const unsigned int key1
Definition: CImg.h:2685

Here is the call graph for this function:

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 
)
inline

Test if a key sequence has been typed.

Definition at line 6551 of file CImg.h.

References CImgDisplay::is_key(), cimg_library::cimg::key1, cimg_library::cimg::key2, cimg_library::cimg::key3, cimg_library::cimg::key4, cimg_library::cimg::key5, cimg_library::cimg::key6, and cimg_library::cimg::key7.

6553  {
6554  const unsigned int seq[] = { key1, key2, key3, key4, key5, key6, key7, key8 };
6555  return is_key(seq,8,remove);
6556  }
const unsigned int key4
Definition: CImg.h:2688
bool is_key(const bool remove=false)
Test if any key has been pressed.
Definition: CImg.h:6498
const unsigned int key5
Definition: CImg.h:2689
const unsigned int key2
Definition: CImg.h:2686
const unsigned int key3
Definition: CImg.h:2687
const unsigned int key7
Definition: CImg.h:2691
const unsigned int key6
Definition: CImg.h:2690
const unsigned int key8
Definition: CImg.h:2692
const unsigned int key1
Definition: CImg.h:2685

Here is the call graph for this function:

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 
)
inline

Test if a key sequence has been typed.

Definition at line 6559 of file CImg.h.

References CImgDisplay::is_key(), cimg_library::cimg::key1, cimg_library::cimg::key2, cimg_library::cimg::key3, cimg_library::cimg::key4, cimg_library::cimg::key5, cimg_library::cimg::key6, cimg_library::cimg::key7, and cimg_library::cimg::key8.

6561  {
6562  const unsigned int seq[] = { key1, key2, key3, key4, key5, key6, key7, key8, key9 };
6563  return is_key(seq,9,remove);
6564  }
const unsigned int key4
Definition: CImg.h:2688
bool is_key(const bool remove=false)
Test if any key has been pressed.
Definition: CImg.h:6498
const unsigned int key5
Definition: CImg.h:2689
const unsigned int key2
Definition: CImg.h:2686
const unsigned int key9
Definition: CImg.h:2693
const unsigned int key3
Definition: CImg.h:2687
const unsigned int key7
Definition: CImg.h:2691
const unsigned int key6
Definition: CImg.h:2690
const unsigned int key8
Definition: CImg.h:2692
const unsigned int key1
Definition: CImg.h:2685

Here is the call graph for this function:

bool 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 6567 of file CImg.h.

References i, k, and CImgDisplay::keys.

6567  {
6568  if (keyseq && N) {
6569  const unsigned int *const ps_end = keyseq+N-1, k = *ps_end, *const pk_end = (unsigned int*)keys+1+512-N;
6570  for (unsigned int *pk = (unsigned int*)keys; pk<pk_end; ) {
6571  if (*(pk++)==k) {
6572  bool res = true;
6573  const unsigned int *ps = ps_end, *pk2 = pk;
6574  for (unsigned int i=1; i<N; ++i) res = (*(--ps)==*(pk2++));
6575  if (res) {
6576  if (remove) std::memset((void*)(pk-1),0,sizeof(unsigned int)*N);
6577  return true;
6578  }
6579  }
6580  }
6581  }
6582  return false;
6583  }
j indices k indices k
Definition: Indexing.h:6
blockLoc i
Definition: read.cpp:79
volatile unsigned int keys[512]
Definition: CImg.h:6155
CImgDisplay& move ( const int  posx,
const int  posy 
)
inline

Move window.

Definition at line 6796 of file CImg.h.

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

6796  {
6797  int avoid_warning = posx | posy;
6798  avoid_warning = 0;
6799  return *this;
6800  }

Here is the caller graph for this function:

CImgDisplay& normalscreen ( const bool  redraw = true)
inline

Set normal screen mode.

Definition at line 6771 of file CImg.h.

References CImgDisplay::is_empty(), CImgDisplay::is_fullscreen, and CImgDisplay::toggle_fullscreen().

Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), and CImg< uintT >::get_select_graph().

6771  {
6772  if (is_empty() || !is_fullscreen) return *this;
6773  return toggle_fullscreen(redraw);
6774  }
CImgDisplay & toggle_fullscreen(const bool redraw=true)
Toggle fullscreen mode.
Definition: CImg.h:6779
bool is_fullscreen
Fullscreen state of the display.
Definition: CImg.h:6264
bool is_empty() const
Return true is display is empty.
Definition: CImg.h:6493

Here is the call graph for this function:

Here is the caller graph for this function:

operator bool ( ) const
inline

Return true if display is not empty.

Definition at line 6481 of file CImg.h.

References CImgDisplay::is_empty().

6481  {
6482  return !is_empty();
6483  }
bool is_empty() const
Return true is display is empty.
Definition: CImg.h:6493

Here is the call graph for this function:

CImgDisplay& operator= ( const CImg< t > &  img)
inline

Definition at line 6465 of file CImg.h.

References CImgDisplay::display().

6465  {
6466  return display(img);
6467  }
CImgDisplay & display(const CImg< T > &img)
Display an image in a window.
Definition: CImg.h:6689

Here is the call graph for this function:

CImgDisplay& operator= ( const CImgList< t > &  list)
inline

Definition at line 6471 of file CImg.h.

References CImgDisplay::display().

6471  {
6472  return display(list);
6473  }
CImgDisplay & display(const CImg< T > &img)
Display an image in a window.
Definition: CImg.h:6689

Here is the call graph for this function:

CImgDisplay& operator= ( const CImgDisplay disp)
inline

Operator=().

Definition at line 6476 of file CImg.h.

References CImgDisplay::assign().

6476  {
6477  return assign(disp);
6478  }
CImgDisplay & assign()
In-place version of the destructor.
Definition: CImg.h:6388

Here is the call graph for this function:

CImgDisplay& paint ( )
inline

Re-paint image content in window.

Definition at line 6835 of file CImg.h.

6835  {
6836  return *this;
6837  }
CImgDisplay& render ( const CImg< T > &  img)
inline

Render image buffer into GDI native image format.

Definition at line 6828 of file CImg.h.

References CImg< T >::width.

6828  {
6829  unsigned int avoid_warning = img.width;
6830  avoid_warning = 0;
6831  return *this;
6832  }
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 6715 of file CImg.h.

References CImg< T >::height, and CImg< T >::width.

Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), cimg_library::cimg::dialog(), CImg< uintT >::get_select_graph(), and CImgDisplay::resize().

6715  {
6716  return resize(img.width,img.height,redraw);
6717  }
CImgDisplay & resize(const CImg< T > &img, const bool redraw=true)
Resize a display window with the size of an image.
Definition: CImg.h:6715

Here is the caller graph for this function:

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 6720 of file CImg.h.

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

6720  {
6721  return resize(disp.width,disp.height,redraw);
6722  }
CImgDisplay & resize(const CImg< T > &img, const bool redraw=true)
Resize a display window with the size of an image.
Definition: CImg.h:6715

Here is the call graph for this function:

CImgDisplay& resize ( const bool  redraw = true)
inline

Resize a display window in its current size.

Definition at line 6725 of file CImg.h.

References CImgDisplay::resize(), CImgDisplay::window_height, and CImgDisplay::window_width.

6725  {
6727  return *this;
6728  }
volatile unsigned int window_width
Width of the underlying window.
Definition: CImg.h:6123
volatile unsigned int window_height
Height of the underlying window.
Definition: CImg.h:6126
CImgDisplay & resize(const CImg< T > &img, const bool redraw=true)
Resize a display window with the size of an image.
Definition: CImg.h:6715

Here is the call graph for this function:

CImgDisplay& resize ( const int  width,
const int  height,
const bool  redraw = true 
)
inline

Resize window.

Definition at line 6733 of file CImg.h.

6733  {
6734  int avoid_warning = width | height | (int)redraw;
6735  avoid_warning = 0;
6736  return *this;
6737  }
unsigned int height
Height of the display.
Definition: CImg.h:6120
unsigned int width
Width of the display.
Definition: CImg.h:6117
static int screen_dimx ( )
inlinestatic

Return the width of the screen resolution.

Definition at line 6655 of file CImg.h.

Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImgDisplay::_fitscreen(), CImg< uintT >::_get_select(), cimg_library::cimg::dialog(), and CImg< uintT >::get_select_graph().

6655  {
6656  return 0;
6657  }

Here is the caller graph for this function:

static int screen_dimy ( )
inlinestatic

Return the height of the screen resolution.

Definition at line 6660 of file CImg.h.

Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImgDisplay::_fitscreen(), CImg< uintT >::_get_select(), cimg_library::cimg::dialog(), and CImg< uintT >::get_select_graph().

6660  {
6661  return 0;
6662  }

Here is the caller graph for this function:

CImgDisplay& set_mouse ( const int  posx,
const int  posy 
)
inline

Move mouse pointer to a specific location.

Definition at line 6813 of file CImg.h.

6813  {
6814  int avoid_warning = posx | posy;
6815  avoid_warning = 0;
6816  return *this;
6817  }
CImgDisplay& set_title ( const char *  format,
  ... 
)
inline

Set the window title.

Definition at line 6820 of file CImg.h.

Referenced by CImg< uintT >::_display().

6820  {
6821  const char *avoid_warning = format;
6822  avoid_warning = 0;
6823  return *this;
6824  }

Here is the caller graph for this function:

CImgDisplay& show ( )
inline

Show a closed display.

Definition at line 6786 of file CImg.h.

Referenced by CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), CImg< uintT >::display_graph(), and CImg< uintT >::get_select_graph().

6786  {
6787  return *this;
6788  }

Here is the caller graph for this function:

CImgDisplay& show_mouse ( )
inline

Show mouse pointer.

Definition at line 6803 of file CImg.h.

6803  {
6804  return *this;
6805  }
const CImgDisplay& snapshot ( CImg< T > &  img) const
inline

Take a snapshot of the display in the specified image.

Definition at line 6841 of file CImg.h.

References CImg< T >::assign(), CImgDisplay::height, and CImgDisplay::width.

Referenced by CImg< uintT >::assign(), CImg< uintT >::CImg(), and CImg< uintT >::operator=().

6841  {
6842  img.assign(width,height,1,3,0);
6843  return *this;
6844  }
unsigned int height
Height of the display.
Definition: CImg.h:6120
unsigned int width
Width of the display.
Definition: CImg.h:6117

Here is the call graph for this function:

Here is the caller graph for this function:

CImgDisplay& toggle_fullscreen ( const bool  redraw = true)
inline

Toggle fullscreen mode.

Definition at line 6779 of file CImg.h.

Referenced by CImg< uintT >::_display_object3d(), CImgDisplay::fullscreen(), and CImgDisplay::normalscreen().

6779  {
6780  bool avoid_warning = redraw;
6781  avoid_warning = false;
6782  return *this;
6783  }

Here is the caller graph for this function:

CImgDisplay& wait ( const unsigned int  milliseconds)
inline

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

Definition at line 6870 of file CImg.h.

References cimg_library::cimg::_sleep(), and CImgDisplay::timer.

Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), cimg_library::cimg::dialog(), and CImg< uintT >::get_select_graph().

6870  {
6871  cimg::_sleep(milliseconds,timer);
6872  return *this;
6873  }
unsigned int _sleep(const unsigned int milliseconds, unsigned long &timer)
Definition: CImg.h:4635
unsigned long timer
Definition: CImg.h:6268

Here is the call graph for this function:

Here is the caller graph for this function:

CImgDisplay& wait ( )
inline

Wait for an event occuring on the current display.

Definition at line 6876 of file CImg.h.

References CImgDisplay::is_empty().

6876  {
6877  if (!is_empty()) wait(*this);
6878  return *this;
6879  }
CImgDisplay & wait()
Wait for an event occuring on the current display.
Definition: CImg.h:6876
bool is_empty() const
Return true is display is empty.
Definition: CImg.h:6493

Here is the call graph for this function:

static void wait ( CImgDisplay disp1)
inlinestatic

Wait for any event occuring on the display disp1.

Definition at line 6882 of file CImg.h.

References CImgDisplay::is_event, and CImgDisplay::wait_all().

6882  {
6883  disp1.is_event = 0;
6884  while (!disp1.is_event) wait_all();
6885  }
static void wait_all()
Wait for a window event in any CImg window.
Definition: CImg.h:6908

Here is the call graph for this function:

static void wait ( CImgDisplay disp1,
CImgDisplay disp2 
)
inlinestatic

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

Definition at line 6888 of file CImg.h.

References CImgDisplay::is_event, and CImgDisplay::wait_all().

6888  {
6889  disp1.is_event = disp2.is_event = 0;
6890  while (!disp1.is_event && !disp2.is_event) wait_all();
6891  }
static void wait_all()
Wait for a window event in any CImg window.
Definition: CImg.h:6908

Here is the call graph for this function:

static void wait ( CImgDisplay disp1,
CImgDisplay disp2,
CImgDisplay disp3 
)
inlinestatic

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

Definition at line 6894 of file CImg.h.

References CImgDisplay::is_event, and CImgDisplay::wait_all().

6894  {
6895  disp1.is_event = disp2.is_event = disp3.is_event = 0;
6896  while (!disp1.is_event && !disp2.is_event && !disp3.is_event) wait_all();
6897  }
static void wait_all()
Wait for a window event in any CImg window.
Definition: CImg.h:6908

Here is the call graph for this function:

static void wait ( CImgDisplay disp1,
CImgDisplay disp2,
CImgDisplay disp3,
CImgDisplay disp4 
)
inlinestatic

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

Definition at line 6900 of file CImg.h.

References CImgDisplay::is_event, and CImgDisplay::wait_all().

6900  {
6901  disp1.is_event = disp2.is_event = disp3.is_event = disp4.is_event = 0;
6902  while (!disp1.is_event && !disp2.is_event && !disp3.is_event && !disp4.is_event) wait_all();
6903  }
static void wait_all()
Wait for a window event in any CImg window.
Definition: CImg.h:6908

Here is the call graph for this function:

static void wait_all ( )
inlinestatic

Wait for a window event in any CImg window.

Definition at line 6908 of file CImg.h.

Referenced by CImgDisplay::wait().

6908 {}

Here is the caller graph for this function:

int window_dimx ( ) const
inline

Return display window width.

Definition at line 6633 of file CImg.h.

References CImgDisplay::window_width.

6633  {
6634  return (int)window_width;
6635  }
volatile unsigned int window_width
Width of the underlying window.
Definition: CImg.h:6123
int window_dimy ( ) const
inline

Return display window height.

Definition at line 6638 of file CImg.h.

References CImgDisplay::window_height.

6638  {
6639  return (int)window_height;
6640  }
volatile unsigned int window_height
Height of the underlying window.
Definition: CImg.h:6126
int window_posx ( ) const
inline

Return X-coordinate of the window.

Definition at line 6643 of file CImg.h.

References CImgDisplay::window_x.

6643  {
6644  return window_x;
6645  }
volatile int window_x
X-pos of the display on the screen.
Definition: CImg.h:6129
int window_posy ( ) const
inline

Return Y-coordinate of the window.

Definition at line 6648 of file CImg.h.

References CImgDisplay::window_y.

6648  {
6649  return window_y;
6650  }
volatile int window_y
Y-pos of the display on the screen.
Definition: CImg.h:6132

Member Data Documentation

volatile unsigned int buttons[512]

Button state of the mouse.

Definition at line 6147 of file CImg.h.

Referenced by CImgDisplay::flush().

float fps_fps

Definition at line 6267 of file CImg.h.

Referenced by CImgDisplay::flush(), and CImgDisplay::frames_per_second().

unsigned long fps_frames

Definition at line 6268 of file CImg.h.

Referenced by CImgDisplay::flush(), and CImgDisplay::frames_per_second().

unsigned long fps_timer

Definition at line 6268 of file CImg.h.

Referenced by CImgDisplay::flush(), and CImgDisplay::frames_per_second().

volatile bool is_event

Event state of the window.

Definition at line 6171 of file CImg.h.

Referenced by CImgDisplay::flush(), and CImgDisplay::wait().

bool is_fullscreen

Fullscreen state of the display.

Definition at line 6264 of file CImg.h.

Referenced by CImg< uintT >::_display_object3d(), CImgDisplay::fullscreen(), and CImgDisplay::normalscreen().

volatile bool is_key0

Definition at line 6197 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_key1

Definition at line 6188 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_key2

Definition at line 6189 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_key3

Definition at line 6190 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_key4

Definition at line 6191 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_key5

Definition at line 6192 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_key6

Definition at line 6193 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_key7

Definition at line 6194 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_key8

Definition at line 6195 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_key9

Definition at line 6196 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyA

Definition at line 6217 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyALT
volatile bool is_keyALTGR

Definition at line 6241 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyAPPLEFT

Definition at line 6238 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyAPPRIGHT

Definition at line 6242 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyARROWDOWN

Definition at line 6246 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyARROWLEFT

Definition at line 6245 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyARROWRIGHT

Definition at line 6247 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyARROWUP

Definition at line 6236 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyB

Definition at line 6232 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyBACKSPACE

Definition at line 6198 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyC

Definition at line 6230 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyCAPSLOCK

Definition at line 6216 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyCTRLRIGHT

Definition at line 6244 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyD

Definition at line 6219 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyDELETE

Definition at line 6213 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyE

Definition at line 6205 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyEND

Definition at line 6214 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyENTER

Definition at line 6226 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyESC

Current state of the corresponding key (exists for all referenced keys).

Definition at line 6174 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyF

Definition at line 6220 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyF1

Definition at line 6175 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyF10

Definition at line 6184 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyF11

Definition at line 6185 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyF12

Definition at line 6186 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyF2

Definition at line 6176 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyF3

Definition at line 6177 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyF4

Definition at line 6178 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyF5

Definition at line 6179 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyF6

Definition at line 6180 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyF7

Definition at line 6181 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyF8

Definition at line 6182 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyF9

Definition at line 6183 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyG

Definition at line 6221 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyH

Definition at line 6222 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyHOME

Definition at line 6200 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyI

Definition at line 6210 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyINSERT

Definition at line 6199 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyJ

Definition at line 6223 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyK

Definition at line 6224 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyL

Definition at line 6225 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyM

Definition at line 6234 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyMENU

Definition at line 6243 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyN

Definition at line 6233 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyO

Definition at line 6211 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyP

Definition at line 6212 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPAD0

Definition at line 6248 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPAD1

Definition at line 6249 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPAD2

Definition at line 6250 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPAD3

Definition at line 6251 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPAD4

Definition at line 6252 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPAD5

Definition at line 6253 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPAD6

Definition at line 6254 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPAD7

Definition at line 6255 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPAD8

Definition at line 6256 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPAD9

Definition at line 6257 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPADADD

Definition at line 6258 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPADDIV

Definition at line 6261 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPADMUL

Definition at line 6260 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPADSUB

Definition at line 6259 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPAGEDOWN

Definition at line 6215 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPAGEUP

Definition at line 6201 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyPAUSE

Definition at line 6187 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyQ

Definition at line 6203 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyR

Definition at line 6206 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyS

Definition at line 6218 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keySHIFTLEFT
volatile bool is_keySHIFTRIGHT

Definition at line 6235 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keySPACE

Definition at line 6240 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyT

Definition at line 6207 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyTAB

Definition at line 6202 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyU

Definition at line 6209 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyV

Definition at line 6231 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyW

Definition at line 6204 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyX

Definition at line 6229 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyY

Definition at line 6208 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_keyZ

Definition at line 6228 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile bool is_moved

Moved state of the window.

Definition at line 6168 of file CImg.h.

Referenced by CImgDisplay::flush().

volatile unsigned int keys[512]

Definition at line 6155 of file CImg.h.

Referenced by CImgDisplay::flush(), and CImgDisplay::is_key().

float max

Definition at line 6267 of file CImg.h.

float min

Definition at line 6267 of file CImg.h.

unsigned int normalization

Normalization type used for the display.

Definition at line 6141 of file CImg.h.

Referenced by CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), CImg< uintT >::display_graph(), and CImg< uintT >::get_select_graph().

volatile unsigned int& released_key

Key value if released.

Definition at line 6158 of file CImg.h.

volatile unsigned int released_keys[512]

Definition at line 6159 of file CImg.h.

Referenced by CImgDisplay::flush().

unsigned long timer

Definition at line 6268 of file CImg.h.

Referenced by CImgDisplay::flush(), and CImgDisplay::wait().

char* title
volatile unsigned int window_height

Height of the underlying window.

Definition at line 6126 of file CImg.h.

Referenced by CImgDisplay::resize(), and CImgDisplay::window_dimy().

volatile unsigned int window_width

Width of the underlying window.

Definition at line 6123 of file CImg.h.

Referenced by CImgDisplay::resize(), and CImgDisplay::window_dimx().

volatile int window_x

X-pos of the display on the screen.

Definition at line 6129 of file CImg.h.

Referenced by CImgDisplay::window_posx().

volatile int window_y

Y-pos of the display on the screen.

Definition at line 6132 of file CImg.h.

Referenced by CImgDisplay::window_posy().


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