search for: set_user_scale

Displaying 3 results from an estimated 3 matches for "set_user_scale".

2011 May 08
2
Device context (get_dc) Question from printing.rb in wxRuby samples
...#-- where do I find its definition? if dc if page == 1 draw_page_one(dc) ##-- dc = device context passed in elsif (page == 2) draw_page_two(dc) ##-- dc = device context passed in end dc.set_device_origin(0, 0) dc.set_user_scale(1.0, 1.0) buf = "PAGE #{page}" dc.draw_text(buf, 10, 10) return true else return false end end #--end of on_print_page -- Ann Maybury ann.maybury@gmail.com _______________________________________________ wxruby-users mailing list wxruby-...
2006 Oct 17
0
[680] trunk/wxruby2/samples/printing/printing.rb: Cleaned up to use the Ruby naming convention, added #! line, now uses Wx default ID''s in standard menu items.
...= ((h - (200*actualScale))/2.0) </del><ins>+ pos_x = ((w - (200*actual_scale))/2.0) + pos_y = ((h - (200*actual_scale))/2.0) </ins><span class="cx"> </span><span class="cx"> # Set the scale and origin </span><del>- dc.set_user_scale(actualScale, actualScale) - dc.set_device_origin( posX.to_i, posY.to_i ) </del><ins>+ dc.set_user_scale(actual_scale, actual_scale) + dc.set_device_origin( pos_x.to_i, pos_y.to_i ) </ins><span class="cx"> </span><span class="cx">...
2007 Mar 27
0
[922] branches/wxruby2/wxwidgets_282: Changes, additions and deprecations 2.6 -> 2.8 Wx API
...span class="cx"> "Colour":colour.html *get_text_foreground*() </span><span class="lines">@@ -872,9 +865,28 @@ </span><span class="cx"> </span><span class="cx"> Gets the current user scale factor (set by "set_user_scale":#DC_setuserscale). </span><span class="cx"> </span><ins>+h3. DC#gradient_fill_concentric </ins><span class="cx"> </span><ins>+ *gradient_fill_concentric*(%(arg-type)Rect% rect, %(arg-type)Colour% initial_colour, +...