Check-in [e8a1076d1e]
Not logged in
Overview
Comment: Release 2015.12.01 The big addition to this release in the widget::TextInput object. This object allows the end-user to enter text. New Features Qt|widget::TextInput Other Changes qt/bin/mkcpp can generate header files using the "hprivate" extension Qt|widget::Label has some API breakage to simplify its interface Tarball | ZIP archive | SQL archive family | ancestors | descendants | both | release | master | 2015.12.01 files | file ages | folders e8a1076d1e2efb737ca4c202c43d3c0b0a57ad7c3cad74daec5ac4a3ee11be7f zakero 2015-12-01 03:26:20
Context
 2015-12-01 03:33 Updated the Roadmap. check-in: 97a8a6943b user: zakero tags: master 03:26 Release 2015.12.01 The big addition to this release in the widget::TextInput object. This object allows the end-user to enter text. New Features Qt|widget::TextInput Other Changes qt/bin/mkcpp can generate header files using the "hprivate" extension Qt|widget::Label has some API breakage to simplify its interface check-in: e8a1076d1e user: zakero tags: 2015.12.01, master, release 03:13 Merged the latest changes from the "Scripts" branch. qt/bin/mkcpp Added support for private headers via the "--private" arg check-in: 5ebf23ac86 user: zakero tags: master
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to dox/doxyfile.

 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48   PROJECT_NAME = "Blade: The Game Engine" # The PROJECT_NUMBER tag can be used to enter a project or revision number. This # could be handy for archiving the generated documentation or if some version # control system is used. PROJECT_NUMBER = "2015.11.01" # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a # quick idea about the purpose of the project. Keep the description short. PROJECT_BRIEF =   |  34 35 36 37 38 39 40 41 42 43 44 45 46 47 48   PROJECT_NAME = "Blade: The Game Engine" # The PROJECT_NUMBER tag can be used to enter a project or revision number. This # could be handy for archiving the generated documentation or if some version # control system is used. PROJECT_NUMBER = "2015.12.01" # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a # quick idea about the purpose of the project. Keep the description short. PROJECT_BRIEF = 

Changes to java/dox/api/html/annotated.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/bug.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304  
State: Alive. More...

static final int STATE_DEAD = -2

Detailed Description

The role of this widget is to render text. The text will not be rendered outside of the Label.

The size of the Label must be specified, since its initial size has a width and height of 0.

Extending Ideas
The Label widget extends Actor, like all other widgets, so additional functionality can be added by extending the Label and making use of the Actor's State (com.zakero.blade.Actor). For example, if the Label is alive (com.zakero.blade.Actor.isAlive()) then the text can be a bright color and a dark color if the Label is dead (com.zakero.blade.Actor.isDead()).

Constructor & Destructor Documentation

  | |  36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304  
State: Alive. More...

static final int STATE_DEAD = -2

Detailed Description

The role of this widget is to render text. Any text that would be rendered outside of the Label will be clipped.

The size of the Label must be specified, since its initial size has a width and height of 0.

Extending Ideas
The Label widget extends Actor, like all other widgets, so additional functionality can be added by extending the Label and making use of the Actor's State (com.zakero.blade.Actor). For example, if the Label is alive (com.zakero.blade.Actor.isAlive()) then the text can be a bright color and a dark color if the Label is dead (com.zakero.blade.Actor.isDead()).

Constructor & Destructor Documentation



Changes to java/dox/api/html/classes.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/dir_011b17ef453c4f5d76c7d126aa05f8a1.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/dir_2a4cdb88fe23d041689a77ec6865c37e.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/dir_2bc9d4cddf89b0fc390242a01fc6b271.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/dir_47786eeda6776ddcaeb4e53356d5cae3.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/dir_78ee54ebb0927fa19700b1ea8a45c8e0.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/dir_88d0c8cbb7edbb13d223e43ee61d701d.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/dir_9e04ff3a4504cac18c82d2a5a19c6c71.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/dir_9e51986a8a0d541823958eb8f0c9ee97.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/dir_ec51986d286279e90f45f490e865d27a.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/dir_f647e48dce538a0254de072d6b58b476.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_a.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_b.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_c.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_d.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_e.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_f.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_b.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_c.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_d.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_e.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_f.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_g.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_h.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_i.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_j.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_k.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_l.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_m.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_n.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_o.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_p.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_r.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_s.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_t.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_u.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_v.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_w.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_func_z.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_g.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_h.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_i.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_j.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_k.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_l.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_m.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_n.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_o.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_p.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_q.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_r.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_s.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_t.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_u.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_v.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_vars.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_w.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_x.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_y.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/functions_z.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/graph_legend.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/hierarchy.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/index.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/inherits.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/pages.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/tileengine.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/todo.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/tutorial.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/tutorial_application.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/tutorial_effect_starfield.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/tutorial_stageactors.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/tutorial_tileengine.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to java/dox/api/html/tutorial_widgets.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/ActionManager_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Action_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/ActorManager_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Actor_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Ambient_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Animation_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Application_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Boundable_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Button_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250  
152  QRect background_area;
153  QColor background_color;
154 };
155 };
156 };
157
void setActor(Actor *, bool=false)
Change the managed Actor.
Definition: Button.cpp:383
virtual void onReleased()
The Button has been released.
Definition: Button.cpp:375
The Active Lambda callback.
Definition: Button.cpp:271
void setBackgroundColor(const QColor &)
Set the background color.
Definition: Button.cpp:209
The Active Lambda callback.
Definition: Button.cpp:332
An in-game entity.
Definition: Actor.h:69
virtual void update()
Update the Button.
Definition: Button.cpp:419
virtual void setLocation(const QPoint &)
Set the location.
Definition: Button.cpp:218
Core Compoents.
Definition: Actor.cpp:42
virtual void render(QPainter &graphics)
Render the Button.
Definition: Button.cpp:428
virtual void onPressed()
The Button has been pressed.
Definition: Button.cpp:367
A button.
Definition: Button.h:119
Constructor.
Definition: Button.cpp:128
virtual ~Button()
Destructor.
Definition: Button.cpp:195
virtual void setSize(const QSize &)
Set the size.
Definition: Button.cpp:243
The Lambda function typedef.
Definition: Action.h:98
Actor * takeActor()
Take the managed Actor.
Definition: Button.cpp:406
  | | | | | | | |  36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250  
152  QRect background_area;
153  QColor background_color;
154 };
155 };
156 };
157
void setActor(Actor *, bool=false)
Change the managed Actor.
Definition: Button.cpp:381
virtual void onReleased()
The Button has been released.
Definition: Button.cpp:373
The Active Lambda callback.
Definition: Button.cpp:271
void setBackgroundColor(const QColor &)
Set the background color.
Definition: Button.cpp:209
The Active Lambda callback.
Definition: Button.cpp:330
An in-game entity.
Definition: Actor.h:69
virtual void update()
Update the Button.
Definition: Button.cpp:417
virtual void setLocation(const QPoint &)
Set the location.
Definition: Button.cpp:218
Core Compoents.
Definition: Actor.cpp:42
virtual void render(QPainter &graphics)
Render the Button.
Definition: Button.cpp:426
virtual void onPressed()
The Button has been pressed.
Definition: Button.cpp:365
A button.
Definition: Button.h:119
Constructor.
Definition: Button.cpp:128
virtual ~Button()
Destructor.
Definition: Button.cpp:195
virtual void setSize(const QSize &)
Set the size.
Definition: Button.cpp:243
The Lambda function typedef.
Definition: Action.h:98
Actor * takeActor()
Take the managed Actor.
Definition: Button.cpp:404


Changes to qt/dox/api/html/Debug_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Dice_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Die_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Direction_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/GaugeHorizontal_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/GaugeVertical_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Gauge_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/GlyphGrid_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/GlyphMap_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Glyph_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Label_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241  
29 /******************************************************************************
30  * Includes
31  */
32
33 // ANSI/POSIX
34
35 // Qt
36 #include <QColor>
37 #include <QFont>
38 #include <QPen>
39 #include <QPoint>
40 #include <QRect>
41
44
45
46 /******************************************************************************
47  * Namespaces
48  */
49
50
51 /******************************************************************************
52  * Forward Declarations
53  */
54
55
56 /******************************************************************************
57  * Typedefs
58  */
59
60
61 /******************************************************************************
62  * Structures
63  */
64
65
66 /******************************************************************************
67  * Classes
68  */
69
71 {
72 namespace widget
73 {
74 class Label
75  : public Actor
76 {
77  public:
78  explicit Label(const QString&);
79  virtual ~Label();
80
81  void setBackgroundColor(const QColor&);
82  void setFont(const QFont&, const bool = false);
83  void setFontAlignment(const Qt::Alignment&);
84  void setFontColor(const QColor&);
85  void setText(const QString& = "", const bool = false);
86
87  int pointSize() const;
88  void setPointSize(const int, const bool = false);
89
90  virtual void setLocation(const QPoint&);
91  virtual void setSize(const QSize&);
92  virtual void setSize(const QSize&, const bool);
93
94  virtual void render(QPainter&);
95
96  protected:
97  void resizeTextToFit();
98
99  private:
100  QColor background_color;
101  QFont font;
102  QPen font_pen;
103  QPoint location;
104  QRect background_area;
105  QString text;
106  int font_alignment;
107 };
108 };
109 };
110
A simple label.
Definition: Label.h:74
void resizeTextToFit()
Resize the text.
Definition: Label.cpp:149
virtual void render(QPainter &)
Draw the object.
Definition: Label.cpp:307
virtual void setLocation(const QPoint &)
Set the location.
Definition: Label.cpp:277
void setFont(const QFont &, const bool=false)
Change the font.
Definition: Label.cpp:210
An in-game entity.
Definition: Actor.h:69
void setPointSize(const int, const bool=false)
Change the font point size.
Definition: Label.cpp:265
void setBackgroundColor(const QColor &)
Set the background color.
Definition: Label.cpp:201
virtual ~Label()
Destructor.
Definition: Label.cpp:141
Core Compoents.
Definition: Actor.cpp:42
void setFontColor(const QColor &)
Set the color of the text.
Definition: Label.cpp:233
int pointSize() const
Get the font size.
Definition: Label.cpp:256
void setText(const QString &="", const bool=false)
Set the text.
Definition: Label.cpp:242
void setFontAlignment(const Qt::Alignment &)
Set the text location.
Definition: Label.cpp:224
Label(const QString &)
Constructor.
Definition: Label.cpp:119
virtual void setSize(const QSize &)
Set the size.
Definition: Label.cpp:285
  | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | < < < < < | | | | | < | | > | < | | | > |  36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236  
