Contains the moves editor for the currently opened game.
More...
#include <EditorCanvas.hpp>
|
| EditorCanvas (wxFrame *parent, std::shared_ptr< Game > game) |
|
void | OnPaint (wxPaintEvent &event) |
|
void | MouseEvent (wxMouseEvent &event) |
|
void | DrawElement (const cgeditor::Element &e) |
|
void | HandleEvent (const cgeditor::Event &e) |
|
void | SetMoves (HalfMove *moves, HalfMove *current) |
|
void | ApplyPreferences () |
|
|
wxPoint | Middle (cgeditor::Element e) |
| Convenient fonction to center text. More...
|
|
|
wxPaintDC * | dc |
|
wxBitmap | hide_icon |
|
Theme | t |
|
wxFont | default_font |
|
std::shared_ptr< Game > | game |
|
wxColour | color_scrollbar_bg |
|
wxColour | color_scrollbar |
|
wxColour | color_margin |
|
wxColour | color_comments_bg |
|
wxColour | color_current_move_bg |
|
wxColour | color_menu_item_bg |
|
Contains the moves editor for the currently opened game.
◆ Middle()
wxPoint EditorCanvas::Middle |
( |
cgeditor::Element |
e | ) |
|
|
private |
Convenient fonction to center text.
- Parameters
-
- Returns
- wxPoint The centered version of e according to wdWidget API
The documentation for this class was generated from the following files:
- /home/loic/Documents/Git/ochess/src/game_tab/right_panel/editor/EditorCanvas.hpp
- /home/loic/Documents/Git/ochess/src/game_tab/right_panel/editor/EditorCanvas.cpp