Module: Wx::SF::ShapeCanvas::DEFAULT
- Included in:
- Settings
- Defined in:
- lib/wx/shapes/shape_canvas.rb
Overview
Default values
Constant Summary collapse
- GRIDSIZE =
Default value of Wx::SF::CanvasSettings @grid_size data member
10
- GRIDLINEMULT =
Default value of Wx::SF::CanvasSettings @grid_line_mult data member
1
- GRIDSTYLE =
Default value of Wx::SF::CanvasSettings @grid_style data member
Wx::PenStyle::PENSTYLE_SOLID
- CANVAS_STYLE =
Default value of Wx::SF::CanvasSettings @style data member
STYLE::DEFAULT_CANVAS_STYLE
- SHADOWOFFSET =
Default value of Wx::SF::CanvasSettings @shadow_offset data member
Wx::RealPoint.new(4, 4)
- PRINT_HALIGN =
Default value of Wx::SF::CanvasSettings @print_h_align data member
HALIGN::CENTER
- PRINT_VALIGN =
Default value of Wx::SF::CanvasSettings @print_v_align data member
VALIGN::MIDDLE
- PRINT_MODE =
Default value of Wx::SF::CanvasSettings @print_mode data member
PRINTMODE::FIT_TO_MARGINS
- SCALE_MIN =
Default value of Wx::SF::CanvasSettings @min_scale data member
0.1
- SCALE_MAX =
Default value of Wx::SF::CanvasSettings @max_scale data member
5.0
Class Method Summary collapse
-
.arrow_fill ⇒ Object
Default value of Wx::SF::CanvasSettings @common_arrow_fill data member.
-
.background_color ⇒ Object
Default value of Wx::SF::CanvasSettings @background_color data member.
-
.border_pen ⇒ Object
Default value of Wx::SF::CanvasSettings @common_border_pen data member.
-
.control_border ⇒ Object
Default value of Wx::SF::CanvasSettings @common_control_border data member.
-
.control_fill ⇒ Object
Default value of Wx::SF::CanvasSettings @common_control_fill data member.
-
.control_mod_border ⇒ Object
Default value of Wx::SF::CanvasSettings @common_control_mod_border data member.
-
.control_mod_fill ⇒ Object
Default value of Wx::SF::CanvasSettings @common_control_mod_fill data member.
-
.fill_brush ⇒ Object
Default value of Wx::SF::CanvasSettings @common_fill_brush data member.
-
.gradient_from ⇒ Object
Default value of Wx::SF::CanvasSettings @gradient_from data member.
-
.gradient_to ⇒ Object
Default value of Wx::SF::CanvasSettings @gradient_to data member.
-
.grid_color ⇒ Object
Default value of Wx::SF::CanvasSettings @grid_color data member.
-
.hover_color ⇒ Object
Default value of Wx::SF::CanvasSettings @common_hover_color data member.
-
.line_pen ⇒ Object
Default value of Wx::SF::CanvasSettings @common_line_pen data member.
-
.shadow_brush ⇒ Object
Default value of Wx::SF::CanvasSettings @shadow_fill data member.
-
.shadow_color ⇒ Object
Default shadow colour.
-
.text_border ⇒ Object
Default value of Wx::SF::CanvasSettings @common_text_border data member.
-
.text_color ⇒ Object
Default value of Wx::SF::CanvasSettings @common_text_color data member.
-
.text_fill ⇒ Object
Default value of Wx::SF::CanvasSettings @common_text_fill data member.
-
.text_font ⇒ Object
Default value of Wx::SF::CanvasSettings @common_text_font data member.
Class Method Details
.arrow_fill ⇒ Object
Default value of Wx::SF::CanvasSettings @common_arrow_fill data member
207 |
# File 'lib/wx/shapes/shape_canvas.rb', line 207 def arrow_fill; @arrow_fill ||= fill_brush; end |
.background_color ⇒ Object
Default value of Wx::SF::CanvasSettings @background_color data member
197 |
# File 'lib/wx/shapes/shape_canvas.rb', line 197 def background_color; @bgcolor ||= Wx::Colour.new(240, 240, 240); end |
.border_pen ⇒ Object
Default value of Wx::SF::CanvasSettings @common_border_pen data member
201 |
# File 'lib/wx/shapes/shape_canvas.rb', line 201 def border_pen; @border_pen ||= Wx::BLACK_PEN.dup; end |
.control_border ⇒ Object
Default value of Wx::SF::CanvasSettings @common_control_border data member
219 |
# File 'lib/wx/shapes/shape_canvas.rb', line 219 def control_border; @ctrl_border ||= Wx::TRANSPARENT_PEN.dup; end |
.control_fill ⇒ Object
Default value of Wx::SF::CanvasSettings @common_control_fill data member
217 |
# File 'lib/wx/shapes/shape_canvas.rb', line 217 def control_fill; @ctrl_fill ||= Wx::TRANSPARENT_BRUSH.dup; end |
.control_mod_border ⇒ Object
Default value of Wx::SF::CanvasSettings @common_control_mod_border data member
223 |
# File 'lib/wx/shapes/shape_canvas.rb', line 223 def control_mod_border; @ctrl_mod_border ||= Wx::Pen.new(Wx::BLUE, 1, Wx::PenStyle::PENSTYLE_SOLID); end |
.control_mod_fill ⇒ Object
Default value of Wx::SF::CanvasSettings @common_control_mod_fill data member
221 |
# File 'lib/wx/shapes/shape_canvas.rb', line 221 def control_mod_fill; @ctrl_mod_fill ||= Wx::Brush.new(Wx::BLUE, Wx::BrushStyle::BRUSHSTYLE_BDIAGONAL_HATCH); end |
.fill_brush ⇒ Object
Default value of Wx::SF::CanvasSettings @common_fill_brush data member
203 |
# File 'lib/wx/shapes/shape_canvas.rb', line 203 def fill_brush; @fill_brush ||= Wx::WHITE_BRUSH.dup; end |
.gradient_from ⇒ Object
Default value of Wx::SF::CanvasSettings @gradient_from data member
227 |
# File 'lib/wx/shapes/shape_canvas.rb', line 227 def gradient_from; @gradcolor_from ||= Wx::Colour.new(240, 240, 240); end |
.gradient_to ⇒ Object
Default value of Wx::SF::CanvasSettings @gradient_to data member
229 |
# File 'lib/wx/shapes/shape_canvas.rb', line 229 def gradient_to; @gradcolor_to ||= Wx::Colour.new(200, 200, 255); end |
.grid_color ⇒ Object
Default value of Wx::SF::CanvasSettings @grid_color data member
225 |
# File 'lib/wx/shapes/shape_canvas.rb', line 225 def grid_color; @gridcolor ||= Wx::Colour.new(200, 200, 200); end |
.hover_color ⇒ Object
Default value of Wx::SF::CanvasSettings @common_hover_color data member
199 |
# File 'lib/wx/shapes/shape_canvas.rb', line 199 def hover_color; @hvrcolor ||= Wx::Colour.new(120, 120, 255); end |
.line_pen ⇒ Object
Default value of Wx::SF::CanvasSettings @common_line_pen data member
205 |
# File 'lib/wx/shapes/shape_canvas.rb', line 205 def line_pen; @line_pen ||= border_pen; end |
.shadow_brush ⇒ Object
Default value of Wx::SF::CanvasSettings @shadow_fill data member
233 |
# File 'lib/wx/shapes/shape_canvas.rb', line 233 def shadow_brush; @shadowbrush ||= Wx::Brush.new(shadow_color, Wx::BrushStyle::BRUSHSTYLE_SOLID); end |
.shadow_color ⇒ Object
Default shadow colour
231 |
# File 'lib/wx/shapes/shape_canvas.rb', line 231 def shadow_color; @shadowcolor ||= Wx::Colour.new(150, 150, 150, 128); end |
.text_border ⇒ Object
Default value of Wx::SF::CanvasSettings @common_text_border data member
213 |
# File 'lib/wx/shapes/shape_canvas.rb', line 213 def text_border; @text_border ||= Wx::TRANSPARENT_PEN.dup; end |
.text_color ⇒ Object
Default value of Wx::SF::CanvasSettings @common_text_color data member
209 |
# File 'lib/wx/shapes/shape_canvas.rb', line 209 def text_color; @text_color ||= Wx::BLACK.dup; end |
.text_fill ⇒ Object
Default value of Wx::SF::CanvasSettings @common_text_fill data member
211 |
# File 'lib/wx/shapes/shape_canvas.rb', line 211 def text_fill; @text_fill ||= Wx::TRANSPARENT_BRUSH.dup; end |
.text_font ⇒ Object
Default value of Wx::SF::CanvasSettings @common_text_font data member
215 |
# File 'lib/wx/shapes/shape_canvas.rb', line 215 def text_font; begin; @text_font = Wx::SWISS_FONT.dup; @text_font.point_size = 12; end unless @text_font; @text_font; end |