Skip to content

Consider Adding Enum Type for GetROP2/SetROP2 #1045

Closed

Description

@lonitra

Is your feature request related to a problem? Please describe.
Currently GetROP2/SetROP2 has return/param type int, but it would help with code cleanliness to have an enum type as shown in the docs

Describe the solution you'd like
Something like:

        public enum R2 : int
        {
            BLACK = 1,
            NOTMERGEPEN = 2,
            MASKNOTPEN = 3,
            NOTCOPYPEN = 4,
            MASKPENNOT = 5,
            NOT = 6,
            XORPEN = 7,
            NOTMASKPEN = 8,
            MASKPEN = 9,
            NOTXORPEN = 10,
            NOP = 11,
            MERGENOTPEN = 12,
            COPYPEN = 13,
            MERGEPENNOT = 14,
            MERGEPEN = 15,
            WHITE = 16,
            LAST = 16,
        }

Describe alternatives you've considered
The enum above is what winforms has been using.

Activity

  1. elachlan commented on Aug 14, 2022

    @elachlan
    Contributor

    Andrew Arnott (@AArnott) can you move this issue to win32metadata?

  2. added
    missing enum
    on Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementmissing enum

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions