diff --git a/clog-window.lisp b/clog-window.lisp index 3a30508..2c75266 100644 --- a/clog-window.lisp +++ b/clog-window.lisp @@ -196,6 +196,76 @@ window.")) (defmethod pixel-ratio ((obj clog-window)) (query obj "devicePixelRatio")) +;;;;;;;;;;;;;;;;;; +;; screen-width ;; +;;;;;;;;;;;;;;;;;; + +(defgeneric screen-width (clog-window) + (:documentation "Get screen width.")) + +(defmethod screen-width ((obj clog-window)) + (query obj "screen.width")) + +;;;;;;;;;;;;;;;;;;; +;; screen-height ;; +;;;;;;;;;;;;;;;;;;; + +(defgeneric screen-height (clog-window) + (:documentation "Get screen height.")) + +(defmethod screen-height ((obj clog-window)) + (query obj "screen.height")) + +;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; screen-available-width ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(defgeneric screen-available-width (clog-window) + (:documentation "Get available screen width.")) + +(defmethod screen-available-width ((obj clog-window)) + (query obj "screen.availWidth")) + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; screen-available-height ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(defgeneric screen-available-height (clog-window) + (:documentation "Get available screen height.")) + +(defmethod screen-available-height ((obj clog-window)) + (query obj "screen.availHeight")) + +;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; screen-available-left ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(defgeneric screen-available-left (clog-window) + (:documentation "Get available screen left.")) + +(defmethod screen-available-left ((obj clog-window)) + (query obj "screen.availLeft")) + +;;;;;;;;;;;;;;;;;;;;;;;;;; +;; screen-available-top ;; +;;;;;;;;;;;;;;;;;;;;;;;;;; + +(defgeneric screen-available-top (clog-window) + (:documentation "Get available screen top.")) + +(defmethod screen-available-top ((obj clog-window)) + (query obj "screen.availTop")) + +;;;;;;;;;;;;;;;;;;;;;;;; +;; screen-color-depth ;; +;;;;;;;;;;;;;;;;;;;;;;;; + +(defgeneric screen-color-depth (clog-window) + (:documentation "Get screen color depth.")) + +(defmethod screen-color-depth ((obj clog-window)) + (query obj "screen.colorDepth")) + ;;;;;;;;;;; ;; alert ;; ;;;;;;;;;;; diff --git a/clog.lisp b/clog.lisp index 6b6d881..ba05363 100644 --- a/clog.lisp +++ b/clog.lisp @@ -123,16 +123,23 @@ application." (clog-window class) "CLOG-Window - Properties" - (window-name generic-function) - (inner-height generic-function) - (inner-width generic-function) - (outer-height generic-function) - (outer-width generic-function) - (x-offset generic-function) - (y-offset generic-function) - (left generic-function) - (top generic-function) - (pixel-ratio generic-function) + (window-name generic-function) + (inner-height generic-function) + (inner-width generic-function) + (outer-height generic-function) + (outer-width generic-function) + (x-offset generic-function) + (y-offset generic-function) + (left generic-function) + (top generic-function) + (pixel-ratio generic-function) + (screen-width generic-function) + (screen-height generic-function) + (screen-available-width generic-function) + (screen-available-height generic-function) + (screen-available-top generic-function) + (screen-available-left generic-function) + (screen-color-depth generic-function) "CLOG-Window - Methods" (alert generic-function) @@ -182,6 +189,7 @@ application." "CLOG-Navigator - CLOG Navigator Objects" (clog-navigator class) + "CLOG-Navigator - Properties" (cookie-enabled generic-function) (language generic-function) (user-agent generic-function) diff --git a/doc/clog-manual.html b/doc/clog-manual.html index 95a4650..e70923b 100644 --- a/doc/clog-manual.html +++ b/doc/clog-manual.html @@ -711,6 +711,62 @@ window.
Get device pixel ratio.
+ + +[generic-function] SCREEN-WIDTH CLOG-WINDOW
+ +Get screen width.
[generic-function] SCREEN-HEIGHT CLOG-WINDOW
+ +Get screen height.
[generic-function] SCREEN-AVAILABLE-WIDTH CLOG-WINDOW
+ +Get available screen width.
[generic-function] SCREEN-AVAILABLE-HEIGHT CLOG-WINDOW
+ +Get available screen height.
[generic-function] SCREEN-AVAILABLE-TOP CLOG-WINDOW
+ +Get available screen top.
[generic-function] SCREEN-AVAILABLE-LEFT CLOG-WINDOW
+ +Get available screen left.
[generic-function] SCREEN-COLOR-DEPTH CLOG-WINDOW
+ +Get screen color depth.
CLOG-Window - Methods
@@ -1141,10 +1197,12 @@ is nil unbind the event.CLOG Navigator Objects encapsulate the navigator.
CLOG-Navigator - Properties
+[generic-function] COOKIE-ENABLED CLOG-LOCATION
+[generic-function] COOKIE-ENABLED CLOG-NAVIGATOR
Get if cookie enabled.
[generic-function] LANGUAGE CLOG-LOCATION
+[generic-function] LANGUAGE CLOG-NAVIGATOR
Get user prefered language.
[generic-function] USER-AGENT CLOG-LOCATION
+[generic-function] USER-AGENT CLOG-NAVIGATOR
Get user agent.