|
Math library
|
The interface implemented by the platform-specific code. More...
Functions | |
| int | _glfwPlatformInit (void) |
| Initializes the platform-specific part of the library. More... | |
| void | _glfwPlatformTerminate (void) |
| Terminates the platform-specific part of the library. | |
| const char * | _glfwPlatformGetVersionString (void) |
| Returns a string describing the compile-time configuration. More... | |
| void | _glfwPlatformGetCursorPos (_GLFWwindow *window, double *xpos, double *ypos) |
| Retrieves the position of the cursor relative to the client area of the window. More... | |
| void | _glfwPlatformSetCursorPos (_GLFWwindow *window, double xpos, double ypos) |
| Sets the position of the cursor, relative to the client area of the window. More... | |
| void | _glfwPlatformSetCursorMode (_GLFWwindow *window, int mode) |
| Sets the specified cursor mode of the specified window. More... | |
| const char * | _glfwPlatformGetKeyName (int key, int scancode) |
| Returns the localized name of the specified printable key. More... | |
| _GLFWmonitor ** | _glfwPlatformGetMonitors (int *count) |
| Returns the currently connected monitors. More... | |
| GLFWbool | _glfwPlatformIsSameMonitor (_GLFWmonitor *first, _GLFWmonitor *second) |
| Checks whether two monitor objects represent the same monitor. More... | |
| void | _glfwPlatformGetMonitorPos (_GLFWmonitor *monitor, int *xpos, int *ypos) |
| Returns the position of the monitor's viewport on the virtual screen. More... | |
| GLFWvidmode * | _glfwPlatformGetVideoModes (_GLFWmonitor *monitor, int *count) |
| Returns the available video modes for the specified monitor. More... | |
| void | _glfwPlatformGetVideoMode (_GLFWmonitor *monitor, GLFWvidmode *mode) |
| void | _glfwPlatformGetGammaRamp (_GLFWmonitor *monitor, GLFWgammaramp *ramp) |
| Returns the current gamma ramp for the specified monitor. More... | |
| void | _glfwPlatformSetGammaRamp (_GLFWmonitor *monitor, const GLFWgammaramp *ramp) |
| Sets the current gamma ramp for the specified monitor. More... | |
| void | _glfwPlatformSetClipboardString (_GLFWwindow *window, const char *string) |
| Sets the clipboard to the specified string. More... | |
| const char * | _glfwPlatformGetClipboardString (_GLFWwindow *window) |
| Returns the contents of the clipboard as a string. More... | |
| int | _glfwPlatformJoystickPresent (int joy) |
| Returns whether the specified joystick is present. More... | |
| const float * | _glfwPlatformGetJoystickAxes (int joy, int *count) |
| Returns the values of all axes of the specified joystick. More... | |
| const unsigned char * | _glfwPlatformGetJoystickButtons (int joy, int *count) |
| Returns the state of all buttons of the specified joystick. More... | |
| const char * | _glfwPlatformGetJoystickName (int joy) |
| Returns the name of the specified joystick. More... | |
| uint64_t | _glfwPlatformGetTimerValue (void) |
| Returns the current value of the raw timer. More... | |
| uint64_t | _glfwPlatformGetTimerFrequency (void) |
| Returns the frequency, in Hz, of the raw timer. More... | |
| int | _glfwPlatformCreateWindow (_GLFWwindow *window, const _GLFWwndconfig *wndconfig, const _GLFWctxconfig *ctxconfig, const _GLFWfbconfig *fbconfig) |
| void | _glfwPlatformDestroyWindow (_GLFWwindow *window) |
| void | _glfwPlatformSetWindowTitle (_GLFWwindow *window, const char *title) |
| Sets the title of the specified window. More... | |
| void | _glfwPlatformSetWindowIcon (_GLFWwindow *window, int count, const GLFWimage *images) |
| Sets the icon for the specified window. More... | |
| void | _glfwPlatformGetWindowPos (_GLFWwindow *window, int *xpos, int *ypos) |
| Retrieves the position of the client area of the specified window. More... | |
| void | _glfwPlatformSetWindowPos (_GLFWwindow *window, int xpos, int ypos) |
| Sets the position of the client area of the specified window. More... | |
| void | _glfwPlatformGetWindowSize (_GLFWwindow *window, int *width, int *height) |
| Retrieves the size of the client area of the specified window. More... | |
| void | _glfwPlatformSetWindowSize (_GLFWwindow *window, int width, int height) |
| Sets the size of the client area of the specified window. More... | |
| void | _glfwPlatformSetWindowSizeLimits (_GLFWwindow *window, int minwidth, int minheight, int maxwidth, int maxheight) |
| Sets the size limits of the specified window. More... | |
| void | _glfwPlatformSetWindowAspectRatio (_GLFWwindow *window, int numer, int denom) |
| Sets the aspect ratio of the specified window. More... | |
| void | _glfwPlatformGetFramebufferSize (_GLFWwindow *window, int *width, int *height) |
| Retrieves the size of the framebuffer of the specified window. More... | |
| void | _glfwPlatformGetWindowFrameSize (_GLFWwindow *window, int *left, int *top, int *right, int *bottom) |
| Retrieves the size of the frame of the window. More... | |
| void | _glfwPlatformIconifyWindow (_GLFWwindow *window) |
| Iconifies the specified window. More... | |
| void | _glfwPlatformRestoreWindow (_GLFWwindow *window) |
| Restores the specified window. More... | |
| void | _glfwPlatformMaximizeWindow (_GLFWwindow *window) |
| Maximizes the specified window. More... | |
| void | _glfwPlatformShowWindow (_GLFWwindow *window) |
| Makes the specified window visible. More... | |
| void | _glfwPlatformHideWindow (_GLFWwindow *window) |
| Hides the specified window. More... | |
| void | _glfwPlatformFocusWindow (_GLFWwindow *window) |
| Brings the specified window to front and sets input focus. More... | |
| void | _glfwPlatformSetWindowMonitor (_GLFWwindow *window, _GLFWmonitor *monitor, int xpos, int ypos, int width, int height, int refreshRate) |
| Sets the mode, monitor, video mode and placement of a window. More... | |
| int | _glfwPlatformWindowFocused (_GLFWwindow *window) |
| Returns whether the window is focused. | |
| int | _glfwPlatformWindowIconified (_GLFWwindow *window) |
| Returns whether the window is iconified. | |
| int | _glfwPlatformWindowVisible (_GLFWwindow *window) |
| Returns whether the window is visible. | |
| int | _glfwPlatformWindowMaximized (_GLFWwindow *window) |
| Returns whether the window is maximized. | |
| void | _glfwPlatformPollEvents (void) |
| Processes all pending events. More... | |
| void | _glfwPlatformWaitEvents (void) |
| Waits until events are queued and processes them. More... | |
| void | _glfwPlatformWaitEventsTimeout (double timeout) |
| Waits with timeout until events are queued and processes them. More... | |
| void | _glfwPlatformPostEmptyEvent (void) |
| Posts an empty event to the event queue. More... | |
| void | _glfwPlatformSetCurrentContext (_GLFWwindow *context) |
| _GLFWwindow * | _glfwPlatformGetCurrentContext (void) |
| Returns the window whose context is current on the calling thread. More... | |
| int | _glfwPlatformCreateCursor (_GLFWcursor *cursor, const GLFWimage *image, int xhot, int yhot) |
| Creates a custom cursor. More... | |
| int | _glfwPlatformCreateStandardCursor (_GLFWcursor *cursor, int shape) |
| Creates a cursor with a standard shape. More... | |
| void | _glfwPlatformDestroyCursor (_GLFWcursor *cursor) |
| Destroys a cursor. More... | |
| void | _glfwPlatformSetCursor (_GLFWwindow *window, _GLFWcursor *cursor) |
| Sets the cursor for the window. More... | |
| char ** | _glfwPlatformGetRequiredInstanceExtensions (uint32_t *count) |
| int | _glfwPlatformGetPhysicalDevicePresentationSupport (VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily) |
| VkResult | _glfwPlatformCreateWindowSurface (VkInstance instance, _GLFWwindow *window, const VkAllocationCallbacks *allocator, VkSurfaceKHR *surface) |
The interface implemented by the platform-specific code.
The platform API is the interface exposed by the platform-specific code for each platform and is called by the shared code of the public API It mirrors the public API except it uses objects instead of handles.
| int _glfwPlatformCreateCursor | ( | _GLFWcursor * | cursor, |
| const GLFWimage * | image, | ||
| int | xhot, | ||
| int | yhot | ||
| ) |
Creates a custom cursor.
Creates a new custom cursor image that can be set for a window with glfwSetCursor. The cursor can be destroyed with glfwDestroyCursor. Any remaining cursors are destroyed by glfwTerminate.
The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight bits per channel. They are arranged canonically as packed sequential rows, starting from the top-left corner.
The cursor hotspot is specified in pixels, relative to the upper-left corner of the cursor image. Like all other coordinate systems in GLFW, the X-axis points to the right and the Y-axis points down.
| [in] | image | The desired cursor image. |
| [in] | xhot | The desired x-coordinate, in pixels, of the cursor hotspot. |
| [in] | yhot | The desired y-coordinate, in pixels, of the cursor hotspot. |
NULL
if an error occurred.@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@pointer_lifetime The specified image data is copied before this function returns.
@reentrancy This function must not be called from a callback.
@thread_safety This function must only be called from the main thread.
| int _glfwPlatformCreateStandardCursor | ( | _GLFWcursor * | cursor, |
| int | shape | ||
| ) |
Creates a cursor with a standard shape.
Returns a cursor with a standard shape, that can be set for a window with glfwSetCursor.
| [in] | shape | One of the standard shapes. |
NULL
if an error occurred.@errors Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and GLFW_PLATFORM_ERROR.
@reentrancy This function must not be called from a callback.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformDestroyCursor | ( | _GLFWcursor * | cursor | ) |
Destroys a cursor.
This function destroys a cursor previously created with glfwCreateCursor. Any remaining cursors will be destroyed by glfwTerminate.
| [in] | cursor | The cursor object to destroy. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@reentrancy This function must not be called from a callback.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformFocusWindow | ( | _GLFWwindow * | window | ) |
Brings the specified window to front and sets input focus.
This function brings the specified window to front and sets input focus. The window should already be visible and not iconified.
By default, both windowed and full screen mode windows are focused when initially created. Set the GLFW_FOCUSED to disable this behavior.
Do not use this function to steal focus from other applications unless you are certain that is what the user wants. Focus stealing can be extremely disruptive.
| [in] | window | The window to give input focus. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| const char* _glfwPlatformGetClipboardString | ( | _GLFWwindow * | window | ) |
Returns the contents of the clipboard as a string.
This function returns the contents of the system clipboard, if it contains or is convertible to a UTF-8 encoded string. If the clipboard is empty or if its contents cannot be converted, NULL
is returned and a GLFW_FORMAT_UNAVAILABLE error is generated.
| [in] | window | The window that will request the clipboard contents. |
NULL
if an error occurred.@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@pointer_lifetime The returned string is allocated and freed by GLFW. You should not free it yourself. It is valid until the next call to glfwGetClipboardString or glfwSetClipboardString, or until the library is terminated.
@thread_safety This function must only be called from the main thread.
| _GLFWwindow* _glfwPlatformGetCurrentContext | ( | void | ) |
Returns the window whose context is current on the calling thread.
This function returns the window whose OpenGL or OpenGL ES context is current on the calling thread.
NULL
if no window's context is current.@errors Possible errors include GLFW_NOT_INITIALIZED.
@thread_safety This function may be called from any thread.
| void _glfwPlatformGetCursorPos | ( | _GLFWwindow * | window, |
| double * | xpos, | ||
| double * | ypos | ||
| ) |
Retrieves the position of the cursor relative to the client area of the window.
This function returns the position of the cursor, in screen coordinates, relative to the upper-left corner of the client area of the specified window.
If the cursor is disabled (with GLFW_CURSOR_DISABLED
) then the cursor position is unbounded and limited only by the minimum and maximum values of a double
.
The coordinate can be converted to their integer equivalents with the floor
function. Casting directly to an integer type works for positive coordinates, but fails for negative ones.
Any or all of the position arguments may be NULL
. If an error occurs, all non-NULL
position arguments will be set to zero.
| [in] | window | The desired window. |
| [out] | xpos | Where to store the cursor x-coordinate, relative to the left edge of the client area, or NULL . |
| [out] | ypos | Where to store the cursor y-coordinate, relative to the to top edge of the client area, or NULL . |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
glfwGetMousePos
. | void _glfwPlatformGetFramebufferSize | ( | _GLFWwindow * | window, |
| int * | width, | ||
| int * | height | ||
| ) |
Retrieves the size of the framebuffer of the specified window.
This function retrieves the size, in pixels, of the framebuffer of the specified window. If you wish to retrieve the size of the window in screen coordinates, see glfwGetWindowSize.
Any or all of the size arguments may be NULL
. If an error occurs, all non-NULL
size arguments will be set to zero.
| [in] | window | The window whose framebuffer to query. |
| [out] | width | Where to store the width, in pixels, of the framebuffer, or NULL . |
| [out] | height | Where to store the height, in pixels, of the framebuffer, or NULL . |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformGetGammaRamp | ( | _GLFWmonitor * | monitor, |
| GLFWgammaramp * | ramp | ||
| ) |
Returns the current gamma ramp for the specified monitor.
This function returns the current gamma ramp of the specified monitor.
| [in] | monitor | The monitor to query. |
NULL
if an error occurred.@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@pointer_lifetime The returned structure and its arrays are allocated and freed by GLFW. You should not free them yourself. They are valid until the specified monitor is disconnected, this function is called again for that monitor or the library is terminated.
@thread_safety This function must only be called from the main thread.
| const float* _glfwPlatformGetJoystickAxes | ( | int | joy, |
| int * | count | ||
| ) |
Returns the values of all axes of the specified joystick.
This function returns the values of all axes of the specified joystick. Each element in the array is a value between -1.0 and 1.0.
Querying a joystick slot with no device present is not an error, but will cause this function to return NULL
. Call glfwJoystickPresent to check device presence.
| [in] | joy | The joystick to query. |
| [out] | count | Where to store the number of axis values in the returned array. This is set to zero if the joystick is not present or an error occurred. |
NULL
if the joystick is not present or an error occurred.@errors Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and GLFW_PLATFORM_ERROR.
@pointer_lifetime The returned array is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified joystick is disconnected, this function is called again for that joystick or the library is terminated.
@thread_safety This function must only be called from the main thread.
glfwGetJoystickPos
.This function returns the values of all axes of the specified joystick. Each element in the array is a value between -1.0 and 1.0.
Querying a joystick slot with no device present is not an error, but will cause this function to return NULL
. Call glfwJoystickPresent to check device presence.
| [in] | joy | The joystick to query. |
| [out] | count | Where to store the number of axis values in the returned array. This is set to zero if an error occurred. |
NULL
if the joystick is not present.@errors Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and GLFW_PLATFORM_ERROR.
@pointer_lifetime The returned array is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified joystick is disconnected, this function is called again for that joystick or the library is terminated.
@thread_safety This function must only be called from the main thread.
glfwGetJoystickPos
. | const unsigned char* _glfwPlatformGetJoystickButtons | ( | int | joy, |
| int * | count | ||
| ) |
Returns the state of all buttons of the specified joystick.
This function returns the state of all buttons of the specified joystick. Each element in the array is either GLFW_PRESS
or GLFW_RELEASE
.
Querying a joystick slot with no device present is not an error, but will cause this function to return NULL
. Call glfwJoystickPresent to check device presence.
| [in] | joy | The joystick to query. |
| [out] | count | Where to store the number of button states in the returned array. This is set to zero if the joystick is not present or an error occurred. |
NULL
if the joystick is not present or an error occurred.@errors Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and GLFW_PLATFORM_ERROR.
@pointer_lifetime The returned array is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified joystick is disconnected, this function is called again for that joystick or the library is terminated.
@thread_safety This function must only be called from the main thread.
This function returns the state of all buttons of the specified joystick. Each element in the array is either GLFW_PRESS
or GLFW_RELEASE
.
Querying a joystick slot with no device present is not an error, but will cause this function to return NULL
. Call glfwJoystickPresent to check device presence.
| [in] | joy | The joystick to query. |
| [out] | count | Where to store the number of button states in the returned array. This is set to zero if an error occurred. |
NULL
if the joystick is not present.@errors Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and GLFW_PLATFORM_ERROR.
@pointer_lifetime The returned array is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified joystick is disconnected, this function is called again for that joystick or the library is terminated.
@thread_safety This function must only be called from the main thread.
| const char* _glfwPlatformGetJoystickName | ( | int | joy | ) |
Returns the name of the specified joystick.
This function returns the name, encoded as UTF-8, of the specified joystick. The returned string is allocated and freed by GLFW. You should not free it yourself.
Querying a joystick slot with no device present is not an error, but will cause this function to return NULL
. Call glfwJoystickPresent to check device presence.
| [in] | joy | The joystick to query. |
NULL
if the joystick is not present or an error occurred.@errors Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and GLFW_PLATFORM_ERROR.
@pointer_lifetime The returned string is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified joystick is disconnected, this function is called again for that joystick or the library is terminated.
@thread_safety This function must only be called from the main thread.
This function returns the name, encoded as UTF-8, of the specified joystick. The returned string is allocated and freed by GLFW. You should not free it yourself.
Querying a joystick slot with no device present is not an error, but will cause this function to return NULL
. Call glfwJoystickPresent to check device presence.
| [in] | joy | The joystick to query. |
NULL
if the joystick is not present.@errors Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and GLFW_PLATFORM_ERROR.
@pointer_lifetime The returned string is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified joystick is disconnected, this function is called again for that joystick or the library is terminated.
@thread_safety This function must only be called from the main thread.
| const char* _glfwPlatformGetKeyName | ( | int | key, |
| int | scancode | ||
| ) |
Returns the localized name of the specified printable key.
This function returns the localized name of the specified printable key. This is intended for displaying key bindings to the user.
If the key is GLFW_KEY_UNKNOWN
, the scancode is used instead, otherwise the scancode is ignored. If a non-printable key or (if the key is GLFW_KEY_UNKNOWN
) a scancode that maps to a non-printable key is specified, this function returns NULL
.
This behavior allows you to pass in the arguments passed to the key callback without modification.
The printable keys are:
GLFW_KEY_APOSTROPHE
GLFW_KEY_COMMA
GLFW_KEY_MINUS
GLFW_KEY_PERIOD
GLFW_KEY_SLASH
GLFW_KEY_SEMICOLON
GLFW_KEY_EQUAL
GLFW_KEY_LEFT_BRACKET
GLFW_KEY_RIGHT_BRACKET
GLFW_KEY_BACKSLASH
GLFW_KEY_WORLD_1
GLFW_KEY_WORLD_2
GLFW_KEY_0
to GLFW_KEY_9
GLFW_KEY_A
to GLFW_KEY_Z
GLFW_KEY_KP_0
to GLFW_KEY_KP_9
GLFW_KEY_KP_DECIMAL
GLFW_KEY_KP_DIVIDE
GLFW_KEY_KP_MULTIPLY
GLFW_KEY_KP_SUBTRACT
GLFW_KEY_KP_ADD
GLFW_KEY_KP_EQUAL
| [in] | key | The key to query, or GLFW_KEY_UNKNOWN . |
| [in] | scancode | The scancode of the key to query. |
NULL
.@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@pointer_lifetime The returned string is allocated and freed by GLFW. You should not free it yourself. It is valid until the next call to glfwGetKeyName, or until the library is terminated.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformGetMonitorPos | ( | _GLFWmonitor * | monitor, |
| int * | xpos, | ||
| int * | ypos | ||
| ) |
Returns the position of the monitor's viewport on the virtual screen.
This function returns the position, in screen coordinates, of the upper-left corner of the specified monitor.
Any or all of the position arguments may be NULL
. If an error occurs, all non-NULL
position arguments will be set to zero.
| [in] | monitor | The monitor to query. |
| [out] | xpos | Where to store the monitor x-coordinate, or NULL . |
| [out] | ypos | Where to store the monitor y-coordinate, or NULL . |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| _GLFWmonitor** _glfwPlatformGetMonitors | ( | int * | count | ) |
Returns the currently connected monitors.
This function returns an array of handles for all currently connected monitors. The primary monitor is always first in the returned array. If no monitors were found, this function returns NULL
.
| [out] | count | Where to store the number of monitors in the returned array. This is set to zero if an error occurred. |
NULL
if no monitors were found or if an error occurred.@errors Possible errors include GLFW_NOT_INITIALIZED.
@pointer_lifetime The returned array is allocated and freed by GLFW. You should not free it yourself. It is guaranteed to be valid only until the monitor configuration changes or the library is terminated.
@thread_safety This function must only be called from the main thread.
| uint64_t _glfwPlatformGetTimerFrequency | ( | void | ) |
Returns the frequency, in Hz, of the raw timer.
This function returns the frequency, in Hz, of the raw timer.
@errors Possible errors include GLFW_NOT_INITIALIZED.
@thread_safety This function may be called from any thread.
| uint64_t _glfwPlatformGetTimerValue | ( | void | ) |
Returns the current value of the raw timer.
This function returns the current value of the raw timer, measured in 1 / frequency seconds. To get the frequency, call glfwGetTimerFrequency.
@errors Possible errors include GLFW_NOT_INITIALIZED.
@thread_safety This function may be called from any thread.
| const char* _glfwPlatformGetVersionString | ( | void | ) |
Returns a string describing the compile-time configuration.
This function returns the compile-time generated version string of the GLFW library binary. It describes the version, platform, compiler and any platform-specific compile-time options. It should not be confused with the OpenGL or OpenGL ES version string, queried with glGetString
.
Do not use the version string to parse the GLFW library version. The glfwGetVersion function provides the version of the running library binary in numerical format.
@errors None.
@pointer_lifetime The returned string is static and compile-time generated.
@thread_safety This function may be called from any thread.
| GLFWvidmode* _glfwPlatformGetVideoModes | ( | _GLFWmonitor * | monitor, |
| int * | count | ||
| ) |
Returns the available video modes for the specified monitor.
This function returns an array of all video modes supported by the specified monitor. The returned array is sorted in ascending order, first by color bit depth (the sum of all channel depths) and then by resolution area (the product of width and height).
| [in] | monitor | The monitor to query. |
| [out] | count | Where to store the number of video modes in the returned array. This is set to zero if an error occurred. |
NULL
if an error occurred.@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@pointer_lifetime The returned array is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified monitor is disconnected, this function is called again for that monitor or the library is terminated.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformGetWindowFrameSize | ( | _GLFWwindow * | window, |
| int * | left, | ||
| int * | top, | ||
| int * | right, | ||
| int * | bottom | ||
| ) |
Retrieves the size of the frame of the window.
This function retrieves the size, in screen coordinates, of each edge of the frame of the specified window. This size includes the title bar, if the window has one. The size of the frame may vary depending on the window-related hints used to create it.
Because this function retrieves the size of each window frame edge and not the offset along a particular coordinate axis, the retrieved values will always be zero or positive.
Any or all of the size arguments may be NULL
. If an error occurs, all non-NULL
size arguments will be set to zero.
| [in] | window | The window whose frame size to query. |
| [out] | left | Where to store the size, in screen coordinates, of the left edge of the window frame, or NULL . |
| [out] | top | Where to store the size, in screen coordinates, of the top edge of the window frame, or NULL . |
| [out] | right | Where to store the size, in screen coordinates, of the right edge of the window frame, or NULL . |
| [out] | bottom | Where to store the size, in screen coordinates, of the bottom edge of the window frame, or NULL . |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformGetWindowPos | ( | _GLFWwindow * | window, |
| int * | xpos, | ||
| int * | ypos | ||
| ) |
Retrieves the position of the client area of the specified window.
This function retrieves the position, in screen coordinates, of the upper-left corner of the client area of the specified window.
Any or all of the position arguments may be NULL
. If an error occurs, all non-NULL
position arguments will be set to zero.
| [in] | window | The window to query. |
| [out] | xpos | Where to store the x-coordinate of the upper-left corner of the client area, or NULL . |
| [out] | ypos | Where to store the y-coordinate of the upper-left corner of the client area, or NULL . |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformGetWindowSize | ( | _GLFWwindow * | window, |
| int * | width, | ||
| int * | height | ||
| ) |
Retrieves the size of the client area of the specified window.
This function retrieves the size, in screen coordinates, of the client area of the specified window. If you wish to retrieve the size of the framebuffer of the window in pixels, see glfwGetFramebufferSize.
Any or all of the size arguments may be NULL
. If an error occurs, all non-NULL
size arguments will be set to zero.
| [in] | window | The window whose size to retrieve. |
| [out] | width | Where to store the width, in screen coordinates, of the client area, or NULL . |
| [out] | height | Where to store the height, in screen coordinates, of the client area, or NULL . |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformHideWindow | ( | _GLFWwindow * | window | ) |
Hides the specified window.
This function hides the specified window if it was previously visible. If the window is already hidden or is in full screen mode, this function does nothing.
| [in] | window | The window to hide. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformIconifyWindow | ( | _GLFWwindow * | window | ) |
Iconifies the specified window.
This function iconifies (minimizes) the specified window if it was previously restored. If the window is already iconified, this function does nothing.
If the specified window is a full screen window, the original monitor resolution is restored until the window is restored.
| [in] | window | The window to iconify. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| int _glfwPlatformInit | ( | void | ) |
Initializes the platform-specific part of the library.
GLFW_TRUE
if successful, or GLFW_FALSE
if an error occurred. | GLFWbool _glfwPlatformIsSameMonitor | ( | _GLFWmonitor * | first, |
| _GLFWmonitor * | second | ||
| ) |
Checks whether two monitor objects represent the same monitor.
| [in] | first | The first monitor. |
| [in] | second | The second monitor. |
GLFW_TRUE
if the monitor objects represent the same monitor, or GLFW_FALSE
otherwise. | int _glfwPlatformJoystickPresent | ( | int | joy | ) |
Returns whether the specified joystick is present.
This function returns whether the specified joystick is present.
| [in] | joy | The joystick to query. |
GLFW_TRUE
if the joystick is present, or GLFW_FALSE
otherwise.@errors Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
glfwGetJoystickParam
. | void _glfwPlatformMaximizeWindow | ( | _GLFWwindow * | window | ) |
Maximizes the specified window.
This function maximizes the specified window if it was previously not maximized. If the window is already maximized, this function does nothing.
If the specified window is a full screen window, this function does nothing.
| [in] | window | The window to maximize. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
This function maximizes the specified window if it was previously not maximized. If the window is already maximized, this function does nothing.
If the specified window is a full screen window, this function does nothing.
| [in] | window | The window to maximize. |
| void _glfwPlatformPollEvents | ( | void | ) |
Processes all pending events.
This function processes only those events that are already in the event queue and then returns immediately. Processing events will cause the window and input callbacks associated with those events to be called.
On some platforms, a window move, resize or menu operation will cause event processing to block. This is due to how event processing is designed on those platforms. You can use the window refresh callback to redraw the contents of your window when necessary during such operations.
On some platforms, certain events are sent directly to the application without going through the event queue, causing callbacks to be called outside of a call to one of the event processing functions.
Event processing is not required for joystick input to work.
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@reentrancy This function must not be called from a callback.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformPostEmptyEvent | ( | void | ) |
Posts an empty event to the event queue.
This function posts an empty event from the current thread to the event queue, causing glfwWaitEvents or glfwWaitEventsTimeout to return.
If no windows exist, this function returns immediately. For synchronization of threads in applications that do not create windows, use your threading library of choice.
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function may be called from any thread.
This function posts an empty event from the current thread to the event queue, causing glfwWaitEvents to return.
If no windows exist, this function returns immediately. For synchronization of threads in applications that do not create windows, use your threading library of choice.
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function may be called from any thread.
| void _glfwPlatformRestoreWindow | ( | _GLFWwindow * | window | ) |
Restores the specified window.
This function restores the specified window if it was previously iconified (minimized) or maximized. If the window is already restored, this function does nothing.
If the specified window is a full screen window, the resolution chosen for the window is restored on the selected monitor.
| [in] | window | The window to restore. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformSetClipboardString | ( | _GLFWwindow * | window, |
| const char * | string | ||
| ) |
Sets the clipboard to the specified string.
This function sets the system clipboard to the specified, UTF-8 encoded string.
| [in] | window | The window that will own the clipboard contents. |
| [in] | string | A UTF-8 encoded string. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@pointer_lifetime The specified string is copied before this function returns.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformSetCursor | ( | _GLFWwindow * | window, |
| _GLFWcursor * | cursor | ||
| ) |
Sets the cursor for the window.
This function sets the cursor image to be used when the cursor is over the client area of the specified window. The set cursor will only be visible when the cursor mode of the window is GLFW_CURSOR_NORMAL
.
On some platforms, the set cursor may not be visible unless the window also has input focus.
| [in] | window | The window to set the cursor for. |
| [in] | cursor | The cursor to set, or NULL to switch back to the default arrow cursor. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformSetCursorMode | ( | _GLFWwindow * | window, |
| int | mode | ||
| ) |
Sets the specified cursor mode of the specified window.
| [in] | window | The window whose cursor mode to set. |
| void _glfwPlatformSetCursorPos | ( | _GLFWwindow * | window, |
| double | xpos, | ||
| double | ypos | ||
| ) |
Sets the position of the cursor, relative to the client area of the window.
This function sets the position, in screen coordinates, of the cursor relative to the upper-left corner of the client area of the specified window. The window must have input focus. If the window does not have input focus when this function is called, it fails silently.
Do not use this function to implement things like camera controls. GLFW already provides the GLFW_CURSOR_DISABLED
cursor mode that hides the cursor, transparently re-centers it and provides unconstrained cursor motion. See glfwSetInputMode for more information.
If the cursor mode is GLFW_CURSOR_DISABLED
then the cursor position is unconstrained and limited only by the minimum and maximum values of a double
.
| [in] | window | The desired window. |
| [in] | xpos | The desired x-coordinate, relative to the left edge of the client area. |
| [in] | ypos | The desired y-coordinate, relative to the top edge of the client area. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
glfwSetMousePos
.This function sets the position, in screen coordinates, of the cursor relative to the upper-left corner of the client area of the specified window. The window must have input focus. If the window does not have input focus when this function is called, it fails silently.
Do not use this function to implement things like camera controls. GLFW already provides the GLFW_CURSOR_DISABLED
cursor mode that hides the cursor, transparently re-centers it and provides unconstrained cursor motion. See glfwSetInputMode for more information.
If the cursor mode is GLFW_CURSOR_DISABLED
then the cursor position is unconstrained and limited only by the minimum and maximum values of a double
.
| [in] | window | The desired window. |
| [in] | xpos | The desired x-coordinate, relative to the left edge of the client area. |
| [in] | ypos | The desired y-coordinate, relative to the top edge of the client area. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
glfwSetMousePos
. | void _glfwPlatformSetGammaRamp | ( | _GLFWmonitor * | monitor, |
| const GLFWgammaramp * | ramp | ||
| ) |
Sets the current gamma ramp for the specified monitor.
This function sets the current gamma ramp for the specified monitor. The original gamma ramp for that monitor is saved by GLFW the first time this function is called and is restored by glfwTerminate.
| [in] | monitor | The monitor whose gamma ramp to set. |
| [in] | ramp | The gamma ramp to use. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@pointer_lifetime The specified gamma ramp is copied before this function returns.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformSetWindowAspectRatio | ( | _GLFWwindow * | window, |
| int | numer, | ||
| int | denom | ||
| ) |
Sets the aspect ratio of the specified window.
This function sets the required aspect ratio of the client area of the specified window. If the window is full screen, the aspect ratio only takes effect once it is made windowed. If the window is not resizable, this function does nothing.
The aspect ratio is specified as a numerator and a denominator and both values must be greater than zero. For example, the common 16:9 aspect ratio is specified as 16 and 9, respectively.
If the numerator and denominator is set to GLFW_DONT_CARE
then the aspect ratio limit is disabled.
The aspect ratio is applied immediately to a windowed mode window and may cause it to be resized.
| [in] | window | The window to set limits for. |
| [in] | numer | The numerator of the desired aspect ratio, or GLFW_DONT_CARE . |
| [in] | denom | The denominator of the desired aspect ratio, or GLFW_DONT_CARE . |
@errors Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_VALUE and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformSetWindowIcon | ( | _GLFWwindow * | window, |
| int | count, | ||
| const GLFWimage * | images | ||
| ) |
Sets the icon for the specified window.
This function sets the icon of the specified window. If passed an array of candidate images, those of or closest to the sizes desired by the system are selected. If no images are specified, the window reverts to its default icon.
The desired image sizes varies depending on platform and system settings. The selected images will be rescaled as needed. Good sizes include 16x16, 32x32 and 48x48.
| [in] | window | The window whose icon to set. |
| [in] | count | The number of images in the specified array, or zero to revert to the default window icon. |
| [in] | images | The images to create the icon from. This is ignored if count is zero. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@pointer_lifetime The specified image data is copied before this function returns.
@thread_safety This function must only be called from the main thread.
This function sets the icon of the specified window. If passed an array of candidate images, those of or closest to the sizes desired by the system are selected. If no images are specified, the window reverts to its default icon.
The desired image sizes varies depending on platform and system settings. The selected images will be rescaled as needed. Good sizes include 16x16, 32x32 and 48x48.
| [in] | window | The window whose icon to set. |
| [in] | count | The number of images in the specified array, or zero to revert to the default window icon. |
| [in] | images | The images to create the icon from. This is ignored if count is zero. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@pointer_lifetime The specified image data is copied before this function returns.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformSetWindowMonitor | ( | _GLFWwindow * | window, |
| _GLFWmonitor * | monitor, | ||
| int | xpos, | ||
| int | ypos, | ||
| int | width, | ||
| int | height, | ||
| int | refreshRate | ||
| ) |
Sets the mode, monitor, video mode and placement of a window.
This function sets the monitor that the window uses for full screen mode or, if the monitor is NULL
, makes it windowed mode.
When setting a monitor, this function updates the width, height and refresh rate of the desired video mode and switches to the video mode closest to it. The window position is ignored when setting a monitor.
When the monitor is NULL
, the position, width and height are used to place the window client area. The refresh rate is ignored when no monitor is specified.
If you only wish to update the resolution of a full screen window or the size of a windowed mode window, see glfwSetWindowSize.
When a window transitions from full screen to windowed mode, this function restores any previous window settings such as whether it is decorated, floating, resizable, has size or aspect ratio limits, etc..
| [in] | window | The window whose monitor, size or video mode to set. |
| [in] | monitor | The desired monitor, or NULL to set windowed mode. |
| [in] | xpos | The desired x-coordinate of the upper-left corner of the client area. |
| [in] | ypos | The desired y-coordinate of the upper-left corner of the client area. |
| [in] | width | The desired with, in screen coordinates, of the client area or video mode. |
| [in] | height | The desired height, in screen coordinates, of the client area or video mode. |
| [in] | refreshRate | The desired refresh rate, in Hz, of the video mode, or GLFW_DONT_CARE . |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
This function sets the monitor that the window uses for full screen mode or, if the monitor is NULL
, makes it windowed mode.
When setting a monitor, this function updates the width, height and refresh rate of the desired video mode and switches to the video mode closest to it. The window position is ignored when setting a monitor.
When the monitor is NULL
, the position, width and height are used to place the window client area. The refresh rate is ignored when no monitor is specified.
If you only wish to update the resolution of a full screen window or the size of a windowed mode window, see glfwSetWindowSize.
When a window transitions from full screen to windowed mode, this function restores any previous window settings such as whether it is decorated, floating, resizable, has size or aspect ratio limits, etc..
| [in] | window | The window whose monitor, size or video mode to set. |
| [in] | monitor | The desired monitor, or NULL to set windowed mode. |
| [in] | xpos | The desired x-coordinate of the upper-left corner of the client area. |
| [in] | ypos | The desired y-coordinate of the upper-left corner of the client area. |
| [in] | width | The desired with, in screen coordinates, of the client area or video mode. |
| [in] | height | The desired height, in screen coordinates, of the client area or video mode. |
| [in] | refreshRate | The desired refresh rate, in Hz, of the video mode. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformSetWindowPos | ( | _GLFWwindow * | window, |
| int | xpos, | ||
| int | ypos | ||
| ) |
Sets the position of the client area of the specified window.
This function sets the position, in screen coordinates, of the upper-left corner of the client area of the specified windowed mode window. If the window is a full screen window, this function does nothing.
Do not use this function to move an already visible window unless you have very good reasons for doing so, as it will confuse and annoy the user.
The window manager may put limits on what positions are allowed. GLFW cannot and should not override these limits.
| [in] | window | The window to query. |
| [in] | xpos | The x-coordinate of the upper-left corner of the client area. |
| [in] | ypos | The y-coordinate of the upper-left corner of the client area. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformSetWindowSize | ( | _GLFWwindow * | window, |
| int | width, | ||
| int | height | ||
| ) |
Sets the size of the client area of the specified window.
This function sets the size, in screen coordinates, of the client area of the specified window.
For full screen windows, this function updates the resolution of its desired video mode and switches to the video mode closest to it, without affecting the window's context. As the context is unaffected, the bit depths of the framebuffer remain unchanged.
If you wish to update the refresh rate of the desired video mode in addition to its resolution, see glfwSetWindowMonitor.
The window manager may put limits on what sizes are allowed. GLFW cannot and should not override these limits.
| [in] | window | The window to resize. |
| [in] | width | The desired width, in screen coordinates, of the window client area. |
| [in] | height | The desired height, in screen coordinates, of the window client area. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformSetWindowSizeLimits | ( | _GLFWwindow * | window, |
| int | minwidth, | ||
| int | minheight, | ||
| int | maxwidth, | ||
| int | maxheight | ||
| ) |
Sets the size limits of the specified window.
This function sets the size limits of the client area of the specified window. If the window is full screen, the size limits only take effect once it is made windowed. If the window is not resizable, this function does nothing.
The size limits are applied immediately to a windowed mode window and may cause it to be resized.
The maximum dimensions must be greater than or equal to the minimum dimensions and all must be greater than or equal to zero.
| [in] | window | The window to set limits for. |
| [in] | minwidth | The minimum width, in screen coordinates, of the client area, or GLFW_DONT_CARE . |
| [in] | minheight | The minimum height, in screen coordinates, of the client area, or GLFW_DONT_CARE . |
| [in] | maxwidth | The maximum width, in screen coordinates, of the client area, or GLFW_DONT_CARE . |
| [in] | maxheight | The maximum height, in screen coordinates, of the client area, or GLFW_DONT_CARE . |
@errors Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_VALUE and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
This function sets the size limits of the client area of the specified window. If the window is full screen, the size limits only take effect if once it is made windowed. If the window is not resizable, this function does nothing.
The size limits are applied immediately to a windowed mode window and may cause it to be resized.
| [in] | window | The window to set limits for. |
| [in] | minwidth | The minimum width, in screen coordinates, of the client area, or GLFW_DONT_CARE . |
| [in] | minheight | The minimum height, in screen coordinates, of the client area, or GLFW_DONT_CARE . |
| [in] | maxwidth | The maximum width, in screen coordinates, of the client area, or GLFW_DONT_CARE . |
| [in] | maxheight | The maximum height, in screen coordinates, of the client area, or GLFW_DONT_CARE . |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformSetWindowTitle | ( | _GLFWwindow * | window, |
| const char * | title | ||
| ) |
Sets the title of the specified window.
This function sets the window title, encoded as UTF-8, of the specified window.
| [in] | window | The window whose title to change. |
| [in] | title | The UTF-8 encoded window title. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformShowWindow | ( | _GLFWwindow * | window | ) |
Makes the specified window visible.
This function makes the specified window visible if it was previously hidden. If the window is already visible or is in full screen mode, this function does nothing.
| [in] | window | The window to make visible. |
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformWaitEvents | ( | void | ) |
Waits until events are queued and processes them.
This function puts the calling thread to sleep until at least one event is available in the event queue. Once one or more events are available, it behaves exactly like glfwPollEvents, i.e. the events in the queue are processed and the function then returns immediately. Processing events will cause the window and input callbacks associated with those events to be called.
Since not all events are associated with callbacks, this function may return without a callback having been called even if you are monitoring all callbacks.
On some platforms, a window move, resize or menu operation will cause event processing to block. This is due to how event processing is designed on those platforms. You can use the window refresh callback to redraw the contents of your window when necessary during such operations.
On some platforms, certain callbacks may be called outside of a call to one of the event processing functions.
If no windows exist, this function returns immediately. For synchronization of threads in applications that do not create windows, use your threading library of choice.
Event processing is not required for joystick input to work.
@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
@reentrancy This function must not be called from a callback.
@thread_safety This function must only be called from the main thread.
| void _glfwPlatformWaitEventsTimeout | ( | double | timeout | ) |
Waits with timeout until events are queued and processes them.
This function puts the calling thread to sleep until at least one event is available in the event queue, or until the specified timeout is reached. If one or more events are available, it behaves exactly like glfwPollEvents, i.e. the events in the queue are processed and the function then returns immediately. Processing events will cause the window and input callbacks associated with those events to be called.
The timeout value must be a positive finite number.
Since not all events are associated with callbacks, this function may return without a callback having been called even if you are monitoring all callbacks.
On some platforms, a window move, resize or menu operation will cause event processing to block. This is due to how event processing is designed on those platforms. You can use the window refresh callback to redraw the contents of your window when necessary during such operations.
On some platforms, certain callbacks may be called outside of a call to one of the event processing functions.
If no windows exist, this function returns immediately. For synchronization of threads in applications that do not create windows, use your threading library of choice.
Event processing is not required for joystick input to work.
| [in] | timeout | The maximum amount of time, in seconds, to wait. |
@reentrancy This function must not be called from a callback.
@thread_safety This function must only be called from the main thread.