29 /******************************************************************************
30  * Includes
31  */
32
33 // ANSI/POSIX
34
35 // Qt
36
39
40
41 /******************************************************************************
42  * Namespaces
43  */
44
45
46 /******************************************************************************
47  * Forward Declarations
48  */
49
50
51 /******************************************************************************
52  * Typedefs
53  */
54
55
56 /******************************************************************************
57  * Structures
58  */
59
60
61 /******************************************************************************
62  * Classes
63  */
64
66 {
67 namespace widget
68 {
69
70 class FontUtil;
71
72 class Label
73  : public Actor
74 {
75  public:
76  explicit Label(const QString&);
77  virtual ~Label();
78
79  void setBackgroundColor(const QColor&);
80  void setText(const QString& = "", const bool = false);
81
82  void setFont(const QFont&, const bool = false);
83  void setFontAlignment(const Qt::Alignment&);
84  void setFontColor(const QColor&);
85  void setFontPointSize(const int);
86
87  virtual void setLocation(const QPoint&);
88  virtual void setSize(const QSize&);
89  virtual void setSize(const QSize&, const bool);
90
91  virtual void render(QPainter&);
92
93  protected:
94  void resizeTextToFit();
95
96  private:
97  FontUtil* font_util;
98  QColor background_color;
99  QPoint location;
100  QRect background_area;
101  QString text;
102 };
103 };
104 };
105
A simple label.
Definition: Label.h:72
void resizeTextToFit()
Resize the text.
Definition: Label.cpp:234
virtual void render(QPainter &)
Draw the object.
Definition: Label.cpp:244
virtual void setLocation(const QPoint &)
Set the location.
Definition: Label.cpp:201
void setFont(const QFont &, const bool=false)
Change the font.
Definition: Label.cpp:163
An in-game entity.
Definition: Actor.h:69
void setBackgroundColor(const QColor &)
Set the background color.
Definition: Label.cpp:140
virtual ~Label()
Destructor.
Definition: Label.cpp:130
Core Compoents.
Definition: Actor.cpp:42
void setFontPointSize(const int)
Change the font point size.
Definition: Label.cpp:195
void setFontColor(const QColor &)
Set the color of the text.
Definition: Label.cpp:186
void setText(const QString &="", const bool=false)
Set the text.
Definition: Label.cpp:149
void setFontAlignment(const Qt::Alignment &)
Set the text location.
Definition: Label.cpp:177
Label(const QString &)
Constructor.
Definition: Label.cpp:107
Encapsulate common Font-based operations.
Definition: FontUtil.hprivate:74
virtual void setSize(const QSize &)
Set the size.
Definition: Label.cpp:209


Changes to qt/dox/api/html/MapView_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Matrix_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/NameGenerator_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Pattern_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Random_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Renderable_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Screen_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Sensor_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/StageManager_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Stage_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/StarField_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

     > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241   Blade: The Game Engine: TextInputFont.h Source File
TextInputFont.h
1 /******************************************************************************
2  * Copyright 2015 Andrew Moore
3  *
4  * This file is part of Blade: The Game Engine.
5  *
6  * Blade: The Game Engine is free software: you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public License as
9  * or (at your option) any later version.
10  *
11  * Blade: The Game Engine is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with Blade: The Game Engine. If not, see
19  */
20
23
24 /******************************************************************************
25  * Defines
26  */
27
28
29 /******************************************************************************
30  * Includes
31  */
32
33 // ANSI/POSIX
34
35 // Qt
36
37 // Blade: The Game Engine
39
40
41 /******************************************************************************
42  * Namespaces
43  */
44
45
46 /******************************************************************************
47  * Forward Declarations
48  */
49
50
51 /******************************************************************************
52  * Typedefs
53  */
54
55
56 /******************************************************************************
57  * Structures
58  */
59
60
61 /******************************************************************************
62  * Classes
63  */
64
66 {
67 namespace widget
68 {
69 class FontUtil;
70
72  : public TextInput
73 {
74  public:
75  explicit TextInputFont(const QString&, const QPoint&, blade::input::ActionManager&);
76  virtual ~TextInputFont();
77
78  void setBackgroundColor(const QColor&);
79
80  void setFont(const QFont&);
81  void setFontAlignment(const Qt::Alignment&);
82  void setFontColor(const QColor&);
83  void setFontPointSize(const int);
84
85  void setLocation(const QPoint&);
86  void setSize(const QSize&);
87
88  void update();
89  void render(QPainter&);
90
92  TextInputFont(const TextInputFont&) = delete;
94  TextInputFont& operator=(const TextInputFont&) = delete;
95
97  TextInputFont(const TextInputFont&&) = delete;
99  TextInputFont& operator=(const TextInputFont&&) = delete;
100
101  protected:
102  virtual QPoint& calculateCursorOffset(const unsigned int, QPoint&);
103
104  private:
105  FontUtil* font_util;
106  QColor background_color;
107  QPoint location;
108  QRect bounds;
109 };
110 };
111 };
112
A TextInput based on System fonts.
Definition: TextInputFont.h:71
void setSize(const QSize &)
Set the size.
Definition: TextInputFont.cpp:188
void setFontPointSize(const int)
Change the font point size.
Definition: TextInputFont.cpp:174
virtual ~TextInputFont()
Destructor.
Definition: TextInputFont.cpp:128
void setLocation(const QPoint &)
Set the location.
Definition: TextInputFont.cpp:180
void setFont(const QFont &)
Change the font.
Definition: TextInputFont.cpp:147
virtual QPoint & calculateCursorOffset(const unsigned int, QPoint &)
Determine the text cursor location.
Definition: TextInputFont.cpp:196
TextInputFont(const QString &, const QPoint &, blade::input::ActionManager &)
Constructor.
Definition: TextInputFont.cpp:111
The base for text based input.
Definition: TextInput.h:70
Manage a collection of Actions.
Definition: ActionManager.h:137
Core Compoents.
Definition: Actor.cpp:42
void setFontColor(const QColor &)
Set the color of the text.
Definition: TextInputFont.cpp:165
void setBackgroundColor(const QColor &)
Set the background color.
Definition: TextInputFont.cpp:138
void render(QPainter &)
Draw the object.
Definition: TextInputFont.cpp:212
void update()
Update the object.
Definition: TextInputFont.cpp:206
void setFontAlignment(const Qt::Alignment &)
Set the text location.
Definition: TextInputFont.cpp:156
TextInputFont & operator=(const TextInputFont &)=delete
Disable Copy Constructors.
Encapsulate common Font-based operations.
Definition: FontUtil.hprivate:74


     > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327   Blade: The Game Engine: TextInput.h Source File
