search for: getscreensize

Displaying 11 results from an estimated 11 matches for "getscreensize".

2009 Oct 27
1
Rjava, RImageJ, and/or S4 question.
...@ jobj :<externalptr> ..@ jclass: chr "ij/IJ" > str(img) Formal class 'jobjRef' [package "rJava"] with 2 slots ..@ jobj :<externalptr> ..@ jclass: chr "java/lang/Object" # now use an IJ java method to find out existing screen size IJ$getScreenSize() [1] "Java-Object{java.awt.Dimension[width=1680,height=1050]}" > str(IJ$getScreenSize()) Formal class 'jobjRef' [package "rJava"] with 2 slots ..@ jobj :<externalptr> ..@ jclass: chr "java/lang/Object" I am gathering that the RJava library (wh...
2005 Dec 15
1
Some handy methods - perhaps cool enough to be committed some time
...trieves the size of an element - Element.setSize(element,position) - sets the size of an element - Element.setOpacity(element,opacity) - sets the opacity of an element (0-100) - System.getWindowSize() - gets the size of the window - System.setWindowSize(size) - sets the size of the window - System.getScreenSize(availspaceonly) - gets the size of the screen. argument i boolean. False = screenresolution, True = area available(max size for browser fx.) - System.getWindowPosition() - gets the position of the window - System.setWindowPosition(position) - sets the position of the window - document.getElements...
2008 Jul 18
0
[ANNOUNCE] xcb-proto 1.2
...Add XML description for XInput extension. Add XML description for SELinux extension. xcb-xselinux: Remove an errant padding statement. xcb-xselinux: Revisions to xselinux extension protocol. Use multiword attribute instead of oneword in XSELinux description. Xinerama GetScreenSize screen field is a CARD32, not an xproto screen struct. Remove some stray padding from an XInput request. Require a length specification for lists in reply structures. Add Python parser language-independent parts. Add the python install dir to xcb-xproto.pc. Add is_simp...
2005 Nov 04
19
Drag & Scroll
When using drag and drop, the browser window will not scroll if you move the mouse off the page. This makes it very difficult, if not impossible to create certain types of web applications. I know this has been mentioned before and is on the Wish List, but it''s very frustrating. If you look at this other Javascript library called "Drag''nDrop & DHTML Library"
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...h> /* Has info on the SYSLINUX variant */ #include <syslinux/boot.h> /* syslinux_run_command() */ #define ROSH_COM32(f, ...) printf (f, ## __VA_ARGS__) +#define ROSH_FREE_DIRENT(de) free(de) #else #include <termios.h> #define ROSH_IS_COM32 0 @@ -78,16 +76,16 @@ static inline int getscreensize(int fd, int *rows, int *cols) int rv; *rows = 0; *cols = 0; - if (rows) { - str = getenv("LINES"); - if (str) { - *rows = atoi(str); + if (fd == 1) { + if (rows) { + str = getenv("LINES"); + if (str) + *rows = atoi(str); } - } - if (cols) { - str = getenv(&...
2009 Feb 15
2
COM32 module: Read-Only shell
...h_more(const char *cmdstr, const char *pwdstr) + /*, const char *ipwdstr)*/ +{ + int fd; + char filestr[ROSH_PATH_SZ + 1]; + int cmdpos; + int rows, cols; + + ROSH_DEBUG("CMD: '%s'\npwd: '%s'\n", cmdstr, pwdstr); + /* Initialization */ + filestr[0] = 0; + cmdpos = 0; + if (getscreensize(1, &rows, &cols)) { + ROSH_DEBUG("getscreensize() fail; fall back\n"); + ROSH_DEBUG("\tROWS='%d'\tCOLS='%d'\n", rows, cols); + /* If either fail, go under normal size, just in case */ + if (!rows) + rows = 20; + if (!cols) + cols = 75; + } + ROSH...
2009 Feb 11
1
[PATCH 1/1] COM32 API: Add functions for directory use
...+__extern int closedir(DIR *); +__extern DIR *fdopendir(int); + +#endif /* Not _DIRENT_H */ diff --git a/com32/include/unistd.h b/com32/include/unistd.h index d0b8309..c0b52d6 100644 --- a/com32/include/unistd.h +++ b/com32/include/unistd.h @@ -22,6 +22,9 @@ __extern int isatty(int); __extern int getscreensize(int, int *, int *); +__extern char *getcwd(char *, int); +__extern int chdir(const char *); + /* Standard file descriptor numbers. */ #define STDIN_FILENO 0 #define STDOUT_FILENO 1 diff --git a/com32/lib/Makefile b/com32/lib/Makefile index 91405a0..0cc4061 100644 --- a/com32/lib/Makefile +++ b/...
2008 Dec 04
0
[PATCH 1/1] COM32: Add directory functions
...+__extern int closedir(DIR *); +__extern DIR *fdopendir(int); + +#endif /* Not _DIRENT_H */ diff --git a/com32/include/unistd.h b/com32/include/unistd.h index d0b8309..c0b52d6 100644 --- a/com32/include/unistd.h +++ b/com32/include/unistd.h @@ -22,6 +22,9 @@ __extern int isatty(int); __extern int getscreensize(int, int *, int *); +__extern char *getcwd(char *, int); +__extern int chdir(const char *); + /* Standard file descriptor numbers. */ #define STDIN_FILENO 0 #define STDOUT_FILENO 1 diff --git a/com32/lib/Makefile b/com32/lib/Makefile index 0279904..793ef33 100644 --- a/com32/lib/Makefile +++ b/...
2010 Jun 27
1
[PATCH] ROSH: Upgraded
...return ret; +} + #else -#include <termios.h> -#define ROSH_IS_COM32 0 -static inline char *syslinux_config_file() +# include <termios.h> +# define ROSH_IS_COM32 0 + +static inline char *syslinux_config_file(void) { return ""; } @@ -81,16 +104,16 @@ static inline int getscreensize(int fd, int *rows, int *cols) int rv; *rows = 0; *cols = 0; - if (rows) { - str = getenv("LINES"); - if (str) { - *rows = atoi(str); + if (fd == 1) { + if (rows) { + str = getenv("LINES"); + if (str) + *rows = atoi(str); } - } - if (cols...
2011 Feb 17
5
[PATCH 0/4] Reduce core size
From: Matt Fleming <matt.fleming at linux.intel.com> These patches are based on the elflink branch. This set of patches is my attempt at moving the command-line interface functionality out of the core and into an ELF module to reduce the size of the core. The most interesting patch is [PATCH 4/4] which moves the cli code out of core/elflink and into com32/elflink/modules. [PATCH 4/4] is
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com> This series fixes some bugs and switches the elflink branch to be entirely ELF modules. It applies on top of, http://syslinux.zytor.com/archives/2011-April/016369.html The deletions in the diff stat below are mainly from deleting com32/elflink/modules (finally!). Now there should be no duplicate code because we don't need COM32 and