Displaying 4 results from an estimated 4 matches for "set_device_origin".
2011 May 08
2
Device context (get_dc) Question from printing.rb in wxRuby samples
...or module but
#-- 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
_______________________________________________
w...
2008 Aug 24
2
Missing ids in documentation
...DC#reset_bounding_box</h3>
dc.html:<h3>DC#set_axis_orientation</h3>
dc.html:<h3>DC#set_background</h3>
dc.html:<h3>DC#set_background_mode</h3>
dc.html:<h3>DC#set_brush</h3>
dc.html:<h3>DC#set_clipping_region</h3>
dc.html:<h3>DC#set_device_origin</h3>
dc.html:<h3>DC#set_font</h3>
dc.html:<h3>DC#set_layout_direction</h3>
dc.html:<h3>DC#set_logical_function</h3>
dc.html:<h3>DC#set_map_mode</h3>
paneltabview.html:<h3>PanelTabView#clear_windows</h3>
paneltabview.html:<h3>Pa...
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.
...ns>+ 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"> Wx::get_app.frame.draw(dc)
</span><span cl...
2007 Mar 27
0
[922] branches/wxruby2/wxwidgets_282: Changes, additions and deprecations 2.6 -> 2.8 Wx API
...quot;cx"> * "DC#set_background":#DC_setbackground
</span><span class="lines">@@ -99,6 +109,7 @@
</span><span class="cx"> * "DC#set_clipping_region":#DC_setclippingregion
</span><span class="cx"> * "DC#set_device_origin":#DC_setdeviceorigin
</span><span class="cx"> * "DC#set_font":#DC_setfont
</span><ins>+* "DC#set_layout_direction":#DC_setlayoutdirection
</ins><span class="cx"> * "DC#set_logical_function":#DC_setlogicalfunc...