コード例 #1
0
ファイル: main.cpp プロジェクト: Limsik/e17
 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
ファイル: main.cpp プロジェクト: Limsik/e17
 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.cpp プロジェクト: gzorin/e17
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.cpp プロジェクト: shr-project/enlightenment
Label::Label (Evasxx::Object &parent)
{
    o = elm_label_add (parent.obj ());

    elmInit ();
}
コード例 #6
0
ファイル: Bubble.cpp プロジェクト: gzorin/e17
void Bubble::setIcon (const Evasxx::Object &icon)
{
  elm_bubble_icon_set (o, icon.obj ());
}
コード例 #7
0
ファイル: Bubble.cpp プロジェクト: gzorin/e17
void Bubble::setContent (const Evasxx::Object &content)
{
  elm_bubble_content_set (o, content.obj ());
}
コード例 #8
0
void Scroller::setContent (Evasxx::Object &child)
{
  elm_object_content_set (o, child.obj ());
}
コード例 #9
0
ファイル: Slider.cpp プロジェクト: Limsik/e17
Slider::Slider (Evasxx::Object &parent)
{
  o = elm_slider_add (parent.obj ());
  
  elmInit ();
}
コード例 #10
0
ファイル: Image.cpp プロジェクト: Limsik/e17
Image::Image (Evasxx::Object &parent)
{
  o = elm_image_add (parent.obj ());
  
  elmInit ();
}
コード例 #11
0
ファイル: Frame.cpp プロジェクト: Limsik/e17
void Frame::setContent (const Evasxx::Object &content)
{
  elm_object_content_set (o, content.obj ());
}
コード例 #12
0
ファイル: Frame.cpp プロジェクト: Limsik/e17
Frame::Frame (Evasxx::Object &parent)
{
  o = elm_frame_add (parent.obj ());
  
  elmInit ();
}
コード例 #13
0
ファイル: Progressbar.cpp プロジェクト: gzorin/e17
void Progressbar::setIcon (Evasxx::Object &icon)
{
  elm_progressbar_icon_set (o, icon.obj ());
}
コード例 #14
0
ファイル: Progressbar.cpp プロジェクト: gzorin/e17
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());
}
コード例 #16
0
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.cpp プロジェクト: Limsik/e17
Button::Button (Evasxx::Object &parent)
{
  o = elm_button_add (parent.obj ());
  
  elmInit ();
}
コード例 #19
0
ファイル: Bubble.cpp プロジェクト: gzorin/e17
Bubble::Bubble (Evasxx::Object &parent)
{
  o = elm_bubble_add (parent.obj ());
  
  elmInit ();
}