~sil2100/nux/precise_sru-1

« back to all changes in this revision

Viewing changes to Nux/Area.h

  • Committer: Didier Roche
  • Date: 2012-03-12 08:57:27 UTC
  • mfrom: (159.3.35)
  • Revision ID: didier.roche@canonical.com-20120312085727-9fyfwnno545c46uz
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
496
496
        unsigned long x11_key_code,
497
497
        unsigned long special_keys_state);
498
498
 
 
499
    /*!
 
500
        Mark the path from this area to its top level parent as the one to follow \n
 
501
        to get to the area that has the keyboard.
 
502
    */
499
503
    void SetPathToKeyFocusArea();
 
504
 
 
505
    /*!
 
506
        Erase the path from this area to the child area that has the keyboard.
 
507
    */
500
508
    void ResetDownwardPathToKeyFocusArea();
 
509
 
 
510
    /*!
 
511
        Erase the path that marks this object as part of the keyboard focus chain, \n
 
512
        from this area to its top level parent.
 
513
    */
501
514
    void ResetUpwardPathToKeyFocusArea();
502
515
 
503
516
    //! Return True if the the area knows what to do with the key event.
514
527
      unsigned int keysym,
515
528
      const char* character);
516
529
 
517
 
    virtual bool AcceptKeyNavFocus();
518
 
    
519
530
    virtual Area* KeyNavIteration(KeyNavDirection direction);
520
531
 
521
532
    bool HasKeyFocus() const;
593
604
    //! Return the absolute geometry starting with a relative geometry passed as argument.
594
605
    void InnerGetRootGeometry(Geometry &geometry);
595
606
 
596
 
//     //! Add a "secondary" child to this Area. The
597
 
//     /*!
598
 
//         @return True if the child has been added; False otherwise;
599
 
//     */
600
 
//     bool Secondary(Area *child);
601
 
   
602
607
    bool on_geometry_change_reconfigure_parent_layout_;
603
608
 
604
 
    bool                    has_key_focus_;
605
 
 
606
 
    Area                    *next_object_to_key_focus_area_;
 
609
    //! If this variable is true, then this area has the keyboard focus.
 
610
    bool has_key_focus_;
 
611
 
 
612
    //! If this variable is not NULL, then this area is part of the keyboard focus chain.
 
613
    Area* next_object_to_key_focus_area_;
 
614
 
607
615
  private:
608
616
    void ReconfigureParentLayout(Area *child = 0);
609
617
    void CheckMinSize();
619
627
        An object of the class Layout may have a parent of the class Layout or View as parent.
620
628
        A Area cannot have children(that may change later).
621
629
    */
622
 
    Area                    *parent_area_;
 
630
    Area*             parent_area_;
623
631
 
624
632
    bool              visible_;       //!< Visible state of the area.
625
633
    bool              sensitive_;     //!< Input sensitive state of the area