Added internal wxHatchStyle enum.
It's annoying that the same code for hatched pens and brushes can't be reused without relying on deprecated wxXXX_HATCH constants, so add new, non-deprecated, wxHatchStyle enum that can be used in such code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -30,26 +30,29 @@ enum wxBrushStyle
|
||||
wxBRUSHSTYLE_STIPPLE = wxSTIPPLE,
|
||||
/**< Uses a bitmap as a stipple. */
|
||||
|
||||
wxBRUSHSTYLE_BDIAGONAL_HATCH = wxBDIAGONAL_HATCH,
|
||||
wxBRUSHSTYLE_BDIAGONAL_HATCH,
|
||||
/**< Backward diagonal hatch. */
|
||||
|
||||
wxBRUSHSTYLE_CROSSDIAG_HATCH = wxCROSSDIAG_HATCH,
|
||||
wxBRUSHSTYLE_CROSSDIAG_HATCH,
|
||||
/**< Cross-diagonal hatch. */
|
||||
|
||||
wxBRUSHSTYLE_FDIAGONAL_HATCH = wxFDIAGONAL_HATCH,
|
||||
wxBRUSHSTYLE_FDIAGONAL_HATCH,
|
||||
/**< Forward diagonal hatch. */
|
||||
|
||||
wxBRUSHSTYLE_CROSS_HATCH = wxCROSS_HATCH,
|
||||
wxBRUSHSTYLE_CROSS_HATCH,
|
||||
/**< Cross hatch. */
|
||||
|
||||
wxBRUSHSTYLE_HORIZONTAL_HATCH = wxHORIZONTAL_HATCH,
|
||||
wxBRUSHSTYLE_HORIZONTAL_HATCH,
|
||||
/**< Horizontal hatch. */
|
||||
|
||||
wxBRUSHSTYLE_VERTICAL_HATCH = wxVERTICAL_HATCH,
|
||||
wxBRUSHSTYLE_VERTICAL_HATCH,
|
||||
/**< Vertical hatch. */
|
||||
|
||||
wxBRUSHSTYLE_FIRST_HATCH = wxFIRST_HATCH,
|
||||
wxBRUSHSTYLE_LAST_HATCH = wxLAST_HATCH,
|
||||
wxBRUSHSTYLE_FIRST_HATCH,
|
||||
/**< First of the hatch styles (inclusive). */
|
||||
|
||||
wxBRUSHSTYLE_LAST_HATCH
|
||||
/**< Last of the hatch styles (inclusive). */
|
||||
};
|
||||
|
||||
|
||||
|
@@ -64,8 +64,11 @@ enum wxPenStyle
|
||||
wxPENSTYLE_VERTICAL_HATCH,
|
||||
/**< Vertical hatch. */
|
||||
|
||||
wxPENSTYLE_FIRST_HATCH = wxPENSTYLE_BDIAGONAL_HATCH,
|
||||
wxPENSTYLE_LAST_HATCH = wxPENSTYLE_VERTICAL_HATCH
|
||||
wxPENSTYLE_FIRST_HATCH,
|
||||
/**< First of the hatch styles (inclusive). */
|
||||
|
||||
wxPENSTYLE_LAST_HATCH
|
||||
/**< Last of the hatch styles (inclusive). */
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user