OSDN Git Service

web/css/attr_background.hpp Add.
authorMyun2 <myun2@nwhite.info>
Sun, 26 Dec 2010 07:52:57 +0000 (16:52 +0900)
committerMyun2 <myun2@nwhite.info>
Sun, 26 Dec 2010 07:52:57 +0000 (16:52 +0900)
roast/include/roast/web/css/attr_background.hpp [new file with mode: 0644]

diff --git a/roast/include/roast/web/css/attr_background.hpp b/roast/include/roast/web/css/attr_background.hpp
new file mode 100644 (file)
index 0000000..0d41263
--- /dev/null
@@ -0,0 +1,92 @@
+//     Roast+ License
+
+/*
+*/
+#ifndef __SFJP_ROAST__web__css__attr_background_HPP__
+#define __SFJP_ROAST__web__css__attr_background_HPP__
+
+namespace roast
+{
+       namespace css
+       {
+               namespace attr
+               {
+                       /////////////////////////////////////////////////////////////////////////
+background: url(image/back.gif) no-repeat fixed 50% 50%; }
+
+                       namespace _attrname_str
+                       {
+                               ROAST_CSS_STR_DEF(background)
+                               ROAST_LEXICAL_FIXSTR(background_color, "background-color")
+                               ROAST_LEXICAL_FIXSTR(background_image, "background-image")
+                               ROAST_LEXICAL_FIXSTR(background_attachment, "background-attachment")
+                               ROAST_LEXICAL_FIXSTR(background_position, "background-position")
+                       }
+
+                       //      background
+                       template <
+                               typename _Image=empty_type,
+                               typename _Position=empty_type,
+                               typename _Attachment=empty_type,
+                               typename _PosX=empty_type,
+                               typename _PosY=empty_type>
+                       struct background_ : _trbl<_attrname_str::background, _Image, _Position, _Attachment, _PosX, _PosY> {};
+
+                       //      background_color
+                       template <typename _Color>
+                       struct background_color_ : _trbl<_attrname_str::background_color, _Color> {};
+
+                       //      background_image
+                       template <
+                               typename _Top=empty_type,
+                               typename _Right=empty_type,
+                               typename _Bottom=empty_type,
+                               typename _Left=empty_type>
+                       struct border_width_ : _trbl<_attrname_str::border_width, _Top, _Right, _Bottom, _Left> {};
+
+                       //      border_style {1,4}
+                       template <
+                               typename _Top=empty_type,
+                               typename _Right=empty_type,
+                               typename _Bottom=empty_type,
+                               typename _Left=empty_type>
+                       struct border_style_ : _trbl<_attrname_str::border_style, _Top, _Right, _Bottom, _Left> {};
+
+                       //      border_color {1,4}
+                       template <
+                               typename _Top=empty_type,
+                               typename _Right=empty_type,
+                               typename _Bottom=empty_type,
+                               typename _Left=empty_type>
+                       struct border_color_ : _trbl<_attrname_str::border_color, _Top, _Right, _Bottom, _Left> {};
+
+                       //      px  ///////////////////////////////////////////////////////////////////////
+                       
+                       //      padding(px) {1,4}
+                       template <int _Top, int _Right, int _Bottom, int _Left>
+                       struct padding_px_ : padding_<
+                               unit::px_<_Top>,
+                               unit::px_<_Right>,
+                               unit::px_<_Bottom>,
+                               unit::px_<_Left> > {};
+
+                       //      margin(px) {1,4}
+                       template <int _Top, int _Right, int _Bottom, int _Left>
+                       struct margin_px_ : margin_<
+                               unit::px_<_Top>,
+                               unit::px_<_Right>,
+                               unit::px_<_Bottom>,
+                               unit::px_<_Left> > {};
+
+                       //      border_width(px) {1,4}
+                       template <int _Top, int _Right, int _Bottom, int _Left>
+                       struct border_width_px_ : border_width_<
+                               unit::px_<_Top>,
+                               unit::px_<_Right>,
+                               unit::px_<_Bottom>,
+                               unit::px_<_Left> > {};
+               }
+       }
+}
+
+#endif//__SFJP_ROAST__web__css__attr_background_HPP__
\ No newline at end of file