Class: ExampleApp::FocusCheck

Inherits:
Zif::Sprite show all
Defined in:
app/ui/focus_check.rb

Overview

This is an invisible sprite which overlays the entire screen, to manage input focus

Constant Summary

Constants inherited from Zif::Sprite

Zif::Sprite::BLENDMODE

Instance Attribute Summary

Attributes inherited from Zif::Sprite

#a, #angle, #b, #g, #h, #logical_x, #logical_y, #name, #path, #r, #render_target, #source_h, #source_w, #source_x, #source_y, #w, #x, #y, #z_index

Attributes included from Zif::Clickable

#on_mouse_changed, #on_mouse_down, #on_mouse_up

Attributes included from Zif::Actions::Animatable

#animation_sequences, #cur_animation

Attributes included from Zif::Actions::Actionable

#actions, #dirty

Instance Method Summary collapse

Methods inherited from Zif::Sprite

#blend, #blend=, #center, #center_x, #center_y, #clicked?, #color, #color=, #dup_and_assign, #exclude_from_serialize, #hide, #rect, rect_array_to_hash, rect_array_to_source_hash, #rect_hash, rect_hash_to_source_hash, #show, #source_as_rect_hash, #source_center, #source_is_set?, #source_rect, #source_rect_hash, #source_wh, #source_xy, #to_h, #view_actual_size!, #wh, #xy, #zoom_factor

Methods included from Zif::Clickable

#clicked?

Methods included from Zif::Actions::Animatable

#new_basic_animation, #new_tiled_animation, #register_animation_sequence, #run_animation_sequence, #stop_animating

Methods included from Zif::Actions::Actionable

#bounce_forever_around, #delayed_action, #fade_in, #fade_out, #fade_out_and_in_forever, #new_action, #perform_actions, #run_action, #running_actions?, #stop_action

Methods included from Zif::Serializable

#exclude_from_serialize, #inspect, #serialize, #to_s

Methods included from Zif::Assignable

#assign

Constructor Details

#initializeFocusCheck

Returns a new instance of FocusCheck.



4
5
6
7
8
9
# File 'app/ui/focus_check.rb', line 4

def initialize
  super(Zif.unique_name('focus_check'))
  @a = 0
  @w = 1280
  @h = 720
end

Instance Method Details

#absorb_click?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'app/ui/focus_check.rb', line 11

def absorb_click?
  false
end