Class: Wx::RasterOperationMode

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

Overview

Logical raster operations which can be used with DC#set_logical_function and some other DC functions (e.g.

DC#blit and DC#stretch_blit). The description of the values below refer to how a generic src source pixel and the corresponding dst destination pixel gets combined together to produce the final pixel. E.g. CLEAR and SET completely ignore the source and the destination pixel and always put zeroes or ones in the final surface. Note that not all modes are supported under all platforms. Notably WXGTK3 and WXOSX only support the following modes:

Constant Summary collapse

CLEAR =

0

Wx::RasterOperationMode.new(0)
XOR =

src XOR dst

Wx::RasterOperationMode.new(1)
INVERT =

NOT dst.

Wx::RasterOperationMode.new(2)
OR_REVERSE =

src OR (NOT dst)

Wx::RasterOperationMode.new(3)
AND_REVERSE =

src AND (NOT dst)

Wx::RasterOperationMode.new(4)
COPY =

src

Wx::RasterOperationMode.new(5)
AND =

src AND dst

Wx::RasterOperationMode.new(6)
AND_INVERT =

(NOT src) AND dst

Wx::RasterOperationMode.new(7)
NO_OP =

dst

Wx::RasterOperationMode.new(8)
NOR =

(NOT src) AND (NOT dst)

Wx::RasterOperationMode.new(9)
EQUIV =

(NOT src) XOR dst

Wx::RasterOperationMode.new(10)
SRC_INVERT =

(NOT src)

Wx::RasterOperationMode.new(11)
OR_INVERT =

(NOT src) OR dst

Wx::RasterOperationMode.new(12)
NAND =

(NOT src) OR (NOT dst)

Wx::RasterOperationMode.new(13)
OR =

src OR dst

Wx::RasterOperationMode.new(14)
SET =

1

Wx::RasterOperationMode.new(15)

Method Summary

Methods inherited from Enum

#!, #&, #<=>, [], #allbits?, #anybits?, #coerce, enumerators, #eql?, #initialize, #inspect, #integer?, #method_missing, #nobits?, non_distinct, #real?, set_non_distinct, #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