TextInput.h
1 /******************************************************************************
2  * Copyright 2015 Andrew Moore
3  *
4  * This file is part of Blade: The Game Engine.
5  *
6  * Blade: The Game Engine is free software: you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public License as
9  * or (at your option) any later version.
10  *
11  * Blade: The Game Engine is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with Blade: The Game Engine. If not, see
19  */
20
23
24 /******************************************************************************
25  * Defines
26  */
27
28
29 /******************************************************************************
30  * Includes
31  */
32
33 // ANSI/POSIX
34
35 // Qt
36
37 // Blade: The Game Engine
40
41
42 /******************************************************************************
43  * Namespaces
44  */
45
46
47 /******************************************************************************
48  * Forward Declarations
49  */
50
51
52 /******************************************************************************
53  * Typedefs
54  */
55
56
57 /******************************************************************************
58  * Structures
59  */
60
61
62 /******************************************************************************
63  * Classes
64  */
65
67 {
68 namespace widget
69 {
70 class TextInput
71  : public Actor
72 {
73  public:
74  using TriggerList = QList<const blade::input::TriggerOnKey*>;
75  using TriggerMap = QHash<const blade::input::TriggerOnKey*, QString>;
76
77  static const QString Delete_Left;
78  static const QString Delete_Right;
79  static const QString Position_Next;
80  static const QString Position_Previous;
81  static const QString Position_Start;
82  static const QString Position_End;
83
84  //explicit TextInput(name, ActionManager, ActorMap);
85  //explicit TextInput(name, ActionManager, GylphMap);
86  virtual ~TextInput();
87
91
94
95  void setDefaultMap(const TriggerMap&);
96
97  void setModifierMap(const TriggerMap&, const blade::input::TriggerOnKey&, const bool = false);
101
104  void useDefaultCursor();
105
106  void setCursorMap(const TriggerMap&);
107
110
111  void setState(const int&);
112
114  //showKeyMap();
115  //hideKeyMap();
116  //renderKeyMap();
117
118  const QString& text() const;
119  virtual void setText(const QString&);
120  virtual void setTextMaxLength(const unsigned int);
121
122  void setLocation(const QPoint&);
123  void setSize(const QSize&);
124
125  void update();
126
127  void render(QPainter&);
128
130  TextInput(const TextInput&) = delete;
132  TextInput& operator=(const TextInput&) = delete;
133
135  TextInput(const TextInput&&) = delete;
137  TextInput& operator=(const TextInput&&) = delete;
138
139  protected:
140  explicit TextInput(const QString&, const QPoint&, blade::input::ActionManager&);
141  virtual QPoint& calculateCursorOffset(const unsigned int index, QPoint& offset) = 0;
142
143  private:
144  void setupActions();
145
148
149  const QPoint& mouse_location;
151
152  QHash<const QString, QString> cursor_action;
157
158  TriggerMap key_map;
159  TriggerMap cursor_map;
160
161  QPoint location;
162  QPoint mouse_initial_location;
163  const QString base_name;
164  const QString action_input;
165  const QString action_modifier_onpress;
166  const QString action_modifier_toggle;
167  const QString cursor_name;
168  QString data;
169  unsigned int data_max_length;
170  unsigned int data_position;
171 };
172 };
173 };
174
static TriggerMap & getDefaultShiftMap(TriggerMap &)
Set the default map for the shifted text input.
Definition: TextInput.cpp:687
Key Event Triggers.
Definition: TriggerOnKey.h:72
virtual void setTextMaxLength(const unsigned int)
Set the max length.
Definition: TextInput.cpp:1091
void useDefaultCursor()
Use the default cursor actor.
Definition: TextInput.cpp:928
Provides the whenActive lambda.
Definition: TextInput.cpp:744
Provides the whenInactive lambda.
Definition: TextInput.cpp:775
virtual QPoint & calculateCursorOffset(const unsigned int index, QPoint &offset)=0
Determine the text cursor location.
Access the cursor actor.
Definition: TextInput.cpp:890
Set the Actor to use as the cursor.
Definition: TextInput.cpp:899
static const QString Position_Start
The Action name that will move the cursor to the beginning of the text.
Definition: TextInput.h:81
static const QString Position_End
The Action name that will move the cursor to the end of the text.
Definition: TextInput.h:82
TextInput & operator=(const TextInput &)=delete
Disable Copy Constructors.
Check if a modifier is active.
Definition: TextInput.cpp:853
static const QString Position_Next
The Action name that will move the cursor to the next character position.
Definition: TextInput.h:79
static TriggerMap & getDefaultKeyMap(TriggerMap &)
Set the default map for the text input.
Definition: TextInput.cpp:629
void setState(const int &)
Set the state.
Definition: TextInput.cpp:1022
QList< const blade::input::TriggerOnKey * > TriggerList
Simplify the data-types.
Definition: TextInput.h:74
Set the Actor to use as the background.
Definition: TextInput.cpp:996
void setLocation(const QPoint &)
Set the location.
Definition: TextInput.cpp:1104
static const QString Position_Previous
The Action name that will move the cursor to the previous character position.
Definition: TextInput.h:80
void setModifierMap(const TriggerMap &, const blade::input::TriggerOnKey &, const bool=false)
Set the text input map with a modifier.
Definition: TextInput.cpp:825
An in-game entity.
Definition: Actor.h:69
QHash< const blade::input::TriggerOnKey *, QString > TriggerMap
Simplify the data-types.
Definition: TextInput.h:75
static TriggerMap & getDefaultCursorMap(TriggerMap &)
Set the default cursor controls.
Definition: TextInput.cpp:613
virtual ~TextInput()
Destructor.
Definition: TextInput.cpp:351
static const QString Delete_Left
The Action name that will delete the character to the left of the cursor.
Definition: TextInput.h:77
void setSize(const QSize &)
Set the size.
Definition: TextInput.cpp:1111
void setDefaultMap(const TriggerMap &)
Set the default text input map.
Definition: TextInput.cpp:802
The base for text based input.
Definition: TextInput.h:70
Enable a modifier.
Definition: TextInput.cpp:862
TextInput(const TextInput &)=delete
Disable Copy Constructors.
void update()
Update the object.
Definition: TextInput.cpp:1132
Access the background actor.
Definition: TextInput.cpp:987
Manage a collection of Actions.
Definition: ActionManager.h:137
Core Compoents.
Definition: Actor.cpp:42
static const QString Delete_Right
The Action name that will delete the character to the right of the cursor.
Definition: TextInput.h:78
Disable a modifier.
Definition: TextInput.cpp:876
const QString & text() const
Get the text.
Definition: TextInput.cpp:1071
void setCursorMap(const TriggerMap &)
Set the trigger map cursor controls.
Definition: TextInput.cpp:945
virtual void setText(const QString &)
Set the text.
Definition: TextInput.cpp:1080
void render(QPainter &)
Draw the object.
Definition: TextInput.cpp:1141
The Lambda function typedef.
Definition: Action.h:98


Changes to qt/dox/api/html/TileActor_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/TileEngine_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/TileMap_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Tile_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Trig_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/TriggerOnKey_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/TriggerOnMouse_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Trigger_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Util_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/Vector_8h_source.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

Changes to qt/dox/api/html/annotated.html.

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177  
CTileMapStrategyGridThe Grid TileMap Strategy
  | > | | | | | | | | | > > >  36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181  
CTileMapStrategyGridThe Grid TileMap Strategy


 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 .... 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 .... 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 .... 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 .... 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 .... 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630  
An in-game entity. More...

Inheritance diagram for Actor:
Collaboration diagram for Actor:
................................................................................
graphicsThe graphics context to use.

Implements Renderable.

................................................................................
Parameters
locationThe new location.

Reimplemented in Menu, Button, MapView, GlyphGrid, Gauge, Label, and StarField.

................................................................................
Parameters
sizeThe new size

Reimplemented in Menu, Button, MapView, Gauge, and Label.

................................................................................

Set the new State of this Actor. All Blade internal State values are negative. Please use positive non-zero values to represent custom states.

Parameters
stateThe state value.
................................................................................
• Implements Renderable.

Member Data Documentation

  | | | | | > > |  36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 .... 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 .... 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 .... 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 .... 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 .... 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632  
