Class: Wx::SF::ShapeCanvas::Settings
- Inherits:
-
Object
- Object
- Wx::SF::ShapeCanvas::Settings
- Includes:
- FIRM::Serializable, DEFAULT
- Defined in:
- lib/wx/shapes/shape_canvas.rb
Overview
Auxiliary serializable class encapsulating the canvas properties.
Constant Summary
Constants included from DEFAULT
DEFAULT::CANVAS_STYLE, DEFAULT::GRIDLINEMULT, DEFAULT::GRIDSIZE, DEFAULT::GRIDSTYLE, DEFAULT::PRINT_HALIGN, DEFAULT::PRINT_MODE, DEFAULT::PRINT_VALIGN, DEFAULT::SCALE_MAX, DEFAULT::SCALE_MIN, DEFAULT::SHADOWOFFSET
Instance Attribute Summary collapse
-
#background_color ⇒ Object
Returns the value of attribute background_color.
-
#common_arrow_fill ⇒ Object
Returns the value of attribute common_arrow_fill.
-
#common_border_pen ⇒ Object
Returns the value of attribute common_border_pen.
-
#common_control_border ⇒ Object
Returns the value of attribute common_control_border.
-
#common_control_fill ⇒ Object
Returns the value of attribute common_control_fill.
-
#common_control_mod_border ⇒ Object
Returns the value of attribute common_control_mod_border.
-
#common_control_mod_fill ⇒ Object
Returns the value of attribute common_control_mod_fill.
-
#common_fill_brush ⇒ Object
Returns the value of attribute common_fill_brush.
-
#common_hover_color ⇒ Object
Returns the value of attribute common_hover_color.
-
#common_line_pen ⇒ Object
Returns the value of attribute common_line_pen.
-
#common_text_border ⇒ Object
Returns the value of attribute common_text_border.
-
#common_text_color ⇒ Object
Returns the value of attribute common_text_color.
-
#common_text_fill ⇒ Object
Returns the value of attribute common_text_fill.
-
#common_text_font ⇒ Object
Returns the value of attribute common_text_font.
-
#gradient_from ⇒ Object
Returns the value of attribute gradient_from.
-
#gradient_to ⇒ Object
Returns the value of attribute gradient_to.
-
#grid_color ⇒ Object
Returns the value of attribute grid_color.
-
#grid_line_mult ⇒ Object
Returns the value of attribute grid_line_mult.
-
#grid_size ⇒ Object
Returns the value of attribute grid_size.
-
#grid_style ⇒ Object
Returns the value of attribute grid_style.
-
#max_scale ⇒ Object
Returns the value of attribute max_scale.
-
#min_scale ⇒ Object
Returns the value of attribute min_scale.
-
#print_h_align ⇒ Object
Returns the value of attribute print_h_align.
-
#print_mode ⇒ Object
Returns the value of attribute print_mode.
-
#print_v_align ⇒ Object
Returns the value of attribute print_v_align.
-
#scale ⇒ Object
Returns the value of attribute scale.
-
#shadow_fill ⇒ Object
Returns the value of attribute shadow_fill.
-
#shadow_offset ⇒ Object
Returns the value of attribute shadow_offset.
-
#style ⇒ Object
Returns the value of attribute style.
Instance Method Summary collapse
-
#initialize ⇒ Settings
constructor
A new instance of Settings.
Methods included from DEFAULT
arrow_fill, background_color, border_pen, control_border, control_fill, control_mod_border, control_mod_fill, fill_brush, gradient_from, gradient_to, grid_color, hover_color, line_pen, shadow_brush, shadow_color, text_border, text_color, text_fill, text_font
Constructor Details
#initialize ⇒ Settings
Returns a new instance of Settings.
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 |
# File 'lib/wx/shapes/shape_canvas.rb', line 390 def initialize @scale = 1.0 @min_scale = SCALE_MIN @max_scale = SCALE_MAX @background_color = DEFAULT.background_color # common shape property @common_hover_color = DEFAULT.hover_color # common rect shape properties @common_border_pen = DEFAULT.border_pen @common_fill_brush = DEFAULT.fill_brush # common line shape property @common_line_pen = DEFAULT.line_pen # common arrow property @common_arrow_fill = DEFAULT.arrow_fill # common text shape properties (fill and border overrule common rect properties) @common_text_color = DEFAULT.text_color @common_text_fill = DEFAULT.text_fill @common_text_border = DEFAULT.text_border @common_text_font = DEFAULT.text_font # common control shape properties @common_control_fill = DEFAULT.control_fill @common_control_border = DEFAULT.control_border @common_control_mod_fill = DEFAULT.control_mod_fill @common_control_mod_border = DEFAULT.control_mod_border @grid_size = GRIDSIZE @grid_line_mult = GRIDLINEMULT @grid_color = DEFAULT.grid_color @grid_style = GRIDSTYLE @gradient_from = DEFAULT.gradient_from @gradient_to = DEFAULT.gradient_to @style = CANVAS_STYLE @shadow_offset = SHADOWOFFSET.dup @shadow_fill = DEFAULT.shadow_brush @print_h_align = PRINT_HALIGN @print_v_align = PRINT_VALIGN @print_mode = PRINT_MODE end |
Instance Attribute Details
#background_color ⇒ Object
Returns the value of attribute background_color.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def background_color @background_color end |
#common_arrow_fill ⇒ Object
Returns the value of attribute common_arrow_fill.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def common_arrow_fill @common_arrow_fill end |
#common_border_pen ⇒ Object
Returns the value of attribute common_border_pen.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def common_border_pen @common_border_pen end |
#common_control_border ⇒ Object
Returns the value of attribute common_control_border.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def common_control_border @common_control_border end |
#common_control_fill ⇒ Object
Returns the value of attribute common_control_fill.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def common_control_fill @common_control_fill end |
#common_control_mod_border ⇒ Object
Returns the value of attribute common_control_mod_border.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def common_control_mod_border @common_control_mod_border end |
#common_control_mod_fill ⇒ Object
Returns the value of attribute common_control_mod_fill.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def common_control_mod_fill @common_control_mod_fill end |
#common_fill_brush ⇒ Object
Returns the value of attribute common_fill_brush.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def common_fill_brush @common_fill_brush end |
#common_hover_color ⇒ Object
Returns the value of attribute common_hover_color.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def common_hover_color @common_hover_color end |
#common_line_pen ⇒ Object
Returns the value of attribute common_line_pen.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def common_line_pen @common_line_pen end |
#common_text_border ⇒ Object
Returns the value of attribute common_text_border.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def common_text_border @common_text_border end |
#common_text_color ⇒ Object
Returns the value of attribute common_text_color.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def common_text_color @common_text_color end |
#common_text_fill ⇒ Object
Returns the value of attribute common_text_fill.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def common_text_fill @common_text_fill end |
#common_text_font ⇒ Object
Returns the value of attribute common_text_font.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def common_text_font @common_text_font end |
#gradient_from ⇒ Object
Returns the value of attribute gradient_from.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def gradient_from @gradient_from end |
#gradient_to ⇒ Object
Returns the value of attribute gradient_to.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def gradient_to @gradient_to end |
#grid_color ⇒ Object
Returns the value of attribute grid_color.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def grid_color @grid_color end |
#grid_line_mult ⇒ Object
Returns the value of attribute grid_line_mult.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def grid_line_mult @grid_line_mult end |
#grid_size ⇒ Object
Returns the value of attribute grid_size.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def grid_size @grid_size end |
#grid_style ⇒ Object
Returns the value of attribute grid_style.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def grid_style @grid_style end |
#max_scale ⇒ Object
Returns the value of attribute max_scale.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def max_scale @max_scale end |
#min_scale ⇒ Object
Returns the value of attribute min_scale.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def min_scale @min_scale end |
#print_h_align ⇒ Object
Returns the value of attribute print_h_align.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def print_h_align @print_h_align end |
#print_mode ⇒ Object
Returns the value of attribute print_mode.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def print_mode @print_mode end |
#print_v_align ⇒ Object
Returns the value of attribute print_v_align.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def print_v_align @print_v_align end |
#scale ⇒ Object
Returns the value of attribute scale.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def scale @scale end |
#shadow_fill ⇒ Object
Returns the value of attribute shadow_fill.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def shadow_fill @shadow_fill end |
#shadow_offset ⇒ Object
Returns the value of attribute shadow_offset.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def shadow_offset @shadow_offset end |
#style ⇒ Object
Returns the value of attribute style.
430 431 432 |
# File 'lib/wx/shapes/shape_canvas.rb', line 430 def style @style end |