]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/l4re/include/video/view
update
[l4.git] / l4 / pkg / l4re / include / video / view
index f6d5c4ff9d8a60d663e26241c4c06e8c58a72d91..3df34e8f056fae2daea89823f78f9009935cde9b 100644 (file)
@@ -59,18 +59,32 @@ public:
     F_set_pixel          = 0x08, ///< pixel type can be set
     F_set_position       = 0x10, ///< position on screen can be set
     F_dyn_allocated      = 0x20, ///< View is dynamically allocated
+    F_set_background     = 0x40, ///< Set view as background for session
+    F_set_flags          = 0x80, ///< Set view flags (\see V_flags)
 
     /** Flags for a fully dynamic view */
     F_fully_dynamic      =   F_set_buffer | F_set_buffer_offset | F_set_bytes_per_line
                            | F_set_pixel | F_set_position | F_dyn_allocated,
   };
 
+  /**
+   * \brief Property flags of a view.
+   *
+   * Such flags can be set or deleted with the #F_set_flags operation using
+   * the set_info() method.
+   */
+  enum V_flags
+  {
+    F_above              = 0x1000,  ///< Flag the view as stay on top
+    F_flags_mask         = 0xff000, ///< Mask containing all possible property flags
+  };
+
   /**
    * \brief Information structure of a view.
    */
   struct Info
   {
-    unsigned flags;                 ///< Flags, see \a Flags
+    unsigned flags;                 ///< Flags, \see \a Flags and \a V_flags
     unsigned view_index;            ///< Index of the view
 
     unsigned long xpos;             ///< X position in pixels of the view in the goos
@@ -153,11 +167,11 @@ public:
 
   /** Make this view the top-most view */
   int push_top() const throw()
-  { return stack(View(), false); }
+  { return stack(View(), true); }
 
   /** Push this view the back */
   int push_bottom() const throw()
-  { return stack(View(), true); }
+  { return stack(View(), false); }
 
   /**
    * \brief Refresh/Redraw the view.