Class: Wx::PenQuality

Inherits:
Enum
  • Object
show all
Defined in:
lib/wx/doc/gen/pen.rb

Overview

Possible values for pen quality.

Pen quality is currently only used in WXMSW, the other ports ignore it and always use the same default pen quality. In WXMSW the choice of quality affects whether “cosmetic” or “geometric” native pens are used in situations when both are usable. Notably, for dotted and dashed pens of width 1, high quality geometric pens are used by default since wxWidgets 3.1.4, while previous versions used lower quality but much faster cosmetic pens. If drawing performance is more important than the exact appearance of the lines drawn using this pen, low quality may be explicitly selected. See Wx::PenInfo#quality and Wx::Pen#set_quality.

Constant Summary collapse

PEN_QUALITY_DEFAULT =

Select the appropriate quality automatically.

Wx::PenQuality.new(0)
PEN_QUALITY_LOW =

Less good looking but faster.

Wx::PenQuality.new(1)
PEN_QUALITY_HIGH =

Best looking, at the expense of speed.

Wx::PenQuality.new(2)

Method Summary

Methods inherited from Enum

#!, #&, #<=>, #allbits?, #anybits?, #coerce, #eql?, #initialize, #inspect, #integer?, #method_missing, #nobits?, #real?, #succ, #to_int, #to_s, #|, #~

Constructor Details

This class inherits a constructor from Wx::Enum

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Wx::Enum