search for: get_x

Displaying 14 results from an estimated 14 matches for "get_x".

Did you mean: get_
2006 Apr 07
3
Pointer position on keypress event?
Hi. Is there any straightforward way to tell pointer position (x, y) upon keypress? In original wxWidgets, wxKeyEvent supports GetX() and GetY() methods, but wxRuby''s KeyEvent object does not have one. I also checked with event.methods and event.instance_variables. Do I need to keep track of pointer position by evt_motion? -- Taisuke Yamada <tyamadajp@spam.rakugaki.org>,
2007 Oct 02
0
[ wxruby-Patches-14375 ] bigdemo/wxScrolledWindow - paint bug with scrolled window
...ent_down(event) if event.left_is_down() and !@drawing set_focus() set_XY(event) @curLine = [] capture_mouse() @drawing = true end end To: def on_left_button_event_down(event) if event.left_is_down() and !@drawing set_focus() set_XY(event) @event_x_old = event.get_x # added this to save the current absolute... @event_y_old = event.get_y # ... mouse position @curLine = [] capture_mouse() @drawing = true end end ---- And in on_left_button_event_motion From: paint do | dc | dc.set_pen(Wx::Pen.new("MEDIUM FOREST GREEN", 4, Wx::SO...
2020 Jan 13
2
Incorrect code generation when using -fprofile-generate on code which contains exception handling (Windows target)
...ple, the virtual function called from within the exception handler triggers the bug when using -fprofile-generate. #include <stdexcept> #include <iostream> extern void may_throw(int); class base { public: base() : x(0) {}; int get_x() const { return x; } virtual void update() { x++; } int x; }; class derived : public base { public: derived() {} virtual void update() { x--; } }; class test { public: void run(base* b, int count) { try...
2020 Jan 14
2
Incorrect code generation when using -fprofile-generate on code which contains exception handling (Windows target)
...thin the exception handler triggers the bug when > using -fprofile-generate. > > #include <stdexcept> > #include <iostream> > > extern void may_throw(int); > > class base { > public: > base() : x(0) {}; > int get_x() const { return x; } > virtual void update() { x++; } > int x; > }; > > class derived : public base { > public: > derived() {} > virtual void update() { x--; } > }; > > class test { > public: &g...
2012 Jun 14
2
[LLVMdev] [llvm-commits] [Patch, RFC] Re: Adding support for explicitly specified TLS models (PR9788)
...self is large, forcing global-dynamic makes sense. No idea if > anyone is insane enough to do that, but that's the case where honouring > the user request would make a difference. Right, that's a good point. On i386 Linux, the following code, static __thread int x[100000]; int* get_x() { return x; } compiled with "clang -shared a.c -o a.so" won't be possible do dlopen. The tls_model attribute comes to the rescue: __attribute((tls_model("global-dynamic"))) will fix this, or specifying -ftls-model="global-dynamic" on the command-line. But this...
2005 Jan 22
9
Dragging images across the canvas
...rom the existing location # wb = Wx::WHITE_BRUSH dc.set_brush(wb) dc.set_pen(Wx::WHITE_PEN) dc.draw_rectangle(ox,oy,ox+w,oy+h) # Draw at the new location # dc.draw_bitmap(@bitmap,nx,ny,false) dc.free end def on_motion(event) x = event.get_x y = event.get_y move_region(x,y) if (@left_dn and (@reg.contains(x,y) == 0)) end def on_paint paint{|dc| dc.clear dc.draw_bitmap(@bitmap, 0, 0, false) } w,h = @bitmap.get_width, @bitmap.get_height @reg = Wx::Region.new(0,0,w,h) end end class Imag...
2012 Jun 14
0
[LLVMdev] [llvm-commits] [Patch, RFC] Re: Adding support for explicitly specified TLS models (PR9788)
> Right, that's a good point. > > On i386 Linux, the following code, > >  static __thread int x[100000]; >  int* get_x() { return x; } > > compiled with "clang -shared a.c -o a.so" won't be possible do dlopen. I get exactly the same result with gcc 4.7 with and without -ftls-model=global-dynamic: movq %gs:0, %eax addl $x at ntpoff, %eax > Rafael, I think your argument has been that if we...
2006 May 10
2
ruby bindings odds and ends
In the Ruby bindings, set_X and get_X are renamed to remove the get/set, so MSet::get_matches_estimated() becomes a read-only property (if I have my terminology right) of the Ruby MSet class called matches_estimated. This matches how a Ruby programmer would expect a class to be designed. I was looking through the getters and setters l...
2007 Jan 03
0
[823] trunk/wxruby2/doc/textile: Remove docs for some deprecated classes
...l#get_id":#TabControl_getid -* "TabControl#get_label":#TabControl_getlabel -* "TabControl#get_row_position":#TabControl_getrowposition -* "TabControl#get_selected":#TabControl_getselected -* "TabControl#get_width":#TabControl_getwidth -* "TabControl#get_x":#TabControl_getx -* "TabControl#get_y":#TabControl_gety -* "TabControl#hit_test":#TabControl_hittest -* "TabControl#on_draw":#TabControl_ondraw -* "TabControl#set_col_position":#TabControl_setcolposition -* "TabControl#set_font":#TabControl_se...
2012 Jun 12
0
[LLVMdev] [llvm-commits] [Patch, RFC] Re: Adding support for explicitly specified TLS models (PR9788)
On Tue, Jun 12, 2012 at 07:21:17PM +0100, Hans Wennborg wrote: > On Tue, Jun 12, 2012 at 7:05 PM, Joerg Sonnenberger > <joerg at britannica.bec.de> wrote: > > On Tue, Jun 12, 2012 at 12:36:28PM -0400, Rafael Espíndola wrote: > >> >> Do you know what is the rationale for that? The static linker will > >> >> optimize it anyway (but not do as good a job
2012 Jun 12
2
[LLVMdev] [llvm-commits] [Patch, RFC] Re: Adding support for explicitly specified TLS models (PR9788)
On Tue, Jun 12, 2012 at 7:05 PM, Joerg Sonnenberger <joerg at britannica.bec.de> wrote: > On Tue, Jun 12, 2012 at 12:36:28PM -0400, Rafael Espíndola wrote: >> >> Do you know what is the rationale for that? The static linker will >> >> optimize it anyway (but not do as good a job as the compiler could). >> > >> > codegen can be more efficient. E.g.
2006 Dec 12
1
S4 'properties' - creating 'slot' functions?
Dear R users! Several languages like C# or VB allow one to create properties; typically these are under 'get', 'set' tags. My question is this really, what are similar or comparable strategies in R, and what might be preferred? I have a couple of situations where I want a certain computation to belong to a class, but I do not really want to seperate it out to a stand-alone
2007 Jul 05
8
when can publish the next version?
when can publish the next version? i am waiting... _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2012 Jun 15
2
[LLVMdev] [llvm-commits] [Patch, RFC] Re: Adding support for explicitly specified TLS models (PR9788)
On Thu, Jun 14, 2012 at 9:33 PM, Rafael Espíndola <rafael.espindola at gmail.com> wrote: >> Right, that's a good point. >> >> On i386 Linux, the following code, >> >>  static __thread int x[100000]; >>  int* get_x() { return x; } >> >> compiled with "clang -shared a.c -o a.so" won't be possible do dlopen. > > I get exactly the same result with gcc 4.7 with and without > -ftls-model=global-dynamic: > > movq %gs:0, %eax > addl $x at ntpoff, %eax Thanks for bearing w...