An in-game entity. More...

Inheritance diagram for Actor:
Collaboration diagram for Actor:
................................................................................
graphicsThe graphics context to use.

Implements Renderable.

Reimplemented in Menu, Button, TextInput, Label, GaugeRadial, TextInputFont, TextInputCursor, GaugeHorizontal, and GaugeVertical.

................................................................................
Parameters
locationThe new location.

Reimplemented in Menu, Button, TextInput, MapView, GlyphGrid, Gauge, StarField, Label, TextInputFont, and TextInputCursor.

................................................................................
Parameters
sizeThe new size

Reimplemented in Menu, Button, TextInput, MapView, Gauge, Label, and TextInputFont.

................................................................................

Set the new State of this Actor. All Blade internal State values are negative. Please use positive non-zero values to represent custom states.

Parameters
stateThe state value.

Reimplemented in TextInput.

................................................................................
• Implements Renderable.

Member Data Documentation



 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 1 2 3 4 5 6 7 8 9 10 11     | | | | > > | | >  1 2 3 4 5 6 7 8 9 10 11 12 13 14   

 1  5947d6afbf2bdd4dea1138580b97986b  |  1  eb63607e8e25f05d5cec1e4e3d3b0e21 

cannot compute difference between binary files

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 ... 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 ... 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809  
Common bounds functionality. More...

Inheritance diagram for Boundable:
................................................................................
Parameters

Public Member Functions

virtual ~Boundable ()
Destructor. More...

locationThe new location.

Reimplemented in Menu, Button, MapView, GlyphGrid, Gauge, Label, and StarField.

................................................................................
Parameters
sizeThe new size

Reimplemented in Menu, Button, MapView, Gauge, and Label.

  | | | |  36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 ... 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 ... 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809  
Common bounds functionality. More...

Inheritance diagram for Boundable:
................................................................................
Parameters

Public Member Functions

virtual ~Boundable ()
Destructor. More...

locationThe new location.

Reimplemented in Menu, Button, TextInput, MapView, GlyphGrid, Gauge, StarField, Label, TextInputFont, and TextInputCursor.

................................................................................
Parameters
sizeThe new size

Reimplemented in Menu, Button, TextInput, MapView, Gauge, Label, and TextInputFont.



 1 2 3 4 5 6 7 8 9 10 11 12 13     | | | | | | | | > > >  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16   

 1  773fa1de995fc58c38ae616b55ab2f92  |  1  d3afed1e4006edc9776845ee1ffa2cad 

cannot compute difference between binary files

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 ... 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 ... 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197  

Inheritance diagram for Renderable:
................................................................................
Parameters

Public Member Functions

virtual void render (QPainter &graphics)=0
Draw the object. More...

graphicsThe graphics context to use.

Implemented in Menu, TileMap, Button, MapView, GlyphGrid, TileEngine, Animation, Tile, Actor, StarField, Glyph, Label, ActorManager, StageManager, GaugeRadial, GaugeHorizontal, and GaugeVertical.

................................................................................

This method is called when it is time for the object to update its internal state.

It is common for objects to need to know how much time has passed since the last time update() was called. This information can be found using:

Implemented in Menu, TileMap, Button, MapView, GlyphGrid, TileEngine, Animation, Tile, Actor, StarField, Glyph, ActorManager, StageManager, GaugeRadial, GaugeHorizontal, and GaugeVertical.

  | | | |  36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 ... 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 ... 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197  

Inheritance diagram for Renderable:
................................................................................
Parameters

Public Member Functions

virtual void render (QPainter &graphics)=0
Draw the object. More...

graphicsThe graphics context to use.

Implemented in Menu, TileMap, Button, MapView, TextInput, GlyphGrid, TileEngine, Animation, Tile, Actor, StarField, Glyph, ActorManager, Label, StageManager, GaugeRadial, TextInputFont, TextInputCursor, GaugeHorizontal, and GaugeVertical.

................................................................................

This method is called when it is time for the object to update its internal state.

It is common for objects to need to know how much time has passed since the last time update() was called. This information can be found using:

Implemented in Menu, TileMap, Button, MapView, TextInput, GlyphGrid, TileEngine, Animation, Tile, Actor, StarField, Glyph, ActorManager, StageManager, GaugeRadial, TextInputFont, TextInputCursor, GaugeHorizontal, and GaugeVertical.



 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22     | | | | | | | | | | | | | | | | > > | | | > |  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25   

 1  69aec37268615c127164ac66f6dd840c  |  1  e08547ba92869d794b5068d10566bdb7 

cannot compute difference between binary files

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 ... 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618  
Parameters
graphicsThe graphics context to use.

Implemented in Menu, TileMap, Button, MapView, GlyphGrid, TileEngine, Animation, Tile, Actor, StarField, Glyph, Label, ActorManager, StageManager, GaugeRadial, GaugeHorizontal, and GaugeVertical.

................................................................................

This method is called when it is time for the object to update its internal state.

It is common for objects to need to know how much time has passed since the last time update() was called. This information can be found using:

Implemented in Menu, TileMap, Button, MapView, GlyphGrid, TileEngine, Animation, Tile, Actor, StarField, Glyph, ActorManager, StageManager, GaugeRadial, GaugeHorizontal, and GaugeVertical.

  | | |  36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 ... 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618  
................................................................................

This method is called when it is time for the object to update its internal state.

It is common for objects to need to know how much time has passed since the last time update() was called. This information can be found using:

Implemented in Menu, TileMap, Button, MapView, TextInput, GlyphGrid, TileEngine, Animation, Tile, Actor, StarField, Glyph, ActorManager, StageManager, GaugeRadial, TextInputFont, TextInputCursor, GaugeHorizontal, and GaugeVertical.



 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 .... 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477  
Parameters
sizeThe new size

Reimplemented in Menu, Button, MapView, Gauge, and Label.

  | |  36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 .... 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477  
Parameters
sizeThe new size

Reimplemented in Menu, Button, TextInput, MapView, Gauge, Label, and TextInputFont.



 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 .... 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173  
Parameters
sizeThe new size

Reimplemented in Menu, Button, MapView, Gauge, and Label.

  | |  36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 .... 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173  

 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50  
Blade: The Game Engine  2015.11.01