draw_arc(filled, x, y, w, h, a1, a2, color=nil, params={})
click to toggle source
def draw_arc(filled, x, y, w, h, a1, a2, color=nil, params={})
x, y = normalize(x, y)
@print.draw_arc(filled, x, y, w, h, a1, a2, color, params)
end
draw_arc_by_radius(filled, x, y, r, a1, a2, color=nil, params={})
click to toggle source
def draw_arc_by_radius(filled, x, y, r, a1, a2, color=nil, params={})
x, y = normalize(x, y)
@print.draw_arc_by_radius(filled, x, y, r, a1, a2, color, params)
end
draw_layout(layout, x, y, color=nil, params={})
click to toggle source
def draw_layout(layout, x, y, color=nil, params={})
x, y = normalize(x, y)
@print.draw_layout(layout, x, y, color, params)
end
draw_line(x1, y1, x2, y2, color=nil, params={})
click to toggle source
def draw_line(x1, y1, x2, y2, color=nil, params={})
x1, y1 = normalize(x1, y1)
x2, y2 = normalize(x2, y2)
@print.draw_line(x1, y1, x2, y2, color, params)
end
draw_pixbuf(pixbuf, x, y, params={})
click to toggle source
def draw_pixbuf(pixbuf, x, y, params={})
x, y = normalize(x, y)
@print.draw_pixbuf(pixbuf, x, y, params)
end
draw_poppler_page(handle, x, y, params={})
click to toggle source
def draw_poppler_page(handle, x, y, params={})
x, y = normalize(x, y)
@print.draw_poppler_page(handle, x, y, params)
end
draw_rectangle(filled, x, y, w, h, color=nil, params={})
click to toggle source
def draw_rectangle(filled, x, y, w, h, color=nil, params={})
x, y = normalize(x, y)
@print.draw_rectangle(filled, x, y, w, h, color, params)
end
draw_rounded_rectangle(filled, x, y, w, h, radius, color=nil, params={})
click to toggle source
def draw_rounded_rectangle(filled, x, y, w, h, radius, color=nil,
params={})
x, y = normalize(x, y)
@print.draw_rounded_rectangle(filled, x, y, w, h, radius,
color, params)
end
draw_rsvg_handle(handle, x, y, params={})
click to toggle source
def draw_rsvg_handle(handle, x, y, params={})
x, y = normalize(x, y)
@print.draw_rsvg_handle(handle, x, y, params)
end
draw_slide(slide, simulation) { || ... }
click to toggle source
def draw_slide(slide, simulation)
@print.show_page = need_show_page?
@print.internal_draw_slide(slide, simulation) do
if simulation
yield
else
@print.save_context do
x, y = normalize(0, 0)
@print.internal_clip_slide(x, y, width, height)
@print.internal_draw_background(x, y, width, height)
yield
draw_rectangle(false, 0, 0, width, height, @black)
end
end
end
end
height()
click to toggle source
def height
@slide_height ||= @layout.slide_height
end
margin_bottom=(margin)
click to toggle source
Calls superclass method
def margin_bottom=(margin)
super
@print.margin_bottom = margin
end
margin_left=(margin)
click to toggle source
Calls superclass method
def margin_left=(margin)
super
@print.margin_left = margin
end
margin_right=(margin)
click to toggle source
Calls superclass method
def margin_right=(margin)
super
@print.margin_right = margin
end
margin_top=(margin)
click to toggle source
Calls superclass method
def margin_top=(margin)
super
@print.margin_top = margin
end
page_margin_bottom=(margin)
click to toggle source
Calls superclass method
def page_margin_bottom=(margin)
super
@print.page_margin_bottom = margin
end
page_margin_left=(margin)
click to toggle source
Calls superclass method
def page_margin_left=(margin)
super
@print.page_margin_left = margin
end
page_margin_right=(margin)
click to toggle source
Calls superclass method
def page_margin_right=(margin)
super
@print.page_margin_right = margin
end
page_margin_top=(margin)
click to toggle source
Calls superclass method
def page_margin_top=(margin)
super
@print.page_margin_top = margin
end
slides_per_page=(slides)
click to toggle source
Calls superclass method
def slides_per_page=(slides)
super
update_layout
end
width()
click to toggle source
def width
@slide_width ||= @layout.slide_width
end