~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to intern/ghost/intern/GHOST_ModifierKeys.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * $Id: GHOST_ModifierKeys.h 26841 2010-02-12 13:34:04Z campbellbarton $
 
1
/*
3
2
 * ***** BEGIN GPL LICENSE BLOCK *****
4
3
 *
5
4
 * This program is free software; you can redistribute it and/or
25
24
 *
26
25
 * ***** END GPL LICENSE BLOCK *****
27
26
 */
28
 
/**
29
 
 * @file        GHOST_ModifierKeys.h
 
27
 
 
28
/** \file ghost/intern/GHOST_ModifierKeys.h
 
29
 *  \ingroup GHOST
30
30
 * Declaration of GHOST_ModifierKeys struct.
31
31
 */
32
32
 
33
 
#ifndef _GHOST_MODIFIER_KEYS_H_
34
 
#define _GHOST_MODIFIER_KEYS_H_
 
33
#ifndef __GHOST_MODIFIERKEYS_H__
 
34
#define __GHOST_MODIFIERKEYS_H__
35
35
 
36
36
#include "GHOST_Types.h"
37
37
 
43
43
 */
44
44
struct GHOST_ModifierKeys
45
45
{
46
 
    /**
47
 
     * Constructor.
48
 
     */
49
 
    GHOST_ModifierKeys();
 
46
        /**
 
47
         * Constructor.
 
48
         */
 
49
        GHOST_ModifierKeys();
50
50
 
51
51
        virtual ~GHOST_ModifierKeys();
52
52
 
57
57
         */
58
58
        static GHOST_TKey getModifierKeyCode(GHOST_TModifierKeyMask mask);
59
59
 
60
 
    
61
 
    /**
62
 
     * Returns the state of a single modifier key.
63
 
     * @param mask. Key state to return.
64
 
     * @return The state of the key (pressed == true).
65
 
     */
66
 
    virtual bool get(GHOST_TModifierKeyMask mask) const;
67
 
    
68
 
    /**
69
 
     * Updates the state of a single modifier key.
70
 
     * @param mask. Key state to update.
71
 
     * @param down. The new state of the key.
72
 
     */
73
 
    virtual void set(GHOST_TModifierKeyMask mask, bool down);
74
 
    
75
 
    /**
76
 
     * Sets the state of all modifier keys to up.
77
 
     */
78
 
    virtual void clear();
 
60
 
 
61
        /**
 
62
         * Returns the state of a single modifier key.
 
63
         * @param mask. Key state to return.
 
64
         * @return The state of the key (pressed == true).
 
65
         */
 
66
        virtual bool get(GHOST_TModifierKeyMask mask) const;
 
67
 
 
68
        /**
 
69
         * Updates the state of a single modifier key.
 
70
         * @param mask. Key state to update.
 
71
         * @param down. The new state of the key.
 
72
         */
 
73
        virtual void set(GHOST_TModifierKeyMask mask, bool down);
 
74
 
 
75
        /**
 
76
         * Sets the state of all modifier keys to up.
 
77
         */
 
78
        virtual void clear();
79
79
 
80
80
        /**
81
81
         * Determines whether to modifier key states are equal.
83
83
         * @return Indication of equality.
84
84
         */
85
85
        virtual bool equals(const GHOST_ModifierKeys& keys) const;
86
 
    
87
 
    /** Bitfield that stores the appropriate key state. */
88
 
    GHOST_TUns8 m_LeftShift : 1;
89
 
    /** Bitfield that stores the appropriate key state. */
90
 
    GHOST_TUns8 m_RightShift : 1;
91
 
    /** Bitfield that stores the appropriate key state. */
92
 
    GHOST_TUns8 m_LeftAlt : 1;
93
 
    /** Bitfield that stores the appropriate key state. */
94
 
    GHOST_TUns8 m_RightAlt : 1;
95
 
    /** Bitfield that stores the appropriate key state. */
96
 
    GHOST_TUns8 m_LeftControl : 1;
97
 
    /** Bitfield that stores the appropriate key state. */
98
 
    GHOST_TUns8 m_RightControl : 1;
99
 
    /** Bitfield that stores the appropriate key state. APPLE only! */
100
 
    GHOST_TUns8 m_Command : 1;
 
86
 
 
87
        /** Bitfield that stores the appropriate key state. */
 
88
        GHOST_TUns8 m_LeftShift : 1;
 
89
        /** Bitfield that stores the appropriate key state. */
 
90
        GHOST_TUns8 m_RightShift : 1;
 
91
        /** Bitfield that stores the appropriate key state. */
 
92
        GHOST_TUns8 m_LeftAlt : 1;
 
93
        /** Bitfield that stores the appropriate key state. */
 
94
        GHOST_TUns8 m_RightAlt : 1;
 
95
        /** Bitfield that stores the appropriate key state. */
 
96
        GHOST_TUns8 m_LeftControl : 1;
 
97
        /** Bitfield that stores the appropriate key state. */
 
98
        GHOST_TUns8 m_RightControl : 1;
 
99
        /** Bitfield that stores the appropriate key state. */
 
100
        GHOST_TUns8 m_OS : 1;
101
101
};
102
102
 
103
 
#endif // _GHOST_MODIFIER_KEYS_H_
 
103
#endif // __GHOST_MODIFIERKEYS_H__
104
104