EZDraw++  1.2.2-3
Une mini-bibliothèque minimale pour réaliser un programme graphique en C++ sur Windows ou Linux
ez-draw++.hpp
Aller à la documentation de ce fichier.
1 /*
2  * ez-draw++.hpp: basic EZ-Draw++ module
3  *
4  * eric.remy@univ-amu.fr - 01/03/2014 - version 1.2
5  *
6  * This program is free software under the terms of the
7  * GNU Lesser General Public License (LGPL) version 2.1.
8  *
9  * ez-draw++ is based on ez-draw (see below)
10 */
11 
14 
15 #ifndef EZDRAWPP_HPP
16 #define EZDRAWPP_HPP
17 
18 #include <iostream>
19 #include <string>
20 #include <stdexcept>
21 #include <map>
22 
24 typedef unsigned char EZuint8;
28 typedef unsigned int EZColor;
29 
32 extern EZColor ez_black,
33  ez_white,
34  ez_grey,
35  ez_red,
36  ez_green,
37  ez_blue,
38  ez_yellow,
39  ez_cyan,
40  ez_magenta;
41 
50 enum class EZAlign {
52  AA = 183200,
54  TL,
55  TC,
56  TR,
57  ML,
58  MC,
59  MR,
60  BL,
61  BC,
62  BR,
63  BB,
66  TLF,
67  TCF,
68  TRF,
69  MLF,
70  MCF,
71  MRF,
72  BLF,
73  BCF,
74  BRF,
75 // CC // Constante EZ-Draw supprimée parce qu'elle est inutile à EZ-Draw++ et qu'elle fait déconner le mécanisme d'exclusion de doxygen.
76 };
77 
84 enum class EZKeySym
85 {
86  BackSpace = 0xff08,
87  Tab = 0xff09,
88  Return = 0xff0d,
89  Pause = 0xff13,
90  Scroll_Lock = 0xff14,
91  Escape = 0xff1b,
92  Delete = 0xffff,
93  Home = 0xff50,
94  Left = 0xff51,
95  Up = 0xff52,
96  Right = 0xff53,
97  Down = 0xff54,
98  Prior = 0xff55,
99  Next = 0xff56,
100  End = 0xff57,
101  Insert = 0xff63,
102  Menu = 0xff67,
103  Num_Lock = 0xff7f,
104  KP_Enter = 0xff8d,
105  KP_Home = 0xff95,
106  KP_Left = 0xff96,
107  KP_Up = 0xff97,
108  KP_Right = 0xff98,
109  KP_Down = 0xff99,
110  KP_Prior = 0xff9a,
111  KP_Next = 0xff9b,
112  KP_End = 0xff9c,
113  KP_Begin = 0xff9d,
114  KP_Equal = 0xffbd,
115  KP_Multiply = 0xffaa,
116  KP_Add = 0xffab,
117  KP_Separator = 0xffac,
118  KP_Subtract = 0xffad,
119  KP_Divide = 0xffaf,
120  KP_0 = 0xffb0,
121  KP_1 = 0xffb1,
122  KP_2 = 0xffb2,
123  KP_3 = 0xffb3,
124  KP_4 = 0xffb4,
125  KP_5 = 0xffb5,
126  KP_6 = 0xffb6,
127  KP_7 = 0xffb7,
128  KP_8 = 0xffb8,
129  KP_9 = 0xffb9,
130  F1 = 0xffbe,
131  F2 = 0xffbf,
132  F3 = 0xffc0,
133  F4 = 0xffc1,
134  F5 = 0xffc2,
135  F6 = 0xffc3,
136  F7 = 0xffc4,
137  F8 = 0xffc5,
138  F9 = 0xffc6,
139  F10 = 0xffc7,
140  F11 = 0xffc8,
141  F12 = 0xffc9,
142  Shift_L = 0xffe1,
143  Shift_R = 0xffe2,
144  Control_L = 0xffe3,
145  Control_R = 0xffe4,
146  Caps_Lock = 0xffe5,
147  Meta_L = 0xffe7,
148  Meta_R = 0xffe8,
149  Alt_L = 0xffe9,
150  Alt_R = 0xffea,
151  space = 0x0020,
152  exclam = 0x0021,
153  quotedbl = 0x0022,
154  numbersign = 0x0023,
155  dollar = 0x0024,
156  percent = 0x0025,
157  ampersand = 0x0026,
158  apostrophe = 0x0027,
159  parenleft = 0x0028,
160  parenright = 0x0029,
161  asterisk = 0x002a,
162  plus = 0x002b,
163  comma = 0x002c,
164  minus = 0x002d,
165  period = 0x002e,
166  slash = 0x002f,
167  _0 = 0x0030,
168  _1 = 0x0031,
169  _2 = 0x0032,
170  _3 = 0x0033,
171  _4 = 0x0034,
172  _5 = 0x0035,
173  _6 = 0x0036,
174  _7 = 0x0037,
175  _8 = 0x0038,
176  _9 = 0x0039,
177  colon = 0x003a,
178  semicolon = 0x003b,
179  less = 0x003c,
180  equal = 0x003d,
181  greater = 0x003e,
182  question = 0x003f,
183  at = 0x0040,
184  A = 0x0041,
185  B = 0x0042,
186  C = 0x0043,
187  D = 0x0044,
188  E = 0x0045,
189  F = 0x0046,
190  G = 0x0047,
191  H = 0x0048,
192  I = 0x0049,
193  J = 0x004a,
194  K = 0x004b,
195  L = 0x004c,
196  M = 0x004d,
197  N = 0x004e,
198  O = 0x004f,
199  P = 0x0050,
200  Q = 0x0051,
201  R = 0x0052,
202  S = 0x0053,
203  T = 0x0054,
204  U = 0x0055,
205  V = 0x0056,
206  W = 0x0057,
207  X = 0x0058,
208  Y = 0x0059,
209  Z = 0x005a,
210  bracketleft = 0x005b,
211  backslash = 0x005c,
212  bracketright = 0x005d,
213  asciicircum = 0x005e,
214  underscore = 0x005f,
215  grave = 0x0060,
216  a = 0x0061,
217  b = 0x0062,
218  c = 0x0063,
219  d = 0x0064,
220  e = 0x0065,
221  f = 0x0066,
222  g = 0x0067,
223  h = 0x0068,
224  i = 0x0069,
225  j = 0x006a,
226  k = 0x006b,
227  l = 0x006c,
228  m = 0x006d,
229  n = 0x006e,
230  o = 0x006f,
231  p = 0x0070,
232  q = 0x0071,
233  r = 0x0072,
234  s = 0x0073,
235  t = 0x0074,
236  u = 0x0075,
237  v = 0x0076,
238  w = 0x0077,
239  x = 0x0078,
240  y = 0x0079,
241  z = 0x007a,
242  braceleft = 0x007b,
243  bar = 0x007c,
244  braceright = 0x007d,
245  asciitilde = 0x007e,
246  nobreakspace = 0x00a0,
247  exclamdown = 0x00a1, /* INVERTED EXCLAMATION MARK */
248  cent = 0x00a2, /* CENT SIGN */
249  sterling = 0x00a3, /* POUND SIGN */
250  currency = 0x00a4, /* CURRENCY SIGN */
251  yen = 0x00a5, /* YEN SIGN */
252  brokenbar = 0x00a6, /* BROKEN BAR */
253  section = 0x00a7, /* SECTION SIGN */
254  diaeresis = 0x00a8, /* DIAERESIS */
255  copyright = 0x00a9, /* COPYRIGHT SIGN */
256  ordfeminine = 0x00aa, /* FEMININE ORDINAL INDICATOR */
257  guillemotleft = 0x00ab, /* LEFT-POINTING DOUBLE ANGLE QUOTATION MARK */
258  notsign = 0x00ac, /* NOT SIGN */
259  hyphen = 0x00ad, /* SOFT HYPHEN */
260  registered = 0x00ae, /* REGISTERED SIGN */
261  macron = 0x00af, /* MACRON */
262  degree = 0x00b0, /* DEGREE SIGN */
263  plusminus = 0x00b1, /* PLUS-MINUS SIGN */
264  twosuperior = 0x00b2,
265  threesuperior = 0x00b3, /* SUPERSCRIPT THREE */
266  acute = 0x00b4, /* ACUTE ACCENT */
267  mu = 0x00b5, /* MICRO SIGN */
268  paragraph = 0x00b6, /* PILCROW SIGN */
269  periodcentered = 0x00b7, /* MIDDLE DOT */
270  cedilla = 0x00b8, /* CEDILLA */
271  onesuperior = 0x00b9, /* SUPERSCRIPT ONE */
272  masculine = 0x00ba, /* MASCULINE ORDINAL INDICATOR */
273  guillemotright = 0x00bb, /* RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK */
274  onequarter = 0x00bc, /* VULGAR FRACTION ONE QUARTER */
275  onehalf = 0x00bd, /* VULGAR FRACTION ONE HALF */
276  threequarters = 0x00be, /* VULGAR FRACTION THREE QUARTERS */
277  questiondown = 0x00bf, /* INVERTED QUESTION MARK */
278  Agrave = 0x00c0, /* CAPITAL LETTER A WITH GRAVE */
279  Aacute = 0x00c1, /* CAPITAL LETTER A WITH ACUTE */
280  Acircumflex = 0x00c2, /* CAPITAL LETTER A WITH CIRCUMFLEX */
281  Atilde = 0x00c3, /* CAPITAL LETTER A WITH TILDE */
282  Adiaeresis = 0x00c4, /* CAPITAL LETTER A WITH DIAERESIS */
283  Aring = 0x00c5, /* CAPITAL LETTER A WITH RING ABOVE */
284  AE = 0x00c6, /* CAPITAL LETTER AE */
285  Ccedilla = 0x00c7, /* CAPITAL LETTER C WITH CEDILLA */
286  Egrave = 0x00c8, /* CAPITAL LETTER E WITH GRAVE */
287  Eacute = 0x00c9, /* CAPITAL LETTER E WITH ACUTE */
288  Ecircumflex = 0x00ca, /* CAPITAL LETTER E WITH CIRCUMFLEX */
289  Ediaeresis = 0x00cb, /* CAPITAL LETTER E WITH DIAERESIS */
290  Igrave = 0x00cc, /* CAPITAL LETTER I WITH GRAVE */
291  Iacute = 0x00cd, /* CAPITAL LETTER I WITH ACUTE */
292  Icircumflex = 0x00ce, /* CAPITAL LETTER I WITH CIRCUMFLEX */
293  Idiaeresis = 0x00cf, /* CAPITAL LETTER I WITH DIAERESIS */
294  ETH = 0x00d0, /* CAPITAL LETTER ETH */
295  Ntilde = 0x00d1, /* CAPITAL LETTER N WITH TILDE */
296  Ograve = 0x00d2, /* CAPITAL LETTER O WITH GRAVE */
297  Oacute = 0x00d3, /* CAPITAL LETTER O WITH ACUTE */
298  Ocircumflex = 0x00d4, /* CAPITAL LETTER O WITH CIRCUMFLEX */
299  Otilde = 0x00d5, /* CAPITAL LETTER O WITH TILDE */
300  Odiaeresis = 0x00d6, /* CAPITAL LETTER O WITH DIAERESIS */
301  multiply = 0x00d7, /* MULTIPLICATION SIGN */
302  Oslash = 0x00d8, /* CAPITAL LETTER O WITH STROKE */
303  Ugrave = 0x00d9, /* CAPITAL LETTER U WITH GRAVE */
304  Uacute = 0x00da, /* CAPITAL LETTER U WITH ACUTE */
305  Ucircumflex = 0x00db, /* CAPITAL LETTER U WITH CIRCUMFLEX */
306  Udiaeresis = 0x00dc, /* CAPITAL LETTER U WITH DIAERESIS */
307  Yacute = 0x00dd, /* CAPITAL LETTER Y WITH ACUTE */
308  THORN = 0x00de, /* CAPITAL LETTER THORN */
309  ssharp = 0x00df, /* SMALL LETTER SHARP S */
310  agrave = 0x00e0, /* SMALL LETTER A WITH GRAVE */
311  aacute = 0x00e1, /* SMALL LETTER A WITH ACUTE */
312  acircumflex = 0x00e2, /* SMALL LETTER A WITH CIRCUMFLEX */
313  atilde = 0x00e3, /* SMALL LETTER A WITH TILDE */
314  adiaeresis = 0x00e4, /* SMALL LETTER A WITH DIAERESIS */
315  aring = 0x00e5, /* SMALL LETTER A WITH RING ABOVE */
316  ae = 0x00e6, /* SMALL LETTER AE */
317  ccedilla = 0x00e7, /* SMALL LETTER C WITH CEDILLA */
318  egrave = 0x00e8, /* SMALL LETTER E WITH GRAVE */
319  eacute = 0x00e9, /* SMALL LETTER E WITH ACUTE */
320  ecircumflex = 0x00ea, /* SMALL LETTER E WITH CIRCUMFLEX */
321  ediaeresis = 0x00eb, /* SMALL LETTER E WITH DIAERESIS */
322  igrave = 0x00ec, /* SMALL LETTER I WITH GRAVE */
323  iacute = 0x00ed, /* SMALL LETTER I WITH ACUTE */
324  icircumflex = 0x00ee, /* SMALL LETTER I WITH CIRCUMFLEX */
325  idiaeresis = 0x00ef, /* SMALL LETTER I WITH DIAERESIS */
326  eth = 0x00f0, /* SMALL LETTER ETH */
327  ntilde = 0x00f1, /* SMALL LETTER N WITH TILDE */
328  ograve = 0x00f2, /* SMALL LETTER O WITH GRAVE */
329  oacute = 0x00f3, /* SMALL LETTER O WITH ACUTE */
330  ocircumflex = 0x00f4, /* SMALL LETTER O WITH CIRCUMFLEX */
331  otilde = 0x00f5, /* SMALL LETTER O WITH TILDE */
332  odiaeresis = 0x00f6, /* SMALL LETTER O WITH DIAERESIS */
333  division = 0x00f7, /* DIVISION SIGN */
334  oslash = 0x00f8, /* SMALL LETTER O WITH STROKE */
335  ugrave = 0x00f9, /* SMALL LETTER U WITH GRAVE */
336  uacute = 0x00fa, /* SMALL LETTER U WITH ACUTE */
337  ucircumflex = 0x00fb, /* SMALL LETTER U WITH CIRCUMFLEX */
338  udiaeresis = 0x00fc, /* SMALL LETTER U WITH DIAERESIS */
339  yacute = 0x00fd, /* SMALL LETTER Y WITH ACUTE */
340  thorn = 0x00fe, /* SMALL LETTER THORN */
341  ydiaeresis = 0x00ff, /* SMALL LETTER Y WITH DIAERESIS */
342  EuroSign = 0x20ac /* EURO SIGN */
343 };
344 
347 std::ostream& operator<<(std::ostream& os,const EZKeySym& k);
348 
350 struct sEz_event;
352 
354 class EZEvent {
356  const struct sEz_event* ez_event;
357  inline void setEvent(const struct sEz_event *e) { ez_event = e; }
358  EZEvent(const struct sEz_event *);
360 public:
362  int mouseX() const;
364  int mouseY() const;
366  int mouseButton() const;
368  EZKeySym keySym() const;
370  std::string keyName() const;
372  size_t keyCount() const;
375  const char * keyString() const;
376  friend class EZWindow;
377 };
378 
381 class EZWindow {
383  EZEvent current_event;
384  bool _isVisible;
385  EZWindow (const EZWindow&) = delete;
386  const EZWindow& operator= (const EZWindow&) = delete;
387  static void dispatch(struct sEz_event *e);
389 public:
394  EZWindow (int width=320, int height=200, const char *title="");
395 
397  virtual ~EZWindow ();
398 
403  void setDoubleBuffer (bool state=true);
404 
405 
409  void setWidth (unsigned int width);
410 
414  void setHeight (unsigned int height);
415 
420  void setWidthHeight(unsigned int width, unsigned int height);
421 
423  unsigned int getWidth () const;
424 
426  unsigned int getHeight () const;
427 
431  bool isVisible () const { return _isVisible; }
432 
436  void setVisible (bool visible=true);
437 
440  void clear () const;
441 
445  void setColor (EZColor color);
446 
449  void setThick (int thick=1);
450 
454  static EZColor getRGB (EZuint8 red, EZuint8 green, EZuint8 blue);
455 
458  static EZColor getHSV (double hue, double saturation, double value);
459 
463  static EZColor getGrey (unsigned long gray);
464 
468  static void HSVtoRGB (double hue, double saturation, double value, EZuint8& red, EZuint8& green, EZuint8& blue);
469 
481  void loadFont (int num,const char *name);
482 
485  void setFont (int num);
486 
490  void drawPoint (int x, int y) const;
491 
496  void drawLine (int x1, int y1, int x2, int y2) const;
497 
502  void drawRectangle(int x1, int y1, int x2, int y2) const;
503 
508  void fillRectangle(int x1, int y1, int x2, int y2) const;
509 
514  void drawCircle (int x1, int y1, int x2, int y2) const;
515 
520  void fillCircle (int x1, int y1, int x2, int y2) const;
521 
527  void drawTriangle (int x1, int y1, int x2, int y2, int x3, int y3) const;
528 
534  void fillTriangle (int x1, int y1, int x2, int y2, int x3, int y3) const;
535 
540  void drawText (EZAlign align,int x,int y,const std::string &str) const;
541 
547  void drawText (EZAlign align,int x,int y,const char *str) const;
548 
551  void sendExpose () const;
552 
555  void startTimer (unsigned int delay) const;
556 
559  void stopTimer () const;
560 
561  // Gestion des Événements
563  inline const EZEvent& currentEvent () const { return current_event; }
564 
567  virtual void expose ();
568 
570  virtual void close ();
571 
578  virtual void buttonPress (int mouse_x,int mouse_y,int button);
579 
582  virtual void buttonRelease(int mouse_x,int mouse_y,int button);
583 
587  virtual void motionNotify (int mouse_x,int mouse_y,int button);
588 
591  virtual void keyPress (EZKeySym keysym);
592 
595  virtual void keyRelease (EZKeySym keysym);
596 
599  virtual void configureNotify(int width,int height);
600 
603  virtual void timerNotify ();
604 
606  friend class EZImage;
607  friend class EZPixmap;
609 };
610 
613 class EZDraw {
615  friend class EZWindow;
617 public:
622  EZDraw();
625  virtual ~EZDraw();
626 
629  static void quit();
630 
633  void setAutoQuit(bool value);
634 
637  void mainLoop();
638 
642  static int random(int n);
643 
646  static double getTime();
647 };
648 
652 class EZPixel {
653  EZuint8 *p;
654  inline EZPixel(EZuint8 *_p) : p(_p) {}
655  public:
657  inline EZuint8 getRed() const { return p[0]; }
659  inline EZuint8 getGreen() const { return p[1]; }
661  inline EZuint8 getBlue() const { return p[2]; }
663  inline EZuint8 getAlpha() const { return p[3]; }
665  inline void setRed(EZuint8 r) { p[0] = r; }
667  inline void setGreen(EZuint8 g) { p[1] = g; }
669  inline void setBlue(EZuint8 b) { p[2] = b; }
671  inline void setAlpha(EZuint8 a) { p[3] = a; }
672  friend class EZImage;
673 };
674 
675 struct sEz_image;
676 
679 class EZImage final {
680  struct sEz_image *image;
681  EZImage(struct sEz_image*);
682  EZImage() = delete;
683 public:
686  EZImage(int width, int height);
688  EZImage(const EZImage&);
692  EZImage(const char *filename);
694  ~EZImage();
696  unsigned int getWidth() const;
698  unsigned int getHeight() const;
701  void setAlpha(bool has_alpha);
703  bool getAlpha() const;
707  void setOpacity(int opacity);
711  int getOpacity() const;
715  EZPixel getPixel(unsigned int x,unsigned int y);
720  void paint(EZWindow& win,int x,int y) const;
727  void paintSubimage(EZWindow& win,int x, int y,int src_x, int src_y, int width, int height) const;
729  void print(int src_x, int src_y, int w, int h) const;
733  void fillRGBA(EZuint8 red, EZuint8 green, EZuint8 blue, EZuint8 alpha);
740  void blend(const EZImage& src, int dst_x, int dst_y);
746  void blendSubimage(const EZImage& src, int dst_x, int dst_y,int src_x, int src_y, int width, int height);
751  EZImage *extract(int src_x, int src_y, int width, int height) const;
754  EZImage *verticalSymmetry() const;
757  EZImage *horizontalSymmetry() const;
762  EZImage* scale(double factor) const;
771  EZImage* rotate(double theta,int quality) const;
778  void rotatePoint(double theta, int src_x, int src_y,int& dst_x, int& dst_y);
779  friend class EZPixmap;
780 };
781 
782 struct sEz_pixmap;
783 
788 class EZPixmap final {
789  struct sEz_pixmap *pixmap;
790  EZPixmap()=delete;
791 public:
795  EZPixmap(const EZImage& image);
797  ~EZPixmap();
801  void paint(EZWindow& win,int x, int y) const;
806  void tile(EZWindow& win,int x, int y, int width, int height) const;
807 };
808 
809 #endif
void setAlpha(EZuint8 a)
Accesseur pour modifier la valeur de la composante alpha du pixel.
Definition: ez-draw++.hpp:671
EZColor ez_grey
Gris.
touche de fonction « F9 »
exposant deux
A (majuscule)
Suppr(ession)
EZuint8 getGreen() const
Accesseur pour obtenir la valeur de la composante verte du pixel.
Definition: ez-draw++.hpp:659
la tabulation « –>| »
flèche vers la droite
flèche vers le bas
void setRed(EZuint8 r)
Accesseur pour modifier la valeur de la composante rouge du pixel.
Definition: ez-draw++.hpp:665
c (minuscule)
P (majuscule)
touche « 8 » du pavé numérique
Bottom Center.
Espace non-sécable.
touche « = » du pavé numérique
Astérisque.
Chiffre 4.
r (minuscule)
Esperluette (« Et commercial ») : « & »
touche Alt (droite)
touche Droite du pavé numérique
p (minuscule)
trouche Contrôle (droite)
Inser(tion)
touche Meta (droite)
b (minuscule)
Top Center.
touche « 1 » du pavé numérique
touche « 7 » du pavé numérique
touche Alt (gauche)
B (majuscule)
D (majuscule)
touche Début du pavé numérique
Parenthèse ouvrante.
touche « 6 » du pavé numérique
touche de fonction « F5 »
Symbole suppérieur à
EZColor ez_cyan
Cyan.
touche de fonction « F11 »
Carractère « souligné » : « _ »
l (minuscule)
touche « 2 » du pavé numérique
Guillemet anglaise : « " »
touche Separateur du pavé numérique
Bottom Right with background filled.
Middle Center with background filled.
Chiffre 3.
V (majuscule)
EZColor ez_green
Vert.
h (minuscule)
s (minuscule)
La classe EZWindow correspond à une fenêtre sous Windows ou sous UNIX.
Definition: ez-draw++.hpp:381
touche « 9 » du pavé numérique
k (minuscule)
Barre oblique : « / »
Bottom Center with background filled.
j (minuscule)
Y (majuscule)
J (majuscule)
unsigned int EZColor
Type entier (non-signé) permettant de représenter une valeur de couleur.
Definition: ez-draw++.hpp:28
bool isVisible() const
Indique si la fenêtre est visible à l&#39;écran.
Definition: ez-draw++.hpp:431
W (majuscule)
Symbole point virgule.
Chiffre 0.
Barre verticale : « | »
f (minuscule)
R (majuscule)
Bottom Right.
EZColor ez_blue
Bleu.
touche de fonction « F3 »
touche Gauche du pavé numérique
La classe EZImage permet de conserver une image en mémoire puis de la tracer à l&#39;écran.
Definition: ez-draw++.hpp:679
touche de fonction « F1 »
touche Gauche du pavé numérique
T (majuscule)
Symbole deux points.
Ver(rouillage) Num(érique)
touche de fonction « F2 »
flèche vers la gauche
Une instance de la classe EZDraw est nécessaire au bon fonctionnement de votre application.
Definition: ez-draw++.hpp:613
touche Page Précédente
Accent circonflexe (seul) : « ^ »
EZAlign
Le type énuméré EZAlign contient un ensemble de constantes permettant d&#39;exprimer la façon ton un text...
Definition: ez-draw++.hpp:50
EZuint8 getRed() const
Accesseur pour obtenir la valeur de la composante rouge du pixel.
Definition: ez-draw++.hpp:657
q (minuscule)
Parenthèse fermante.
Signe moins.
EZColor ez_white
Blanc.
const EZEvent & currentEvent() const
Accesseur pour l&#39;événement en cours d&#39;analyse sur la file des événements.
Definition: ez-draw++.hpp:563
Chiffre 8.
Top Center with background filled.
touche Haut du pavé numérique
Début « |< »
Accolade ouvrante : « { »
x (minuscule)
C (majuscule)
EZuint8 getBlue() const
Accesseur pour obtenir la valeur de la composante bleue du pixel.
Definition: ez-draw++.hpp:661
le retour arrière « <– »
void setGreen(EZuint8 g)
Accesseur pour modifier la valeur de la composante verte du pixel.
Definition: ez-draw++.hpp:667
Top Right.
Accent tilde (seul)
i (minuscule)
Majusculte (droite)
touche de fonction « F12 »
N (majuscule)
a (minuscule)
Crochet ouvrant : « [ »
touche « 5 » du pavé numérique
touche Fin du pavé numérique
Majusculte (gauche)
unsigned char EZuint8
Type entier 8 bits non-signé permettant de représenter une valeur entre 0 et 255 inclus.
Definition: ez-draw++.hpp:24
touche Entrée du pavé numérique
EZColor ez_red
Rouge.
touche Début du pavé numérique
Sumbole égual à
touche de fonction « F8 »
EZColor ez_magenta
Magenta.
La classe EZPixmap permet d&#39;améliorer nettement les performances de tracé à l&#39;écran par rapport à la ...
Definition: ez-draw++.hpp:788
S (majuscule)
z (minuscule)
I (majuscule)
o (minuscule)
Middle Left.
touche « + » du pavé numérique
Bottom Left with background filled.
touche Page Précédente du pavé numérique
Middle Left with background filled.
la touche Arrêt de défil(ement)
F (majuscule)
Chiffre 7.
EZKeySym
Ce type énuméré rassemble la liste des identifiants permettant d&#39;indiquer une touche de clavier...
Definition: ez-draw++.hpp:84
la touche Entrée
Point d&#39;interogation.
M (majuscule)
Symbole inférieur à
Symbole du dollar : « $ »
Middle Right with background filled.
X (majuscule)
E (majuscule)
Point d&#39;exclamation.
Chiffre 6.
touche de fonction « F7 »
touche « 4 » du pavé numérique
touche « 3 » du pavé numérique
touche de fonction « F6 »
U (majuscule)
Top Left with background filled.
Chiffre 5.
La classe EZPixel représente un pixel dans une EZImage.
Definition: ez-draw++.hpp:652
Chiffre 1.
Crochet fermant : « ] »
touche « 0 » du pavé numérique
touche de fonction « F10 »
Symbole du pourcent : « % »
v (minuscule)
Arobase : « @ »
Chiffre 9.
flèche vers le haut
Z (majuscule)
Chiffre 2.
Middle Center.
g (minuscule)
G (majuscule)
dièse : « # »
touche « / » du pavé numérique
u (minuscule)
void setBlue(EZuint8 b)
Accesseur pour modifier la valeur de la composante bleue du pixel.
Definition: ez-draw++.hpp:669
m (minuscule)
EZColor ez_black
Ensemble de constantes permettant de dessiner simplement dans les couleurs les plus fréquentes (sans ...
K (majuscule)
Top Left.
touche Page Suivante du pavé numérique
Accent grave (seul) : « ` »
La classe EZEvent représente un événement à traiter de l&#39;interface graphique : clic de la souris...
Definition: ez-draw++.hpp:354
Fin « >| »
n (minuscule)
la touche pause
touche Meta (gauche)
Middle Right.
y (minuscule)
touche « - » du pavé numérique
L (majuscule)
Accolade fermante : « } »
e (minuscule)
Q (majuscule)
O (majuscule)
touche « * » du pavé numérique
Verouillage Majusculte.
w (minuscule)
Top Right with background filled.
d (minuscule)
Signe plus.
trouche Contrôle (gauche)
Barre oblique renversée : « \ »
EZColor ez_yellow
Jaune.
std::ostream & operator<<(std::ostream &os, const EZKeySym &k)
Opérateur d&#39;injection d&#39;un EZKeySym sur un flux.
Definition: ez-draw++.cpp:3518
Bottom Left.
la touche Échap(pement)
H (majuscule)
touche Page Suivante
t (minuscule)
EZuint8 getAlpha() const
Accesseur pour obtenir la valeur de la composante alpha du pixel.
Definition: ez-draw++.hpp:663
touche de fonction « F4 »