123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- deferred class CD_CANVAS_SIMULATE
-
- inherit
- CANVAS_DRAW
- feature {ANY}
- cd_sim_none, cd_sim_line, cd_sim_rect, cd_sim_box, cd_sim_arc: INTEGER_16
- cd_sim_sector, cd_sim_chord, cd_sim_polyline, cd_sim_polygon: INTEGER_16
- cd_sim_text, cd_sim_all, cd_sim_lines, cd_sim_fills: INTEGER_16
- simulate (mode: INTEGER_16)
- do
- int_canvas_simulate(cnvs, mode)
- end
- feature {}
- -- Internals
- int_canvas_simulate (data: POINTER; m: INTEGER_16)
- external "plug_in"
- alias "{
- location: "${sys}/plugins"
- module_name: "iup"
- feature_name: "cdCanvasSimulate"
- }"
- end
- initialize_modes
- do
- cd_sim_none := 0x0000
- cd_sim_line := 0x0001
- cd_sim_rect := 0x0002
- cd_sim_box := 0x0004
- cd_sim_arc := 0x0008
- cd_sim_sector := 0x0010
- cd_sim_chord := 0x0020
- cd_sim_polyline := 0x0040
- cd_sim_polygon := 0x0080
- cd_sim_text := 0x0100
- cd_sim_all := 0xFFFF
- cd_sim_lines := cd_sim_line | cd_sim_rect | cd_sim_arc | cd_sim_polyline
- cd_sim_fills := cd_sim_box | cd_sim_sector | cd_sim_chord | cd_sim_polygon
- end
- end
- -- The MIT License (MIT)
- -- Copyright (c) 2016 by German A. Arias
- -- Permission is hereby granted, free of charge, to any person obtaining a copy
- -- of this software and associated documentation files (the "Software"), to deal
- -- in the Software without restriction, including without limitation the rights
- -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- -- copies of the Software, and to permit persons to whom the Software is
- -- furnished to do so, subject to the following conditions:
- --
- -- The above copyright notice and this permission notice shall be included in
- -- all copies or substantial portions of the Software.
- --
- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- -- SOFTWARE.
|