Пример #1
0
 virtual void handleMouseDown( const Evasxx::MouseDownEvent& e )
 {
   cout << "PA::mouseDown" << endl;
   mouseDown = true;
   Evasxx::Object* l = new Evasxx::Rectangle( mEvas, Rect (e.data->canvas.x, e.data->canvas.y, 2, 2) );
   int b=200+(int) (55.0*rand()/(RAND_MAX+1.0));
   l->setColor( Color (b, b, b, 255) );
   l->show();
 }
Пример #2
0
 virtual void handleMouseMove( const Evasxx::MouseMoveEvent& e )
 {
   cout << "PA::mouseMove" << endl;
   if ( mouseDown )
   {
     int width = 2 + abs( e.data->cur.canvas.x - e.data->prev.canvas.x );
     int height = 2 + abs( e.data->cur.canvas.y - e.data->prev.canvas.y );
     cout << "width = " << width << ", height = " << height << endl;
     Evasxx::Object* l = new Evasxx::Rectangle( mEvas, Rect (e.data->cur.canvas.x - width/2, e.data->cur.canvas.y - height/2, width, height) );
     int b=200+(int) (55.0*rand()/(RAND_MAX+1.0));
     l->setColor( Color (b, b, b, 255) );
     l->show();
   }
 }
Пример #3
0
void Object::setContent (const Evasxx::Object &content)
{
  elm_object_part_content_set(o, NULL, content.obj());
}
Пример #4
0
Window::Window (Evasxx::Object &parent, const std::string &name, Elm_Win_Type type)
{
  o = elm_win_add (parent.obj (), name.c_str (), type);
  
  elmInit ();
}
Пример #5
0
Label::Label (Evasxx::Object &parent)
{
    o = elm_label_add (parent.obj ());

    elmInit ();
}
Пример #6
0
void Bubble::setIcon (const Evasxx::Object &icon)
{
  elm_bubble_icon_set (o, icon.obj ());
}
Пример #7
0
void Bubble::setContent (const Evasxx::Object &content)
{
  elm_bubble_content_set (o, content.obj ());
}
void Scroller::setContent (Evasxx::Object &child)
{
  elm_object_content_set (o, child.obj ());
}
Пример #9
0
Slider::Slider (Evasxx::Object &parent)
{
  o = elm_slider_add (parent.obj ());
  
  elmInit ();
}
Пример #10
0
Image::Image (Evasxx::Object &parent)
{
  o = elm_image_add (parent.obj ());
  
  elmInit ();
}
Пример #11
0
void Frame::setContent (const Evasxx::Object &content)
{
  elm_object_content_set (o, content.obj ());
}
Пример #12
0
Frame::Frame (Evasxx::Object &parent)
{
  o = elm_frame_add (parent.obj ());
  
  elmInit ();
}
Пример #13
0
void Progressbar::setIcon (Evasxx::Object &icon)
{
  elm_progressbar_icon_set (o, icon.obj ());
}
Пример #14
0
Progressbar::Progressbar (Evasxx::Object &parent)
{
  o = elm_progressbar_add (parent.obj ());
  
  elmInit ();
}
Пример #15
0
void Object::setContent (const std::string &part, const Evasxx::Object &content)
{
  elm_object_part_content_set(o, part.c_str(), content.obj());
}
Scroller::Scroller (Evasxx::Object &parent)
{
  o = elm_scroller_add (parent.obj ());
  
  elmInit ();
}
Пример #17
0
List::List (Evasxx::Object &parent)
{
  o = elm_list_add (parent.obj ());
  
  elmInit ();
}
Пример #18
0
Button::Button (Evasxx::Object &parent)
{
  o = elm_button_add (parent.obj ());
  
  elmInit ();
}
Пример #19
0
Bubble::Bubble (Evasxx::Object &parent)
{
  o = elm_bubble_add (parent.obj ());
  
  elmInit ();
}