Try to answer the following math-related question withit the time limit.Keep in mind that incorrect answers will penalize your ScoreTime by 10 seconds
Your final score is: 0


Create a new asset container
A list of all assets in this container
A mapping of asset IDs to assets in this container
A list of all materials in this container
A list of all meshes in this container
A list of all prefabs in this container
A list of all sounds in this container
A list of all textures in this container
Generate a new material
The new material's name
The initial material properties
Load an image file and generate a new texture asset
The new texture's name
The initial texture properties. The uri
property is required.
preload a video stream and generate a new video stream asset
The new stream's name
The initial video stream properties. The uri
property is required.
Load the assets in a glTF file by URL, and this container with the result.
The URI to a glTF model.
The shape of the generated prefab collider.
A promise that resolves with the list of loaded assets.
Break references to all assets in the container, and unload them to free memory
The root object of the MRE SDK's asset system. Once you create an AssetContainer, you can create new materials, textures, or sounds from scratch, or load glTF files for their assets.


Functional Enrichment Analysis
Cytoscape is an open source software platform for integrating, visualizing, and analyzing measurement data in the context of networks.
This tutorial will take you through a functional enrichment workflow in Cytoscape. Key aspects covered in this tutorial are:
- Retrieve Networks and Pathways
- Integrate and Explore Your Data
- Perform Functional Enrichment Analysis
- Functional Interpretation and Display


