Module: Rabbit::Renderer::Display::DrawingAreaPrimitive

Includes:
Base, Cursor, GL
Included in:
DrawingAreaBase, DrawingAreaViewOnly
Defined in:
lib/rabbit/renderer/display/drawing-area-primitive.rb

Constant Summary

Constants included from DirtyCount

DirtyCount::TOO_DIRTY

Constants included from GetText

GetText::DOMAIN

Instance Attribute Summary collapse

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

Instance Method Summary collapse

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 Base

#create_pango_context, #create_pango_layout, #draw_slide, #height, #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

Methods included from Base

#add_gesture_action, #blackouting?, #can_undo_graffiti?, #change_graffiti_color, #clean, #clean_if_dirty, #clear_theme, #confirm, #connect_key, #create_pango_context, #disconnect_key, #each_slide_pixbuf, #expand_hole, #font_families, #gl_available?, #graffiti_mode?, #have_graffiti?, #hiding?, #narrow_hole, #offscreen_canvas, #post_init_gui, #post_terminal, #pre_terminal, #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

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.


18
19
20
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 18

def filename
  @filename
end

Instance Method Details

#attach_to(window, container = nil) ⇒ Object


26
27
28
29
30
31
32
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 26

def attach_to(window, container=nil)
  super

  set_configure_event

  init_gl(@area)
end

#clear_slideObject


49
50
51
52
53
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 49

def clear_slide
  super
  clear_compiled_slide
  redraw
end

#detachObject


34
35
36
37
38
39
40
41
42
43
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 34

def detach
  finalize_gl

  if !@window.destroyed? and @configure_signal_id
    @window.signal_handler_disconnect(@configure_signal_id)
    @configure_signal_id = nil
  end

  super
end

#display?Boolean

Returns:

  • (Boolean)

115
116
117
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 115

def display?
  true
end

#index_mode_offObject


111
112
113
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 111

def index_mode_off
  restore_cursor(:index)
end

#index_mode_onObject


106
107
108
109
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 106

def index_mode_on
  keep_cursor(:index)
  update_cursor(nil, true)
end

#initialize(canvas) ⇒ Object


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

def initialize(canvas)
  super
  @filename = nil
  clear_compiled_slides
  init_drawing_area
end

#post_apply_themeObject


68
69
70
71
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 68

def post_apply_theme
  clear_compiled_slides
  queue_draw
end

#post_fullscreenObject


55
56
57
58
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 55

def post_fullscreen
  update_cursor(:blank, true)
  clear_compiled_slides
end

#post_iconifyObject


65
66
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 65

def post_iconify
end

#post_move(old_index, index) ⇒ Object


73
74
75
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 73

def post_move(old_index, index)
  queue_draw
end

#post_move_in_slide(old_index, index) ⇒ Object


77
78
79
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 77

def post_move_in_slide(old_index, index)
  queue_draw
end

#post_parseObject


84
85
86
87
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 84

def post_parse
  clear_compiled_slides
  update_cursor(:blank, true)
end

#post_to_pixbuf(canceled) ⇒ Object


103
104
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 103

def post_to_pixbuf(canceled)
end

#post_toggle_index_modeObject


92
93
94
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 92

def post_toggle_index_mode
  queue_draw
end

#post_unfullscreenObject


60
61
62
63
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 60

def post_unfullscreen
  update_cursor(nil, true)
  update_menu
end

#pre_parseObject


81
82
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 81

def pre_parse
end

#pre_to_pixbuf(slide_size) ⇒ Object


96
97
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 96

def pre_to_pixbuf(slide_size)
end

#pre_toggle_index_modeObject


89
90
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 89

def pre_toggle_index_mode
end

#to_pixbufing(i) ⇒ Object


99
100
101
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 99

def to_pixbufing(i)
  true
end

#widgetObject


45
46
47
# File 'lib/rabbit/renderer/display/drawing-area-primitive.rb', line 45

def widget
  @area
end