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)
HALIGN::CENTER
VALIGN::MIDDLE
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

Class Method Details

.arrow_fillObject

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_colorObject

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_penObject

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_borderObject

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_fillObject

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_borderObject

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_fillObject

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_brushObject

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_fromObject

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_toObject

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_colorObject

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_colorObject

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_penObject

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_brushObject

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_colorObject

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_borderObject

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_colorObject

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_fillObject

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_fontObject

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