Class: Rabbit::Renderer::Display::DrawingAreaViewOnly

Inherits:
Object
  • Object
show all
Includes:
DrawingAreaPrimitive, Engine::Cairo
Defined in:
lib/rabbit/renderer/display/drawing-area-view-only.rb

Constant Summary

Constants included from DirtyCount

DirtyCount::TOO_DIRTY

Constants included from GetText

GetText::DOMAIN

Instance Attribute Summary

Attributes included from DrawingAreaPrimitive

#filename

Attributes included from Base

#adjustment_x, #adjustment_y, #base_height, #base_width, #draw_scaled_image, #gl_quaternion, #gl_scale, #graffiti_color, #graffiti_line_width, #margin_bottom, #margin_left, #margin_right, #margin_top, #page_margin_bottom, #page_margin_left, #page_margin_right, #page_margin_top, #paper_height, #paper_width, #progress_background, #progress_foreground, #slides_per_page, #x_dpi, #y_dpi

Attributes included from Engine::Cairo

#background, #foreground

Instance Method Summary collapse

Methods included from DrawingAreaPrimitive

#clear_slide, #display?, #index_mode_off, #index_mode_on, #initialize, #post_apply_theme, #post_fullscreen, #post_iconify, #post_move, #post_move_in_slide, #post_parse, #post_to_pixbuf, #post_toggle_index_mode, #post_unfullscreen, #pre_parse, #pre_to_pixbuf, #pre_toggle_index_mode, #to_pixbufing, #widget

Methods included from GL

#draw_cone, #draw_cube, #draw_dodecahedron, #draw_icosahedron, #draw_octahedron, #draw_slide, #draw_sphere, #draw_teapot, #draw_tetrahedron, #draw_torus, #gl_call_list, #gl_compile, #gl_supported?

Methods included from Cursor

#initialize

Methods included from Base

#create_pango_context, #create_pango_layout, #draw_slide, #height, #initialize, #make_layout, #redraw, #size, #toggle_blackout, #toggle_whiteout, #update_title, #width

Methods included from HookHandler

#add_button_press_hook, #add_button_release_hook, #add_motion_notify_hook, #add_scroll_hook, #call_hook_procs, #clear_button_press_hook, #clear_button_release_hook, #clear_hooks, #clear_motion_notify_hook, #clear_scroll_hook, #initialize

Methods included from Base

#add_gesture_action, #blackouting?, #can_undo_graffiti?, #change_graffiti_color, #clean, #clean_if_dirty, #clear_slide, #clear_theme, #confirm, #connect_key, #create_pango_context, #disconnect_key, #display?, #each_slide_pixbuf, #expand_hole, #font_families, #gl_available?, #graffiti_mode?, #have_graffiti?, #hiding?, #initialize, #narrow_hole, #offscreen_canvas, #post_init_gui, #print, #printable?, #redraw, #reset_adjustment, #search_slide, #searching?, #setup_event, #stop_slide_search, #toggle_blackout, #toggle_info_window, #toggle_spotlight, #toggle_whiteout, #whiteouting?

Methods included from DirtyCount

#bit_dirty, #dirty, #dirty?, #dirty_count_clean, #very_dirty

Methods included from GetText

included

Methods included from Engine::Cairo

#alpha_available?, #background_image=, #create_pango_context, #draw_arc, #draw_arc_by_radius, #draw_background, #draw_layout, #draw_line, #draw_lines, #draw_link, #draw_pixbuf, #draw_polygon, #draw_poppler_page, #draw_rectangle, #draw_rounded_rectangle, #draw_rsvg_handle, #finish_context, #finish_renderer, #init_context, #init_renderer, #make_layout, #reflect_context, #restore_context, #rotate_context, #save_context, #scale_context, #set_font_resolution, #set_source_pixbuf, #shear_context, #to_gdk_rgb, #translate_context

Methods included from Kernel

#draw_background, #draw_circle, #draw_circle_by_radius, #draw_cone, #draw_cube, #draw_dodecahedron, #draw_flag, #draw_flag_layout, #draw_icosahedron, #draw_octahedron, #draw_rectangle_flag, #draw_slide, #draw_sphere, #draw_teapot, #draw_tetrahedron, #draw_torus, #draw_triangle_flag, #flag_size, #gl_call_list, #gl_compile, #gl_supported?, #make_color, #new_list_id, #reflect_context, #restore_context, #rotate_context, #save_context, #scale_context, #shear_context, #translate_context, #z_far, #z_view

Instance Method Details

#attach_to(window, container = nil, &block) ⇒ Object



11
12
13
14
15
# File 'lib/rabbit/renderer/display/drawing-area-view-only.rb', line 11

def attach_to(window, container=nil, &block)
  super
  add_widgets_to_container(@container, &block)
  widget.show
end

#detachObject



17
18
19
20
21
22
23
24
# File 'lib/rabbit/renderer/display/drawing-area-view-only.rb', line 17

def detach
  widget.hide
  unless @window.destroyed?
    remove_widgets_from_container(@container)
  end

  super
end