nips nips2000 nips2000-1 nips2000-1-reference knowledge-graph by maker-knowledge-mining
Source: pdf
Author: Robert St-Aubin, Jesse Hoey, Craig Boutilier
Abstract: We propose a method of approximate dynamic programming for Markov decision processes (MDPs) using algebraic decision diagrams (ADDs). We produce near-optimal value functions and policies with much lower time and space requirements than exact dynamic programming. Our method reduces the sizes of the intermediate value functions generated during value iteration by replacing the values at the terminals of the ADD with ranges of values. Our method is demonstrated on a class of large MDPs (with up to 34 billion states), and we compare the results with the optimal value functions.
[1] R. Iris Bahar, Erica A. Frohm, Charles M. Gaona, Gary D. Hachtel, Enrico Macii, Abelardo Pardo, and Fabio Somenzi. Algebraic decision diagrams and their applications. In International Conference on Computer-Aided Design, pages 188- 191. IEEE, 1993.
[2] Craig Boutilier and Richard Dearden. Approximating value trees in structured dynamic programming. In Proceedings ICML-96, Bari, Italy, 1996.
[3] Craig Boutilier, Richard Dearden, and Moises Goldszmidt. Exploiting structure in policy construction. In Proceedings Fourteenth Inter. Conf on AI (IJCAI-95), 1995.
[4] Randal E. Bryant. Graph-based algorithms for boolean function manipulation. IEEE Transactions on Computers, C-35(8):677--691, 1986.
[5] E. M. Clarke, K. L. McMillan, X. Zhao, M. Fujita, and J. Yang. Spectral transforms for large boolean functions with applications to technology mapping. In DAC, 54-60. ACMIIEEE, 1993.
[6] Thomas Dean and Keiji Kanazawa. A model for reasoning about persistence and causation. Computational Intelligence, 5(3):142- 150, 1989.
[7] Richard Dearden and Craig Boutilier. Abstraction and approximate decision theoretic planning. Artificial Intelligence, 89:219- 283, 1997.
[8] Jesse Hoey, Robert St-Aubin, Alan Hu, and Craig Boutilier. SPUDD: Stochastic planning using decision diagrams. In Proceedings of UAI99, Stockholm, 1999.
[9] Jesse Hoey, Robert St-Aubin, Alan Hu, and Craig Boutilier. Optimal and approximate planning using decision diagrams. Technical Report TR-OO-05 , UBC, June 2000.
[10] Martin L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. Wiley, New York, NY., 1994.
[11] Satinder P. Singh and Richard C. Yee. An upper bound on the loss from approximate optimalvalue function. Machine Learning, 16:227- 233, 1994.
[12] Fabio Somenzi. CUDD: CU decision ft p : / /vl s i . c o l o r ado. edu/pub /, 1998. diagram package. Available from


