§ Drawing()
ewol::compositing::Drawing::Drawing |
( |
| ) |
|
§ ~Drawing()
virtual ewol::compositing::Drawing::~Drawing |
( |
| ) |
|
|
virtual |
§ addVertex()
void ewol::compositing::Drawing::addVertex |
( |
| ) |
|
add a point reference at the current position (this is a vertex reference at the current position
§ circle()
void ewol::compositing::Drawing::circle |
( |
float |
_radius, |
|
|
float |
_angleStart = 0 , |
|
|
float |
_angleStop = 2 *M_PI |
|
) |
| |
draw a 2D circle with the specify rafdius parameter.
- Parameters
-
[in] | _radius | Distence to the dorder |
[in] | _angleStart | start angle of this circle ([0..2PI] otherwithe == > disable) |
[in] | _angleStop | stop angle of this circle ([0..2PI] otherwithe == > disable) |
§ clear()
void ewol::compositing::Drawing::clear |
( |
| ) |
|
|
virtual |
clear alll tre registered element in the current element
Reimplemented from ewol::Compositing.
§ cube()
void ewol::compositing::Drawing::cube |
( |
const vec3 & |
_dest | ) |
|
draw a 3D rectangle to the position requested.
- Parameters
-
[in] | _dest | Position the the end of the rectangle |
§ draw()
void ewol::compositing::Drawing::draw |
( |
bool |
_disableDepthTest = true | ) |
|
|
virtual |
draw All the refistered text in the current element on openGL
Implements ewol::Compositing.
§ getColor()
const etk::Color& ewol::compositing::Drawing::getColor |
( |
| ) |
|
|
inline |
Get the foreground color of the font.
- Returns
- Foreground color.
§ getColorBg()
const etk::Color& ewol::compositing::Drawing::getColorBg |
( |
| ) |
|
|
inline |
Get the background color of the font.
- Returns
- Background color.
§ getPos()
const vec3& ewol::compositing::Drawing::getPos |
( |
| ) |
|
|
inline |
get the current display position (sometime needed in the gui control)
- Returns
- the current position.
§ lineRel()
void ewol::compositing::Drawing::lineRel |
( |
const vec3 & |
_vect | ) |
|
|
inline |
Relative drawing a line (spacial vector)
- Parameters
-
[in] | _vect | Vector of the curent line. |
§ lineTo()
void ewol::compositing::Drawing::lineTo |
( |
const vec3 & |
_dest | ) |
|
draw a line to a specific position
- Parameters
-
[in] | _dest | Position of the end of the line. |
§ rectangle()
void ewol::compositing::Drawing::rectangle |
( |
const vec3 & |
_dest | ) |
|
draw a 2D rectangle to the position requested.
- Parameters
-
[in] | _dest | Position the the end of the rectangle |
§ rectangleWidth()
void ewol::compositing::Drawing::rectangleWidth |
( |
const vec3 & |
_size | ) |
|
|
inline |
draw a 2D rectangle to the requested size.
- Parameters
-
[in] | _size | size of the rectangle |
§ setClipping()
void ewol::compositing::Drawing::setClipping |
( |
const vec3 & |
_pos, |
|
|
const vec3 & |
_posEnd |
|
) |
| |
Request a clipping area for the text (next draw only)
- Parameters
-
[in] | _pos | Start position of the clipping |
[in] | _posEnd | End position of the clipping |
§ setClippingMode()
void ewol::compositing::Drawing::setClippingMode |
( |
bool |
_newMode | ) |
|
|
inline |
enable/Disable the clipping (without lose the current clipping position)
_newMode The new status of the clipping
§ setClippingWidth()
void ewol::compositing::Drawing::setClippingWidth |
( |
const vec3 & |
_pos, |
|
|
const vec3 & |
_width |
|
) |
| |
|
inline |
Request a clipping area for the text (next draw only)
- Parameters
-
§ setColor()
void ewol::compositing::Drawing::setColor |
( |
const etk::Color<> & |
_color | ) |
|
|
inline |
set the Color of the current foreground font
- Parameters
-
[in] | _color | Color to set on foreground (for next print) |
§ setColorBg()
void ewol::compositing::Drawing::setColorBg |
( |
const etk::Color<> & |
_color | ) |
|
|
inline |
set the background color of the font (for selected Text (not the global BG))
- Parameters
-
[in] | _color | Color to set on background (for next print) |
§ setPos()
void ewol::compositing::Drawing::setPos |
( |
const vec3 & |
_pos | ) |
|
|
inline |
set position for the next text writen
- Parameters
-
[in] | _pos | Position of the text (in 3D) |
§ setRelPos()
void ewol::compositing::Drawing::setRelPos |
( |
const vec3 & |
_pos | ) |
|
|
inline |
set relative position for the next text writen
- Parameters
-
[in] | _pos | ofset apply of the text (in 3D) |
§ setThickness()
void ewol::compositing::Drawing::setThickness |
( |
float |
_thickness | ) |
|
Specify the line thickness for the next elements.
- Parameters
-
[in] | _thickness | The thickness disired for the next print |
§ m_coord
std::vector<vec3 > ewol::compositing::Drawing::m_coord |
internal position for the text display
§ m_coordColor
std::vector<etk::Color<float> > ewol::compositing::Drawing::m_coordColor |
internal color of the background
The documentation for this class was generated from the following file: