remove vector (not ready), and correct display error in gtk 3.0
This commit is contained in:
parent
e3e868f351
commit
396b03bd42
@ -168,11 +168,11 @@ DrawerManager::DrawerManager(GtkWidget * widget, int32_t x, int32_t y)
|
|||||||
|
|
||||||
// http://cairographics.org/FAQ/#clear_a_surface
|
// http://cairographics.org/FAQ/#clear_a_surface
|
||||||
// http://gtk.developpez.com/faq/?page=gtkwidget#GTK_WIDGET_transparent
|
// http://gtk.developpez.com/faq/?page=gtkwidget#GTK_WIDGET_transparent
|
||||||
cairo_set_source_rgba(m_cairo, 1, 1, 1, 0);
|
//cairo_set_source_rgba(m_cairo, 1, 1, 1, 0);
|
||||||
cairo_set_operator(m_cairo, CAIRO_OPERATOR_SOURCE);
|
//cairo_set_operator(m_cairo, CAIRO_OPERATOR_SOURCE);
|
||||||
//cairo_paint(m_cairo);
|
//cairo_paint(m_cairo);
|
||||||
//cairo_fill(m_cairo);
|
//cairo_fill(m_cairo);
|
||||||
cairo_stroke (m_cairo);
|
//cairo_stroke (m_cairo);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include "tools_debug.h"
|
#include "tools_debug.h"
|
||||||
#include "toolsMemory.h"
|
#include "toolsMemory.h"
|
||||||
#include "Vector.h"
|
//#include "Vector.h" // TODO : Set the vector of edn enable
|
||||||
#include "VectorType.h"
|
#include "VectorType.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,10 +65,10 @@
|
|||||||
namespace Edn
|
namespace Edn
|
||||||
{
|
{
|
||||||
|
|
||||||
template<class T, int32_t INC=0> class Vector:
|
template<class T, int32_t INC=0> class Vector
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
class Iterator:
|
class Iterator
|
||||||
{
|
{
|
||||||
// Private data :
|
// Private data :
|
||||||
private:
|
private:
|
||||||
@ -207,13 +207,13 @@ template<class T, int32_t INC=0> class Vector:
|
|||||||
* @return ---
|
* @return ---
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
Iterator(EdnVector<T> * EdnVector, int pos):
|
Iterator(Edn::Vector<T> * myVector, int pos):
|
||||||
m_current(pos),
|
m_current(pos),
|
||||||
m_EdnVector(EdnVector)
|
m_Vector(myVector)
|
||||||
{
|
{
|
||||||
// nothing to do ...
|
// nothing to do ...
|
||||||
}
|
}
|
||||||
friend class EdnVector;
|
friend class Edn::Vector<T>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -224,7 +224,7 @@ template<class T, int32_t INC=0> class Vector:
|
|||||||
* @return ---
|
* @return ---
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
EdnVector(int count = 0):
|
Vector(int count = 0):
|
||||||
m_data(NULL),
|
m_data(NULL),
|
||||||
m_count(0),
|
m_count(0),
|
||||||
m_size(0)
|
m_size(0)
|
||||||
@ -240,15 +240,15 @@ template<class T, int32_t INC=0> class Vector:
|
|||||||
* @return ---
|
* @return ---
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
EdnVector(const EdnVector<T> & EdnVector):
|
Vector(const Edn::Vector<T> & myVector):
|
||||||
m_size(EdnVector.m_size),
|
m_size(myVector.m_size),
|
||||||
m_count(EdnVector.m_count),
|
m_count(myVector.m_count),
|
||||||
m_data(NULL)
|
m_data(NULL)
|
||||||
{
|
{
|
||||||
int32_t i;
|
int32_t i;
|
||||||
EDN_MALLOC_CAST(m_data, m_size, T, reinterpret_cast<T*>);
|
EDN_MALLOC_CAST(m_data, m_size, T, reinterpret_cast<T*>);
|
||||||
for(i=0; i<m_count; i++) {
|
for(i=0; i<m_count; i++) {
|
||||||
new (&m_data[i]) T(EdnVector[i]);
|
new (&m_data[i]) T(myVector[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -260,7 +260,7 @@ template<class T, int32_t INC=0> class Vector:
|
|||||||
* @return ---
|
* @return ---
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
~EdnVector()
|
~Vector()
|
||||||
{
|
{
|
||||||
Destroy();
|
Destroy();
|
||||||
}
|
}
|
||||||
@ -273,7 +273,7 @@ template<class T, int32_t INC=0> class Vector:
|
|||||||
* @return ---
|
* @return ---
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
EdnVector& operator=(const EdnVector<T> & EdnVector)
|
Vector& operator=(const Edn::Vector<T> & EdnVector)
|
||||||
{
|
{
|
||||||
int32_t i;
|
int32_t i;
|
||||||
this->~EdnVector();
|
this->~EdnVector();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user