Display a font selection dialog.
More...
#include <editor/fontdlg.h>
Display a font selection dialog.
- Todo:
- EW: Font scaling in the selection dialog. Now it is always scaled to fit in the window, but how to handle font sizes (eg. 0.000001 to 100000) in a consistent way? Maybe do the scaling in magnitudes of 10?
Definition at line 67 of file fontdlg.h.
int a2dTextPropDlg::GetAlignment |
( |
| ) |
const |
|
inline |
Get the position of the anchor point w.r.t the text.
- Returns
- The alignment setting.
Definition at line 107 of file fontdlg.h.
void a2dTextPropDlg::OnChangeFont |
( |
| ) |
|
void a2dTextPropDlg::SetAlignment |
( |
int |
alignment | ) |
|
|
inline |
Set the position of the anchor point w.r.t the text.
- Parameters
-
alignment | sets the direction of the anchor point. The direction can be set like e.g. wxMINX | wxMINY, meaning a specific corner of the boundingbox. Not specifying either a horizontal or vertical position will default to the centre. So only specifying wxMINX corresponds to the left and middle Y of bbox position. If Yaxis is up in a view, use wxBASELINE to have text origin start at (x,y). If Yaxis is down in a view, use wxBASELINE_CONTRA to have text origin start at (x,y). |
+-----^-----+ wxMAXY
| # |
| # |
| #### #### |
|# # # #|
+-####-#---#+ wxBASELINE
| # |
| ### |
+-----v-----+ wxMINY
wxMINX wxMAXX
Definition at line 99 of file fontdlg.h.
The documentation for this class was generated from the following files:
a2dTextPropDlg Class Reference -- Sun Oct 12 2014 17:04:50 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . --