Class: Glimmer::SWT::SWTProxy

Inherits:
Object
  • Object
show all
Includes:
StyleConstantizable
Defined in:
lib/glimmer/swt/swt_proxy.rb

Overview

Proxy for org.eclipse.swt.SWT

Follows the Proxy Design Pattern

Constant Summary collapse

EXTRA_STYLES =
{
  NO_RESIZE: self[:shell_trim, :resize!, :max!],
  NO_SORT: -7,
}

Class Method Summary collapse

Methods included from StyleConstantizable

included

Class Method Details

.constant_source_classObject



34
35
36
# File 'lib/glimmer/swt/swt_proxy.rb', line 34

def constant_source_class
  SWT
end

.constant_value_noneObject



38
39
40
# File 'lib/glimmer/swt/swt_proxy.rb', line 38

def constant_value_none
  SWT::NONE
end

.cursor_optionsObject



46
47
48
# File 'lib/glimmer/swt/swt_proxy.rb', line 46

def cursor_options
  [:wait, :sizenwse, :appstarting, :no, :sizenesw, :sizeall, :help, :sizee, :sizewe, :sizen, :sizes, :sizew, :cross, :sizese, :ibeam, :arrow, :sizesw, :uparrow, :hand, :sizenw, :sizene, :sizens]
end

.extra_stylesObject



42
43
44
# File 'lib/glimmer/swt/swt_proxy.rb', line 42

def extra_styles
  EXTRA_STYLES
end