| I l@ve RuBoard |
This section describes the use of allocators from the viewpoint of people who use allocators to implement containers and other components that are able to handle different allocators. This section is based, with permission, partly on Section 19.4 of Bjarne Stroustrup's The C++ Programming Language, 3rd edition.
Allocators provide an interface to allocate, create, destroy, and deallocate objects (Table 15.1). With allocators, containers and algorithms can be parameterized by the way the elements are stored. For example, you could implement allocators that use shared memory or that map the elements to a persistent database.
| Expression | Effect |
|---|---|
| a.allocate(num) | Allocates memory for num elements |
| a.construct(p) | Initializes the element to which p refers |
| a.destroy(p) | Destroys the element to which p refers |
| a.deallocate(p,num) | Deallocates memory for num elements to which p refers |
As an example, let's look at a naive implementation of a vector. A vector gets its allocator as a template or a constructor argument and stores it somewhere internally:
namespace std { template <class T, class Allocator = allocator<T> > class vector { ... private: Allocator alloc; //allocator T* elems; //array of elements size_type numElems; //number of elements size_type sizeElems; //size of memory for the elements ... public: //constructors explicit vector(const Allocator& = Allocator()); explicit vector(size_type num, const T& val = T(), const Allocator& = Allocator()); template <class InputIterator> vector(InputIterator beg, InputIterator end, const Allocator& = Allocator()); vector(const vector<T,Allocator>& v); ... }; }
The second constructor that initializes the vector by num elements of value val could be implemented as follows:
namespace std { template <class T, class Allocator> vector<T,Allocator>::vector(size_type num, const T& val, const Allocator& a) : alloc(a) //initialize allocator { //allocate memory sizeElems = numElems = num; elems = alloc.allocate(num); //initialize elements for (size_type i=0; i<num; ++i) { //initialize ith element alloc.construct(&elems[i],val); } } }
| Expression | Effect |
|---|---|
| uninitialized_fill(beg,end,val) | Initializes [beg, end) with val |
| uninitialized_fill_n(beg,num,val) | Initializes num elements starting from beg with val |
| uninitialized_copy(beg,end,mem) | Initialize elements starting from mem with the elements of [beg,end) |
However, for the initialization of uninitialized memory the C++ standard library provides some convenience functions (Table 15.2). Using these functions, the implementation of the constructor becomes even simpler:
namespace std { template <class T, class Allocator> vector<T,Allocator>::vector(size_type num, const T& val, const Allocator& a) : alloc(a) //initialize allocator { //allocate memory sizeElems = numElems = num; elems = alloc.allocate(num); //initialize elements uninitialized_fill_n(elems, num, val); } }
The member function reserve(), which reserves more memory without changing the number of elements (see page 149), could be implemented as follows:
namespace std { template <class T, class Allocator> void vector<T,Allocator>::reserve(size_type size) { //reserve() never shrinks the memory if (size <= sizeElems) { return; } //allocate new memory for size elements T* newmem = alloc.allocate (size); //copy old elements into new memory uninitialized_copy(elems,elems+numElems,newmem); //destroy old elements for (size_type i=0; i<numElems; ++i) { alloc.destroy(&elems [i]); } //deallocate old memory alloc.deallocate(elems,sizeElems); //so, now we have our elements in the new memory sizeElems = size; elems = newmem; } }
In addition, class raw_storage_iterator is provided to iterate over uninitialized memory to initialize it. Therefore, you can use any algorithms with a raw_storage_iterator to initialize memory with the values that are the result of that algorithm.
For example, the following statement initializes the storage to which elems refers by the values in range [x.begin(),x.end()):
copy (x.begin(), x.end(), //source raw_storage_iterator<T*,T>(elems)); //destination
The first template argument (T*, here) has to be an output iterator for the type of the elements. The second template argument (T, here) has to be the type of the elements.
In code you might also find the get_temporary_buffer() and return_temporary_buffer(). They are provided to handle uninitialized memory that is provided for short, temporary use inside a function. Note that get_temporary_buffer() might return less memory than expected. Therefore, get_temporary_buffer() returns a pair containing the address of the memory and the size of the memory (in element units). Here is an example of how to use it:
void f() { //allocate memory for num elements of type MyType pair<MyType*,ptrdiff_t> p = get_temporary_buffer<MyType>(num); if (p.second == 0) { //could not allocate any memory for elements ... } else if (p.second < num) { //could not allocate enough memory for num elements //however, don't forget to deallocate it ... } //do your processing ... //free temporarily allocated memory, if any if (p.first != 0) { return_temporary_buffer(p.first); } }
However, it is rather complicated to write exception-safe code with get_temporary_buffer() and return_temporary_buffer(), so they are usually no longer used in library implementations.
| I l@ve RuBoard |


M.S. Electrical Engineering
Columbia University New York, NYResearch projects included performant neural network modeling using GPUs, out of domain degradation in statistical machine translation.
Research projects included performant neural network modeling using GPUs, out of domain degradation in statistical machine translation.
Research in Atomic, Molecular & Optical physics. Contributing author on this paper describing the construction of an ultra-sensitive gamma radiation detector using liquid Helium.


Before Change
self.evaluator.p_r_f1())
log_info(" * Generated trees DEP scores: P: %.4f, R: %.4f, F: %.4f" %
self.evaluator.p_r_f1(EvalTypes.DEP))
log_info(" * Gold tree BEST: %.4f, on CLOSE: %.4f, on ANY list: %4f" %
self.lists_analyzer.stats())
log_info(" * Tree size stats:\n -- GOLD: %s\n -- PRED: %s\n -- DIFF: %s" %
self.evaluator.tree_size_stats())
log_info(" * Score stats\n -- GOLD: %s\n -- PRED: %s\n -- DIFF: %s"
% self.evaluator.score_stats())
After Change
@return: a tuple of Evaluator and ListsAnalyzer objects containing iteration statistics.
iter_start_time = time.clock()
self.evaluator = Evaluator()
self.lists_analyzer = ASearchListsAnalyzer()
log_debug("\n***\nTR %05d:" % iter_no)
for tree_no in xrange(len(self.train_trees)):
// obtain some "rival", alternative incorrect candidates
gold_ttree, gold_feats = self.train_trees[tree_no], self.train_feats[tree_no]
rival_ttrees, rival_feats = self._get_rival_candidates(tree_no)
cands = [gold_feats] + rival_feats
// score them along with the right one
scores = [self._score(cand) for cand in cands]
top_cand_idx = scores.index(max(scores))
// find the top-scoring generated tree, evaluate against gold t-tree
// (disregarding whether it was selected as the best one)
self.evaluator.append(TreeNode(gold_ttree),
TreeNode(rival_ttrees[scores[1:].index(max(scores[1:]))]),
scores[0],
max(scores[1:]))
// debug print: candidate trees
log_debug("TTREE-NO: %04d, SEL_CAND: %04d, LEN: %02d" % (tree_no, top_cand_idx, len(cands)))
log_debug("SENT: %s" % self.train_sents[tree_no])
log_debug("ALL CAND TREES:")
for ttree, score in zip([gold_ttree] + rival_ttrees, scores):
log_debug("%.3f" % score, "\t", ttree)
// update weights if the system doesn"t give the highest score to the right one
if top_cand_idx != 0:
self.w += (self.alpha * gold_feats - self.alpha * cands[top_cand_idx])
// store a copy of the current weights for averaging
self.w_after_iter.append(np.copy(self.w))
// debug print: current weights and iteration accuracy
log_debug(self._feat_val_str(self.w), "\n***")
log_debug("ITER ACCURACY: %.3f" % self.evaluator.tree_accuracy())
// print and return statistics
self._print_iter_stats(iter_no, datetime.timedelta(seconds=(time.clock() - iter_start_time)))
return self.evaluator, self.lists_analyzer
def _print_iter_stats(self, iter_no, iter_duration):
Print iteration statistics from internal evaluator fields and given iteration duration.


Pixelator Example
By default, QTreeView, QTableView, and QListView use a standard item delegate to display and edit a set of common data types that are sufficient for many applications. However, an application may need to represent items of data in a particular way, or provide support for rendering more specialized data types, and this often requires the use of a custom delegate.
In this example, we show how to use custom delegates to modify the appearance of standard views. To do this, we implement the following components:
- A model which represents each pixel in an image as an item of data, where each item contains a value for the brightness of the corresponding pixel.
- A custom delegate that uses the information supplied by the model to represent each pixel as a black circle on a white background, where the radius of the circle corresponds to the darkness of the pixel.
This example may be useful for developers who want to implement their own table models or custom delegates. The process of creating custom delegates for editing item data is covered in the Spin Box Delegate example.
ImageModel Class Definition
The ImageModel
class is defined as follows:
class ImageModel : public QAbstractTableModel { Q_OBJECT public: ImageModel(QObject *parent = 0); void setImage(const QImage &image); int rowCount(const QModelIndex &parent = QModelIndex()) const override; int columnCount(const QModelIndex &parent = QModelIndex()) const override; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; private: QImage modelImage; };
Since we only require a simple, read-only table model, we only need to implement functions to indicate the dimensions of the image and supply data to other components.
ImageModel Class Implementation
The constructor is trivial:
ImageModel::ImageModel(QObject *parent) : QAbstractTableModel(parent) { }
The setImage()
function sets the image that will be used by the model:
void ImageModel::setImage(const QImage &image) { beginResetModel(); modelImage = image; endResetModel(); }
The QAbstractItemModel::reset() call tells the view(s) that the model has changed.
The rowCount()
and columnCount()
functions return the height and width of the image respectively:
int ImageModel::rowCount(const QModelIndex & /* parent */) const { return modelImage.height(); } int ImageModel::columnCount(const QModelIndex & /* parent */) const { return modelImage.width(); }
Since the image is a simple two-dimensional structure, the parent
arguments to these functions are unused. They both simply return the relevant size from the underlying image object.
The data()
function returns data for the item that corresponds to a given model index in a format that is suitable for a particular role:
QVariant ImageModel::data(const QModelIndex &index, int role) const { if (!index.isValid() || role != Qt::DisplayRole) return QVariant(); return qGray(modelImage.pixel(index.column(), index.row())); }
In this implementation, we only check that the model index is valid, and that the role requested is the DisplayRole. If so, the function returns the grayscale value of the relevant pixel in the image; otherwise, a null model index is returned.
This model can be used with QTableView to display the integer brightness values for the pixels in the image. However, we will implement a custom delegate to display this information in a more artistic way.
The headerData()
function is also reimplemented:
QVariant ImageModel::headerData(int /* section */, Qt::Orientation /* orientation */, int role) const { if (role == Qt::SizeHintRole) return QSize(1, 1); return QVariant(); }
We return (1, 1) as the size hint for a header item. If we didn't, the headers would default to a larger size, preventing us from displaying really small items (which can be specified using the Pixel size combobox).
PixelDelegate Class Definition
The PixelDelegate
class is defined as follows:
class PixelDelegate : public QAbstractItemDelegate { Q_OBJECT public: PixelDelegate(QObject *parent = 0); void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index ) const override; public slots: void setPixelSize(int size); private: int pixelSize; };
This class provides only basic features for a delegate so, unlike the Spin Box Delegate example, we subclass QAbstractItemDelegate instead of QItemDelegate.
We only need to reimplement paint() and sizeHint() in this class. However, we also provide a delegate-specific setPixelSize()
function so that we can change the delegate's behavior via the signals and slots mechanism.
PixelDelegate Class Implementation
The PixelDelegate
constructor is used to set up a default value for the size of each "pixel" that it renders. The base class constructor is also called to ensure that the delegate is set up with a parent object, if one is supplied:
PixelDelegate::PixelDelegate(QObject *parent) : QAbstractItemDelegate(parent) { pixelSize = 12; }
Each item is rendered by the delegate's paint() function. The view calls this function with a ready-to-use QPainter object, style information that the delegate should use to correctly draw the item, and an index to the item in the model:
void PixelDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { if (option.state & QStyle::State_Selected) painter->fillRect(option.rect, option.palette.highlight());
The first task the delegate has to perform is to draw the item's background correctly. Usually, selected items appear differently to non-selected items, so we begin by testing the state passed in the style option and filling the background if necessary.
The radius of each circle is calculated in the following lines of code:
int size = qMin(option.rect.width(), option.rect.height()); int brightness = index.model()->data(index, Qt::DisplayRole).toInt(); double radius = (size / 2.0) - (brightness / 255.0 * size / 2.0); if (radius == 0.0) return;
First, the largest possible radius of the circle is determined by taking the smallest dimension of the style option's rect
attribute. Using the model index supplied, we obtain a value for the brightness of the relevant pixel in the image. The radius of the circle is calculated by scaling the brightness to fit within the item and subtracting it from the largest possible radius.
painter->save(); painter->setRenderHint(QPainter::Antialiasing, true); painter->setPen(Qt::NoPen);
We save the painter's state, turn on antialiasing (to obtain smoother curves), and turn off the pen.
if (option.state & QStyle::State_Selected) painter->setBrush(option.palette.highlightedText()); else painter->setBrush(option.palette.text());
The foreground of the item (the circle representing a pixel) must be rendered using an appropriate brush. For unselected items, we will use a solid black brush; selected items are drawn using a predefined brush from the style option's palette.
painter->drawEllipse(QRectF(option.rect.x() + option.rect.width() / 2 - radius, option.rect.y() + option.rect.height() / 2 - radius, 2 * radius, 2 * radius)); painter->restore(); }
Finally, we paint the circle within the rectangle specified by the style option and we call restore() on the painter.
The paint()
function does not have to be particularly complicated; it is only necessary to ensure that the state of the painter when the function returns is the same as it was when it was called. This usually means that any transformations applied to the painter must be preceded by a call to QPainter::save() and followed by a call to QPainter::restore().
The delegate's sizeHint() function returns a size for the item based on the predefined pixel size, initially set up in the constructor:
QSize PixelDelegate::sizeHint(const QStyleOptionViewItem & /* option */, const QModelIndex & /* index */) const { return QSize(pixelSize, pixelSize); }
The delegate's size is updated whenever the pixel size is changed. We provide a custom slot to do this:
void PixelDelegate::setPixelSize(int size) { pixelSize = size; }
Using The Custom Delegate
In this example, we use a main window to display a table of data, using the custom delegate to render each cell in a particular way. Much of the MainWindow
class performs tasks that are not related to item views. Here, we only quote the parts that are relevant. You can look at the rest of the implementation by following the links to the code at the top of this document.
In the constructor, we set up a table view, turn off its grid, and hide its headers:
MainWindow::MainWindow() { ... view = new QTableView; view->setShowGrid(false); view->horizontalHeader()->hide(); view->verticalHeader()->hide(); view->horizontalHeader()->setMinimumSectionSize(1); view->verticalHeader()->setMinimumSectionSize(1); view->setModel(model);
This enables the items to be drawn without any gaps between them. Removing the headers also prevents the user from adjusting the sizes of individual rows and columns.
We also set the minimum section size to 1 on the headers. If we didn't, the headers would default to a larger size, preventing us from displaying really small items (which can be specified using the Pixel size combobox).
The custom delegate is constructed with the main window as its parent, so that it will be deleted correctly later, and we set it on the table view.
PixelDelegate *delegate = new PixelDelegate(this); view->setItemDelegate(delegate);
Each item in the table view will be rendered by the PixelDelegate
instance.
We construct a spin box to allow the user to change the size of each "pixel" drawn by the delegate:
QLabel *pixelSizeLabel = new QLabel(tr("Pixel size:")); QSpinBox *pixelSizeSpinBox = new QSpinBox; pixelSizeSpinBox->setMinimum(4); pixelSizeSpinBox->setMaximum(32); pixelSizeSpinBox->setValue(12);
This spin box is connected to the custom slot we implemented in the PixelDelegate
class. This ensures that the delegate always draws each pixel at the currently specified size:
connect(pixelSizeSpinBox, QOverload<int>::of(&QSpinBox::valueChanged), delegate, &PixelDelegate::setPixelSize); connect(pixelSizeSpinBox, QOverload<int>::of(&QSpinBox::valueChanged), this, &MainWindow::updateView); ... }
We also connect the spin box to a slot in the MainWindow
class. This forces the view to take into account the new size hints for each item; these are provided by the delegate in its sizeHint()
function.
void MainWindow::updateView() { view->resizeColumnsToContents(); view->resizeRowsToContents(); }
We explicitly resize the columns and rows to match the Pixel size combobox.
Files:
- itemviews/pixelator/imagemodel.cpp
- itemviews/pixelator/imagemodel.h
- itemviews/pixelator/mainwindow.cpp
- itemviews/pixelator/mainwindow.h
- itemviews/pixelator/pixeldelegate.cpp
- itemviews/pixelator/pixeldelegate.h
- itemviews/pixelator/main.cpp
- itemviews/pixelator/images.qrc
- itemviews/pixelator/pixelator.pro
Images:


Click here to upload file
OR
Drop the CSV file with {{repositoryName}} to upload
File Drag/Drop is not supported for this browser
{{uploadStatus}}
-
{{f.progress}}%
{{f.name}} - size: {{f.size}}B - type: {{f.type}}
details
{{f.result}}
request headers: {{f.result.requestHeaders}}


Changelog
v4.0.0
- Allow Sticky option
wrapper
to accept false, which will not create a wrapper and instead use the preexisting parent element. (Pull #416)
- Waypoints that are immediately triggered on creation because they've already passed their trigger point now run their handlers on the next animation frame. This contains Zalgo. (Issue #384)
- Pass the jQuery object of items added during an Infinite page load to the
onAfterPageLoad
callback. (Pull #398)
- Add
enabled
option, enable
and disable
methods to the Inview shortcut (Pull #406)
- Make the Inview instance
this
within the callbacks, rather than the invdividual underlying waypoints. (Issue #412)
- Account for changes to jQuery 3 around calling
offset
on the window. (Pull #430)
- Add
context
option to Inview. (Issue #433)
v3.1.1
- Fix bad
isWindow
checks causing errors in IE8-. (Issue #372)
v3.1.0
- Add
Waypoint.disableAll
and Waypoint.enableAll
methods.
- Fix Illegal Invocation errors stemming from non-window context use of
requestAnimationFrame
. (Pull #366)
- Keep disabled waypoints from triggering debug script errors. (Pull #365)
- Allow Infinite Scroll items to be root elements in the AJAX response. (Pull #361)
- In debug script, detect display none and fixed positioning defined in CSS.
v3.0.1
- Add semicolons to the end of built files to aid in clean concatenation. (Issue #353)
v3.0.0
- Remove hard jQuery dependency. Create builds for jQuery, Zepto, and no DOM framework. (Issue #282)
- Expose
Waypoint
and Context
classes. (Issue #281)
- Add
Group
class and group
option for grouping waypoints. Make continuous
option work within these groups. (Issue #264)
- Add Inview shortcut. (Issue #131)
- Extend
continuous
option to cover refreshes. (Issue #166)
- Throttle resize and scroll handlers using
requestAnimationFrame
instead of a set millisecond timeout. Fallback to the old 60 FPS setTimeout
throttle for unsupported browsers. (Issue #242)
- Add debugging script for diagnosing common problems.
- Remove
triggerOnce
option.
- Add
viewportWidth
utility method.
- Remove all traces of CoffeeScript.
v2.0.5
- Allow sticky users to define which direction the stuck class shold be applied. (Issue #192)
- Fix bug where short content on a large screen could cause the infinite shortcut to stall after the first page load. (Issue #207)
- Make
unsticky
safe to use on any element. Previously it would unwrap the parent even if the element had never had sticky
called on it or already had unsticky
called previously. (Issue #225)
- Fix bug that would cause handlers to be overwritten when trying to reuse an options object. (Issue #253)
- Remove "More" link when infinite shortcut reaches last page. (Issue #260)
- Fix use of
this
instead of window
, causing Browserify to fail. (Issue #262)
- Stop using deprecated jQuery
load
method. (Issue #283)
v2.0.4
- Fix enable, disable, and destroys calls not chaining the jQuery object. (Issue #244) (Thanks @robharper)
- Fix destroy not unregistering internal waypoint references if underlying node has been removed from the document, causing memory leaks. (Issue #243)
v2.0.3
- Add "unsticky" function for sticky shortcut. (Issue #130)
- Exit early from Infinite shortcut if no "more" link exists. (Issue #140)
- Delay height evaluation of sticky shortcut wrapper. (Issue #151)
- Fix errors with Infinite shortcut's parsing of HTML with jQuery 1.9+. (Issue #163)
v2.0.2
- Add AMD support. (Issue #116)
- Work around iOS issue with cancelled
setTimeout
timers by not using scroll throttling on touch devices. (Issue #120)
- If defined, execute
handler
option passed to sticky shortcut at the end of the stuck/unstuck change. (Issue #123)
v2.0.1
- Lower default throttle values for
scrollThrottle
and resizeThrottle
.
- Fix Issue #104: Pixel offsets written as strings are interpreted as %s.
- Fix Issue #100: Work around IE not firing scroll event on document shortening by forcing a scroll check on
refresh
calls.
v2.0.0
- Rewrite Waypoints in CoffeeScript.
- Add Sticky and Infinite shortcut scripts.
- Allow multiple Waypoints on each element. (Issue #40)
- Allow horizontal scrolling Waypoints. (Issue #14)
- API additions: (#69, 83, 88)
- prev, next, above, below, left, right, extendFn, enable, disable
- API subtractions:
- Remove custom 'waypoint.reached' jQuery Event from powering the trigger.
- $.waypoints now returns object with vertical+horizontal properties and HTMLElement arrays instead of jQuery object (to preserve trigger order instead of jQuery's forced source order).
- Add enabled option.
v1.1.7
- Actually fix the post-load bug in Issue #28 from v1.1.3.
v1.1.6
- Fix potential memory leak by unbinding events on empty context elements.
v1.1.5
- Make plugin compatible with Browserify/RequireJS. (Thanks @cjroebuck)
v1.1.4
- Add handler option to give alternate binding method.
v1.1.3
- Fix cases where waypoints are added post-load and should be triggered immediately.
v1.1.2
- Fixed error thrown by waypoints with triggerOnce option that were triggered via resize refresh.
v1.1.1
- Fixed bug in initialization where all offsets were being calculated as if set to 0 initially, causing unwarranted triggers during the subsequent refresh.
- Added
onlyOnScroll
, an option for individual waypoints that disables triggers due to an offset refresh that crosses the current scroll point. (All credit to @knuton on this one.)
v1.1
- Moved the continuous option out of global settings and into the options
object for individual waypoints.
- Added the context option, which allows for using waypoints within any
scrollable element, not just the window.
v1.0.2
- Moved scroll and resize handler bindings out of load. Should play nicer with async loaders like Head JS and LABjs.
- Fixed a 1px off error when using certain % offsets.
- Added unit tests.
v1.0.1
- Added $.waypoints('viewportHeight').
- Fixed iOS bug (using the new viewportHeight method).
- Added offset function alias: 'bottom-in-view'.
v1.0


Class: ActiveRecord::Migration::Compatibility::V7_0
| Relationships & Source Files | |
| Namespace Children | |
|
Modules:
| |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
|
|
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
|
Instance Chain:
|
|
| Inherits: |
ActiveRecord::Migration::Current
|
| Defined in: | activerecord/lib/active_record/migration/compatibility.rb |
Constant Summary
::ActiveRecord::Migration
- Inherited
Class Attribute Summary
::ActiveRecord::Migration
- Inherited
Class Method Summary
::ActiveRecord::Migration
- Inherited
| .[], | |
| .check_all_pending! | Raises |
| .check_pending! | Raises |
| .current_version, | |
| .disable_ddl_transaction! | Disable the transaction wrapping this migration. |
| .load_schema_if_pending!, .migrate, .new, .db_configs_in_current_env, .env, .pending_migrations, .check_pending_migrations, .inherited, .maintain_test_schema!, .method_missing, .nearest_delegate, .valid_version_format? |
Instance Attribute Summary
::ActiveRecord::Migration
- Inherited
Instance Method Summary
- #add_column(table_name, column_name, type, **options)
- #add_foreign_key(from_table, to_table, **options)
- #add_index(table_name, column_name, **options)
- #change_column(table_name, column_name, type, **options)
- #change_column_null(table_name, column_name, null, default = nil)
- #change_table(table_name, **options)
- #create_table(table_name, **options)
- #disable_extension(name, **options)
- #rename_table(table_name, new_name, **options)
- #compatible_table_definition(t) private
LegacyIndexName
- Included
::ActiveRecord::Migration::Current
- Inherited
::ActiveRecord::Migration
- Inherited
| #announce, #connection, #copy, #down, #exec_migration, #execution_strategy, #method_missing, | |
| #migrate | Execute this migration in the named direction. |
| #next_migration_number | Determines the version number of the next migration. |
| #proper_table_name | Finds the correct table name given an Active Record object. |
| #reversible | Used to specify an operation that can be run in one direction or another. |
| #revert | Reverses the migration commands for the given block and the given migrations. |
| #run | Runs the given migration classes. |
| #say | Takes a message argument and outputs it as is. |
| #say_with_time | Outputs text along with how long it took to run its block. |
| #suppress_messages | Takes a block as an argument and suppresses any output generated by the block. |
| #up, | |
| #up_only | Used to specify an operation that is only run when migrating up (for example, populating a new column with its initial values). |
| #write, #command_recorder, #execute_block, #format_arguments, #internal_option?, #disable_ddl_transaction, | |
| #table_name_options | Builds a hash for use in ActiveRecord::Migration#proper_table_name using the Active Record object’s table_name prefix and suffix. |
Constructor Details
This class inherits a constructor from ActiveRecord::Migration
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ActiveRecord::Migration
Instance Method Details
#add_column(table_name, column_name, type, **options)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 88
def add_column(table_name, column_name, type, ** ) [: ] = true super end
#add_foreign_key(from_table, to_table, **options)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 141
def add_foreign_key(from_table, to_table, ** ) if connection.adapter_name == "PostgreSQL" && [:deferrable] == true [:deferrable] = :immediate end super end
#add_index(table_name, column_name, **options)
[ GitHub ]#change_column(table_name, column_name, type, **options)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 122
def change_column(table_name, column_name, type, ** ) [: ] = true if connection.adapter_name == "Mysql2" || connection.adapter_name == "Trilogy" [:collation] ||= :no_collation end super end
#change_column_null(table_name, column_name, null, default = nil)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 130
def change_column_null(table_name, column_name, null, default = nil) super(table_name, column_name, !!null, default) end
#change_table(table_name, **options)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 109
def change_table(table_name, ** ) if block_given? super { |t| yield compatible_table_definition(t) } else super end end
#compatible_table_definition(t) (private)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 149
def compatible_table_definition(t) class << t prepend TableDefinition end super end
#create_table(table_name, **options)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 98
def create_table(table_name, ** ) [:_uses_legacy_table_name] = true [: ] = true if block_given? super { |t| yield compatible_table_definition(t) } else super end end
#disable_extension(name, **options)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 134
def disable_extension(name, ** ) if connection.adapter_name == "PostgreSQL" [:force] = :cascade end super end
#rename_table(table_name, new_name, **options)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 117
def rename_table(table_name, new_name, ** ) [:_uses_legacy_table_name] = true super end


Smart card reader attribute enumeration.
| Member Name | Description |
|---|---|
| AnswerToResetString | Answer to reset (ATR) string. (SCARD_ATTR_ATR_STRING) |
| AsyncProtocolTypes | Asynchronous protocol types (SCARD_ATTR_ASYNC_PROTOCOL_TYPES) |
| AtrString | Answer to reset (ATR) string. (SCARD_ATTR_ATR_STRING) |
| ChannelId | DWORD encoded as 0xDDDDCCCC, where DDDD = data channel type and CCCC = channel number (SCARD_ATTR_CHANNEL_ID) |
| Characteristics | DWORD indicating which mechanical characteristics are supported. If zero, no special characteristics are supported. Note that multiple bits can be set (SCARD_ATTR_CHARACTERISTICS) |
| CurrentBitRateConversionFactor | Bit rate conversion factor. (SCARD_ATTR_CURRENT_D) |
| CurrentBlockWaitingTime | Current block waiting time. (SCARD_ATTR_CURRENT_BWT) |
| CurrentCharacterWaitingTime | Current character waiting time. (SCARD_ATTR_CURRENT_CWT) |
| CurrentClockConversionFactor | Clock conversion factor. (SCARD_ATTR_CURRENT_F) |
| CurrentClockRate | Current clock rate, in kHz. (SCARD_ATTR_CURRENT_CLK) |
| CurrentErrorBlockControlEncoding | Current error block control encoding. (SCARD_ATTR_CURRENT_EBC_ENCODING) |
| CurrentGuardTime | Current guard time. (SCARD_ATTR_CURRENT_N) |
| CurrentInformationFieldSizeCard | Current byte size for information field size card. (SCARD_ATTR_CURRENT_IFSC) |
| CurrentInformationFieldSizeDevice | Current byte size for information field size device. (SCARD_ATTR_CURRENT_IFSD) |
| CurrentIOState | Current IO state (SCARD_ATTR_CURRENT_IO_STATE) |
| CurrentProtocolType | Current protocol type (SCARD_ATTR_CURRENT_PROTOCOL_TYPE) |
| CurrentWaitingTime | Current work waiting time. (SCARD_ATTR_CURRENT_W) |
| DefaultClockRate | Default clock rate, in kHz. (SCARD_ATTR_DEFAULT_CLK) |
| DefaultDataRate | Default data rate, in bps. (SCARD_ATTR_DEFAULT_DATA_RATE) |
| DeviceFriendlyName | Device friendly name (SCARD_ATTR_DEVICE_FRIENDLY_NAME) |
| DeviceFriendlyNameA | Device friendly name ASCII (SCARD_ATTR_DEVICE_FRIENDLY_NAME_A) |
| DeviceFriendlyNameW | Device friendly name UNICODE (SCARD_ATTR_DEVICE_FRIENDLY_NAME_W) |
| DeviceInUse | Reserved for future use. (SCARD_ATTR_DEVICE_IN_USE) |
| DeviceSystemName | Device system name (SCARD_ATTR_DEVICE_SYSTEM_NAME) |
| DeviceSystemNameA | Device system name ASCII (SCARD_ATTR_DEVICE_SYSTEM_NAME_A) |
| DeviceSystemNameW | Device system name UNICODE (SCARD_ATTR_DEVICE_SYSTEM_NAME_W) |
| DeviceUnit | Instance of this vendor's reader attached to the computer. The first instance will be device unit 0, the next will be unit 1 (if it is the same brand of reader) and so on. Two different brands of readers will both have zero for this value. (SCARD_ATTR_DEVICE_UNIT) |
| EscAuthRequest | Esc authentication request (SCARD_ATTR_ESC_AUTHREQUEST) |
| EscCancel | Esc cancel (SCARD_ATTR_ESC_CANCEL) |
| EscReset | Esc reset (SCARD_ATTR_ESC_RESET) |
| ExtendedBlockWaitTime | Extended block wait time. (SCARD_ATTR_EXTENDED_BWT) |
| ICCInterfaceStatus | Single byte. Zero if smart card electrical contact is not active; nonzero if contact is active. (SCARD_ATTR_ICC_INTERFACE_STATUS) |
| ICCPresence | Single byte indicating smart card presence(SCARD_ATTR_ICC_PRESENCE) |
| ICCTypePerAtr | Single byte indicating smart card type (SCARD_ATTR_ICC_TYPE_PER_ATR) |
| MaxClockRate | Maximum clock rate, in kHz. (SCARD_ATTR_MAX_CLK) |
| MaxDataRate | Maximum data rate, in bps. (SCARD_ATTR_MAX_DATA_RATE) |
| MaxInformationFileSizeDevice | Maximum bytes for information file size device. (SCARD_ATTR_MAX_IFSD) |
| MaxInput | Maximum input (SCARD_ATTR_MAXINPUT) |
| PowerManagementSupport | Zero if device does not support power down while smart card is inserted. Nonzero otherwise. (SCARD_ATTR_POWER_MGMT_SUPPORT) |
| SupressT1InformationFileSizeRequest | Supress T1 information file size request (SCARD_ATTR_SUPRESS_T1_IFS_REQUEST) |
| SyncProtocolTypes | Synchronous protocol types (SCARD_ATTR_SYNC_PROTOCOL_TYPES) |
| UserAuthInputDevice | User authentication input device (SCARD_ATTR_USER_AUTH_INPUT_DEVICE) |
| UserToCardAuthDevice | User to card authentication device (SCARD_ATTR_USER_TO_CARD_AUTH_DEVICE) |
| VendorInterfaceDeviceType | Vendor-supplied interface device type (model designation of reader). (SCARD_ATTR_VENDOR_IFD_TYPE) |
| VendorInterfaceDeviceTypeSerialNumber | Vendor-supplied interface device serial number. (SCARD_ATTR_VENDOR_IFD_SERIAL_NO) |
| VendorInterfaceDeviceTypeVersion | Vendor-supplied interface device version (DWORD in the form 0xMMmmbbbb where MM = major version, mm = minor version, and bbbb = build number). (SCARD_ATTR_VENDOR_IFD_VERSION) |
| VendorName | Vendor name. (SCARD_ATTR_VENDOR_NAME) |


WITNESS LIST State Recreational Resources Committee March 15, 2001-8:00A HB 1482 On: Durocher, Philip (Texas Parks and Wildlife Department) HB 1915 On: King, Jack (Texas Parks and Wildlife Department) Stiles, Frances (Texas Parks and Wildlife Department)


--- layout: page title: About Me description: This is Me and what I do. background: '/img/bg-about.jpg' ---
I am a Data analyst/scientist with experience in consutling, IT and telecommunication industries as well as research in academia focusing on privacy enhancing technologies.
I am really interested in statistical analysis and ML and would like to learn more about AI applicatations in privacy protection and commerical data science.
Here is the list of my publications


Class CommandContextFactory
Represents a ICommandContextFactory
Inheritance
System.Object
CommandContextFactory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:Bifrost.Commands
Assembly:Bifrost.dll
Syntax
public class CommandContextFactory : ICommandContextFactory
Constructors
| Improve this Doc View SourceCommandContextFactory(IUncommittedEventStreamCoordinator, ISagaLibrarian, IProcessMethodInvoker, IExecutionContextManager, IEventStore)
Initializes a new instance of CommandContextFactory
Declaration
public CommandContextFactory(IUncommittedEventStreamCoordinator uncommittedEventStreamCoordinator, ISagaLibrarian sagaLibrarian, IProcessMethodInvoker processMethodInvoker, IExecutionContextManager executionContextManager, IEventStore eventStore)
Parameters
| Type | Name | Description |
|---|---|---|
| IUncommittedEventStreamCoordinator | uncommittedEventStreamCoordinator | A IUncommittedEventStreamCoordinator to use for coordinator an UncommittedEventStream |
| ISagaLibrarian | sagaLibrarian | A ISagaLibrarian for saving sagas to |
| IProcessMethodInvoker | processMethodInvoker | A IProcessMethodInvoker for processing events |
| IExecutionContextManager | executionContextManager | A IExecutionContextManager for getting execution context from |
| IEventStore | eventStore | A IEventStore that will receive any events generated |
Methods
| Improve this Doc View SourceBuild(ICommand)
Declaration
public ICommandContext Build(ICommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommand | command |
Returns
| Type | Description |
|---|---|
| ICommandContext |
Implements
| Improve this Doc View SourceBuild(ISaga, ICommand)
Declaration
public ICommandContext Build(ISaga saga, ICommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| ISaga | saga | |
| ICommand | command |
Returns
| Type | Description |
|---|---|
| ICommandContext |


Shapefile
Tags
voter precincts
2014 Voter Precincts.
2014 Voter Precinct created Nov-Dec 2013. Precincts data recieved from SOE; Ed Solomon. Precinct labels alpha-numeric except for non-population areas which are labeled 998. The ID 998 is the SOE designation for no precinct.
SOE Ed Solomon,<PHONE_NUMBER>
There are no access and use limitations for this item.
Extent
| West | -80.450608 | East | -80.071776 |
| North | 26.355962 | South | 25.954990 |
| Maximum (zoomed in) | 1:5,000 |
| Minimum (zoomed out) | 1:150,000,000 |
SOE Ed Solomon,<PHONE_NUMBER>
Precincts create by SOE Vendor, Updated in Jan 2014
voting precincts
SOE
SOE
SOE
Area of feature in internal units squared.
Esri
SOE
SOE
Internal feature number.
Esri
Feature geometry.
Esri
011
011
011
011
009