Class: Wx::SF::Shape::STYLE

Inherits:
Enum
  • Object
show all
Defined in:
lib/wx/shapes/shape.rb

Overview

Basic shape’s styles used with set_style function

Constant Summary collapse

PARENT_CHANGE =

Interactive parent change is allowed

self.new(1)
POSITION_CHANGE =

Interactive position change is allowed

self.new(2)
SIZE_CHANGE =

Interactive size change is allowed

self.new(4)
HOVERING =

Shape is highlighted at mouse hovering

self.new(8)
HIGHLIGHTING =

Shape is highlighted at shape dragging

self.new(16)
ALWAYS_INSIDE =

Shape is always inside its parent

self.new(32)
NOT_DRAWN =

Shape is not drawn. Does not apply to children. Should be combined with PROPAGATE_DRAGGING | PROPAGATE_SELECTION | PROPAGATE_INTERACTIVE_CONNECTION | PROPAGATE_HOVERING | PROPAGATE_HIGHLIGHTING | PROPAGATE_DROPPING in most cases.

self.new(64)
PROCESS_DEL =

The DEL key is processed by the shape (not by the shape canvas)

self.new(128)
SHOW_HANDLES =

Show handles if the shape is selected

self.new(256)
SHOW_SHADOW =

Show shadow under the shape

self.new(512)
LOCK_CHILDREN =

Lock children relative position if the parent is resized

self.new(1024)
EMIT_EVENTS =

Emit events (catchable in shape canvas)

self.new(2048)
PROPAGATE_DRAGGING =

Propagate mouse dragging event to parent shape

self.new(4096)
PROPAGATE_SELECTION =

Propagate selection to parent shape (it means this shape cannot be selected because its focus is redirected to its parent shape)

self.new(8192)
PROPAGATE_INTERACTIVE_CONNECTION =

Propagate interactive connection request to parent shape (it means this shape cannot be connected interactively because this feature is redirected to its parent shape)

self.new(16384)
NO_FIT_TO_CHILDREN =

Do no resize the shape to fit its children automatically

self.new(32768)
PROPAGATE_HOVERING =

Propagate hovering to parent.

self.new(65536)
PROPAGATE_HIGHLIGHTING =

Propagate highlighting to parent.

self.new(131072)
PROPAGATE_DROPPING =

Propagate dropping to parent.

self.new(262144)
DEFAULT_SHAPE_STYLE =

Default shape style

PARENT_CHANGE | POSITION_CHANGE | SIZE_CHANGE | HOVERING | HIGHLIGHTING | SHOW_HANDLES | ALWAYS_INSIDE
PROPAGATE_ALL =

Shortcut for all propagation options

PROPAGATE_DRAGGING | PROPAGATE_SELECTION | PROPAGATE_INTERACTIVE_CONNECTION | PROPAGATE_HOVERING | PROPAGATE_HIGHLIGHTING | PROPAGATE_DROPPING

Method Summary

Methods inherited from Enum

#init_from_serialized