16. Graphic User Interface
Module GTK
- Description
GTK wrapper module.
This is a convenience module that is identical to the latest supported GTK versionm, if available. Currently only
GTK2
is possible.- See also
GTK2
- InheritGTK2
inherit GTK2 : GTK2
Module GTK2
- ConstantACCEL_LOCKED
constant
GTK2.ACCEL_LOCKED
- ConstantACCEL_MASK
constant
GTK2.ACCEL_MASK
- ConstantACCEL_VISIBLE
constant
GTK2.ACCEL_VISIBLE
- ConstantANCHOR_CENTER
constant
GTK2.ANCHOR_CENTER
- ConstantANCHOR_E
constant
GTK2.ANCHOR_E
- ConstantANCHOR_EAST
constant
GTK2.ANCHOR_EAST
- ConstantANCHOR_N
constant
GTK2.ANCHOR_N
- ConstantANCHOR_NE
constant
GTK2.ANCHOR_NE
- ConstantANCHOR_NORTH
constant
GTK2.ANCHOR_NORTH
- ConstantANCHOR_NORTH_EAST
constant
GTK2.ANCHOR_NORTH_EAST
- ConstantANCHOR_NORTH_WEST
constant
GTK2.ANCHOR_NORTH_WEST
- ConstantANCHOR_NW
constant
GTK2.ANCHOR_NW
- ConstantANCHOR_S
constant
GTK2.ANCHOR_S
- ConstantANCHOR_SE
constant
GTK2.ANCHOR_SE
- ConstantANCHOR_SOUTH
constant
GTK2.ANCHOR_SOUTH
- ConstantANCHOR_SOUTH_EAST
constant
GTK2.ANCHOR_SOUTH_EAST
- ConstantANCHOR_SOUTH_WEST
constant
GTK2.ANCHOR_SOUTH_WEST
- ConstantANCHOR_SW
constant
GTK2.ANCHOR_SW
- ConstantANCHOR_W
constant
GTK2.ANCHOR_W
- ConstantANCHOR_WEST
constant
GTK2.ANCHOR_WEST
- ConstantAPP_PAINTABLE
constant
GTK2.APP_PAINTABLE
- ConstantARROW_DOWN
constant
GTK2.ARROW_DOWN
- ConstantARROW_LEFT
constant
GTK2.ARROW_LEFT
- ConstantARROW_RIGHT
constant
GTK2.ARROW_RIGHT
- ConstantARROW_UP
constant
GTK2.ARROW_UP
- ConstantASSISTANT_PAGE_CONFIRM
constant
GTK2.ASSISTANT_PAGE_CONFIRM
- ConstantASSISTANT_PAGE_CONTENT
constant
GTK2.ASSISTANT_PAGE_CONTENT
- ConstantASSISTANT_PAGE_INTRO
constant
GTK2.ASSISTANT_PAGE_INTRO
- ConstantASSISTANT_PAGE_PROGRESS
constant
GTK2.ASSISTANT_PAGE_PROGRESS
- ConstantASSISTANT_PAGE_SUMMARY
constant
GTK2.ASSISTANT_PAGE_SUMMARY
- ConstantBUTTONBOX_DEFAULT_STYLE
constant
GTK2.BUTTONBOX_DEFAULT_STYLE
- ConstantBUTTONBOX_EDGE
constant
GTK2.BUTTONBOX_EDGE
- ConstantBUTTONBOX_END
constant
GTK2.BUTTONBOX_END
- ConstantBUTTONBOX_SPREAD
constant
GTK2.BUTTONBOX_SPREAD
- ConstantBUTTONBOX_START
constant
GTK2.BUTTONBOX_START
- ConstantBUTTONS_CANCEL
constant
GTK2.BUTTONS_CANCEL
- ConstantBUTTONS_CLOSE
constant
GTK2.BUTTONS_CLOSE
- ConstantBUTTONS_NONE
constant
GTK2.BUTTONS_NONE
- ConstantBUTTONS_OK
constant
GTK2.BUTTONS_OK
- ConstantBUTTONS_OK_CANCEL
constant
GTK2.BUTTONS_OK_CANCEL
- ConstantBUTTONS_YES_NO
constant
GTK2.BUTTONS_YES_NO
- ConstantCALENDAR_NO_MONTH_CHANGE
constant
GTK2.CALENDAR_NO_MONTH_CHANGE
- ConstantCALENDAR_SHOW_DAY_NAMES
constant
GTK2.CALENDAR_SHOW_DAY_NAMES
- ConstantCALENDAR_SHOW_HEADING
constant
GTK2.CALENDAR_SHOW_HEADING
- ConstantCALENDAR_SHOW_WEEK_NUMBERS
constant
GTK2.CALENDAR_SHOW_WEEK_NUMBERS
- ConstantCALENDAR_WEEK_START_MONDAY
constant
GTK2.CALENDAR_WEEK_START_MONDAY
- ConstantCAN_DEFAULT
constant
GTK2.CAN_DEFAULT
- ConstantCAN_FOCUS
constant
GTK2.CAN_FOCUS
- ConstantCELL_RENDERER_ACCEL_MODE_GTK
constant
GTK2.CELL_RENDERER_ACCEL_MODE_GTK
- ConstantCELL_RENDERER_ACCEL_MODE_OTHER
constant
GTK2.CELL_RENDERER_ACCEL_MODE_OTHER
- ConstantCELL_RENDERER_FOCUSED
constant
GTK2.CELL_RENDERER_FOCUSED
- ConstantCELL_RENDERER_INSENSITIVE
constant
GTK2.CELL_RENDERER_INSENSITIVE
- ConstantCELL_RENDERER_MODE_ACTIVATABLE
constant
GTK2.CELL_RENDERER_MODE_ACTIVATABLE
- ConstantCELL_RENDERER_MODE_EDITABLE
constant
GTK2.CELL_RENDERER_MODE_EDITABLE
- ConstantCELL_RENDERER_MODE_INERT
constant
GTK2.CELL_RENDERER_MODE_INERT
- ConstantCELL_RENDERER_PRELIT
constant
GTK2.CELL_RENDERER_PRELIT
- ConstantCELL_RENDERER_SELECTED
constant
GTK2.CELL_RENDERER_SELECTED
- ConstantCELL_RENDERER_SORTED
constant
GTK2.CELL_RENDERER_SORTED
- ConstantCENTIMETERS
constant
GTK2.CENTIMETERS
- ConstantCOMPOSITE_CHILD
constant
GTK2.COMPOSITE_CHILD
- ConstantCORNER_BOTTOM_LEFT
constant
GTK2.CORNER_BOTTOM_LEFT
- ConstantCORNER_BOTTOM_RIGHT
constant
GTK2.CORNER_BOTTOM_RIGHT
- ConstantCORNER_TOP_LEFT
constant
GTK2.CORNER_TOP_LEFT
- ConstantCORNER_TOP_RIGHT
constant
GTK2.CORNER_TOP_RIGHT
- ConstantCURVE_TYPE_FREE
constant
GTK2.CURVE_TYPE_FREE
- ConstantCURVE_TYPE_LINEAR
constant
GTK2.CURVE_TYPE_LINEAR
- ConstantCURVE_TYPE_SPLINE
constant
GTK2.CURVE_TYPE_SPLINE
- ConstantDATABOX_BARS
constant
GTK2.DATABOX_BARS
- ConstantDATABOX_CROSS_SIMPLE
constant
GTK2.DATABOX_CROSS_SIMPLE
- ConstantDATABOX_GRID
constant
GTK2.DATABOX_GRID
- ConstantDATABOX_LINES
constant
GTK2.DATABOX_LINES
- ConstantDATABOX_NOT_DISPLAYED
constant
GTK2.DATABOX_NOT_DISPLAYED
- ConstantDATABOX_POINTS
constant
GTK2.DATABOX_POINTS
- ConstantDELETE_CHARS
constant
GTK2.DELETE_CHARS
- ConstantDELETE_DISPLAY_LINES
constant
GTK2.DELETE_DISPLAY_LINES
- ConstantDELETE_DISPLAY_LINE_ENDS
constant
GTK2.DELETE_DISPLAY_LINE_ENDS
- ConstantDELETE_PARAGRAPHS
constant
GTK2.DELETE_PARAGRAPHS
- ConstantDELETE_PARAGRAPH_ENDS
constant
GTK2.DELETE_PARAGRAPH_ENDS
- ConstantDELETE_WHITESPACE
constant
GTK2.DELETE_WHITESPACE
- ConstantDELETE_WORDS
constant
GTK2.DELETE_WORDS
- ConstantDELETE_WORD_ENDS
constant
GTK2.DELETE_WORD_ENDS
- ConstantDEST_DEFAULT_ALL
constant
GTK2.DEST_DEFAULT_ALL
- ConstantDEST_DEFAULT_DROP
constant
GTK2.DEST_DEFAULT_DROP
- ConstantDEST_DEFAULT_HIGHLIGHT
constant
GTK2.DEST_DEFAULT_HIGHLIGHT
- ConstantDEST_DEFAULT_MOTION
constant
GTK2.DEST_DEFAULT_MOTION
- ConstantDIALOG_DESTROY_WITH_PARENT
constant
GTK2.DIALOG_DESTROY_WITH_PARENT
- ConstantDIALOG_MODAL
constant
GTK2.DIALOG_MODAL
- ConstantDIALOG_NO_SEPARATOR
constant
GTK2.DIALOG_NO_SEPARATOR
- ConstantDIR_DOWN
constant
GTK2.DIR_DOWN
- ConstantDIR_LEFT
constant
GTK2.DIR_LEFT
- ConstantDIR_RIGHT
constant
GTK2.DIR_RIGHT
- ConstantDIR_TAB_BACKWARD
constant
GTK2.DIR_TAB_BACKWARD
- ConstantDIR_TAB_FORWARD
constant
GTK2.DIR_TAB_FORWARD
- ConstantDIR_UP
constant
GTK2.DIR_UP
- ConstantDOUBLE_BUFFERED
constant
GTK2.DOUBLE_BUFFERED
- ConstantENTRY_ICON_PRIMARY
constant
GTK2.ENTRY_ICON_PRIMARY
- ConstantENTRY_ICON_SECONDARY
constant
GTK2.ENTRY_ICON_SECONDARY
- ConstantEXPAND
constant
GTK2.EXPAND
- ConstantEXPANDER_COLLAPSED
constant
GTK2.EXPANDER_COLLAPSED
- ConstantEXPANDER_EXPANDED
constant
GTK2.EXPANDER_EXPANDED
- ConstantEXPANDER_SEMI_COLLAPSED
constant
GTK2.EXPANDER_SEMI_COLLAPSED
- ConstantEXPANDER_SEMI_EXPANDED
constant
GTK2.EXPANDER_SEMI_EXPANDED
- ConstantFALSE
constant
GTK2.FALSE
- ConstantFILE_CHOOSER_ACTION_CREATE_FOLDER
constant
GTK2.FILE_CHOOSER_ACTION_CREATE_FOLDER
- ConstantFILE_CHOOSER_ACTION_OPEN
constant
GTK2.FILE_CHOOSER_ACTION_OPEN
- ConstantFILE_CHOOSER_ACTION_SAVE
constant
GTK2.FILE_CHOOSER_ACTION_SAVE
- ConstantFILE_CHOOSER_ACTION_SELECT_FOLDER
constant
GTK2.FILE_CHOOSER_ACTION_SELECT_FOLDER
- ConstantFILE_CHOOSER_ERROR_BAD_FILENAME
constant
GTK2.FILE_CHOOSER_ERROR_BAD_FILENAME
- ConstantFILE_CHOOSER_ERROR_NONEXISTENT
constant
GTK2.FILE_CHOOSER_ERROR_NONEXISTENT
- ConstantFILE_FILTER_DISPLAY_NAME
constant
GTK2.FILE_FILTER_DISPLAY_NAME
- ConstantFILE_FILTER_FILENAME
constant
GTK2.FILE_FILTER_FILENAME
- ConstantFILE_FILTER_MIME_TYPE
constant
GTK2.FILE_FILTER_MIME_TYPE
- ConstantFILE_FILTER_URI
constant
GTK2.FILE_FILTER_URI
- ConstantFILL
constant
GTK2.FILL
- ConstantFLOATING
constant
GTK2.FLOATING
- ConstantGDK_2BUTTON_PRESS
constant
GTK2.GDK_2BUTTON_PRESS
- ConstantGDK_3BUTTON_PRESS
constant
GTK2.GDK_3BUTTON_PRESS
- ConstantGDK_ACTION_ASK
constant
GTK2.GDK_ACTION_ASK
- ConstantGDK_ACTION_COPY
constant
GTK2.GDK_ACTION_COPY
- ConstantGDK_ACTION_DEFAULT
constant
GTK2.GDK_ACTION_DEFAULT
- ConstantGDK_ACTION_LINK
constant
GTK2.GDK_ACTION_LINK
- ConstantGDK_ACTION_MOVE
constant
GTK2.GDK_ACTION_MOVE
- ConstantGDK_ACTION_PRIVATE
constant
GTK2.GDK_ACTION_PRIVATE
- ConstantGDK_ALL_EVENTS_MASK
constant
GTK2.GDK_ALL_EVENTS_MASK
- ConstantGDK_AND
constant
GTK2.GDK_AND
- ConstantGDK_AND_INVERT
constant
GTK2.GDK_AND_INVERT
- ConstantGDK_AND_REVERSE
constant
GTK2.GDK_AND_REVERSE
- ConstantGDK_ARROW
constant
GTK2.GDK_ARROW
- ConstantGDK_AXIS_IGNORE
constant
GTK2.GDK_AXIS_IGNORE
- ConstantGDK_AXIS_LAST
constant
GTK2.GDK_AXIS_LAST
- ConstantGDK_AXIS_PRESSURE
constant
GTK2.GDK_AXIS_PRESSURE
- ConstantGDK_AXIS_WHEEL
constant
GTK2.GDK_AXIS_WHEEL
- ConstantGDK_AXIS_X
constant
GTK2.GDK_AXIS_X
- ConstantGDK_AXIS_XTILT
constant
GTK2.GDK_AXIS_XTILT
- ConstantGDK_AXIS_Y
constant
GTK2.GDK_AXIS_Y
- ConstantGDK_AXIS_YTILT
constant
GTK2.GDK_AXIS_YTILT
- ConstantGDK_BASED_ARROW_DOWN
constant
GTK2.GDK_BASED_ARROW_DOWN
- ConstantGDK_BASED_ARROW_UP
constant
GTK2.GDK_BASED_ARROW_UP
- ConstantGDK_BOAT
constant
GTK2.GDK_BOAT
- ConstantGDK_BOGOSITY
constant
GTK2.GDK_BOGOSITY
- ConstantGDK_BOTTOM_LEFT_CORNER
constant
GTK2.GDK_BOTTOM_LEFT_CORNER
- ConstantGDK_BOTTOM_RIGHT_CORNER
constant
GTK2.GDK_BOTTOM_RIGHT_CORNER
- ConstantGDK_BOTTOM_SIDE
constant
GTK2.GDK_BOTTOM_SIDE
- ConstantGDK_BOTTOM_TEE
constant
GTK2.GDK_BOTTOM_TEE
- ConstantGDK_BOX_SPIRAL
constant
GTK2.GDK_BOX_SPIRAL
- ConstantGDK_BUTTON1_MASK
constant
GTK2.GDK_BUTTON1_MASK
- ConstantGDK_BUTTON1_MOTION_MASK
constant
GTK2.GDK_BUTTON1_MOTION_MASK
- ConstantGDK_BUTTON2_MASK
constant
GTK2.GDK_BUTTON2_MASK
- ConstantGDK_BUTTON2_MOTION_MASK
constant
GTK2.GDK_BUTTON2_MOTION_MASK
- ConstantGDK_BUTTON3_MASK
constant
GTK2.GDK_BUTTON3_MASK
- ConstantGDK_BUTTON3_MOTION_MASK
constant
GTK2.GDK_BUTTON3_MOTION_MASK
- ConstantGDK_BUTTON4_MASK
constant
GTK2.GDK_BUTTON4_MASK
- ConstantGDK_BUTTON5_MASK
constant
GTK2.GDK_BUTTON5_MASK
- ConstantGDK_BUTTON_MOTION_MASK
constant
GTK2.GDK_BUTTON_MOTION_MASK
- ConstantGDK_BUTTON_PRESS
constant
GTK2.GDK_BUTTON_PRESS
- ConstantGDK_BUTTON_PRESS_MASK
constant
GTK2.GDK_BUTTON_PRESS_MASK
- ConstantGDK_BUTTON_RELEASE
constant
GTK2.GDK_BUTTON_RELEASE
- ConstantGDK_BUTTON_RELEASE_MASK
constant
GTK2.GDK_BUTTON_RELEASE_MASK
- ConstantGDK_CAP_BUTT
constant
GTK2.GDK_CAP_BUTT
- ConstantGDK_CAP_NOT_LAST
constant
GTK2.GDK_CAP_NOT_LAST
- ConstantGDK_CAP_PROJECTING
constant
GTK2.GDK_CAP_PROJECTING
- ConstantGDK_CAP_ROUND
constant
GTK2.GDK_CAP_ROUND
- ConstantGDK_CENTER_PTR
constant
GTK2.GDK_CENTER_PTR
- ConstantGDK_CIRCLE
constant
GTK2.GDK_CIRCLE
- ConstantGDK_CLEAR
constant
GTK2.GDK_CLEAR
- ConstantGDK_CLIENT_EVENT
constant
GTK2.GDK_CLIENT_EVENT
- ConstantGDK_CLIP_BY_CHILDREN
constant
GTK2.GDK_CLIP_BY_CHILDREN
- ConstantGDK_CLOCK
constant
GTK2.GDK_CLOCK
- ConstantGDK_COFFEE_MUG
constant
GTK2.GDK_COFFEE_MUG
- ConstantGDK_COLORSPACE_RGB
constant
GTK2.GDK_COLORSPACE_RGB
- ConstantGDK_CONFIGURE
constant
GTK2.GDK_CONFIGURE
- ConstantGDK_CONTROL_MASK
constant
GTK2.GDK_CONTROL_MASK
- ConstantGDK_COPY
constant
GTK2.GDK_COPY
- ConstantGDK_COPY_INVERT
constant
GTK2.GDK_COPY_INVERT
- ConstantGDK_CROSS
constant
GTK2.GDK_CROSS
- ConstantGDK_CROSSHAIR
constant
GTK2.GDK_CROSSHAIR
- ConstantGDK_CROSSING_GRAB
constant
GTK2.GDK_CROSSING_GRAB
- ConstantGDK_CROSSING_NORMAL
constant
GTK2.GDK_CROSSING_NORMAL
- ConstantGDK_CROSSING_UNGRAB
constant
GTK2.GDK_CROSSING_UNGRAB
- ConstantGDK_CROSS_REVERSE
constant
GTK2.GDK_CROSS_REVERSE
- ConstantGDK_CURSOR_IS_PIXMAP
constant
GTK2.GDK_CURSOR_IS_PIXMAP
- ConstantGDK_DECOR_ALL
constant
GTK2.GDK_DECOR_ALL
- ConstantGDK_DECOR_BORDER
constant
GTK2.GDK_DECOR_BORDER
- ConstantGDK_DECOR_MAXIMIZE
constant
GTK2.GDK_DECOR_MAXIMIZE
- ConstantGDK_DECOR_MENU
constant
GTK2.GDK_DECOR_MENU
- ConstantGDK_DECOR_MINIMIZE
constant
GTK2.GDK_DECOR_MINIMIZE
- ConstantGDK_DECOR_RESIZEH
constant
GTK2.GDK_DECOR_RESIZEH
- ConstantGDK_DECOR_TITLE
constant
GTK2.GDK_DECOR_TITLE
- ConstantGDK_DELETE
constant
GTK2.GDK_DELETE
- ConstantGDK_DESTROY
constant
GTK2.GDK_DESTROY
- ConstantGDK_DIAMOND_CROSS
constant
GTK2.GDK_DIAMOND_CROSS
- ConstantGDK_DOT
constant
GTK2.GDK_DOT
- ConstantGDK_DOTBOX
constant
GTK2.GDK_DOTBOX
- ConstantGDK_DOUBLE_ARROW
constant
GTK2.GDK_DOUBLE_ARROW
- ConstantGDK_DRAFT_LARGE
constant
GTK2.GDK_DRAFT_LARGE
- ConstantGDK_DRAFT_SMALL
constant
GTK2.GDK_DRAFT_SMALL
- ConstantGDK_DRAG_ENTER
constant
GTK2.GDK_DRAG_ENTER
- ConstantGDK_DRAG_LEAVE
constant
GTK2.GDK_DRAG_LEAVE
- ConstantGDK_DRAG_MOTION
constant
GTK2.GDK_DRAG_MOTION
- ConstantGDK_DRAG_PROTO_LOCAL
constant
GTK2.GDK_DRAG_PROTO_LOCAL
- ConstantGDK_DRAG_PROTO_MOTIF
constant
GTK2.GDK_DRAG_PROTO_MOTIF
- ConstantGDK_DRAG_PROTO_NONE
constant
GTK2.GDK_DRAG_PROTO_NONE
- ConstantGDK_DRAG_PROTO_OLE2
constant
GTK2.GDK_DRAG_PROTO_OLE2
- ConstantGDK_DRAG_PROTO_ROOTWIN
constant
GTK2.GDK_DRAG_PROTO_ROOTWIN
- ConstantGDK_DRAG_PROTO_WIN32_DROPFILES
constant
GTK2.GDK_DRAG_PROTO_WIN32_DROPFILES
- ConstantGDK_DRAG_PROTO_XDND
constant
GTK2.GDK_DRAG_PROTO_XDND
- ConstantGDK_DRAG_STATUS
constant
GTK2.GDK_DRAG_STATUS
- ConstantGDK_DRAPED_BOX
constant
GTK2.GDK_DRAPED_BOX
- ConstantGDK_DROP_FINISHED
constant
GTK2.GDK_DROP_FINISHED
- ConstantGDK_DROP_START
constant
GTK2.GDK_DROP_START
- ConstantGDK_ENTER_NOTIFY
constant
GTK2.GDK_ENTER_NOTIFY
- ConstantGDK_ENTER_NOTIFY_MASK
constant
GTK2.GDK_ENTER_NOTIFY_MASK
- ConstantGDK_EQUIV
constant
GTK2.GDK_EQUIV
- ConstantGDK_EVEN_ODD_RULE
constant
GTK2.GDK_EVEN_ODD_RULE
- ConstantGDK_EXCHANGE
constant
GTK2.GDK_EXCHANGE
- ConstantGDK_EXPOSE
constant
GTK2.GDK_EXPOSE
- ConstantGDK_EXPOSURE_MASK
constant
GTK2.GDK_EXPOSURE_MASK
- ConstantGDK_EXTENSION_EVENTS_ALL
constant
GTK2.GDK_EXTENSION_EVENTS_ALL
- ConstantGDK_EXTENSION_EVENTS_CURSOR
constant
GTK2.GDK_EXTENSION_EVENTS_CURSOR
- ConstantGDK_EXTENSION_EVENTS_NONE
constant
GTK2.GDK_EXTENSION_EVENTS_NONE
- ConstantGDK_FILTER_CONTINUE
constant
GTK2.GDK_FILTER_CONTINUE
- ConstantGDK_FILTER_REMOVE
constant
GTK2.GDK_FILTER_REMOVE
- ConstantGDK_FILTER_TRANSLATE
constant
GTK2.GDK_FILTER_TRANSLATE
- ConstantGDK_FLEUR
constant
GTK2.GDK_FLEUR
- ConstantGDK_FOCUS_CHANGE
constant
GTK2.GDK_FOCUS_CHANGE
- ConstantGDK_FOCUS_CHANGE_MASK
constant
GTK2.GDK_FOCUS_CHANGE_MASK
- ConstantGDK_FUNC_ALL
constant
GTK2.GDK_FUNC_ALL
- ConstantGDK_FUNC_CLOSE
constant
GTK2.GDK_FUNC_CLOSE
- ConstantGDK_FUNC_MAXIMIZE
constant
GTK2.GDK_FUNC_MAXIMIZE
- ConstantGDK_FUNC_MINIMIZE
constant
GTK2.GDK_FUNC_MINIMIZE
- ConstantGDK_FUNC_MOVE
constant
GTK2.GDK_FUNC_MOVE
- ConstantGDK_FUNC_RESIZE
constant
GTK2.GDK_FUNC_RESIZE
- ConstantGDK_GC_BACKGROUND
constant
GTK2.GDK_GC_BACKGROUND
- ConstantGDK_GC_CAP_STYLE
constant
GTK2.GDK_GC_CAP_STYLE
- ConstantGDK_GC_CLIP_MASK
constant
GTK2.GDK_GC_CLIP_MASK
- ConstantGDK_GC_CLIP_X_ORIGIN
constant
GTK2.GDK_GC_CLIP_X_ORIGIN
- ConstantGDK_GC_CLIP_Y_ORIGIN
constant
GTK2.GDK_GC_CLIP_Y_ORIGIN
- ConstantGDK_GC_EXPOSURES
constant
GTK2.GDK_GC_EXPOSURES
- ConstantGDK_GC_FILL
constant
GTK2.GDK_GC_FILL
- ConstantGDK_GC_FONT
constant
GTK2.GDK_GC_FONT
- ConstantGDK_GC_FOREGROUND
constant
GTK2.GDK_GC_FOREGROUND
- ConstantGDK_GC_FUNCTION
constant
GTK2.GDK_GC_FUNCTION
- ConstantGDK_GC_JOIN_STYLE
constant
GTK2.GDK_GC_JOIN_STYLE
- ConstantGDK_GC_LINE_STYLE
constant
GTK2.GDK_GC_LINE_STYLE
- ConstantGDK_GC_LINE_WIDTH
constant
GTK2.GDK_GC_LINE_WIDTH
- ConstantGDK_GC_STIPPLE
constant
GTK2.GDK_GC_STIPPLE
- ConstantGDK_GC_SUBWINDOW
constant
GTK2.GDK_GC_SUBWINDOW
- ConstantGDK_GC_TILE
constant
GTK2.GDK_GC_TILE
- ConstantGDK_GC_TS_X_ORIGIN
constant
GTK2.GDK_GC_TS_X_ORIGIN
- ConstantGDK_GC_TS_Y_ORIGIN
constant
GTK2.GDK_GC_TS_Y_ORIGIN
- ConstantGDK_GOBBLER
constant
GTK2.GDK_GOBBLER
- ConstantGDK_GRAB_ALREADY_GRABBED
constant
GTK2.GDK_GRAB_ALREADY_GRABBED
- ConstantGDK_GRAB_FROZEN
constant
GTK2.GDK_GRAB_FROZEN
- ConstantGDK_GRAB_INVALID_TIME
constant
GTK2.GDK_GRAB_INVALID_TIME
- ConstantGDK_GRAB_NOT_VIEWABLE
constant
GTK2.GDK_GRAB_NOT_VIEWABLE
- ConstantGDK_GRAB_SUCCESS
constant
GTK2.GDK_GRAB_SUCCESS
- ConstantGDK_GRAVITY_CENTER
constant
GTK2.GDK_GRAVITY_CENTER
- ConstantGDK_GRAVITY_EAST
constant
GTK2.GDK_GRAVITY_EAST
- ConstantGDK_GRAVITY_NORTH
constant
GTK2.GDK_GRAVITY_NORTH
- ConstantGDK_GRAVITY_NORTH_EAST
constant
GTK2.GDK_GRAVITY_NORTH_EAST
- ConstantGDK_GRAVITY_NORTH_WEST
constant
GTK2.GDK_GRAVITY_NORTH_WEST
- ConstantGDK_GRAVITY_SOUTH
constant
GTK2.GDK_GRAVITY_SOUTH
- ConstantGDK_GRAVITY_SOUTH_EAST
constant
GTK2.GDK_GRAVITY_SOUTH_EAST
- ConstantGDK_GRAVITY_SOUTH_WEST
constant
GTK2.GDK_GRAVITY_SOUTH_WEST
- ConstantGDK_GRAVITY_STATIC
constant
GTK2.GDK_GRAVITY_STATIC
- ConstantGDK_GRAVITY_WEST
constant
GTK2.GDK_GRAVITY_WEST
- ConstantGDK_GUMBY
constant
GTK2.GDK_GUMBY
- ConstantGDK_HAND1
constant
GTK2.GDK_HAND1
- ConstantGDK_HAND2
constant
GTK2.GDK_HAND2
- ConstantGDK_HEART
constant
GTK2.GDK_HEART
- ConstantGDK_HINT_ASPECT
constant
GTK2.GDK_HINT_ASPECT
- ConstantGDK_HINT_BASE_SIZE
constant
GTK2.GDK_HINT_BASE_SIZE
- ConstantGDK_HINT_MAX_SIZE
constant
GTK2.GDK_HINT_MAX_SIZE
- ConstantGDK_HINT_MIN_SIZE
constant
GTK2.GDK_HINT_MIN_SIZE
- ConstantGDK_HINT_POS
constant
GTK2.GDK_HINT_POS
- ConstantGDK_HINT_RESIZE_INC
constant
GTK2.GDK_HINT_RESIZE_INC
- ConstantGDK_HINT_USER_POS
constant
GTK2.GDK_HINT_USER_POS
- ConstantGDK_HINT_USER_SIZE
constant
GTK2.GDK_HINT_USER_SIZE
- ConstantGDK_ICON
constant
GTK2.GDK_ICON
- ConstantGDK_IMAGE_FASTEST
constant
GTK2.GDK_IMAGE_FASTEST
- ConstantGDK_IMAGE_NORMAL
constant
GTK2.GDK_IMAGE_NORMAL
- ConstantGDK_IMAGE_SHARED
constant
GTK2.GDK_IMAGE_SHARED
- ConstantGDK_INCLUDE_INFERIORS
constant
GTK2.GDK_INCLUDE_INFERIORS
- ConstantGDK_INPUT_EXCEPTION
constant
GTK2.GDK_INPUT_EXCEPTION
- ConstantGDK_INPUT_ONLY
constant
GTK2.GDK_INPUT_ONLY
- ConstantGDK_INPUT_OUTPUT
constant
GTK2.GDK_INPUT_OUTPUT
- ConstantGDK_INPUT_READ
constant
GTK2.GDK_INPUT_READ
- ConstantGDK_INPUT_WRITE
constant
GTK2.GDK_INPUT_WRITE
- ConstantGDK_INTERP_BILINEAR
constant
GTK2.GDK_INTERP_BILINEAR
- ConstantGDK_INTERP_HYPER
constant
GTK2.GDK_INTERP_HYPER
- ConstantGDK_INTERP_NEAREST
constant
GTK2.GDK_INTERP_NEAREST
- ConstantGDK_INTERP_TILES
constant
GTK2.GDK_INTERP_TILES
- ConstantGDK_INVERT
constant
GTK2.GDK_INVERT
- ConstantGDK_IRON_CROSS
constant
GTK2.GDK_IRON_CROSS
- ConstantGDK_JOIN_BEVEL
constant
GTK2.GDK_JOIN_BEVEL
- ConstantGDK_JOIN_MITER
constant
GTK2.GDK_JOIN_MITER
- ConstantGDK_JOIN_ROUND
constant
GTK2.GDK_JOIN_ROUND
- ConstantGDK_KEY_PRESS
constant
GTK2.GDK_KEY_PRESS
- ConstantGDK_KEY_PRESS_MASK
constant
GTK2.GDK_KEY_PRESS_MASK
- ConstantGDK_KEY_RELEASE
constant
GTK2.GDK_KEY_RELEASE
- ConstantGDK_KEY_RELEASE_MASK
constant
GTK2.GDK_KEY_RELEASE_MASK
- ConstantGDK_LAST_CURSOR
constant
GTK2.GDK_LAST_CURSOR
- ConstantGDK_LEAVE_NOTIFY
constant
GTK2.GDK_LEAVE_NOTIFY
- ConstantGDK_LEAVE_NOTIFY_MASK
constant
GTK2.GDK_LEAVE_NOTIFY_MASK
- ConstantGDK_LEFTBUTTON
constant
GTK2.GDK_LEFTBUTTON
- ConstantGDK_LEFT_PTR
constant
GTK2.GDK_LEFT_PTR
- ConstantGDK_LEFT_SIDE
constant
GTK2.GDK_LEFT_SIDE
- ConstantGDK_LEFT_TEE
constant
GTK2.GDK_LEFT_TEE
- ConstantGDK_LINE_DOUBLE_DASH
constant
GTK2.GDK_LINE_DOUBLE_DASH
- ConstantGDK_LINE_ON_OFF_DASH
constant
GTK2.GDK_LINE_ON_OFF_DASH
- ConstantGDK_LINE_SOLID
constant
GTK2.GDK_LINE_SOLID
- ConstantGDK_LL_ANGLE
constant
GTK2.GDK_LL_ANGLE
- ConstantGDK_LOCK_MASK
constant
GTK2.GDK_LOCK_MASK
- ConstantGDK_LR_ANGLE
constant
GTK2.GDK_LR_ANGLE
- ConstantGDK_LSB_FIRST
constant
GTK2.GDK_LSB_FIRST
- ConstantGDK_MAN
constant
GTK2.GDK_MAN
- ConstantGDK_MAP
constant
GTK2.GDK_MAP
- ConstantGDK_MIDDLEBUTTON
constant
GTK2.GDK_MIDDLEBUTTON
- ConstantGDK_MOD1_MASK
constant
GTK2.GDK_MOD1_MASK
- ConstantGDK_MOD2_MASK
constant
GTK2.GDK_MOD2_MASK
- ConstantGDK_MOD3_MASK
constant
GTK2.GDK_MOD3_MASK
- ConstantGDK_MOD4_MASK
constant
GTK2.GDK_MOD4_MASK
- ConstantGDK_MOD5_MASK
constant
GTK2.GDK_MOD5_MASK
- ConstantGDK_MODE_DISABLED
constant
GTK2.GDK_MODE_DISABLED
- ConstantGDK_MODE_SCREEN
constant
GTK2.GDK_MODE_SCREEN
- ConstantGDK_MODE_WINDOW
constant
GTK2.GDK_MODE_WINDOW
- ConstantGDK_MODIFIER_MASK
constant
GTK2.GDK_MODIFIER_MASK
- ConstantGDK_MOTION_NOTIFY
constant
GTK2.GDK_MOTION_NOTIFY
- ConstantGDK_MOUSE
constant
GTK2.GDK_MOUSE
- ConstantGDK_MSB_FIRST
constant
GTK2.GDK_MSB_FIRST
- ConstantGDK_NAND
constant
GTK2.GDK_NAND
- ConstantGDK_NOOP
constant
GTK2.GDK_NOOP
- ConstantGDK_NOR
constant
GTK2.GDK_NOR
- ConstantGDK_NOTHING
constant
GTK2.GDK_NOTHING
- ConstantGDK_NOTIFY_ANCESTOR
constant
GTK2.GDK_NOTIFY_ANCESTOR
- ConstantGDK_NOTIFY_INFERIOR
constant
GTK2.GDK_NOTIFY_INFERIOR
- ConstantGDK_NOTIFY_NONLINEAR
constant
GTK2.GDK_NOTIFY_NONLINEAR
- ConstantGDK_NOTIFY_NONLINEAR_VIRTUAL
constant
GTK2.GDK_NOTIFY_NONLINEAR_VIRTUAL
- ConstantGDK_NOTIFY_UNKNOWN
constant
GTK2.GDK_NOTIFY_UNKNOWN
- ConstantGDK_NOTIFY_VIRTUAL
constant
GTK2.GDK_NOTIFY_VIRTUAL
- ConstantGDK_NO_EXPOSE
constant
GTK2.GDK_NO_EXPOSE
- ConstantGDK_OPAQUE_STIPPLED
constant
GTK2.GDK_OPAQUE_STIPPLED
- ConstantGDK_OR
constant
GTK2.GDK_OR
- ConstantGDK_OR_INVERT
constant
GTK2.GDK_OR_INVERT
- ConstantGDK_OR_REVERSE
constant
GTK2.GDK_OR_REVERSE
- ConstantGDK_OVERLAP_RECTANGLE_IN
constant
GTK2.GDK_OVERLAP_RECTANGLE_IN
- ConstantGDK_OVERLAP_RECTANGLE_OUT
constant
GTK2.GDK_OVERLAP_RECTANGLE_OUT
- ConstantGDK_OVERLAP_RECTANGLE_PART
constant
GTK2.GDK_OVERLAP_RECTANGLE_PART
- ConstantGDK_OWNER_CHANGE
constant
GTK2.GDK_OWNER_CHANGE
- ConstantGDK_OWNER_CHANGE_CLOSE
constant
GTK2.GDK_OWNER_CHANGE_CLOSE
- ConstantGDK_OWNER_CHANGE_DESTROY
constant
GTK2.GDK_OWNER_CHANGE_DESTROY
- ConstantGDK_OWNER_CHANGE_NEW_OWNER
constant
GTK2.GDK_OWNER_CHANGE_NEW_OWNER
- ConstantGDK_PENCIL
constant
GTK2.GDK_PENCIL
- ConstantGDK_PIRATE
constant
GTK2.GDK_PIRATE
- ConstantGDK_PIXBUF_ALPHA_BILEVEL
constant
GTK2.GDK_PIXBUF_ALPHA_BILEVEL
- ConstantGDK_PIXBUF_ALPHA_FULL
constant
GTK2.GDK_PIXBUF_ALPHA_FULL
- ConstantGDK_PIXBUF_ERROR_BAD_OPTION
constant
GTK2.GDK_PIXBUF_ERROR_BAD_OPTION
- ConstantGDK_PIXBUF_ERROR_CORRUPT_IMAGE
constant
GTK2.GDK_PIXBUF_ERROR_CORRUPT_IMAGE
- ConstantGDK_PIXBUF_ERROR_FAILED
constant
GTK2.GDK_PIXBUF_ERROR_FAILED
- ConstantGDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY
constant
GTK2.GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY
- ConstantGDK_PIXBUF_ERROR_UNKNOWN_TYPE
constant
GTK2.GDK_PIXBUF_ERROR_UNKNOWN_TYPE
- ConstantGDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION
constant
GTK2.GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION
- ConstantGDK_PIXBUF_ROTATE_CLOCKWISE
constant
GTK2.GDK_PIXBUF_ROTATE_CLOCKWISE
- ConstantGDK_PIXBUF_ROTATE_COUNTERCLOCKWISE
constant
GTK2.GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE
- ConstantGDK_PIXBUF_ROTATE_NONE
constant
GTK2.GDK_PIXBUF_ROTATE_NONE
- ConstantGDK_PIXBUF_ROTATE_UPSIDEDOWN
constant
GTK2.GDK_PIXBUF_ROTATE_UPSIDEDOWN
- ConstantGDK_PLUS
constant
GTK2.GDK_PLUS
- ConstantGDK_POINTER_MOTION_HINT_MASK
constant
GTK2.GDK_POINTER_MOTION_HINT_MASK
- ConstantGDK_POINTER_MOTION_MASK
constant
GTK2.GDK_POINTER_MOTION_MASK
- ConstantGDK_PROPERTY_CHANGE_MASK
constant
GTK2.GDK_PROPERTY_CHANGE_MASK
- ConstantGDK_PROPERTY_DELETE
constant
GTK2.GDK_PROPERTY_DELETE
- ConstantGDK_PROPERTY_NEW_VALUE
constant
GTK2.GDK_PROPERTY_NEW_VALUE
- ConstantGDK_PROPERTY_NOTIFY
constant
GTK2.GDK_PROPERTY_NOTIFY
- ConstantGDK_PROP_MODE_APPEND
constant
GTK2.GDK_PROP_MODE_APPEND
- ConstantGDK_PROP_MODE_PREPEND
constant
GTK2.GDK_PROP_MODE_PREPEND
- ConstantGDK_PROP_MODE_REPLACE
constant
GTK2.GDK_PROP_MODE_REPLACE
- ConstantGDK_PROXIMITY_IN
constant
GTK2.GDK_PROXIMITY_IN
- ConstantGDK_PROXIMITY_IN_MASK
constant
GTK2.GDK_PROXIMITY_IN_MASK
- ConstantGDK_PROXIMITY_OUT
constant
GTK2.GDK_PROXIMITY_OUT
- ConstantGDK_PROXIMITY_OUT_MASK
constant
GTK2.GDK_PROXIMITY_OUT_MASK
- ConstantGDK_QUESTION_ARROW
constant
GTK2.GDK_QUESTION_ARROW
- ConstantGDK_RELEASE_MASK
constant
GTK2.GDK_RELEASE_MASK
- ConstantGDK_RGB_DITHER_MAX
constant
GTK2.GDK_RGB_DITHER_MAX
- ConstantGDK_RGB_DITHER_NONE
constant
GTK2.GDK_RGB_DITHER_NONE
- ConstantGDK_RGB_DITHER_NORMAL
constant
GTK2.GDK_RGB_DITHER_NORMAL
- ConstantGDK_RIGHTBUTTON
constant
GTK2.GDK_RIGHTBUTTON
- ConstantGDK_RIGHT_PTR
constant
GTK2.GDK_RIGHT_PTR
- ConstantGDK_RIGHT_SIDE
constant
GTK2.GDK_RIGHT_SIDE
- ConstantGDK_RIGHT_TEE
constant
GTK2.GDK_RIGHT_TEE
- ConstantGDK_RTL_LOGO
constant
GTK2.GDK_RTL_LOGO
- ConstantGDK_SAILBOAT
constant
GTK2.GDK_SAILBOAT
- ConstantGDK_SB_DOWN_ARROW
constant
GTK2.GDK_SB_DOWN_ARROW
- ConstantGDK_SB_H_DOUBLE_ARROW
constant
GTK2.GDK_SB_H_DOUBLE_ARROW
- ConstantGDK_SB_LEFT_ARROW
constant
GTK2.GDK_SB_LEFT_ARROW
- ConstantGDK_SB_RIGHT_ARROW
constant
GTK2.GDK_SB_RIGHT_ARROW
- ConstantGDK_SB_UP_ARROW
constant
GTK2.GDK_SB_UP_ARROW
- ConstantGDK_SB_V_DOUBLE_ARROW
constant
GTK2.GDK_SB_V_DOUBLE_ARROW
- ConstantGDK_SCROLL
constant
GTK2.GDK_SCROLL
- ConstantGDK_SCROLL_DOWN
constant
GTK2.GDK_SCROLL_DOWN
- ConstantGDK_SCROLL_LEFT
constant
GTK2.GDK_SCROLL_LEFT
- ConstantGDK_SCROLL_MASK
constant
GTK2.GDK_SCROLL_MASK
- ConstantGDK_SCROLL_RIGHT
constant
GTK2.GDK_SCROLL_RIGHT
- ConstantGDK_SCROLL_UP
constant
GTK2.GDK_SCROLL_UP
- ConstantGDK_SELECTION_CLEAR
constant
GTK2.GDK_SELECTION_CLEAR
- ConstantGDK_SELECTION_NOTIFY
constant
GTK2.GDK_SELECTION_NOTIFY
- ConstantGDK_SELECTION_REQUEST
constant
GTK2.GDK_SELECTION_REQUEST
- ConstantGDK_SET
constant
GTK2.GDK_SET
- ConstantGDK_SETTING
constant
GTK2.GDK_SETTING
- ConstantGDK_SETTING_ACTION_CHANGED
constant
GTK2.GDK_SETTING_ACTION_CHANGED
- ConstantGDK_SETTING_ACTION_DELETED
constant
GTK2.GDK_SETTING_ACTION_DELETED
- ConstantGDK_SETTING_ACTION_NEW
constant
GTK2.GDK_SETTING_ACTION_NEW
- ConstantGDK_SHIFT_MASK
constant
GTK2.GDK_SHIFT_MASK
- ConstantGDK_SHUTTLE
constant
GTK2.GDK_SHUTTLE
- ConstantGDK_SIZING
constant
GTK2.GDK_SIZING
- ConstantGDK_SOLID
constant
GTK2.GDK_SOLID
- ConstantGDK_SOURCE_CURSOR
constant
GTK2.GDK_SOURCE_CURSOR
- ConstantGDK_SOURCE_ERASER
constant
GTK2.GDK_SOURCE_ERASER
- ConstantGDK_SOURCE_MOUSE
constant
GTK2.GDK_SOURCE_MOUSE
- ConstantGDK_SOURCE_PEN
constant
GTK2.GDK_SOURCE_PEN
- ConstantGDK_SPIDER
constant
GTK2.GDK_SPIDER
- ConstantGDK_SPRAYCAN
constant
GTK2.GDK_SPRAYCAN
- ConstantGDK_STAR
constant
GTK2.GDK_STAR
- ConstantGDK_STIPPLED
constant
GTK2.GDK_STIPPLED
- ConstantGDK_STRUCTURE_MASK
constant
GTK2.GDK_STRUCTURE_MASK
- ConstantGDK_SUBSTRUCTURE_MASK
constant
GTK2.GDK_SUBSTRUCTURE_MASK
- ConstantGDK_TARGET
constant
GTK2.GDK_TARGET
- ConstantGDK_TCROSS
constant
GTK2.GDK_TCROSS
- ConstantGDK_TILED
constant
GTK2.GDK_TILED
- ConstantGDK_TOP_LEFT_ARROW
constant
GTK2.GDK_TOP_LEFT_ARROW
- ConstantGDK_TOP_LEFT_CORNER
constant
GTK2.GDK_TOP_LEFT_CORNER
- ConstantGDK_TOP_RIGHT_CORNER
constant
GTK2.GDK_TOP_RIGHT_CORNER
- ConstantGDK_TOP_SIDE
constant
GTK2.GDK_TOP_SIDE
- ConstantGDK_TOP_TEE
constant
GTK2.GDK_TOP_TEE
- ConstantGDK_TREK
constant
GTK2.GDK_TREK
- ConstantGDK_UL_ANGLE
constant
GTK2.GDK_UL_ANGLE
- ConstantGDK_UMBRELLA
constant
GTK2.GDK_UMBRELLA
- ConstantGDK_UNMAP
constant
GTK2.GDK_UNMAP
- ConstantGDK_UR_ANGLE
constant
GTK2.GDK_UR_ANGLE
- ConstantGDK_VISIBILITY_FULLY_OBSCURED
constant
GTK2.GDK_VISIBILITY_FULLY_OBSCURED
- ConstantGDK_VISIBILITY_NOTIFY
constant
GTK2.GDK_VISIBILITY_NOTIFY
- ConstantGDK_VISIBILITY_NOTIFY_MASK
constant
GTK2.GDK_VISIBILITY_NOTIFY_MASK
- ConstantGDK_VISIBILITY_PARTIAL
constant
GTK2.GDK_VISIBILITY_PARTIAL
- ConstantGDK_VISIBILITY_UNOBSCURED
constant
GTK2.GDK_VISIBILITY_UNOBSCURED
- ConstantGDK_VISUAL_DIRECT_COLOR
constant
GTK2.GDK_VISUAL_DIRECT_COLOR
- ConstantGDK_VISUAL_GRAYSCALE
constant
GTK2.GDK_VISUAL_GRAYSCALE
- ConstantGDK_VISUAL_PSEUDO_COLOR
constant
GTK2.GDK_VISUAL_PSEUDO_COLOR
- ConstantGDK_VISUAL_STATIC_COLOR
constant
GTK2.GDK_VISUAL_STATIC_COLOR
- ConstantGDK_VISUAL_STATIC_GRAY
constant
GTK2.GDK_VISUAL_STATIC_GRAY
- ConstantGDK_VISUAL_TRUE_COLOR
constant
GTK2.GDK_VISUAL_TRUE_COLOR
- ConstantGDK_WATCH
constant
GTK2.GDK_WATCH
- ConstantGDK_WA_COLORMAP
constant
GTK2.GDK_WA_COLORMAP
- ConstantGDK_WA_CURSOR
constant
GTK2.GDK_WA_CURSOR
- ConstantGDK_WA_NOREDIR
constant
GTK2.GDK_WA_NOREDIR
- ConstantGDK_WA_TITLE
constant
GTK2.GDK_WA_TITLE
- ConstantGDK_WA_VISUAL
constant
GTK2.GDK_WA_VISUAL
- ConstantGDK_WA_WMCLASS
constant
GTK2.GDK_WA_WMCLASS
- ConstantGDK_WA_X
constant
GTK2.GDK_WA_X
- ConstantGDK_WA_Y
constant
GTK2.GDK_WA_Y
- ConstantGDK_WINDING_RULE
constant
GTK2.GDK_WINDING_RULE
- ConstantGDK_WINDOW_CHILD
constant
GTK2.GDK_WINDOW_CHILD
- ConstantGDK_WINDOW_DIALOG
constant
GTK2.GDK_WINDOW_DIALOG
- ConstantGDK_WINDOW_EDGE_EAST
constant
GTK2.GDK_WINDOW_EDGE_EAST
- ConstantGDK_WINDOW_EDGE_NORTH
constant
GTK2.GDK_WINDOW_EDGE_NORTH
- ConstantGDK_WINDOW_EDGE_NORTH_EAST
constant
GTK2.GDK_WINDOW_EDGE_NORTH_EAST
- ConstantGDK_WINDOW_EDGE_NORTH_WEST
constant
GTK2.GDK_WINDOW_EDGE_NORTH_WEST
- ConstantGDK_WINDOW_EDGE_SOUTH
constant
GTK2.GDK_WINDOW_EDGE_SOUTH
- ConstantGDK_WINDOW_EDGE_SOUTH_EAST
constant
GTK2.GDK_WINDOW_EDGE_SOUTH_EAST
- ConstantGDK_WINDOW_EDGE_SOUTH_WEST
constant
GTK2.GDK_WINDOW_EDGE_SOUTH_WEST
- ConstantGDK_WINDOW_EDGE_WEST
constant
GTK2.GDK_WINDOW_EDGE_WEST
- ConstantGDK_WINDOW_FOREIGN
constant
GTK2.GDK_WINDOW_FOREIGN
- ConstantGDK_WINDOW_ROOT
constant
GTK2.GDK_WINDOW_ROOT
- ConstantGDK_WINDOW_STATE
constant
GTK2.GDK_WINDOW_STATE
- ConstantGDK_WINDOW_STATE_ABOVE
constant
GTK2.GDK_WINDOW_STATE_ABOVE
- ConstantGDK_WINDOW_STATE_BELOW
constant
GTK2.GDK_WINDOW_STATE_BELOW
- ConstantGDK_WINDOW_STATE_FULLSCREEN
constant
GTK2.GDK_WINDOW_STATE_FULLSCREEN
- ConstantGDK_WINDOW_STATE_ICONIFIED
constant
GTK2.GDK_WINDOW_STATE_ICONIFIED
- ConstantGDK_WINDOW_STATE_MAXIMIZED
constant
GTK2.GDK_WINDOW_STATE_MAXIMIZED
- ConstantGDK_WINDOW_STATE_STICKY
constant
GTK2.GDK_WINDOW_STATE_STICKY
- ConstantGDK_WINDOW_STATE_WITHDRAWN
constant
GTK2.GDK_WINDOW_STATE_WITHDRAWN
- ConstantGDK_WINDOW_TEMP
constant
GTK2.GDK_WINDOW_TEMP
- ConstantGDK_WINDOW_TOPLEVEL
constant
GTK2.GDK_WINDOW_TOPLEVEL
- ConstantGDK_WINDOW_TYPE_HINT_DESKTOP
constant
GTK2.GDK_WINDOW_TYPE_HINT_DESKTOP
- ConstantGDK_WINDOW_TYPE_HINT_DIALOG
constant
GTK2.GDK_WINDOW_TYPE_HINT_DIALOG
- ConstantGDK_WINDOW_TYPE_HINT_DOCK
constant
GTK2.GDK_WINDOW_TYPE_HINT_DOCK
- ConstantGDK_WINDOW_TYPE_HINT_MENU
constant
GTK2.GDK_WINDOW_TYPE_HINT_MENU
- ConstantGDK_WINDOW_TYPE_HINT_NORMAL
constant
GTK2.GDK_WINDOW_TYPE_HINT_NORMAL
- ConstantGDK_WINDOW_TYPE_HINT_SPLASHSCREEN
constant
GTK2.GDK_WINDOW_TYPE_HINT_SPLASHSCREEN
- ConstantGDK_WINDOW_TYPE_HINT_TOOLBAR
constant
GTK2.GDK_WINDOW_TYPE_HINT_TOOLBAR
- ConstantGDK_WINDOW_TYPE_HINT_UTILITY
constant
GTK2.GDK_WINDOW_TYPE_HINT_UTILITY
- ConstantGDK_XOR
constant
GTK2.GDK_XOR
- ConstantGDK_XTERM
constant
GTK2.GDK_XTERM
- ConstantGDK_X_CURSOR
constant
GTK2.GDK_X_CURSOR
- ConstantGNOME_CLIENT_IS_CONNECTED
constant
GTK2.GNOME_CLIENT_IS_CONNECTED
- ConstantGNOME_CLIENT_RESTARTED
constant
GTK2.GNOME_CLIENT_RESTARTED
- ConstantGNOME_CLIENT_RESTORED
constant
GTK2.GNOME_CLIENT_RESTORED
- ConstantGNOME_DATE_EDIT_24_HR
constant
GTK2.GNOME_DATE_EDIT_24_HR
- ConstantGNOME_DATE_EDIT_SHOW_TIME
constant
GTK2.GNOME_DATE_EDIT_SHOW_TIME
- ConstantGNOME_DATE_EDIT_WEEK_STARTS_ON_MONDAY
constant
GTK2.GNOME_DATE_EDIT_WEEK_STARTS_ON_MONDAY
- ConstantGNOME_DIALOG_ERROR
constant
GTK2.GNOME_DIALOG_ERROR
- ConstantGNOME_DIALOG_NORMAL
constant
GTK2.GNOME_DIALOG_NORMAL
- ConstantGNOME_DOCK_BOTTOM
constant
GTK2.GNOME_DOCK_BOTTOM
- ConstantGNOME_DOCK_ITEM_BEH_EXCLUSIVE
constant
GTK2.GNOME_DOCK_ITEM_BEH_EXCLUSIVE
- ConstantGNOME_DOCK_ITEM_BEH_LOCKED
constant
GTK2.GNOME_DOCK_ITEM_BEH_LOCKED
- ConstantGNOME_DOCK_ITEM_BEH_NEVER_FLOATING
constant
GTK2.GNOME_DOCK_ITEM_BEH_NEVER_FLOATING
- ConstantGNOME_DOCK_ITEM_BEH_NEVER_HORIZONTAL
constant
GTK2.GNOME_DOCK_ITEM_BEH_NEVER_HORIZONTAL
- ConstantGNOME_DOCK_ITEM_BEH_NEVER_VERTICAL
constant
GTK2.GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL
- ConstantGNOME_DOCK_ITEM_BEH_NORMAL
constant
GTK2.GNOME_DOCK_ITEM_BEH_NORMAL
- ConstantGNOME_DOCK_LEFT
constant
GTK2.GNOME_DOCK_LEFT
- ConstantGNOME_DOCK_RIGHT
constant
GTK2.GNOME_DOCK_RIGHT
- ConstantGNOME_DOCK_TOP
constant
GTK2.GNOME_DOCK_TOP
- ConstantGNOME_EDGE_FINISH
constant
GTK2.GNOME_EDGE_FINISH
- ConstantGNOME_EDGE_LAST
constant
GTK2.GNOME_EDGE_LAST
- ConstantGNOME_EDGE_OTHER
constant
GTK2.GNOME_EDGE_OTHER
- ConstantGNOME_EDGE_START
constant
GTK2.GNOME_EDGE_START
- ConstantGNOME_FONT_PICKER_MODE_FONT_INFO
constant
GTK2.GNOME_FONT_PICKER_MODE_FONT_INFO
- ConstantGNOME_FONT_PICKER_MODE_PIXMAP
constant
GTK2.GNOME_FONT_PICKER_MODE_PIXMAP
- ConstantGNOME_FONT_PICKER_MODE_UNKNOWN
constant
GTK2.GNOME_FONT_PICKER_MODE_UNKNOWN
- ConstantGNOME_FONT_PICKER_MODE_USER_WIDGET
constant
GTK2.GNOME_FONT_PICKER_MODE_USER_WIDGET
- ConstantGNOME_INTERACT_ANY
constant
GTK2.GNOME_INTERACT_ANY
- ConstantGNOME_INTERACT_ERRORS
constant
GTK2.GNOME_INTERACT_ERRORS
- ConstantGNOME_INTERACT_NONE
constant
GTK2.GNOME_INTERACT_NONE
- ConstantGNOME_PREFERENCES_ALWAYS
constant
GTK2.GNOME_PREFERENCES_ALWAYS
- ConstantGNOME_PREFERENCES_NEVER
constant
GTK2.GNOME_PREFERENCES_NEVER
- ConstantGNOME_PREFERENCES_USER
constant
GTK2.GNOME_PREFERENCES_USER
- ConstantGNOME_RESTART_ANYWAY
constant
GTK2.GNOME_RESTART_ANYWAY
- ConstantGNOME_RESTART_IF_RUNNING
constant
GTK2.GNOME_RESTART_IF_RUNNING
- ConstantGNOME_RESTART_IMMEDIATELY
constant
GTK2.GNOME_RESTART_IMMEDIATELY
- ConstantGNOME_RESTART_NEVER
constant
GTK2.GNOME_RESTART_NEVER
- ConstantGNOME_SAVE_BOTH
constant
GTK2.GNOME_SAVE_BOTH
- ConstantGNOME_SAVE_GLOBAL
constant
GTK2.GNOME_SAVE_GLOBAL
- ConstantGNOME_SAVE_LOCAL
constant
GTK2.GNOME_SAVE_LOCAL
- ConstantGNOME_STOCK_BUTTON_APPLY
constant
GTK2.GNOME_STOCK_BUTTON_APPLY
- ConstantGNOME_STOCK_BUTTON_CANCEL
constant
GTK2.GNOME_STOCK_BUTTON_CANCEL
- ConstantGNOME_STOCK_BUTTON_CLOSE
constant
GTK2.GNOME_STOCK_BUTTON_CLOSE
- ConstantGNOME_STOCK_BUTTON_DOWN
constant
GTK2.GNOME_STOCK_BUTTON_DOWN
- ConstantGNOME_STOCK_BUTTON_FONT
constant
GTK2.GNOME_STOCK_BUTTON_FONT
- ConstantGNOME_STOCK_BUTTON_HELP
constant
GTK2.GNOME_STOCK_BUTTON_HELP
- ConstantGNOME_STOCK_BUTTON_NEXT
constant
GTK2.GNOME_STOCK_BUTTON_NEXT
- ConstantGNOME_STOCK_BUTTON_NO
constant
GTK2.GNOME_STOCK_BUTTON_NO
- ConstantGNOME_STOCK_BUTTON_OK
constant
GTK2.GNOME_STOCK_BUTTON_OK
- ConstantGNOME_STOCK_BUTTON_PREV
constant
GTK2.GNOME_STOCK_BUTTON_PREV
- ConstantGNOME_STOCK_BUTTON_UP
constant
GTK2.GNOME_STOCK_BUTTON_UP
- ConstantGNOME_STOCK_BUTTON_YES
constant
GTK2.GNOME_STOCK_BUTTON_YES
- ConstantGNOME_STOCK_MENU_ABOUT
constant
GTK2.GNOME_STOCK_MENU_ABOUT
- ConstantGNOME_STOCK_MENU_ALIGN_CENTER
constant
GTK2.GNOME_STOCK_MENU_ALIGN_CENTER
- ConstantGNOME_STOCK_MENU_ALIGN_JUSTIFY
constant
GTK2.GNOME_STOCK_MENU_ALIGN_JUSTIFY
- ConstantGNOME_STOCK_MENU_ALIGN_LEFT
constant
GTK2.GNOME_STOCK_MENU_ALIGN_LEFT
- ConstantGNOME_STOCK_MENU_ALIGN_RIGHT
constant
GTK2.GNOME_STOCK_MENU_ALIGN_RIGHT
- ConstantGNOME_STOCK_MENU_ATTACH
constant
GTK2.GNOME_STOCK_MENU_ATTACH
- ConstantGNOME_STOCK_MENU_BACK
constant
GTK2.GNOME_STOCK_MENU_BACK
- ConstantGNOME_STOCK_MENU_BLANK
constant
GTK2.GNOME_STOCK_MENU_BLANK
- ConstantGNOME_STOCK_MENU_BOOK_BLUE
constant
GTK2.GNOME_STOCK_MENU_BOOK_BLUE
- ConstantGNOME_STOCK_MENU_BOOK_GREEN
constant
GTK2.GNOME_STOCK_MENU_BOOK_GREEN
- ConstantGNOME_STOCK_MENU_BOOK_OPEN
constant
GTK2.GNOME_STOCK_MENU_BOOK_OPEN
- ConstantGNOME_STOCK_MENU_BOOK_RED
constant
GTK2.GNOME_STOCK_MENU_BOOK_RED
- ConstantGNOME_STOCK_MENU_BOOK_YELLOW
constant
GTK2.GNOME_STOCK_MENU_BOOK_YELLOW
- ConstantGNOME_STOCK_MENU_BOTTOM
constant
GTK2.GNOME_STOCK_MENU_BOTTOM
- ConstantGNOME_STOCK_MENU_CDROM
constant
GTK2.GNOME_STOCK_MENU_CDROM
- ConstantGNOME_STOCK_MENU_CLOSE
constant
GTK2.GNOME_STOCK_MENU_CLOSE
- ConstantGNOME_STOCK_MENU_CONVERT
constant
GTK2.GNOME_STOCK_MENU_CONVERT
- ConstantGNOME_STOCK_MENU_COPY
constant
GTK2.GNOME_STOCK_MENU_COPY
- ConstantGNOME_STOCK_MENU_CUT
constant
GTK2.GNOME_STOCK_MENU_CUT
- ConstantGNOME_STOCK_MENU_DOWN
constant
GTK2.GNOME_STOCK_MENU_DOWN
- ConstantGNOME_STOCK_MENU_EXEC
constant
GTK2.GNOME_STOCK_MENU_EXEC
- ConstantGNOME_STOCK_MENU_EXIT
constant
GTK2.GNOME_STOCK_MENU_EXIT
- ConstantGNOME_STOCK_MENU_FIRST
constant
GTK2.GNOME_STOCK_MENU_FIRST
- ConstantGNOME_STOCK_MENU_FONT
constant
GTK2.GNOME_STOCK_MENU_FONT
- ConstantGNOME_STOCK_MENU_FORWARD
constant
GTK2.GNOME_STOCK_MENU_FORWARD
- ConstantGNOME_STOCK_MENU_HOME
constant
GTK2.GNOME_STOCK_MENU_HOME
- ConstantGNOME_STOCK_MENU_INDEX
constant
GTK2.GNOME_STOCK_MENU_INDEX
- ConstantGNOME_STOCK_MENU_JUMP_TO
constant
GTK2.GNOME_STOCK_MENU_JUMP_TO
- ConstantGNOME_STOCK_MENU_LAST
constant
GTK2.GNOME_STOCK_MENU_LAST
- ConstantGNOME_STOCK_MENU_LINE_IN
constant
GTK2.GNOME_STOCK_MENU_LINE_IN
- ConstantGNOME_STOCK_MENU_MAIL
constant
GTK2.GNOME_STOCK_MENU_MAIL
- ConstantGNOME_STOCK_MENU_MAIL_FWD
constant
GTK2.GNOME_STOCK_MENU_MAIL_FWD
- ConstantGNOME_STOCK_MENU_MAIL_NEW
constant
GTK2.GNOME_STOCK_MENU_MAIL_NEW
- ConstantGNOME_STOCK_MENU_MAIL_RCV
constant
GTK2.GNOME_STOCK_MENU_MAIL_RCV
- ConstantGNOME_STOCK_MENU_MAIL_RPL
constant
GTK2.GNOME_STOCK_MENU_MAIL_RPL
- ConstantGNOME_STOCK_MENU_MAIL_SND
constant
GTK2.GNOME_STOCK_MENU_MAIL_SND
- ConstantGNOME_STOCK_MENU_MIC
constant
GTK2.GNOME_STOCK_MENU_MIC
- ConstantGNOME_STOCK_MENU_MIDI
constant
GTK2.GNOME_STOCK_MENU_MIDI
- ConstantGNOME_STOCK_MENU_NEW
constant
GTK2.GNOME_STOCK_MENU_NEW
- ConstantGNOME_STOCK_MENU_OPEN
constant
GTK2.GNOME_STOCK_MENU_OPEN
- ConstantGNOME_STOCK_MENU_PASTE
constant
GTK2.GNOME_STOCK_MENU_PASTE
- ConstantGNOME_STOCK_MENU_PREF
constant
GTK2.GNOME_STOCK_MENU_PREF
- ConstantGNOME_STOCK_MENU_PRINT
constant
GTK2.GNOME_STOCK_MENU_PRINT
- ConstantGNOME_STOCK_MENU_PROP
constant
GTK2.GNOME_STOCK_MENU_PROP
- ConstantGNOME_STOCK_MENU_QUIT
constant
GTK2.GNOME_STOCK_MENU_QUIT
- ConstantGNOME_STOCK_MENU_REDO
constant
GTK2.GNOME_STOCK_MENU_REDO
- ConstantGNOME_STOCK_MENU_REFRESH
constant
GTK2.GNOME_STOCK_MENU_REFRESH
- ConstantGNOME_STOCK_MENU_REVERT
constant
GTK2.GNOME_STOCK_MENU_REVERT
- ConstantGNOME_STOCK_MENU_SAVE
constant
GTK2.GNOME_STOCK_MENU_SAVE
- ConstantGNOME_STOCK_MENU_SAVE_AS
constant
GTK2.GNOME_STOCK_MENU_SAVE_AS
- ConstantGNOME_STOCK_MENU_SCORES
constant
GTK2.GNOME_STOCK_MENU_SCORES
- ConstantGNOME_STOCK_MENU_SEARCH
constant
GTK2.GNOME_STOCK_MENU_SEARCH
- ConstantGNOME_STOCK_MENU_SPELLCHECK
constant
GTK2.GNOME_STOCK_MENU_SPELLCHECK
- ConstantGNOME_STOCK_MENU_SRCHRPL
constant
GTK2.GNOME_STOCK_MENU_SRCHRPL
- ConstantGNOME_STOCK_MENU_STOP
constant
GTK2.GNOME_STOCK_MENU_STOP
- ConstantGNOME_STOCK_MENU_TEXT_BOLD
constant
GTK2.GNOME_STOCK_MENU_TEXT_BOLD
- ConstantGNOME_STOCK_MENU_TEXT_ITALIC
constant
GTK2.GNOME_STOCK_MENU_TEXT_ITALIC
- ConstantGNOME_STOCK_MENU_TEXT_STRIKEOUT
constant
GTK2.GNOME_STOCK_MENU_TEXT_STRIKEOUT
- ConstantGNOME_STOCK_MENU_TEXT_UNDERLINE
constant
GTK2.GNOME_STOCK_MENU_TEXT_UNDERLINE
- ConstantGNOME_STOCK_MENU_TIMER
constant
GTK2.GNOME_STOCK_MENU_TIMER
- ConstantGNOME_STOCK_MENU_TIMER_STOP
constant
GTK2.GNOME_STOCK_MENU_TIMER_STOP
- ConstantGNOME_STOCK_MENU_TOP
constant
GTK2.GNOME_STOCK_MENU_TOP
- ConstantGNOME_STOCK_MENU_TRASH
constant
GTK2.GNOME_STOCK_MENU_TRASH
- ConstantGNOME_STOCK_MENU_TRASH_FULL
constant
GTK2.GNOME_STOCK_MENU_TRASH_FULL
- ConstantGNOME_STOCK_MENU_UNDELETE
constant
GTK2.GNOME_STOCK_MENU_UNDELETE
- ConstantGNOME_STOCK_MENU_UNDO
constant
GTK2.GNOME_STOCK_MENU_UNDO
- ConstantGNOME_STOCK_MENU_UP
constant
GTK2.GNOME_STOCK_MENU_UP
- ConstantGNOME_STOCK_MENU_VOLUME
constant
GTK2.GNOME_STOCK_MENU_VOLUME
- ConstantGNOME_STOCK_PIXMAP_ABOUT
constant
GTK2.GNOME_STOCK_PIXMAP_ABOUT
- ConstantGNOME_STOCK_PIXMAP_ADD
constant
GTK2.GNOME_STOCK_PIXMAP_ADD
- ConstantGNOME_STOCK_PIXMAP_ALIGN_CENTER
constant
GTK2.GNOME_STOCK_PIXMAP_ALIGN_CENTER
- ConstantGNOME_STOCK_PIXMAP_ALIGN_JUSTIFY
constant
GTK2.GNOME_STOCK_PIXMAP_ALIGN_JUSTIFY
- ConstantGNOME_STOCK_PIXMAP_ALIGN_LEFT
constant
GTK2.GNOME_STOCK_PIXMAP_ALIGN_LEFT
- ConstantGNOME_STOCK_PIXMAP_ALIGN_RIGHT
constant
GTK2.GNOME_STOCK_PIXMAP_ALIGN_RIGHT
- ConstantGNOME_STOCK_PIXMAP_ATTACH
constant
GTK2.GNOME_STOCK_PIXMAP_ATTACH
- ConstantGNOME_STOCK_PIXMAP_BACK
constant
GTK2.GNOME_STOCK_PIXMAP_BACK
- ConstantGNOME_STOCK_PIXMAP_BOOK_BLUE
constant
GTK2.GNOME_STOCK_PIXMAP_BOOK_BLUE
- ConstantGNOME_STOCK_PIXMAP_BOOK_GREEN
constant
GTK2.GNOME_STOCK_PIXMAP_BOOK_GREEN
- ConstantGNOME_STOCK_PIXMAP_BOOK_OPEN
constant
GTK2.GNOME_STOCK_PIXMAP_BOOK_OPEN
- ConstantGNOME_STOCK_PIXMAP_BOOK_RED
constant
GTK2.GNOME_STOCK_PIXMAP_BOOK_RED
- ConstantGNOME_STOCK_PIXMAP_BOOK_YELLOW
constant
GTK2.GNOME_STOCK_PIXMAP_BOOK_YELLOW
- ConstantGNOME_STOCK_PIXMAP_BOTTOM
constant
GTK2.GNOME_STOCK_PIXMAP_BOTTOM
- ConstantGNOME_STOCK_PIXMAP_CDROM
constant
GTK2.GNOME_STOCK_PIXMAP_CDROM
- ConstantGNOME_STOCK_PIXMAP_CLEAR
constant
GTK2.GNOME_STOCK_PIXMAP_CLEAR
- ConstantGNOME_STOCK_PIXMAP_CLOSE
constant
GTK2.GNOME_STOCK_PIXMAP_CLOSE
- ConstantGNOME_STOCK_PIXMAP_COLORSELECTOR
constant
GTK2.GNOME_STOCK_PIXMAP_COLORSELECTOR
- ConstantGNOME_STOCK_PIXMAP_CONVERT
constant
GTK2.GNOME_STOCK_PIXMAP_CONVERT
- ConstantGNOME_STOCK_PIXMAP_COPY
constant
GTK2.GNOME_STOCK_PIXMAP_COPY
- ConstantGNOME_STOCK_PIXMAP_CUT
constant
GTK2.GNOME_STOCK_PIXMAP_CUT
- ConstantGNOME_STOCK_PIXMAP_DISABLED
constant
GTK2.GNOME_STOCK_PIXMAP_DISABLED
- ConstantGNOME_STOCK_PIXMAP_DOWN
constant
GTK2.GNOME_STOCK_PIXMAP_DOWN
- ConstantGNOME_STOCK_PIXMAP_EXEC
constant
GTK2.GNOME_STOCK_PIXMAP_EXEC
- ConstantGNOME_STOCK_PIXMAP_EXIT
constant
GTK2.GNOME_STOCK_PIXMAP_EXIT
- ConstantGNOME_STOCK_PIXMAP_FIRST
constant
GTK2.GNOME_STOCK_PIXMAP_FIRST
- ConstantGNOME_STOCK_PIXMAP_FOCUSED
constant
GTK2.GNOME_STOCK_PIXMAP_FOCUSED
- ConstantGNOME_STOCK_PIXMAP_FONT
constant
GTK2.GNOME_STOCK_PIXMAP_FONT
- ConstantGNOME_STOCK_PIXMAP_FORWARD
constant
GTK2.GNOME_STOCK_PIXMAP_FORWARD
- ConstantGNOME_STOCK_PIXMAP_HELP
constant
GTK2.GNOME_STOCK_PIXMAP_HELP
- ConstantGNOME_STOCK_PIXMAP_HOME
constant
GTK2.GNOME_STOCK_PIXMAP_HOME
- ConstantGNOME_STOCK_PIXMAP_INDEX
constant
GTK2.GNOME_STOCK_PIXMAP_INDEX
- ConstantGNOME_STOCK_PIXMAP_JUMP_TO
constant
GTK2.GNOME_STOCK_PIXMAP_JUMP_TO
- ConstantGNOME_STOCK_PIXMAP_LAST
constant
GTK2.GNOME_STOCK_PIXMAP_LAST
- ConstantGNOME_STOCK_PIXMAP_LINE_IN
constant
GTK2.GNOME_STOCK_PIXMAP_LINE_IN
- ConstantGNOME_STOCK_PIXMAP_MAIL
constant
GTK2.GNOME_STOCK_PIXMAP_MAIL
- ConstantGNOME_STOCK_PIXMAP_MAIL_FWD
constant
GTK2.GNOME_STOCK_PIXMAP_MAIL_FWD
- ConstantGNOME_STOCK_PIXMAP_MAIL_NEW
constant
GTK2.GNOME_STOCK_PIXMAP_MAIL_NEW
- ConstantGNOME_STOCK_PIXMAP_MAIL_RCV
constant
GTK2.GNOME_STOCK_PIXMAP_MAIL_RCV
- ConstantGNOME_STOCK_PIXMAP_MAIL_RPL
constant
GTK2.GNOME_STOCK_PIXMAP_MAIL_RPL
- ConstantGNOME_STOCK_PIXMAP_MAIL_SND
constant
GTK2.GNOME_STOCK_PIXMAP_MAIL_SND
- ConstantGNOME_STOCK_PIXMAP_MIC
constant
GTK2.GNOME_STOCK_PIXMAP_MIC
- ConstantGNOME_STOCK_PIXMAP_MIDI
constant
GTK2.GNOME_STOCK_PIXMAP_MIDI
- ConstantGNOME_STOCK_PIXMAP_MULTIPLE
constant
GTK2.GNOME_STOCK_PIXMAP_MULTIPLE
- ConstantGNOME_STOCK_PIXMAP_NEW
constant
GTK2.GNOME_STOCK_PIXMAP_NEW
- ConstantGNOME_STOCK_PIXMAP_NOT
constant
GTK2.GNOME_STOCK_PIXMAP_NOT
- ConstantGNOME_STOCK_PIXMAP_OPEN
constant
GTK2.GNOME_STOCK_PIXMAP_OPEN
- ConstantGNOME_STOCK_PIXMAP_PASTE
constant
GTK2.GNOME_STOCK_PIXMAP_PASTE
- ConstantGNOME_STOCK_PIXMAP_PREFERENCES
constant
GTK2.GNOME_STOCK_PIXMAP_PREFERENCES
- ConstantGNOME_STOCK_PIXMAP_PRINT
constant
GTK2.GNOME_STOCK_PIXMAP_PRINT
- ConstantGNOME_STOCK_PIXMAP_PROPERTIES
constant
GTK2.GNOME_STOCK_PIXMAP_PROPERTIES
- ConstantGNOME_STOCK_PIXMAP_QUIT
constant
GTK2.GNOME_STOCK_PIXMAP_QUIT
- ConstantGNOME_STOCK_PIXMAP_REDO
constant
GTK2.GNOME_STOCK_PIXMAP_REDO
- ConstantGNOME_STOCK_PIXMAP_REFRESH
constant
GTK2.GNOME_STOCK_PIXMAP_REFRESH
- ConstantGNOME_STOCK_PIXMAP_REGULAR
constant
GTK2.GNOME_STOCK_PIXMAP_REGULAR
- ConstantGNOME_STOCK_PIXMAP_REMOVE
constant
GTK2.GNOME_STOCK_PIXMAP_REMOVE
- ConstantGNOME_STOCK_PIXMAP_REVERT
constant
GTK2.GNOME_STOCK_PIXMAP_REVERT
- ConstantGNOME_STOCK_PIXMAP_SAVE
constant
GTK2.GNOME_STOCK_PIXMAP_SAVE
- ConstantGNOME_STOCK_PIXMAP_SAVE_AS
constant
GTK2.GNOME_STOCK_PIXMAP_SAVE_AS
- ConstantGNOME_STOCK_PIXMAP_SCORES
constant
GTK2.GNOME_STOCK_PIXMAP_SCORES
- ConstantGNOME_STOCK_PIXMAP_SEARCH
constant
GTK2.GNOME_STOCK_PIXMAP_SEARCH
- ConstantGNOME_STOCK_PIXMAP_SPELLCHECK
constant
GTK2.GNOME_STOCK_PIXMAP_SPELLCHECK
- ConstantGNOME_STOCK_PIXMAP_SRCHRPL
constant
GTK2.GNOME_STOCK_PIXMAP_SRCHRPL
- ConstantGNOME_STOCK_PIXMAP_STOP
constant
GTK2.GNOME_STOCK_PIXMAP_STOP
- ConstantGNOME_STOCK_PIXMAP_TABLE_BORDERS
constant
GTK2.GNOME_STOCK_PIXMAP_TABLE_BORDERS
- ConstantGNOME_STOCK_PIXMAP_TABLE_FILL
constant
GTK2.GNOME_STOCK_PIXMAP_TABLE_FILL
- ConstantGNOME_STOCK_PIXMAP_TEXT_BOLD
constant
GTK2.GNOME_STOCK_PIXMAP_TEXT_BOLD
- ConstantGNOME_STOCK_PIXMAP_TEXT_BULLETED_LIST
constant
GTK2.GNOME_STOCK_PIXMAP_TEXT_BULLETED_LIST
- ConstantGNOME_STOCK_PIXMAP_TEXT_INDENT
constant
GTK2.GNOME_STOCK_PIXMAP_TEXT_INDENT
- ConstantGNOME_STOCK_PIXMAP_TEXT_ITALIC
constant
GTK2.GNOME_STOCK_PIXMAP_TEXT_ITALIC
- ConstantGNOME_STOCK_PIXMAP_TEXT_NUMBERED_LIST
constant
GTK2.GNOME_STOCK_PIXMAP_TEXT_NUMBERED_LIST
- ConstantGNOME_STOCK_PIXMAP_TEXT_STRIKEOUT
constant
GTK2.GNOME_STOCK_PIXMAP_TEXT_STRIKEOUT
- ConstantGNOME_STOCK_PIXMAP_TEXT_UNDERLINE
constant
GTK2.GNOME_STOCK_PIXMAP_TEXT_UNDERLINE
- ConstantGNOME_STOCK_PIXMAP_TEXT_UNINDENT
constant
GTK2.GNOME_STOCK_PIXMAP_TEXT_UNINDENT
- ConstantGNOME_STOCK_PIXMAP_TIMER
constant
GTK2.GNOME_STOCK_PIXMAP_TIMER
- ConstantGNOME_STOCK_PIXMAP_TIMER_STOP
constant
GTK2.GNOME_STOCK_PIXMAP_TIMER_STOP
- ConstantGNOME_STOCK_PIXMAP_TOP
constant
GTK2.GNOME_STOCK_PIXMAP_TOP
- ConstantGNOME_STOCK_PIXMAP_TRASH
constant
GTK2.GNOME_STOCK_PIXMAP_TRASH
- ConstantGNOME_STOCK_PIXMAP_TRASH_FULL
constant
GTK2.GNOME_STOCK_PIXMAP_TRASH_FULL
- ConstantGNOME_STOCK_PIXMAP_TYPE_DATA
constant
GTK2.GNOME_STOCK_PIXMAP_TYPE_DATA
- ConstantGNOME_STOCK_PIXMAP_TYPE_FILE
constant
GTK2.GNOME_STOCK_PIXMAP_TYPE_FILE
- ConstantGNOME_STOCK_PIXMAP_TYPE_GPIXMAP
constant
GTK2.GNOME_STOCK_PIXMAP_TYPE_GPIXMAP
- ConstantGNOME_STOCK_PIXMAP_TYPE_IMLIB
constant
GTK2.GNOME_STOCK_PIXMAP_TYPE_IMLIB
- ConstantGNOME_STOCK_PIXMAP_TYPE_IMLIB_SCALED
constant
GTK2.GNOME_STOCK_PIXMAP_TYPE_IMLIB_SCALED
- ConstantGNOME_STOCK_PIXMAP_TYPE_NONE
constant
GTK2.GNOME_STOCK_PIXMAP_TYPE_NONE
- ConstantGNOME_STOCK_PIXMAP_TYPE_PATH
constant
GTK2.GNOME_STOCK_PIXMAP_TYPE_PATH
- ConstantGNOME_STOCK_PIXMAP_TYPE_WIDGET
constant
GTK2.GNOME_STOCK_PIXMAP_TYPE_WIDGET
- ConstantGNOME_STOCK_PIXMAP_UNDELETE
constant
GTK2.GNOME_STOCK_PIXMAP_UNDELETE
- ConstantGNOME_STOCK_PIXMAP_UNDO
constant
GTK2.GNOME_STOCK_PIXMAP_UNDO
- ConstantGNOME_STOCK_PIXMAP_UP
constant
GTK2.GNOME_STOCK_PIXMAP_UP
- ConstantGNOME_STOCK_PIXMAP_VOLUME
constant
GTK2.GNOME_STOCK_PIXMAP_VOLUME
- ConstantHAS_DEFAULT
constant
GTK2.HAS_DEFAULT
- ConstantHAS_FOCUS
constant
GTK2.HAS_FOCUS
- ConstantHAS_GRAB
constant
GTK2.HAS_GRAB
- ConstantICON_LOOKUP_FORCE_SVG
constant
GTK2.ICON_LOOKUP_FORCE_SVG
- ConstantICON_LOOKUP_NO_SVG
constant
GTK2.ICON_LOOKUP_NO_SVG
- ConstantICON_LOOKUP_USE_BUILTIN
constant
GTK2.ICON_LOOKUP_USE_BUILTIN
- ConstantICON_SIZE_BUTTON
constant
GTK2.ICON_SIZE_BUTTON
- ConstantICON_SIZE_DIALOG
constant
GTK2.ICON_SIZE_DIALOG
- ConstantICON_SIZE_DND
constant
GTK2.ICON_SIZE_DND
- ConstantICON_SIZE_INVALID
constant
GTK2.ICON_SIZE_INVALID
- ConstantICON_SIZE_LARGE_TOOLBAR
constant
GTK2.ICON_SIZE_LARGE_TOOLBAR
- ConstantICON_SIZE_MENU
constant
GTK2.ICON_SIZE_MENU
- ConstantICON_SIZE_SMALL_TOOLBAR
constant
GTK2.ICON_SIZE_SMALL_TOOLBAR
- ConstantICON_THEME_FAILED
constant
GTK2.ICON_THEME_FAILED
- ConstantICON_THEME_NOT_FOUND
constant
GTK2.ICON_THEME_NOT_FOUND
- ConstantIMAGE_ANIMATION
constant
GTK2.IMAGE_ANIMATION
- ConstantIMAGE_EMPTY
constant
GTK2.IMAGE_EMPTY
- ConstantIMAGE_ICON_NAME
constant
GTK2.IMAGE_ICON_NAME
- ConstantIMAGE_ICON_SET
constant
GTK2.IMAGE_ICON_SET
- ConstantIMAGE_IMAGE
constant
GTK2.IMAGE_IMAGE
- ConstantIMAGE_PIXBUF
constant
GTK2.IMAGE_PIXBUF
- ConstantIMAGE_PIXMAP
constant
GTK2.IMAGE_PIXMAP
- ConstantIMAGE_STOCK
constant
GTK2.IMAGE_STOCK
- ConstantIM_PREEDIT_CALLBACK
constant
GTK2.IM_PREEDIT_CALLBACK
- ConstantIM_PREEDIT_NONE
constant
GTK2.IM_PREEDIT_NONE
- ConstantIM_PREEDIT_NOTHING
constant
GTK2.IM_PREEDIT_NOTHING
- ConstantIM_STATUS_CALLBACK
constant
GTK2.IM_STATUS_CALLBACK
- ConstantIM_STATUS_NONE
constant
GTK2.IM_STATUS_NONE
- ConstantIM_STATUS_NOTHING
constant
GTK2.IM_STATUS_NOTHING
- ConstantINCHES
constant
GTK2.INCHES
- ConstantIN_DESTRUCTION
constant
GTK2.IN_DESTRUCTION
- ConstantJUSTIFY_CENTER
constant
GTK2.JUSTIFY_CENTER
- ConstantJUSTIFY_FILL
constant
GTK2.JUSTIFY_FILL
- ConstantJUSTIFY_LEFT
constant
GTK2.JUSTIFY_LEFT
- ConstantJUSTIFY_RIGHT
constant
GTK2.JUSTIFY_RIGHT
- ConstantMAJOR_VERSION
constant
GTK2.MAJOR_VERSION
- ConstantMAPPED
constant
GTK2.MAPPED
- ConstantMENU_DIR_CHILD
constant
GTK2.MENU_DIR_CHILD
- ConstantMENU_DIR_NEXT
constant
GTK2.MENU_DIR_NEXT
- ConstantMENU_DIR_PARENT
constant
GTK2.MENU_DIR_PARENT
- ConstantMENU_DIR_PREV
constant
GTK2.MENU_DIR_PREV
- ConstantMESSAGE_ERROR
constant
GTK2.MESSAGE_ERROR
- ConstantMESSAGE_INFO
constant
GTK2.MESSAGE_INFO
- ConstantMESSAGE_QUESTION
constant
GTK2.MESSAGE_QUESTION
- ConstantMESSAGE_WARNING
constant
GTK2.MESSAGE_WARNING
- ConstantMICRO_VERSION
constant
GTK2.MICRO_VERSION
- ConstantMINOR_VERSION
constant
GTK2.MINOR_VERSION
- ConstantMOVEMENT_BUFFER_ENDS
constant
GTK2.MOVEMENT_BUFFER_ENDS
- ConstantMOVEMENT_DISPLAY_LINES
constant
GTK2.MOVEMENT_DISPLAY_LINES
- ConstantMOVEMENT_DISPLAY_LINE_ENDS
constant
GTK2.MOVEMENT_DISPLAY_LINE_ENDS
- ConstantMOVEMENT_HORIZONTAL_PAGES
constant
GTK2.MOVEMENT_HORIZONTAL_PAGES
- ConstantMOVEMENT_LOGICAL_POSITIONS
constant
GTK2.MOVEMENT_LOGICAL_POSITIONS
- ConstantMOVEMENT_PAGES
constant
GTK2.MOVEMENT_PAGES
- ConstantMOVEMENT_PARAGRAPHS
constant
GTK2.MOVEMENT_PARAGRAPHS
- ConstantMOVEMENT_PARAGRAPH_ENDS
constant
GTK2.MOVEMENT_PARAGRAPH_ENDS
- ConstantMOVEMENT_VISUAL_POSITIONS
constant
GTK2.MOVEMENT_VISUAL_POSITIONS
- ConstantMOVEMENT_WORDS
constant
GTK2.MOVEMENT_WORDS
- ConstantNO_REPARENT
constant
GTK2.NO_REPARENT
- ConstantNO_SHOW_ALL
constant
GTK2.NO_SHOW_ALL
- ConstantNO_WINDOW
constant
GTK2.NO_WINDOW
- ConstantORIENTATION_HORIZONTAL
constant
GTK2.ORIENTATION_HORIZONTAL
- ConstantORIENTATION_VERTICAL
constant
GTK2.ORIENTATION_VERTICAL
- ConstantPACK_DIRECTION_BTT
constant
GTK2.PACK_DIRECTION_BTT
- ConstantPACK_DIRECTION_LTR
constant
GTK2.PACK_DIRECTION_LTR
- ConstantPACK_DIRECTION_RTL
constant
GTK2.PACK_DIRECTION_RTL
- ConstantPACK_DIRECTION_TTB
constant
GTK2.PACK_DIRECTION_TTB
- ConstantPACK_END
constant
GTK2.PACK_END
- ConstantPACK_START
constant
GTK2.PACK_START
- ConstantPAGE_ORIENTATION_LANDSCAPE
constant
GTK2.PAGE_ORIENTATION_LANDSCAPE
- ConstantPAGE_ORIENTATION_PORTRAIT
constant
GTK2.PAGE_ORIENTATION_PORTRAIT
- ConstantPAGE_ORIENTATION_REVERSE_LANDSCAPE
constant
GTK2.PAGE_ORIENTATION_REVERSE_LANDSCAPE
- ConstantPAGE_ORIENTATION_REVERSE_PORTRAIT
constant
GTK2.PAGE_ORIENTATION_REVERSE_PORTRAIT
- ConstantPAGE_SET_ALL
constant
GTK2.PAGE_SET_ALL
- ConstantPAGE_SET_EVEN
constant
GTK2.PAGE_SET_EVEN
- ConstantPAGE_SET_ODD
constant
GTK2.PAGE_SET_ODD
- ConstantPANGO_ALIGN_CENTER
constant
GTK2.PANGO_ALIGN_CENTER
- ConstantPANGO_ALIGN_LEFT
constant
GTK2.PANGO_ALIGN_LEFT
- ConstantPANGO_ALIGN_RIGHT
constant
GTK2.PANGO_ALIGN_RIGHT
- ConstantPANGO_ATTR_BACKGROUND
constant
GTK2.PANGO_ATTR_BACKGROUND
- ConstantPANGO_ATTR_FALLBACK
constant
GTK2.PANGO_ATTR_FALLBACK
- ConstantPANGO_ATTR_FAMILY
constant
GTK2.PANGO_ATTR_FAMILY
- ConstantPANGO_ATTR_FONT_DESC
constant
GTK2.PANGO_ATTR_FONT_DESC
- ConstantPANGO_ATTR_FOREGROUND
constant
GTK2.PANGO_ATTR_FOREGROUND
- ConstantPANGO_ATTR_INVALID
constant
GTK2.PANGO_ATTR_INVALID
- ConstantPANGO_ATTR_LANGUAGE
constant
GTK2.PANGO_ATTR_LANGUAGE
- ConstantPANGO_ATTR_LETTER_SPACING
constant
GTK2.PANGO_ATTR_LETTER_SPACING
- ConstantPANGO_ATTR_RISE
constant
GTK2.PANGO_ATTR_RISE
- ConstantPANGO_ATTR_SCALE
constant
GTK2.PANGO_ATTR_SCALE
- ConstantPANGO_ATTR_SHAPE
constant
GTK2.PANGO_ATTR_SHAPE
- ConstantPANGO_ATTR_SIZE
constant
GTK2.PANGO_ATTR_SIZE
- ConstantPANGO_ATTR_STRETCH
constant
GTK2.PANGO_ATTR_STRETCH
- ConstantPANGO_ATTR_STRIKETHROUGH
constant
GTK2.PANGO_ATTR_STRIKETHROUGH
- ConstantPANGO_ATTR_STYLE
constant
GTK2.PANGO_ATTR_STYLE
- ConstantPANGO_ATTR_UNDERLINE
constant
GTK2.PANGO_ATTR_UNDERLINE
- ConstantPANGO_ATTR_VARIANT
constant
GTK2.PANGO_ATTR_VARIANT
- ConstantPANGO_ATTR_WEIGHT
constant
GTK2.PANGO_ATTR_WEIGHT
- ConstantPANGO_ELLIPSIZE_END
constant
GTK2.PANGO_ELLIPSIZE_END
- ConstantPANGO_ELLIPSIZE_MIDDLE
constant
GTK2.PANGO_ELLIPSIZE_MIDDLE
- ConstantPANGO_ELLIPSIZE_NONE
constant
GTK2.PANGO_ELLIPSIZE_NONE
- ConstantPANGO_ELLIPSIZE_START
constant
GTK2.PANGO_ELLIPSIZE_START
- ConstantPANGO_FONT_MASK_FAMILY
constant
GTK2.PANGO_FONT_MASK_FAMILY
- ConstantPANGO_FONT_MASK_SIZE
constant
GTK2.PANGO_FONT_MASK_SIZE
- ConstantPANGO_FONT_MASK_STRETCH
constant
GTK2.PANGO_FONT_MASK_STRETCH
- ConstantPANGO_FONT_MASK_STYLE
constant
GTK2.PANGO_FONT_MASK_STYLE
- ConstantPANGO_FONT_MASK_VARIANT
constant
GTK2.PANGO_FONT_MASK_VARIANT
- ConstantPANGO_FONT_MASK_WEIGHT
constant
GTK2.PANGO_FONT_MASK_WEIGHT
- ConstantPANGO_SCALE
constant
GTK2.PANGO_SCALE
- ConstantPANGO_SCALE_LARGE
constant
GTK2.PANGO_SCALE_LARGE
- ConstantPANGO_SCALE_MEDIUM
constant
GTK2.PANGO_SCALE_MEDIUM
- ConstantPANGO_SCALE_SMALL
constant
GTK2.PANGO_SCALE_SMALL
- ConstantPANGO_SCALE_XX_LARGE
constant
GTK2.PANGO_SCALE_XX_LARGE
- ConstantPANGO_SCALE_XX_SMALL
constant
GTK2.PANGO_SCALE_XX_SMALL
- ConstantPANGO_SCALE_X_LARGE
constant
GTK2.PANGO_SCALE_X_LARGE
- ConstantPANGO_SCALE_X_SMALL
constant
GTK2.PANGO_SCALE_X_SMALL
- ConstantPANGO_STRETCH_CONDENSED
constant
GTK2.PANGO_STRETCH_CONDENSED
- ConstantPANGO_STRETCH_EXPANDED
constant
GTK2.PANGO_STRETCH_EXPANDED
- ConstantPANGO_STRETCH_EXTRA_CONDENSED
constant
GTK2.PANGO_STRETCH_EXTRA_CONDENSED
- ConstantPANGO_STRETCH_EXTRA_EXPANDED
constant
GTK2.PANGO_STRETCH_EXTRA_EXPANDED
- ConstantPANGO_STRETCH_NORMAL
constant
GTK2.PANGO_STRETCH_NORMAL
- ConstantPANGO_STRETCH_SEMI_CONDENSED
constant
GTK2.PANGO_STRETCH_SEMI_CONDENSED
- ConstantPANGO_STRETCH_SEMI_EXPANDED
constant
GTK2.PANGO_STRETCH_SEMI_EXPANDED
- ConstantPANGO_STRETCH_ULTRA_CONDENSED
constant
GTK2.PANGO_STRETCH_ULTRA_CONDENSED
- ConstantPANGO_STRETCH_ULTRA_EXPANDED
constant
GTK2.PANGO_STRETCH_ULTRA_EXPANDED
- ConstantPANGO_STYLE_ITALIC
constant
GTK2.PANGO_STYLE_ITALIC
- ConstantPANGO_STYLE_NORMAL
constant
GTK2.PANGO_STYLE_NORMAL
- ConstantPANGO_STYLE_OBLIQUE
constant
GTK2.PANGO_STYLE_OBLIQUE
- ConstantPANGO_TAB_LEFT
constant
GTK2.PANGO_TAB_LEFT
- ConstantPANGO_UNDERLINE_DOUBLE
constant
GTK2.PANGO_UNDERLINE_DOUBLE
- ConstantPANGO_UNDERLINE_ERROR
constant
GTK2.PANGO_UNDERLINE_ERROR
- ConstantPANGO_UNDERLINE_LOW
constant
GTK2.PANGO_UNDERLINE_LOW
- ConstantPANGO_UNDERLINE_NONE
constant
GTK2.PANGO_UNDERLINE_NONE
- ConstantPANGO_UNDERLINE_SINGLE
constant
GTK2.PANGO_UNDERLINE_SINGLE
- ConstantPANGO_VARIANT_NORMAL
constant
GTK2.PANGO_VARIANT_NORMAL
- ConstantPANGO_VARIANT_SMALL_CAPS
constant
GTK2.PANGO_VARIANT_SMALL_CAPS
- ConstantPANGO_WEIGHT_BOLD
constant
GTK2.PANGO_WEIGHT_BOLD
- ConstantPANGO_WEIGHT_HEAVY
constant
GTK2.PANGO_WEIGHT_HEAVY
- ConstantPANGO_WEIGHT_LIGHT
constant
GTK2.PANGO_WEIGHT_LIGHT
- ConstantPANGO_WEIGHT_NORMAL
constant
GTK2.PANGO_WEIGHT_NORMAL
- ConstantPANGO_WEIGHT_ULTRABOLD
constant
GTK2.PANGO_WEIGHT_ULTRABOLD
- ConstantPANGO_WEIGHT_ULTRALIGHT
constant
GTK2.PANGO_WEIGHT_ULTRALIGHT
- ConstantPANGO_WRAP_CHAR
constant
GTK2.PANGO_WRAP_CHAR
- ConstantPANGO_WRAP_WORD
constant
GTK2.PANGO_WRAP_WORD
- ConstantPANGO_WRAP_WORD_CHAR
constant
GTK2.PANGO_WRAP_WORD_CHAR
- ConstantPARENT_SENSITIVE
constant
GTK2.PARENT_SENSITIVE
- ConstantPATH_CLASS
constant
GTK2.PATH_CLASS
- ConstantPATH_PRIO_APPLICATION
constant
GTK2.PATH_PRIO_APPLICATION
- ConstantPATH_PRIO_GTK
constant
GTK2.PATH_PRIO_GTK
- ConstantPATH_PRIO_HIGHEST
constant
GTK2.PATH_PRIO_HIGHEST
- ConstantPATH_PRIO_LOWEST
constant
GTK2.PATH_PRIO_LOWEST
- ConstantPATH_PRIO_RC
constant
GTK2.PATH_PRIO_RC
- ConstantPATH_PRIO_THEME
constant
GTK2.PATH_PRIO_THEME
- ConstantPATH_WIDGET
constant
GTK2.PATH_WIDGET
- ConstantPATH_WIDGET_CLASS
constant
GTK2.PATH_WIDGET_CLASS
- ConstantPIXELS
constant
GTK2.PIXELS
- ConstantPOLICY_ALWAYS
constant
GTK2.POLICY_ALWAYS
- ConstantPOLICY_AUTOMATIC
constant
GTK2.POLICY_AUTOMATIC
- ConstantPOLICY_NEVER
constant
GTK2.POLICY_NEVER
- ConstantPOS_BOTTOM
constant
GTK2.POS_BOTTOM
- ConstantPOS_LEFT
constant
GTK2.POS_LEFT
- ConstantPOS_RIGHT
constant
GTK2.POS_RIGHT
- ConstantPOS_TOP
constant
GTK2.POS_TOP
- ConstantPRINT_DUPLEX_HORIZONTAL
constant
GTK2.PRINT_DUPLEX_HORIZONTAL
- ConstantPRINT_DUPLEX_SIMPLEX
constant
GTK2.PRINT_DUPLEX_SIMPLEX
- ConstantPRINT_DUPLEX_VERTICAL
constant
GTK2.PRINT_DUPLEX_VERTICAL
- ConstantPRINT_ERROR_GENERAL
constant
GTK2.PRINT_ERROR_GENERAL
- ConstantPRINT_ERROR_INTERNAL_ERROR
constant
GTK2.PRINT_ERROR_INTERNAL_ERROR
- ConstantPRINT_ERROR_NOMEM
constant
GTK2.PRINT_ERROR_NOMEM
- ConstantPRINT_OPERATION_ACTION_EXPORT
constant
GTK2.PRINT_OPERATION_ACTION_EXPORT
- ConstantPRINT_OPERATION_ACTION_PREVIEW
constant
GTK2.PRINT_OPERATION_ACTION_PREVIEW
- ConstantPRINT_OPERATION_ACTION_PRINT
constant
GTK2.PRINT_OPERATION_ACTION_PRINT
- ConstantPRINT_OPERATION_ACTION_PRINT_DIALOG
constant
GTK2.PRINT_OPERATION_ACTION_PRINT_DIALOG
- ConstantPRINT_OPERATION_RESULT_APPLY
constant
GTK2.PRINT_OPERATION_RESULT_APPLY
- ConstantPRINT_OPERATION_RESULT_CANCEL
constant
GTK2.PRINT_OPERATION_RESULT_CANCEL
- ConstantPRINT_OPERATION_RESULT_ERROR
constant
GTK2.PRINT_OPERATION_RESULT_ERROR
- ConstantPRINT_OPERATION_RESULT_IN_PROGRESS
constant
GTK2.PRINT_OPERATION_RESULT_IN_PROGRESS
- ConstantPRINT_PAGES_ALL
constant
GTK2.PRINT_PAGES_ALL
- ConstantPRINT_PAGES_CURRENT
constant
GTK2.PRINT_PAGES_CURRENT
- ConstantPRINT_PAGES_RANGES
constant
GTK2.PRINT_PAGES_RANGES
- ConstantPRINT_QUALITY_DRAFT
constant
GTK2.PRINT_QUALITY_DRAFT
- ConstantPRINT_QUALITY_HIGH
constant
GTK2.PRINT_QUALITY_HIGH
- ConstantPRINT_QUALITY_LOW
constant
GTK2.PRINT_QUALITY_LOW
- ConstantPRINT_QUALITY_NORMAL
constant
GTK2.PRINT_QUALITY_NORMAL
- ConstantPRINT_SETTINGS_COLLATE
constant
GTK2.PRINT_SETTINGS_COLLATE
- ConstantPRINT_SETTINGS_DEFAULT_SOURCE
constant
GTK2.PRINT_SETTINGS_DEFAULT_SOURCE
- ConstantPRINT_SETTINGS_DITHER
constant
GTK2.PRINT_SETTINGS_DITHER
- ConstantPRINT_SETTINGS_DUPLEX
constant
GTK2.PRINT_SETTINGS_DUPLEX
- ConstantPRINT_SETTINGS_FINISHINGS
constant
GTK2.PRINT_SETTINGS_FINISHINGS
- ConstantPRINT_SETTINGS_MEDIA_TYPE
constant
GTK2.PRINT_SETTINGS_MEDIA_TYPE
- ConstantPRINT_SETTINGS_NUMBER_UP
constant
GTK2.PRINT_SETTINGS_NUMBER_UP
- ConstantPRINT_SETTINGS_N_COPIES
constant
GTK2.PRINT_SETTINGS_N_COPIES
- ConstantPRINT_SETTINGS_ORIENTATION
constant
GTK2.PRINT_SETTINGS_ORIENTATION
- ConstantPRINT_SETTINGS_OUTPUT_BIN
constant
GTK2.PRINT_SETTINGS_OUTPUT_BIN
- ConstantPRINT_SETTINGS_OUTPUT_FILE_FORMAT
constant
GTK2.PRINT_SETTINGS_OUTPUT_FILE_FORMAT
- ConstantPRINT_SETTINGS_OUTPUT_URI
constant
GTK2.PRINT_SETTINGS_OUTPUT_URI
- ConstantPRINT_SETTINGS_PAGE_RANGES
constant
GTK2.PRINT_SETTINGS_PAGE_RANGES
- ConstantPRINT_SETTINGS_PAGE_SET
constant
GTK2.PRINT_SETTINGS_PAGE_SET
- ConstantPRINT_SETTINGS_PAPER_FORMAT
constant
GTK2.PRINT_SETTINGS_PAPER_FORMAT
- ConstantPRINT_SETTINGS_PAPER_HEIGHT
constant
GTK2.PRINT_SETTINGS_PAPER_HEIGHT
- ConstantPRINT_SETTINGS_PAPER_WIDTH
constant
GTK2.PRINT_SETTINGS_PAPER_WIDTH
- ConstantPRINT_SETTINGS_PRINT_PAGES
constant
GTK2.PRINT_SETTINGS_PRINT_PAGES
- ConstantPRINT_SETTINGS_QUALITY
constant
GTK2.PRINT_SETTINGS_QUALITY
- ConstantPRINT_SETTINGS_RESOLUTION
constant
GTK2.PRINT_SETTINGS_RESOLUTION
- ConstantPRINT_SETTINGS_REVERSE
constant
GTK2.PRINT_SETTINGS_REVERSE
- ConstantPRINT_SETTINGS_SCALE
constant
GTK2.PRINT_SETTINGS_SCALE
- ConstantPRINT_SETTINGS_USE_COLOR
constant
GTK2.PRINT_SETTINGS_USE_COLOR
- ConstantPRINT_SETTINGS_WIN32_DRIVER_EXTRA
constant
GTK2.PRINT_SETTINGS_WIN32_DRIVER_EXTRA
- ConstantPRINT_SETTINGS_WIN32_DRIVER_VERSION
constant
GTK2.PRINT_SETTINGS_WIN32_DRIVER_VERSION
- ConstantPRINT_STATUS_FINISHED
constant
GTK2.PRINT_STATUS_FINISHED
- ConstantPRINT_STATUS_FINISHED_ABORTED
constant
GTK2.PRINT_STATUS_FINISHED_ABORTED
- ConstantPRINT_STATUS_GENERATING_DATA
constant
GTK2.PRINT_STATUS_GENERATING_DATA
- ConstantPRINT_STATUS_INITIAL
constant
GTK2.PRINT_STATUS_INITIAL
- ConstantPRINT_STATUS_PENDING
constant
GTK2.PRINT_STATUS_PENDING
- ConstantPRINT_STATUS_PENDING_ISSUE
constant
GTK2.PRINT_STATUS_PENDING_ISSUE
- ConstantPRINT_STATUS_PREPARING
constant
GTK2.PRINT_STATUS_PREPARING
- ConstantPRINT_STATUS_PRINTING
constant
GTK2.PRINT_STATUS_PRINTING
- ConstantPRINT_STATUS_SENDING_DATA
constant
GTK2.PRINT_STATUS_SENDING_DATA
- ConstantPROGRESS_BOTTOM_TO_TOP
constant
GTK2.PROGRESS_BOTTOM_TO_TOP
- ConstantPROGRESS_CONTINUOUS
constant
GTK2.PROGRESS_CONTINUOUS
- ConstantPROGRESS_DISCRETE
constant
GTK2.PROGRESS_DISCRETE
- ConstantPROGRESS_LEFT_TO_RIGHT
constant
GTK2.PROGRESS_LEFT_TO_RIGHT
- ConstantPROGRESS_RIGHT_TO_LEFT
constant
GTK2.PROGRESS_RIGHT_TO_LEFT
- ConstantPROGRESS_TOP_TO_BOTTOM
constant
GTK2.PROGRESS_TOP_TO_BOTTOM
- ConstantRC_BASE
constant
GTK2.RC_BASE
- ConstantRC_BG
constant
GTK2.RC_BG
- ConstantRC_FG
constant
GTK2.RC_FG
- ConstantRC_STYLE
constant
GTK2.RC_STYLE
- ConstantRC_TEXT
constant
GTK2.RC_TEXT
- ConstantRC_TOKEN_ACTIVE
constant
GTK2.RC_TOKEN_ACTIVE
- ConstantRC_TOKEN_APPLICATION
constant
GTK2.RC_TOKEN_APPLICATION
- ConstantRC_TOKEN_BASE
constant
GTK2.RC_TOKEN_BASE
- ConstantRC_TOKEN_BG
constant
GTK2.RC_TOKEN_BG
- ConstantRC_TOKEN_BG_PIXMAP
constant
GTK2.RC_TOKEN_BG_PIXMAP
- ConstantRC_TOKEN_BIND
constant
GTK2.RC_TOKEN_BIND
- ConstantRC_TOKEN_BINDING
constant
GTK2.RC_TOKEN_BINDING
- ConstantRC_TOKEN_CLASS
constant
GTK2.RC_TOKEN_CLASS
- ConstantRC_TOKEN_ENGINE
constant
GTK2.RC_TOKEN_ENGINE
- ConstantRC_TOKEN_FG
constant
GTK2.RC_TOKEN_FG
- ConstantRC_TOKEN_FONT
constant
GTK2.RC_TOKEN_FONT
- ConstantRC_TOKEN_FONTSET
constant
GTK2.RC_TOKEN_FONTSET
- ConstantRC_TOKEN_FONT_NAME
constant
GTK2.RC_TOKEN_FONT_NAME
- ConstantRC_TOKEN_GTK
constant
GTK2.RC_TOKEN_GTK
- ConstantRC_TOKEN_HIGHEST
constant
GTK2.RC_TOKEN_HIGHEST
- ConstantRC_TOKEN_IM_MODULE_FILE
constant
GTK2.RC_TOKEN_IM_MODULE_FILE
- ConstantRC_TOKEN_IM_MODULE_PATH
constant
GTK2.RC_TOKEN_IM_MODULE_PATH
- ConstantRC_TOKEN_INCLUDE
constant
GTK2.RC_TOKEN_INCLUDE
- ConstantRC_TOKEN_INSENSITIVE
constant
GTK2.RC_TOKEN_INSENSITIVE
- ConstantRC_TOKEN_INVALID
constant
GTK2.RC_TOKEN_INVALID
- ConstantRC_TOKEN_LAST
constant
GTK2.RC_TOKEN_LAST
- ConstantRC_TOKEN_LOWEST
constant
GTK2.RC_TOKEN_LOWEST
- ConstantRC_TOKEN_LTR
constant
GTK2.RC_TOKEN_LTR
- ConstantRC_TOKEN_MODULE_PATH
constant
GTK2.RC_TOKEN_MODULE_PATH
- ConstantRC_TOKEN_NORMAL
constant
GTK2.RC_TOKEN_NORMAL
- ConstantRC_TOKEN_PIXMAP_PATH
constant
GTK2.RC_TOKEN_PIXMAP_PATH
- ConstantRC_TOKEN_PRELIGHT
constant
GTK2.RC_TOKEN_PRELIGHT
- ConstantRC_TOKEN_RC
constant
GTK2.RC_TOKEN_RC
- ConstantRC_TOKEN_RTL
constant
GTK2.RC_TOKEN_RTL
- ConstantRC_TOKEN_SELECTED
constant
GTK2.RC_TOKEN_SELECTED
- ConstantRC_TOKEN_STOCK
constant
GTK2.RC_TOKEN_STOCK
- ConstantRC_TOKEN_STYLE
constant
GTK2.RC_TOKEN_STYLE
- ConstantRC_TOKEN_TEXT
constant
GTK2.RC_TOKEN_TEXT
- ConstantRC_TOKEN_THEME
constant
GTK2.RC_TOKEN_THEME
- ConstantRC_TOKEN_WIDGET
constant
GTK2.RC_TOKEN_WIDGET
- ConstantRC_TOKEN_WIDGET_CLASS
constant
GTK2.RC_TOKEN_WIDGET_CLASS
- ConstantRC_TOKEN_XTHICKNESS
constant
GTK2.RC_TOKEN_XTHICKNESS
- ConstantRC_TOKEN_YTHICKNESS
constant
GTK2.RC_TOKEN_YTHICKNESS
- ConstantREALIZED
constant
GTK2.REALIZED
- ConstantRECEIVES_DEFAULT
constant
GTK2.RECEIVES_DEFAULT
- ConstantRECENT_CHOOSER_ERROR_INVALID_URI
constant
GTK2.RECENT_CHOOSER_ERROR_INVALID_URI
- ConstantRECENT_CHOOSER_ERROR_NOT_FOUND
constant
GTK2.RECENT_CHOOSER_ERROR_NOT_FOUND
- ConstantRECENT_FILTER_AGE
constant
GTK2.RECENT_FILTER_AGE
- ConstantRECENT_FILTER_APPLICATION
constant
GTK2.RECENT_FILTER_APPLICATION
- ConstantRECENT_FILTER_DISPLAY_NAME
constant
GTK2.RECENT_FILTER_DISPLAY_NAME
- ConstantRECENT_FILTER_GROUP
constant
GTK2.RECENT_FILTER_GROUP
- ConstantRECENT_FILTER_MIME_TYPE
constant
GTK2.RECENT_FILTER_MIME_TYPE
- ConstantRECENT_FILTER_URI
constant
GTK2.RECENT_FILTER_URI
- ConstantRECENT_MANAGER_ERROR_INVALID_ENCODING
constant
GTK2.RECENT_MANAGER_ERROR_INVALID_ENCODING
- ConstantRECENT_MANAGER_ERROR_INVALID_URI
constant
GTK2.RECENT_MANAGER_ERROR_INVALID_URI
- ConstantRECENT_MANAGER_ERROR_NOT_FOUND
constant
GTK2.RECENT_MANAGER_ERROR_NOT_FOUND
- ConstantRECENT_MANAGER_ERROR_NOT_REGISTERED
constant
GTK2.RECENT_MANAGER_ERROR_NOT_REGISTERED
- ConstantRECENT_MANAGER_ERROR_READ
constant
GTK2.RECENT_MANAGER_ERROR_READ
- ConstantRECENT_MANAGER_ERROR_UNKNOWN
constant
GTK2.RECENT_MANAGER_ERROR_UNKNOWN
- ConstantRECENT_MANAGER_ERROR_WRITE
constant
GTK2.RECENT_MANAGER_ERROR_WRITE
- ConstantRECENT_SORT_CUSTOM
constant
GTK2.RECENT_SORT_CUSTOM
- ConstantRECENT_SORT_LRU
constant
GTK2.RECENT_SORT_LRU
- ConstantRECENT_SORT_MRU
constant
GTK2.RECENT_SORT_MRU
- ConstantRECENT_SORT_NONE
constant
GTK2.RECENT_SORT_NONE
- ConstantRELIEF_HALF
constant
GTK2.RELIEF_HALF
- ConstantRELIEF_NONE
constant
GTK2.RELIEF_NONE
- ConstantRELIEF_NORMAL
constant
GTK2.RELIEF_NORMAL
- ConstantRESERVED_1
constant
GTK2.RESERVED_1
- ConstantRESERVED_2
constant
GTK2.RESERVED_2
- ConstantRESIZE_IMMEDIATE
constant
GTK2.RESIZE_IMMEDIATE
- ConstantRESIZE_PARENT
constant
GTK2.RESIZE_PARENT
- ConstantRESIZE_QUEUE
constant
GTK2.RESIZE_QUEUE
- ConstantRESPONSE_ACCEPT
constant
GTK2.RESPONSE_ACCEPT
- ConstantRESPONSE_APPLY
constant
GTK2.RESPONSE_APPLY
- ConstantRESPONSE_CANCEL
constant
GTK2.RESPONSE_CANCEL
- ConstantRESPONSE_CLOSE
constant
GTK2.RESPONSE_CLOSE
- ConstantRESPONSE_DELETE_EVENT
constant
GTK2.RESPONSE_DELETE_EVENT
- ConstantRESPONSE_HELP
constant
GTK2.RESPONSE_HELP
- ConstantRESPONSE_NO
constant
GTK2.RESPONSE_NO
- ConstantRESPONSE_NONE
constant
GTK2.RESPONSE_NONE
- ConstantRESPONSE_OK
constant
GTK2.RESPONSE_OK
- ConstantRESPONSE_REJECT
constant
GTK2.RESPONSE_REJECT
- ConstantRESPONSE_YES
constant
GTK2.RESPONSE_YES
- ConstantSCROLL_END
constant
GTK2.SCROLL_END
- ConstantSCROLL_ENDS
constant
GTK2.SCROLL_ENDS
- ConstantSCROLL_HORIZONTAL_ENDS
constant
GTK2.SCROLL_HORIZONTAL_ENDS
- ConstantSCROLL_HORIZONTAL_PAGES
constant
GTK2.SCROLL_HORIZONTAL_PAGES
- ConstantSCROLL_HORIZONTAL_STEPS
constant
GTK2.SCROLL_HORIZONTAL_STEPS
- ConstantSCROLL_JUMP
constant
GTK2.SCROLL_JUMP
- ConstantSCROLL_NONE
constant
GTK2.SCROLL_NONE
- ConstantSCROLL_PAGES
constant
GTK2.SCROLL_PAGES
- ConstantSCROLL_PAGE_BACKWARD
constant
GTK2.SCROLL_PAGE_BACKWARD
- ConstantSCROLL_PAGE_DOWN
constant
GTK2.SCROLL_PAGE_DOWN
- ConstantSCROLL_PAGE_FORWARD
constant
GTK2.SCROLL_PAGE_FORWARD
- ConstantSCROLL_PAGE_LEFT
constant
GTK2.SCROLL_PAGE_LEFT
- ConstantSCROLL_PAGE_RIGHT
constant
GTK2.SCROLL_PAGE_RIGHT
- ConstantSCROLL_PAGE_UP
constant
GTK2.SCROLL_PAGE_UP
- ConstantSCROLL_START
constant
GTK2.SCROLL_START
- ConstantSCROLL_STEPS
constant
GTK2.SCROLL_STEPS
- ConstantSCROLL_STEP_BACKWARD
constant
GTK2.SCROLL_STEP_BACKWARD
- ConstantSCROLL_STEP_DOWN
constant
GTK2.SCROLL_STEP_DOWN
- ConstantSCROLL_STEP_FORWARD
constant
GTK2.SCROLL_STEP_FORWARD
- ConstantSCROLL_STEP_LEFT
constant
GTK2.SCROLL_STEP_LEFT
- ConstantSCROLL_STEP_RIGHT
constant
GTK2.SCROLL_STEP_RIGHT
- ConstantSCROLL_STEP_UP
constant
GTK2.SCROLL_STEP_UP
- ConstantSELECTION_BROWSE
constant
GTK2.SELECTION_BROWSE
- ConstantSELECTION_MULTIPLE
constant
GTK2.SELECTION_MULTIPLE
- ConstantSELECTION_NONE
constant
GTK2.SELECTION_NONE
- ConstantSELECTION_SINGLE
constant
GTK2.SELECTION_SINGLE
- ConstantSENSITIVE
constant
GTK2.SENSITIVE
- ConstantSENSITIVITY_AUTO
constant
GTK2.SENSITIVITY_AUTO
- ConstantSENSITIVITY_OFF
constant
GTK2.SENSITIVITY_OFF
- ConstantSENSITIVITY_ON
constant
GTK2.SENSITIVITY_ON
- ConstantSHADOW_ETCHED_IN
constant
GTK2.SHADOW_ETCHED_IN
- ConstantSHADOW_ETCHED_OUT
constant
GTK2.SHADOW_ETCHED_OUT
- ConstantSHADOW_IN
constant
GTK2.SHADOW_IN
- ConstantSHADOW_NONE
constant
GTK2.SHADOW_NONE
- ConstantSHADOW_OUT
constant
GTK2.SHADOW_OUT
- ConstantSHRINK
constant
GTK2.SHRINK
- ConstantSIZE_GROUP_BOTH
constant
GTK2.SIZE_GROUP_BOTH
- ConstantSIZE_GROUP_HORIZONTAL
constant
GTK2.SIZE_GROUP_HORIZONTAL
- ConstantSIZE_GROUP_NONE
constant
GTK2.SIZE_GROUP_NONE
- ConstantSIZE_GROUP_VERTICAL
constant
GTK2.SIZE_GROUP_VERTICAL
- ConstantSORT_ASCENDING
constant
GTK2.SORT_ASCENDING
- ConstantSORT_DESCENDING
constant
GTK2.SORT_DESCENDING
- ConstantSOURCE_SEARCH_CASE_INSENSITIVE
constant
GTK2.SOURCE_SEARCH_CASE_INSENSITIVE
- ConstantSOURCE_SEARCH_TEXT_ONLY
constant
GTK2.SOURCE_SEARCH_TEXT_ONLY
- ConstantSOURCE_SEARCH_VISIBLE_ONLY
constant
GTK2.SOURCE_SEARCH_VISIBLE_ONLY
- ConstantSPIN_END
constant
GTK2.SPIN_END
- ConstantSPIN_HOME
constant
GTK2.SPIN_HOME
- ConstantSPIN_PAGE_BACKWARD
constant
GTK2.SPIN_PAGE_BACKWARD
- ConstantSPIN_PAGE_FORWARD
constant
GTK2.SPIN_PAGE_FORWARD
- ConstantSPIN_STEP_BACKWARD
constant
GTK2.SPIN_STEP_BACKWARD
- ConstantSPIN_STEP_FORWARD
constant
GTK2.SPIN_STEP_FORWARD
- ConstantSPIN_USER_DEFINED
constant
GTK2.SPIN_USER_DEFINED
- ConstantSTATE_ACTIVE
constant
GTK2.STATE_ACTIVE
- ConstantSTATE_INSENSITIVE
constant
GTK2.STATE_INSENSITIVE
- ConstantSTATE_NORMAL
constant
GTK2.STATE_NORMAL
- ConstantSTATE_PRELIGHT
constant
GTK2.STATE_PRELIGHT
- ConstantSTATE_SELECTED
constant
GTK2.STATE_SELECTED
- ConstantSTOCK_ABOUT
constant
GTK2.STOCK_ABOUT
- ConstantSTOCK_ADD
constant
GTK2.STOCK_ADD
- ConstantSTOCK_APPLY
constant
GTK2.STOCK_APPLY
- ConstantSTOCK_BOLD
constant
GTK2.STOCK_BOLD
- ConstantSTOCK_CANCEL
constant
GTK2.STOCK_CANCEL
- ConstantSTOCK_CDROM
constant
GTK2.STOCK_CDROM
- ConstantSTOCK_CLEAR
constant
GTK2.STOCK_CLEAR
- ConstantSTOCK_CLOSE
constant
GTK2.STOCK_CLOSE
- ConstantSTOCK_COLOR_PICKER
constant
GTK2.STOCK_COLOR_PICKER
- ConstantSTOCK_CONNECT
constant
GTK2.STOCK_CONNECT
- ConstantSTOCK_CONVERT
constant
GTK2.STOCK_CONVERT
- ConstantSTOCK_COPY
constant
GTK2.STOCK_COPY
- ConstantSTOCK_CUT
constant
GTK2.STOCK_CUT
- ConstantSTOCK_DELETE
constant
GTK2.STOCK_DELETE
- ConstantSTOCK_DIALOG_AUTHENTICATION
constant
GTK2.STOCK_DIALOG_AUTHENTICATION
- ConstantSTOCK_DIALOG_ERROR
constant
GTK2.STOCK_DIALOG_ERROR
- ConstantSTOCK_DIALOG_INFO
constant
GTK2.STOCK_DIALOG_INFO
- ConstantSTOCK_DIALOG_QUESTION
constant
GTK2.STOCK_DIALOG_QUESTION
- ConstantSTOCK_DIALOG_WARNING
constant
GTK2.STOCK_DIALOG_WARNING
- ConstantSTOCK_DIRECTORY
constant
GTK2.STOCK_DIRECTORY
- ConstantSTOCK_DISCONNECT
constant
GTK2.STOCK_DISCONNECT
- ConstantSTOCK_DND
constant
GTK2.STOCK_DND
- ConstantSTOCK_DND_MULTIPLE
constant
GTK2.STOCK_DND_MULTIPLE
- ConstantSTOCK_EDIT
constant
GTK2.STOCK_EDIT
- ConstantSTOCK_EXECUTE
constant
GTK2.STOCK_EXECUTE
- ConstantSTOCK_FILE
constant
GTK2.STOCK_FILE
- ConstantSTOCK_FIND
constant
GTK2.STOCK_FIND
- ConstantSTOCK_FIND_AND_REPLACE
constant
GTK2.STOCK_FIND_AND_REPLACE
- ConstantSTOCK_FLOPPY
constant
GTK2.STOCK_FLOPPY
- ConstantSTOCK_FULLSCREEN
constant
GTK2.STOCK_FULLSCREEN
- ConstantSTOCK_GOTO_BOTTOM
constant
GTK2.STOCK_GOTO_BOTTOM
- ConstantSTOCK_GOTO_FIRST
constant
GTK2.STOCK_GOTO_FIRST
- ConstantSTOCK_GOTO_LAST
constant
GTK2.STOCK_GOTO_LAST
- ConstantSTOCK_GOTO_TOP
constant
GTK2.STOCK_GOTO_TOP
- ConstantSTOCK_GO_BACK
constant
GTK2.STOCK_GO_BACK
- ConstantSTOCK_GO_DOWN
constant
GTK2.STOCK_GO_DOWN
- ConstantSTOCK_GO_FORWARD
constant
GTK2.STOCK_GO_FORWARD
- ConstantSTOCK_GO_UP
constant
GTK2.STOCK_GO_UP
- ConstantSTOCK_HARDDISK
constant
GTK2.STOCK_HARDDISK
- ConstantSTOCK_HELP
constant
GTK2.STOCK_HELP
- ConstantSTOCK_HOME
constant
GTK2.STOCK_HOME
- ConstantSTOCK_INDENT
constant
GTK2.STOCK_INDENT
- ConstantSTOCK_INDEX
constant
GTK2.STOCK_INDEX
- ConstantSTOCK_INFO
constant
GTK2.STOCK_INFO
- ConstantSTOCK_ITALIC
constant
GTK2.STOCK_ITALIC
- ConstantSTOCK_JUMP_TO
constant
GTK2.STOCK_JUMP_TO
- ConstantSTOCK_JUSTIFY_CENTER
constant
GTK2.STOCK_JUSTIFY_CENTER
- ConstantSTOCK_JUSTIFY_FILL
constant
GTK2.STOCK_JUSTIFY_FILL
- ConstantSTOCK_JUSTIFY_LEFT
constant
GTK2.STOCK_JUSTIFY_LEFT
- ConstantSTOCK_JUSTIFY_RIGHT
constant
GTK2.STOCK_JUSTIFY_RIGHT
- ConstantSTOCK_LEAVE_FULLSCREEN
constant
GTK2.STOCK_LEAVE_FULLSCREEN
- ConstantSTOCK_MEDIA_FORWARD
constant
GTK2.STOCK_MEDIA_FORWARD
- ConstantSTOCK_MEDIA_NEXT
constant
GTK2.STOCK_MEDIA_NEXT
- ConstantSTOCK_MEDIA_PAUSE
constant
GTK2.STOCK_MEDIA_PAUSE
- ConstantSTOCK_MEDIA_PLAY
constant
GTK2.STOCK_MEDIA_PLAY
- ConstantSTOCK_MEDIA_PREVIOUS
constant
GTK2.STOCK_MEDIA_PREVIOUS
- ConstantSTOCK_MEDIA_RECORD
constant
GTK2.STOCK_MEDIA_RECORD
- ConstantSTOCK_MEDIA_REWIND
constant
GTK2.STOCK_MEDIA_REWIND
- ConstantSTOCK_MEDIA_STOP
constant
GTK2.STOCK_MEDIA_STOP
- ConstantSTOCK_MISSING_IMAGE
constant
GTK2.STOCK_MISSING_IMAGE
- ConstantSTOCK_NETWORK
constant
GTK2.STOCK_NETWORK
- ConstantSTOCK_NEW
constant
GTK2.STOCK_NEW
- ConstantSTOCK_NO
constant
GTK2.STOCK_NO
- ConstantSTOCK_OK
constant
GTK2.STOCK_OK
- ConstantSTOCK_OPEN
constant
GTK2.STOCK_OPEN
- ConstantSTOCK_PASTE
constant
GTK2.STOCK_PASTE
- ConstantSTOCK_PREFERENCES
constant
GTK2.STOCK_PREFERENCES
- ConstantSTOCK_PRINT
constant
GTK2.STOCK_PRINT
- ConstantSTOCK_PRINT_PREVIEW
constant
GTK2.STOCK_PRINT_PREVIEW
- ConstantSTOCK_PROPERTIES
constant
GTK2.STOCK_PROPERTIES
- ConstantSTOCK_QUIT
constant
GTK2.STOCK_QUIT
- ConstantSTOCK_REDO
constant
GTK2.STOCK_REDO
- ConstantSTOCK_REFRESH
constant
GTK2.STOCK_REFRESH
- ConstantSTOCK_REMOVE
constant
GTK2.STOCK_REMOVE
- ConstantSTOCK_REVERT_TO_SAVED
constant
GTK2.STOCK_REVERT_TO_SAVED
- ConstantSTOCK_SAVE
constant
GTK2.STOCK_SAVE
- ConstantSTOCK_SAVE_AS
constant
GTK2.STOCK_SAVE_AS
- ConstantSTOCK_SELECT_COLOR
constant
GTK2.STOCK_SELECT_COLOR
- ConstantSTOCK_SELECT_FONT
constant
GTK2.STOCK_SELECT_FONT
- ConstantSTOCK_SORT_ASCENDING
constant
GTK2.STOCK_SORT_ASCENDING
- ConstantSTOCK_SORT_DESCENDING
constant
GTK2.STOCK_SORT_DESCENDING
- ConstantSTOCK_SPELL_CHECK
constant
GTK2.STOCK_SPELL_CHECK
- ConstantSTOCK_STOP
constant
GTK2.STOCK_STOP
- ConstantSTOCK_STRIKETHROUGH
constant
GTK2.STOCK_STRIKETHROUGH
- ConstantSTOCK_UNDELETE
constant
GTK2.STOCK_UNDELETE
- ConstantSTOCK_UNDERLINE
constant
GTK2.STOCK_UNDERLINE
- ConstantSTOCK_UNDO
constant
GTK2.STOCK_UNDO
- ConstantSTOCK_UNINDENT
constant
GTK2.STOCK_UNINDENT
- ConstantSTOCK_YES
constant
GTK2.STOCK_YES
- ConstantSTOCK_ZOOM_100
constant
GTK2.STOCK_ZOOM_100
- ConstantSTOCK_ZOOM_FIT
constant
GTK2.STOCK_ZOOM_FIT
- ConstantSTOCK_ZOOM_IN
constant
GTK2.STOCK_ZOOM_IN
- ConstantSTOCK_ZOOM_OUT
constant
GTK2.STOCK_ZOOM_OUT
- ConstantTARGET_SAME_APP
constant
GTK2.TARGET_SAME_APP
- ConstantTARGET_SAME_WIDGET
constant
GTK2.TARGET_SAME_WIDGET
- ConstantTEXT_DIR_LTR
constant
GTK2.TEXT_DIR_LTR
- ConstantTEXT_DIR_NONE
constant
GTK2.TEXT_DIR_NONE
- ConstantTEXT_DIR_RTL
constant
GTK2.TEXT_DIR_RTL
- ConstantTEXT_SEARCH_TEXT_ONLY
constant
GTK2.TEXT_SEARCH_TEXT_ONLY
- ConstantTEXT_SEARCH_VISIBLE_ONLY
constant
GTK2.TEXT_SEARCH_VISIBLE_ONLY
- ConstantTEXT_WINDOW_BOTTOM
constant
GTK2.TEXT_WINDOW_BOTTOM
- ConstantTEXT_WINDOW_LEFT
constant
GTK2.TEXT_WINDOW_LEFT
- ConstantTEXT_WINDOW_PRIVATE
constant
GTK2.TEXT_WINDOW_PRIVATE
- ConstantTEXT_WINDOW_RIGHT
constant
GTK2.TEXT_WINDOW_RIGHT
- ConstantTEXT_WINDOW_TEXT
constant
GTK2.TEXT_WINDOW_TEXT
- ConstantTEXT_WINDOW_TOP
constant
GTK2.TEXT_WINDOW_TOP
- ConstantTEXT_WINDOW_WIDGET
constant
GTK2.TEXT_WINDOW_WIDGET
- ConstantTOOLBAR_BOTH
constant
GTK2.TOOLBAR_BOTH
- ConstantTOOLBAR_BOTH_HORIZ
constant
GTK2.TOOLBAR_BOTH_HORIZ
- ConstantTOOLBAR_ICONS
constant
GTK2.TOOLBAR_ICONS
- ConstantTOOLBAR_SPACE_EMPTY
constant
GTK2.TOOLBAR_SPACE_EMPTY
- ConstantTOOLBAR_SPACE_LINE
constant
GTK2.TOOLBAR_SPACE_LINE
- ConstantTOOLBAR_TEXT
constant
GTK2.TOOLBAR_TEXT
- ConstantTOPLEVEL
constant
GTK2.TOPLEVEL
- ConstantTREE_MODEL_ITERS_PERSIST
constant
GTK2.TREE_MODEL_ITERS_PERSIST
- ConstantTREE_MODEL_LIST_ONLY
constant
GTK2.TREE_MODEL_LIST_ONLY
- ConstantTREE_VIEW_COLUMN_AUTOSIZE
constant
GTK2.TREE_VIEW_COLUMN_AUTOSIZE
- ConstantTREE_VIEW_COLUMN_FIXED
constant
GTK2.TREE_VIEW_COLUMN_FIXED
- ConstantTREE_VIEW_COLUMN_GROW_ONLY
constant
GTK2.TREE_VIEW_COLUMN_GROW_ONLY
- ConstantTREE_VIEW_DROP_AFTER
constant
GTK2.TREE_VIEW_DROP_AFTER
- ConstantTREE_VIEW_DROP_BEFORE
constant
GTK2.TREE_VIEW_DROP_BEFORE
- ConstantTREE_VIEW_DROP_INTO_OR_AFTER
constant
GTK2.TREE_VIEW_DROP_INTO_OR_AFTER
- ConstantTREE_VIEW_DROP_INTO_OR_BEFORE
constant
GTK2.TREE_VIEW_DROP_INTO_OR_BEFORE
- ConstantTREE_VIEW_GRID_LINES_BOTH
constant
GTK2.TREE_VIEW_GRID_LINES_BOTH
- ConstantTREE_VIEW_GRID_LINES_HORIZONTAL
constant
GTK2.TREE_VIEW_GRID_LINES_HORIZONTAL
- ConstantTREE_VIEW_GRID_LINES_NONE
constant
GTK2.TREE_VIEW_GRID_LINES_NONE
- ConstantTREE_VIEW_GRID_LINES_VERTICAL
constant
GTK2.TREE_VIEW_GRID_LINES_VERTICAL
- ConstantTRUE
constant
GTK2.TRUE
- ConstantUI_MANAGER_ACCELERATOR
constant
GTK2.UI_MANAGER_ACCELERATOR
- ConstantUI_MANAGER_AUTO
constant
GTK2.UI_MANAGER_AUTO
- ConstantUI_MANAGER_MENU
constant
GTK2.UI_MANAGER_MENU
- ConstantUI_MANAGER_MENUBAR
constant
GTK2.UI_MANAGER_MENUBAR
- ConstantUI_MANAGER_MENUITEM
constant
GTK2.UI_MANAGER_MENUITEM
- ConstantUI_MANAGER_PLACEHOLDER
constant
GTK2.UI_MANAGER_PLACEHOLDER
- ConstantUI_MANAGER_POPUP
constant
GTK2.UI_MANAGER_POPUP
- ConstantUI_MANAGER_SEPARATOR
constant
GTK2.UI_MANAGER_SEPARATOR
- ConstantUI_MANAGER_TOOLBAR
constant
GTK2.UI_MANAGER_TOOLBAR
- ConstantUI_MANAGER_TOOLITEM
constant
GTK2.UI_MANAGER_TOOLITEM
- ConstantUNIT_INCH
constant
GTK2.UNIT_INCH
- ConstantUNIT_MM
constant
GTK2.UNIT_MM
- ConstantUNIT_PIXEL
constant
GTK2.UNIT_PIXEL
- ConstantUNIT_POINTS
constant
GTK2.UNIT_POINTS
- ConstantUPDATE_ALWAYS
constant
GTK2.UPDATE_ALWAYS
- ConstantUPDATE_CONTINUOUS
constant
GTK2.UPDATE_CONTINUOUS
- ConstantUPDATE_DELAYED
constant
GTK2.UPDATE_DELAYED
- ConstantUPDATE_DISCONTINUOUS
constant
GTK2.UPDATE_DISCONTINUOUS
- ConstantUPDATE_IF_VALID
constant
GTK2.UPDATE_IF_VALID
- ConstantVISIBILITY_FULL
constant
GTK2.VISIBILITY_FULL
- ConstantVISIBILITY_NONE
constant
GTK2.VISIBILITY_NONE
- ConstantVISIBILITY_PARTIAL
constant
GTK2.VISIBILITY_PARTIAL
- ConstantVISIBLE
constant
GTK2.VISIBLE
- ConstantWIDGET_HELP_TOOLTIP
constant
GTK2.WIDGET_HELP_TOOLTIP
- ConstantWIDGET_HELP_WHATS_THIS
constant
GTK2.WIDGET_HELP_WHATS_THIS
- ConstantWINDOW_POPUP
constant
GTK2.WINDOW_POPUP
- ConstantWINDOW_TOPLEVEL
constant
GTK2.WINDOW_TOPLEVEL
- ConstantWIN_POS_CENTER
constant
GTK2.WIN_POS_CENTER
- ConstantWIN_POS_CENTER_ALWAYS
constant
GTK2.WIN_POS_CENTER_ALWAYS
- ConstantWIN_POS_CENTER_ON_PARENT
constant
GTK2.WIN_POS_CENTER_ON_PARENT
- ConstantWIN_POS_MOUSE
constant
GTK2.WIN_POS_MOUSE
- ConstantWIN_POS_NONE
constant
GTK2.WIN_POS_NONE
- ConstantWRAP_CHAR
constant
GTK2.WRAP_CHAR
- ConstantWRAP_NONE
constant
GTK2.WRAP_NONE
- ConstantWRAP_WORD
constant
GTK2.WRAP_WORD
- ConstantWRAP_WORD_CHAR
constant
GTK2.WRAP_WORD_CHAR
- Methodadd_builtin_icon
void
add_builtin_icon(string
name
,int
size
,GTK2.GdkPixbuf
pixbuf
)- Description
Registers a built-in icon for icon theme lookups. The idea of build-in icons is to allow an application or library that uses themed icons to function requiring files to be present in the file system. For instance, the default images for all of GTK2+'s stock icons are registered as built-in icons.
In general, if you use add_builtin_icon() you should also install the icon in the icon theme, so that the icon is generally available.
- Methodfalse
int
false()- Description
Always returns false.
- Methodflush
void
flush()- Description
Flush GDK. Not normally needed, can be useful while doing calculations.
- Methodget_default_icon_list
array
get_default_icon_list()- Description
Gets the value set by set_default_icon_list().
- Methodget_default_icon_theme
GTK2.IconTheme
get_default_icon_theme()- Description
Gets the icon theme.
- Methodget_file_info
mapping
get_file_info(string
filename
)- Description
Parses an image file far enough to determine its format and size.
- Methodget_formats
array
get_formats()- Description
Get information about the image formats supported.
- Methodgnome_init
array
gnome_init(string
app_id
,string
app_version
,array
argv
)- Description
Initializes the application. This sets up all of the GNOME internals and prepares them (gdk/gtk, session-management, triggers, sound, user preferences). If corba init flags are specified, corba initialization is done as well as gnome initialization. corba_init_flags is 0 or more of GNORBA_INIT_SERVER_FUNC (1), GNORBA_INIT_DISABLE_COOKIES (2) and GNORBA_INIT_CORBA_PRIO_HIGH (4)
- Methodgrab_add
void
grab_add(GTK2.Widget
widget
)- Description
Grab a widget.
- Methodgrab_remove
void
grab_remove(GTK2.Widget
widget
)- Description
Remove the grab.
- Methodgtk_init
array
gtk_init(array
|void
argc
,int
|void
no_pgtkrc
)- Description
Low level GTK init function (used by setup_gtk). This function is more or less equivalent to the C-GTK+ function gtk_init. setup_gtk does some extra things (such as parsing ~/.pgtkrc).
- Methodlist_signals
array
list_signals()- Description
Enumerates all recognized signals for all types.
- Methodlist_toplevels
array
list_toplevels()- Description
Returns a list of all existing toplevel windows.
- Methodlow_flush
void
low_flush()- Description
Flush, but do not process events. Not normally needed.
- Methodmain
void
main()- Description
Start GTK in blocking mode. Doing this disables asynchronous I/O in pike. You can return -1 from main in pike to run GTK (and the rest of pike) in asynchronous mode.
- Methodmain_iteration_do
int
main_iteration_do(int
block
)- Description
Run one iteration in the mainloop. If block is true, wait for an event before returning.
- Methodmain_level
int
main_level()- Description
Return the current recursion depth.
- Methodmain_quit
void
main_quit()- Description
Exit from the gtk_main function on the next iteration.
- Methodmove_cursor
void
move_cursor(int
dx
,int
dy
)- Description
Move the mouse-cursor dx,dy pixels, relative to it's current position. This will generate a normal motion event.
Note that this is a low-level X11 function, and thus only works when GDK uses X11.
- Methodmove_cursor_abs
void
move_cursor_abs(GTK2.GdkWindow
w
,int
dx
,int
dy
)- Description
Move the mouse-cursor to x,y, relative to the upper left corner of the specified window. This will generate a normal motion event.
Note that this is a low-level X11 function, and thus only works when GDK uses X11.
- Methodparse_rc
void
parse_rc(string
rc
)- Description
Takes a string and reads it as a gtkrc file.
- Methodroot_window
GTK2.GdkWindow
root_window()- Description
Returns the root window of the current display
- Methodsaver_disable
void
saver_disable()- Description
Disable the screensaver. This is a low-level X11 function, and thus only works when GDK uses X11
- Methodsaver_enable
void
saver_enable()- Description
Enable the screensaver again after
saver_disable
has been called. This is a low-level X11 function, and thus only works when GDK uses X11.
- Methodset_auto_startup_notification
void
set_auto_startup_notification(int
setting
)- Description
By default, after showing the first GTK2.Window for each GDK2.Screen, GTK+ calls GDK2.Screen->notify_startup_complete(). Call this function to disable the automatic startup notification. You might do this if your first window is a splash screen, and you want to delay notification until after your real main window has been shown, for example.
In that example, you would disable startup notification temporarily, show your splash screen, then re-enable it so that showing the main window would automatically result in notification.
- Methodset_default_icon
void
set_default_icon(GTK2.GdkPixbuf
pix
)- Description
Sets an icon to be used as fallback for windows that haven't had set_icon() called on them.
- Methodset_default_icon_from_file
void
set_default_icon_from_file(string
filename
)- Description
Sets an icon to be used as fallback from a file on disk.
- Methodset_default_icon_list
void
set_default_icon_list(array
list
)- Description
Sets an icon list to be used as fallback for windows that haven't had set_icon_list() called on them to set up a window-specific icon list. This function allows you to set up the icon for all windows in your app at once.
- Methodset_default_icon_name
void
set_default_icon_name(string
name
)- Description
Sets an icon to be used as fallback for windows that haven't had set_icon_list() called on them from a named themed icon.
- Methodsetup_gtk
array
setup_gtk(array
|void
argv
,int
|void
do_not_parse_rc
)- Description
Initialize GTK, and all that comes with it. Also parses $HOME/.pgtkrc and $HOME/.gtkrc if they exists. The single argument, if supplied, is the argument array passed to the program. This is used to set default window titles etc. The second argument, if supplied, indicates that pike specific *rc files should not be parsed.
The most common usage is GTK2.setup_gtk(argv);
- Methodtrue
int
true()- Description
Always returns true.
- Methodversion
array
version()- Description
Returns the version of the GTK library.
Class GTK2.AboutDialog
- Description
Properties: array(string) artists array(string) authors string comments string copyright array(string) documenters string license GDK2.Pixbuf logo string logo-icon-name string name string translator-credits string version string website string website-label
Style properties: GDK2.Color link-color
- Methodcreate
GTK2.AboutDialogGTK2.AboutDialog(
mapping
|void
props
)- Description
Create a new GTK2.AboutDialog.
- Methodget_artists
array
get_artists()- Description
Returns the strings which are displayed in the artists tab of the secondary credits dialog.
- Methodget_authors
array
get_authors()- Description
Returns the strings which are displayed in the authors tab of the secondary credits dialog.
- Methodget_comments
string
get_comments()- Description
Returns the comments string.
- Methodget_copyright
string
get_copyright()- Description
Returns the copyright string.
- Methodget_documenters
array
get_documenters()- Description
Returns the strings which are displayed in the documenters tab of the secondary credits dialog.
- Methodget_license
string
get_license()- Description
Returns the license information.
- Methodget_logo
GTK2.GdkPixbuf
get_logo()- Description
Returns the pixbuf displayed as logo.
- Methodget_logo_icon_name
string
get_logo_icon_name()- Description
Returns the icon name.
- Methodget_program_name
string
get_program_name()- Description
Returns the program name.
- Methodget_property
mixed
get_property(string
property
)- Description
Get property.
- Methodget_translator_credits
string
get_translator_credits()- Description
Returns the translator credis.
- Methodget_version
string
get_version()- Description
Returns the version string.
- Methodget_website
string
get_website()- Description
Returns the website URL.
- Methodget_website_label
string
get_website_label()- Description
Returns the label used for the website link.
- Methodget_wrap_license
int
get_wrap_license()- Description
Returns whether the license text is automatically wrapped.
- InheritDialog
inherit GTK2.Dialog : Dialog
- Methodset_artists
GTK2.AboutDialog
set_artists(array
art
)- Description
Sets the strings which are displayed in the artists tab of the secondary credits dialog.
- Methodset_authors
GTK2.AboutDialog
set_authors(array
auth
)- Description
Sets the strings which are displayed in the authors tab of the secondary credits dialog.
- Methodset_comments
GTK2.AboutDialog
set_comments(string
comments
)- Description
Sets the comment string.
- Methodset_copyright
GTK2.AboutDialog
set_copyright(string
copyright
)- Description
Sets the copyright string.
- Methodset_documenters
GTK2.AboutDialog
set_documenters(array
doc
)- Description
Sets the strings which are displayed in the documenters tab of the secondary credits dialog.
- Methodset_license
GTK2.AboutDialog
set_license(string
license
)- Description
Sets the license information.
- Methodset_logo
GTK2.AboutDialog
set_logo(GTK2.GdkPixbuf
logo
)- Description
Sets the pixbuf to be displayed as the logo.
- Methodset_logo_icon_name
GTK2.AboutDialog
set_logo_icon_name(string
name
)- Description
Sets the icon name.
- Methodset_program_name
GTK2.AboutDialog
set_program_name(string
name
)- Description
Sets the name to display in the dialog.
- Methodset_translator_credits
GTK2.AboutDialog
set_translator_credits(string
credits
)- Description
Sets the translator credits.
- Methodset_version
GTK2.AboutDialog
set_version(string
version
)- Description
Sets the version string.
- Methodset_website
GTK2.AboutDialog
set_website(string
website
)- Description
Sets the URL to use for the website link.
- Methodset_website_label
GTK2.AboutDialog
set_website_label(string
label
)- Description
Sets the label used for the website link. Defaults to the website URL.
- Methodset_wrap_license
GTK2.AboutDialog
set_wrap_license(int
setting
)- Description
Sets whether the license text is automatically wrapped.
Class GTK2.AccelGroup
- Description
An AccelGroup stores keybindings. A group is automatically created by W(MenuFactory)
NOIMG
Signals: accel_activate
accel_changed
- Methodconnect
GTK2.AccelGroup
connect(int
accel_key
,int
accel_mods
,int
accel_flags
,function
(:void
)cb
,mixed
user_data
)- Description
Installs an accelerator in this group.
- Methodconnect_by_path
GTK2.AccelGroup
connect_by_path(string
accel_path
,function
(:void
)cb
,mixed
user_data
)- Description
Installs an accelerator in this group, using an accelerator path to look up the appropriate key and modifiers.
- Methodcreate
GTK2.AccelGroupGTK2.AccelGroup()
- Description
Create a new accelerator group
- Methoddisconnect
GTK2.AccelGroup
disconnect(int
accel_key
,int
accel_mods
)- Description
Removes an accelerator previously installed.
- InheritObject
inherit G.Object : Object
- Methodlock
GTK2.AccelGroup
lock()- Description
Locks the group.
- Methodunlock
GTK2.AccelGroup
unlock()- Description
Undoes the last call to lock().
Class GTK2.AccelLabel
- Description
A label for accelerators. Properties: GTK2.Widget accel-widget
- Methodcreate
GTK2.AccelLabelGTK2.AccelLabel(
string
|mapping
text_or_props
)- Description
Creates a new W(AccelLabel).
- Methodget_accel_widget
GTK2.Widget
get_accel_widget()- Description
Fetches the widget monitored by this accelerator label.
- Methodget_accel_width
int
get_accel_width()- Description
Returns the width needed to display the accelerator key(s). This is used by menus to align all of the W(MenuItem).
- InheritLabel
inherit GTK2.Label : Label
- Methodrefetch
int
refetch()- Description
Recreates the string representing the accelerator keys. This should not be needed since the string is automatically updated whenever accelerators are added or removed from the associated widget.
- Methodset_accel_widget
GTK2.AccelLabel
set_accel_widget(GTK2.Widget
accel_widget
)- Description
Sets the widget to be monitored.
Class GTK2.Action
- Description
Properties: GTK2.ActionGroup action-group int hide-if-empty int is-important string label string name int sensitive string short-label string stock-id string tooltip int visible int visible-horizontal int visible-overflown int visible-vertical
Signals: activate
- Methodactivate
GTK2.Action
activate()- Description
Emits the "activate" signal, if it isn't insensitive.
- Methodblock_activate_from
GTK2.Action
block_activate_from(GTK2.Widget
proxy
)- Description
Disables calls to the activate() function by signals on the proxy. This is used to break notification loops for things like check or radio actions.
- Methodconnect_accelerator
GTK2.Action
connect_accelerator()- Description
Installs the accelerator if this action widget has an accel path and group.
- Methodconnect_proxy
GTK2.Action
connect_proxy(GTK2.Widget
proxy
)- Description
Connects a widget to an action object as a proxy. Synchronises various properties of the action with the widget (such as label text, icon, tooltip, etc), and attaches a callback so that the action gets activated when the proxy widget does.
- Methodcreate
GTK2.ActionGTK2.Action(
string
|mapping
name_or_props
,string
|void
label
,string
|void
tooltip
,string
|void
stock_id
)- Description
Creates a new object.
- Methodcreate_icon
GTK2.Widget
create_icon(int
icon_size
)- Description
This function is intended for use by action implementations to create icons displayed in the proxy widgets. One of
ICON_SIZE_BUTTON
,ICON_SIZE_DIALOG
,ICON_SIZE_DND
,ICON_SIZE_INVALID
,ICON_SIZE_LARGE_TOOLBAR
,ICON_SIZE_MENU
andICON_SIZE_SMALL_TOOLBAR
.
- Methodcreate_menu
GTK2.Widget
create_menu()- Description
If this action provides a W(Menu) widget as a submenu for the menu item or the toolbar item it creates, this function returns an instance of that menu.
- Methodcreate_menu_item
GTK2.Widget
create_menu_item()- Description
Creates a menu item widget that proxies for the action.
- Methodcreate_tool_item
GTK2.Widget
create_tool_item()- Description
Creates a toolbar item widget that proxies for the action.
- Methoddisconnect_accelerator
GTK2.Action
disconnect_accelerator()- Description
Undoes the effect of one call to connect_accelerator().
- Methoddisconnect_proxy
GTK2.Action
disconnect_proxy(GTK2.Widget
proxy
)- Description
Disconnects a proxy widget. Does not destroy the widget.
- Methodget_accel_path
string
get_accel_path()- Description
Returns the accel path for this action.
- Methodget_name
string
get_name()- Description
Returns the name of the action.
- Methodget_proxies
array
get_proxies()- Description
Returns the proxy widgets.
- Methodget_sensitive
int
get_sensitive()- Description
Returns whether the action itself is sensitive. Note that this doesn't necessarily mean effective sensitivity.
- Methodget_visible
int
get_visible()- Description
Returns whether the action itself is visible.
- InheritObject
inherit G.Object : Object
- Methodis_sensitive
int
is_sensitive()- Description
Returns whether the action is effectively sensitive.
- Methodis_visible
int
is_visible()- Description
Returns whether the action is effectively visible.
- Methodset_accel_group
GTK2.Action
set_accel_group(GTK2.AccelGroup
group
)- Description
Sets the GTK2.AccelGroup in which the accelerator for this action will be installed.
- Methodset_accel_path
GTK2.Action
set_accel_path(string
accel_path
)- Description
Sets the accel path for this action. All proxy widgets associated with this action will have this accel path, so that their accelerators are consistent.
- Methodset_sensitive
GTK2.Action
set_sensitive(int
setting
)- Description
Sets the sensitive property.
- Methodset_visible
GTK2.Action
set_visible(int
setting
)- Description
Sets the visible property.
- Methodunblock_activate_from
GTK2.Action
unblock_activate_from(GTK2.Widget
proxy
)- Description
Re-enables calls to the activate() function.
Class GTK2.ActionGroup
- Description
Actions are organized into groups. An action group is essentially a map from names to GTK2.Action objects.
All actions that would make sense to use in a particular context should be in a single group. Multiple action groups may be used for a particular user interface. In fact, it is expected that most non-trivial applications will make use of multiple groups. For example, in an application that can edit multiple documents, one group holding global actions (e.g. quit, about, new), and one group per document holding actions that act on that document (eg. save, cut/copy/paste, etc). Each window's menus would be constructed from a combination of two action groups.
Accelerators are handled by the GTK2+ accelerator map. All actions are assigned an accelerator path (which normally has the form <Actions>/group-name/action-name) and a shortcut is associated with this accelerator path. All menuitems and toolitems take on this accelerator path. The GTK2+ accelerator map code makes sure that the correct shortcut is displayed next to the menu item. Properties: string name int sensitive int visible
Signals: connect_proxy
disconnect_proxy
post_activate
pre_activate
- Methodadd_action
GTK2.ActionGroup
add_action(GTK2.Action
action
,string
|void
accelerator
)- Description
Adds an action object to the action group and sets up the accelerator.
If accelerator is omitted, attempts to use the accelerator associated with the stock_id of the action.
Accel paths are set to <Actions>/group-name/action-name.
- Methodadd_actions
GTK2.ActionGroup
add_actions(array
entries
)- Description
This is a convenience function to create a number of actions and add them to the action group.
The "activate" signals of the actions are connect to the callbacks and their accel paths are set to <Actions>/group-name/action-name.
Mapping is: ([ "name": string, "stock_id": string, "label": string, "accelerator": string, "tooltip": string, "callback": function(callback) "data": mixed ]);
- Methodadd_radio_actions
GTK2.ActionGroup
add_radio_actions(array
entries
,function
(:void
)cb
,mixed
user_data
)- Description
This is a convenience routine to create a group of radio actions and add them to the action group.
Mapping is: ([ "name": string, "stock_id": string, "label": string, "accelerator": string, "tooltip": string, "value": int ]);
- Methodadd_toggle_actions
GTK2.ActionGroup
add_toggle_actions(array
entries
)- Description
This is a convenience function to create a number of toggle actions and add them to the action group.
Mapping is: ([ "name": string, "stock_id": string, "label": string, "accelerator": string, "tooltip": string, "callback": function(callback), "data": mixed, "is_active": int ]);
- Methodcreate
GTK2.ActionGroupGTK2.ActionGroup(
string
|mapping
name_or_props
)- Description
Creates a new GTK2.ActionGroup object. The name of the action group is used when associating keybindings with the actions.
- Methodget_action
GTK2.Action
get_action(string
name
)- Description
Looks up an action in the action group by name.
- Methodget_name
string
get_name()- Description
Gets the name of the action group.
- Methodget_sensitive
int
get_sensitive()- Description
Returns true if the group is sensitive. The constituent actions can only be logically sensitive if they are sensitive and their group is sensitive.
- Methodget_visible
int
get_visible()- Description
Returns true if the group is visible. The constituent actions can only be logically visible if they are visible and their group is visible.
- InheritObject
inherit G.Object : Object
- Methodlist_actions
array
list_actions()- Description
Lists the actions in the action group.
- Methodremove_action
GTK2.ActionGroup
remove_action(GTK2.Action
action
)- Description
Removes an action object.
- Methodset_sensitive
GTK2.ActionGroup
set_sensitive(int
setting
)- Description
Changes the sensitivity.
- Methodset_visible
GTK2.ActionGroup
set_visible(int
setting
)- Description
Changes the visibility.
Class GTK2.Activatable
- Description
Activatable widgets can be connected to a GTK.Action and reflects the state of its action. A GTK.Activatable can also provide feedback through its action, as they are responsible for activating their related actions. Properties: GTK2.Action related-action int use-action-apperance
- Methodget_related_action
GTK2.Action
get_related_action()- Description
Gets the related action
- Methodget_use_action_appearance
int
get_use_action_appearance()- Description
Gets whether this activatable should reset its layout and appearance when setting the related action or when the action changes appearance.
- Methodset_related_action
GTK2.Activatable
set_related_action(GTK2.Action
a
)- Description
Sets the related action
- Methodset_use_action_appearance
GTK2.Activatable
set_use_action_appearance(int
use_apperance
)- Description
Sets whether this activatable should reset its layout and appearance when setting the related action or when the action changes appearance
Class GTK2.Adjustment
- Description
The GTK2.Adjustment object represents a value which has an associated lower and upper bound, together with step and page increments, and a page size. It is used within several GTK2+ widgets, including GtkSpinButton, GtkViewport, and GtkRange (which is a base class for GtkHScrollbar, GtkVScrollbar, GtkHScale, and GtkVScale).
The GtkAdjustment object does not update the value itself. Instead it is left up to the owner of the GtkAdjustment to control the value.
The owner of the GtkAdjustment typically calls the value_changed() and changed() functions after changing the value or its bounds. This results in the emission of the "value_changed" or "changed" signal respectively.
Properties: float lower float page-increment float page-size float step-increment float upper float value
Signals: changed The adjustment changed in some way
value_changed The value changed
- Methodchanged
GTK2.Adjustment
changed()- Description
Emites a "changed" signal.
- Methodclamp_page
GTK2.Adjustment
clamp_page(float
lower
,float
upper
)- Description
Updates the W(Adjustment) value to ensure that the range between lower and upper is in the current page (i.e. between value and value+page_size). If the range is larger than the page size, then only the start of it will be in the current page. A "changed" signal will be emitted if the value is changed.
- Methodcreate
GTK2.AdjustmentGTK2.Adjustment(
float
|mapping
value_or_props
,float
|void
lower
,float
|void
upper
,float
|void
step_increment
,float
|void
page_increment
,float
|void
page_size
)- Description
The value argument is the initial value you want to give to the adjustment, usually corresponding to the topmost or leftmost position of an adjustable widget. The lower argument specifies the lowest value which the adjustment can hold. The step_increment argument specifies the "smaller" of the two increments by which the user can change the value, while the page_increment is the "larger" one. The page_size argument usually corresponds somehow to the visible area of a panning widget. The upper argument is used to represent the bottom most or right most coordinate in a panning widget's child. Therefore it is not always the largest number that value can take, since the page_size of such widgets is usually non-zero.
All values are optional, they default to 0.0. For most widgets the unit is pixels.
- Methodget_value
float
get_value()- Description
Gets the current value.
- InheritData
inherit GTK2.Data : Data
- Methodset_value
GTK2.Adjustment
set_value(float
to
)- Description
Sets the value. The value is clamped to lie between lower and upper.
Note that for adjustments which are used in a W(Scrollbar), the effective range of allowed values goes from lower to upper-page_size.
- Methodvalue_changed
GTK2.Adjustment
value_changed()- Description
Emits a "value-changed" signal.
Class GTK2.Alignment
- Description
The W(Alignment) widget controls the alignment and size of its child widget. It has four settings: xscale, yscale, xalign, and yalign.
The scale settings are used to specify how much the child widget should expand to fill the space allocated to the W(Alignment). The values can range from 0 (meaning the child doesn't expand at all) to 1 (meaning the child expands to fill all of the available space).
The align settings are used to place the child widget within the available area. The values range from 0 (top or left) to 1 (bottom or right). Of course, if the scale settings are both set to 1, the alignment settings have no effect.
NOIMG Properties: int bottom-padding int left-padding int right-padding int top-padding float xalign float xscale float yalign float yscale
- Methodcreate
GTK2.AlignmentGTK2.Alignment(
float
|mapping
xalign_or_props
,float
|void
yalign
,float
|void
xscale
,float
|void
yscale
)- Description
xalign : the horizontal alignment of the child widget, from 0 (left) to 1 (right). yalign : the vertical alignment of the child widget, from 0 (top) to 1 (bottom). xscale : the amount that the child widget expands horizontally to fill up unused space, from 0 to 1. A value of 0 indicates that the child widget should never expand. A value of 1 indicates that the child widget will expand to fill all of the space allocated for the GTK2.Alignment. yscale : the amount that the child widget expands vertically to fill up unused space, from 0 to 1. The values are similar to xscale.
- InheritBin
inherit GTK2.Bin : Bin
- Methodset
GTK2.Alignment
set(float
xalign
,float
yalign
,float
xscale
,float
yscale
)- Description
xalign : the horizontal alignment of the child widget, from 0 (left) to 1 (right). yalign : the vertical alignment of the child widget, from 0 (top) to 1 (bottom). xscale : the amount that the child widget expands horizontally to fill up unused space, from 0 to 1. A value of 0 indicates that the child widget should never expand. A value of 1 indicates that the child widget will expand to fill all of the space allocated for the GTK2.Alignment. yscale : the amount that the child widget expands vertically to fill up unused space, from 0 to 1. The values are similar to xscale.
- Methodset_padding
GTK2.Alignment
set_padding(int
padding_top
,int
padding_bottom
,int
padding_left
,int
padding_right
)- Description
Sets the padding on the different sides.
Class GTK2.Allocation
- InheritRectangle
inherit GDK2.Rectangle : Rectangle
Class GTK2.Arrow
- Description
An arrow pointing in one of four directions. The 'etched' shadow types does not work.
GTK2.Arrow(GTK2.ARROW_UP, GTK2.SHADOW_OUT)
GTK2.Arrow(GTK2.ARROW_LEFT, GTK2.SHADOW_IN)
GTK2.Arrow(GTK2.ARROW_RIGHT, GTK2.SHADOW_IN)
GTK2.Arrow(GTK2.ARROW_DOWN, GTK2.SHADOW_OUT)
Properties: int arrow-type
ARROW_DOWN
,ARROW_LEFT
,ARROW_RIGHT
andARROW_UP
int shadow-typeSHADOW_ETCHED_IN
,SHADOW_ETCHED_OUT
,SHADOW_IN
,SHADOW_NONE
andSHADOW_OUT
- Methodcreate
GTK2.ArrowGTK2.Arrow(
int
|mapping
arrow_type_or_props
,int
|void
shadow_type
)- Description
First argument is one of
ARROW_DOWN
,ARROW_LEFT
,ARROW_RIGHT
andARROW_UP
, second one ofSHADOW_ETCHED_IN
,SHADOW_ETCHED_OUT
,SHADOW_IN
,SHADOW_NONE
andSHADOW_OUT
.
- InheritMisc
inherit GTK2.Misc : Misc
- Methodset
GTK2.Arrow
set(int
arrow_type
,int
shadow_type
)- Description
First argument is one of
ARROW_DOWN
,ARROW_LEFT
,ARROW_RIGHT
andARROW_UP
, second one ofSHADOW_ETCHED_IN
,SHADOW_ETCHED_OUT
,SHADOW_IN
,SHADOW_NONE
andSHADOW_OUT
.
Class GTK2.AspectFrame
- Description
A W(Frame) widget that always maintain a specified ratio between width and height. width/height == ratio
GTK2.AspectFrame("Title",0.5,0.5,0.4,0)->add( GTK2.Label("Wrong aspect"))->set_size_request(200,200)
Properties: int obey-child float ratio float xalign float yalign
- Methodcreate
GTK2.AspectFrameGTK2.AspectFrame(
mapping
|string
label
,float
|void
xalign
,float
|void
yalign
,float
|void
ratio
,int
|void
obey_child
)- Description
Create a new frame. Arguments are label, xalign, yalign, ratio, obey_child xalign is floats between 0 and 1, 0.0 is upper (or leftmost), 1.0 is lower (or rightmost). If 'obey_child' is true, the frame will use the aspect ratio of it's (one and only) child widget instead of 'ratio'.
- InheritFrame
inherit GTK2.Frame : Frame
- Methodset
GTK2.AspectFrame
set(float
xalign
,float
yalign
,float
ratio
,int
obey_child
)- Description
Set the aspec values. Arguments are xalign, yalign, ratio, obey_child xalign is floats between 0 and 1, 0.0 is upper (or leftmost), 1.0 is lower (or rightmost). If 'obey_child' is true, the frame will use the aspect ratio of it's (one and only) child widget instead of 'ratio'.
Class GTK2.Assistant
- Description
Properties:
int complete GDK2.Pixbuf header-image GTK2.AssistantPageType page-type GDK2.Pixbuf sidebar-image string title
Style properties:
int content-padding int header-padding
Signals: apply
cancel
close
prepare A GTK2.Assistant is a widget used to represent a generally complex operation splitted in several steps, guiding the user through its pages and controlling the page flow to collect the necessary data.
- Methodadd_action_widget
GTK2.Assistant
add_action_widget(GTK2.Widget
child
)- Description
Adds a widget to the action area.
- Methodappend_page
int
append_page(GTK2.Widget
page
)- Description
Appends a page to the assistant.
- Methodcreate
GTK2.AssistantGTK2.Assistant(
mapping
|void
props
)- Description
Create a new assistant.
- Methodget_current_page
int
get_current_page()- Description
Returns the page number of the current page. Returns -1 if there are no pages.
- Methodget_n_pages
int
get_n_pages()- Description
Returns the number of pages.
- Methodget_nth_page
GTK2.Widget
get_nth_page(int
page_num
)- Description
Returnss the child widget contained in page number page_num.
- Methodget_page_complete
int
get_page_complete(GTK2.Widget
page
)- Description
Gets whether page is complete.
- Methodget_page_header_image
GTK2.GdkPixbuf
get_page_header_image(GTK2.Widget
page
)- Description
Gets the header image for page.
- Methodget_page_side_image
GTK2.GdkPixbuf
get_page_side_image(GTK2.Widget
page
)- Description
Gets the side image for page.
- Methodget_page_title
string
get_page_title(GTK2.Widget
page
)- Description
Gets the title for page.
- Methodget_page_type
int
get_page_type(GTK2.Widget
page
)- Description
Gets the page type of page.
- InheritWindow
inherit GTK2.Window : Window
- Methodinsert_page
int
insert_page(GTK2.Widget
page
,int
pos
)- Description
Inserts a page at a given position. If pos equals -1 it will append the page.
- Methodprepend_page
int
prepend_page(GTK2.Widget
page
)- Description
Prepends a page to the assistant.
- Methodremove_action_widget
GTK2.Assistant
remove_action_widget(GTK2.Widget
child
)- Description
Removes a widget from the action area.
- Methodset_current_page
GTK2.Assistant
set_current_page(int
page_num
)- Description
Switches the page to page_num.
- Methodset_forward_page_func
GTK2.Assistant
set_forward_page_func(function
(:void
)f
,mixed
data
)- Description
Set the forward page function.
- Methodset_page_complete
GTK2.Assistant
set_page_complete(GTK2.Widget
page
,int
complete
)- Description
Sets whether page contents are complete. This will make assistant update the buttons state to be able to continue the task.
- Methodset_page_header_image
GTK2.Assistant
set_page_header_image(GTK2.Widget
page
,GTK2.GdkPixbuf
pixbuf
)- Description
Sets a header image for page. This image is displayed in the header area of the assistant when page is the current page.
- Methodset_page_side_image
GTK2.Assistant
set_page_side_image(GTK2.Widget
page
,GTK2.GdkPixbuf
pixbuf
)- Description
Sets a side image for page. This image is displayed in the side area of the assistant when page is the current page.
- Methodset_page_title
GTK2.Assistant
set_page_title(GTK2.Widget
page
,string
title
)- Description
Sets a title for page. The title is displayed in the header area of the assistant when page is the current page.
- Methodset_page_type
GTK2.Assistant
set_page_type(GTK2.Widget
page
,int
type
)- Description
Sets the page type for page. The page type determines the page behavior.
- Methodupdate_buttons_state
GTK2.Assistant
update_buttons_state()- Description
Forces the assistant to recompute the buttons state.
GTK+ automatically takes care of this in most situations, e.g. when the user goes to a different page, or when the visibility or completeness of a page changes.
One situation where it can be necessary to call this function is when changing a value on the current page affects the future page flow of the assistant.
Class GTK2.Bin
- Description
A container that can only contain one child.
- Methodget_child
GTK2.Widget
get_child()- Description
Return the child.
- InheritContainer
inherit GTK2.Container : Container
Class GTK2.Box
- Description
A box is a container that can contain more than one child. The basic 'Box' class cannot be instantiated, it is a virtual class that only defines some common 'Box' functions shared with all other Box widgets. Properties: int homogeneous int spacing
Child properties: int expand int fill int pack-type int padding int position
- Methodget_homogeneous
int
get_homogeneous()- Description
Returns whether the box is homogeneous.
- Methodget_spacing
int
get_spacing()- Description
Gets the spacing.
- InheritContainer
inherit GTK2.Container : Container
- Methodpack_end
GTK2.Box
pack_end(GTK2.Widget
widget
,int
expandp
,int
fillp
,int
padding
)- Description
Pack from the right (or bottom) of the box. Arguments are widget, expand, fill, paddingb widget, expand, fill, padding
- Methodpack_end_defaults
GTK2.Box
pack_end_defaults(GTK2.Widget
widget
)- Description
The argument is the widget to add.
- Methodpack_start
GTK2.Box
pack_start(GTK2.Widget
widget
,int
expandp
,int
fillp
,int
padding
)- Description
Pack from the left (or top) of the box. Argument are widget, expand, fill, padding pack(widget,1,1,0) is equivalent to 'add' or 'pack_start_defaults'
- Methodpack_start_defaults
GTK2.Box
pack_start_defaults(GTK2.Widget
widget
)- Description
The argument is the widget to add. This function is equivalent to 'add'
- Methodquery_child_packing
mapping
query_child_packing(GTK2.Widget
child
)- Description
Return a mapping: ([ "expand":expandp, "fill":fillp, "padding":paddingp, "type":type ])
- Methodreorder_child
GTK2.Box
reorder_child(GTK2.Widget
child
,int
new_position
)- Description
Move widget to pos, pos is an integer, between 0 and sizeof(box->children())-1
- Methodset_child_packing
GTK2.Box
set_child_packing(GTK2.Widget
child_widget
,int
expandp
,int
fillp
,int
padding
,int
pack_type
)- Description
widget, expand, fill, padding, pack_type. If exand is true, the widget will be expanded when the box is resized. If 'fill' is true, the widget will be resized to fill up all available space. Padding is the amount of padding to use, and pack_type is one of
PACK_DIRECTION_BTT
,PACK_DIRECTION_LTR
,PACK_DIRECTION_RTL
,PACK_DIRECTION_TTB
,PACK_END
andPACK_START
.You can emulate pack_start and pack_end with add and set_child_packing.
- Methodset_homogeneous
GTK2.Box
set_homogeneous(int
homogeneousp
)- Description
If true, all widgets in the box will get exactly the same amount of space
- Methodset_spacing
GTK2.Box
set_spacing(int
spacing
)- Description
This is the amount of spacing (in pixels) inserted beween all widgets
Class GTK2.Button
- Description
A container that can only contain one child, and accepts events. draws a bevelbox around itself.
GTK2.Button("A button")
GTK2.Button("A button\nwith multiple lines\nof text")
GTK2.Button()->add(GTK2.Image(GTK2.GdkImage(0)->set(Image.Image(100,40)->test())))
Properties: int focus-on-click GTK2.Widget image int image-position string label int relief int use-stock int use-underline float xalign float yalign
Style properties: int child-displacement-x int child-displacement-y GTK2.Border default-border GTK2.Border default-outside-border int displace-focus int image-spacing int inner-border
Signals: activate
clicked Called when the button is pressed, and then released
enter Called when the mouse enters the button
leave Called when the mouse leaves the button
pressed Called when the button is pressed
released Called when the button is released
- Methodclicked
GTK2.Button
clicked()- Description
Emulate a 'clicked' event (press followed by release).
- Methodcreate
GTK2.ButtonGTK2.Button(
string
|mapping
label_or_props
)- Description
If a string is supplied, a W(Label) is created and added to the button.
- Methodenter
GTK2.Button
enter()- Description
Emulate a 'enter' event.
- Methodget_alignment
mapping
get_alignment()- Description
Gets the alignment of the child.
- Methodget_focus_on_click
int
get_focus_on_click()- Description
Returns whether the button grabs focus when it is clicked.
- Methodget_image
GTK2.Widget
get_image()- Description
Gets the widget that is currently set as the image of the button.
- Methodget_image_position
int
get_image_position()- Description
Gets the position of the image relative to the text inside the button.
- Methodget_label
string
get_label()- Description
Get the text from the label of the button.
- Methodget_relief
int
get_relief()- Description
One of
RELIEF_HALF
,RELIEF_NONE
andRELIEF_NORMAL
, set with set_relief()
- Methodget_use_stock
int
get_use_stock()- Description
Returns whether the button label is a stock item.
- Methodget_use_underline
int
get_use_underline()- Description
Returns whether an embedded underline in the button indicates a mnemonic.
- InheritActivatable
inherit GTK2.Activatable : Activatable
- InheritBin
inherit GTK2.Bin : Bin
- Methodleave
GTK2.Button
leave()- Description
Emulate a 'leave' event.
- Methodpressed
GTK2.Button
pressed()- Description
Emulate a 'press' event.
- Methodreleased
GTK2.Button
released()- Description
Emulate a 'release' event.
- Methodset_alignment
GTK2.Button
set_alignment(float
xalign
,float
yalign
)- Description
Sets the alignment of the child.
- Methodset_focus_on_click
GTK2.Button
set_focus_on_click(int
focus_on_click
)- Description
Sets whether the button will grab focus when it is clicked.
- Methodset_image
GTK2.Button
set_image(GTK2.Widget
widget
)- Description
Set the image of the button to the given widget. Note that it depends on the gtk-button-images setting whether the image will be displayed or not.
- Methodset_image_position
GTK2.Button
set_image_position(int
position
)- Description
Sets the position of the image relative to the text inside the button.
- Methodset_label
GTK2.Button
set_label(string
label
)- Description
Set the text of the label.
- Methodset_relief
GTK2.Button
set_relief(int
newstyle
)- Description
One of
RELIEF_HALF
,RELIEF_NONE
andRELIEF_NORMAL
- Methodset_use_stock
GTK2.Button
set_use_stock(int
use_stock
)- Description
If true, the label set on the button is used as a stock id to select the stock item for the button.
- Methodset_use_underline
GTK2.Button
set_use_underline(int
use_underline
)- Description
If true, an underline in the text of the button label indicates the next character should be used for the mnemonic accelerator key.
Class GTK2.ButtonBox
- Description
More or less equivalent to a normal box, but you can set a few layout schemes that are not available for normal boxes. See the hbox and vbox documentation for examples. Properties: int layout-style
Child properties: int secondary
Style properties: int child-internal-pad-x int child-internal-pad-y int child-min-height int child-min-width
- Methodget_child_secondary
int
get_child_secondary(GTK2.Widget
child
)- Description
Returns whether child should appear in a secondary group of children.
- Methodget_layout
int
get_layout()- Description
Returns the currently configured layout. One of
BUTTONBOX_DEFAULT_STYLE
,BUTTONBOX_EDGE
,BUTTONBOX_END
,BUTTONBOX_SPREAD
andBUTTONBOX_START
- InheritBox
inherit GTK2.Box : Box
- Methodset_child_secondary
GTK2.ButtonBox
set_child_secondary(GTK2.Widget
child
,int
is_secondary
)- Description
Sets whether child should appear in a secondary group of children.
- Methodset_layout
GTK2.ButtonBox
set_layout(int
layout
)- Description
layout is one of
BUTTONBOX_DEFAULT_STYLE
,BUTTONBOX_EDGE
,BUTTONBOX_END
,BUTTONBOX_SPREAD
andBUTTONBOX_START
Class GTK2.Calendar
- Description
A calendar widget.
GTK2.Calendar();
GTK2.Calendar()->select_day( 16 );
Properties: int day int month int no-month-change int show-day-names int show-heading int show-week-numbers int year
Signals: day_selected
day_selected_double_click
month_changed
next_month
next_year
prev_month
prev_year
- Methodclear_marks
GTK2.Calendar
clear_marks()- Description
Remove all day markers
- Methodcreate
GTK2.CalendarGTK2.Calendar(
mapping
|void
props
)- Description
Create a new calendar widget
- Methodfreeze
GTK2.Calendar
freeze()- Description
Suspend all dynamic updating of the widget
- Methodget_date
mapping
get_date()- Description
returns a mapping: ([ "year":year, "month":month, "day":day ])
- Methodget_display_options
int
get_display_options()- Description
Returns the current display options.
- Methodget_marked_dates
array
get_marked_dates()- Description
Returns an array (with 31 elements) with 1es and 0es.
- InheritWidget
inherit GTK2.Widget : Widget
- Methodmark_day
GTK2.Calendar
mark_day(int
day_of_month
)- Description
Mark a day
- Methodselect_day
GTK2.Calendar
select_day(int
day_of_month
)- Description
Select a certain day of the currently selected month
- Methodselect_month
int
select_month(int
month
,int
year
)- Description
Select the month to be viewed.
- Methodset_display_options
GTK2.Calendar
set_display_options(int
options
)- Description
Bitwise or of one or more of
CALENDAR_NO_MONTH_CHANGE
,CALENDAR_SHOW_DAY_NAMES
,CALENDAR_SHOW_HEADING
,CALENDAR_SHOW_WEEK_NUMBERS
andCALENDAR_WEEK_START_MONDAY
.
- Methodthaw
GTK2.Calendar
thaw()- Description
Resume dynamic updating of the widget
- Methodunmark_day
GTK2.Calendar
unmark_day(int
day_of_month
)- Description
Unmark a day
Class GTK2.CellEditable
- Description
Interface for widgets which are used for editing cells.
Signals: editing_done
remove_widget
- Methodediting_done
GTK2.CellEditable
editing_done()- Description
Emits the "editing-done" signal. This signal is a sign for the cell renderer to update its value from the cell.
- Methodremove_widget
GTK2.CellEditable
remove_widget()- Description
Emits the "remove-widget" signal. This signal is meant to indicate that the cell is finished editing, and the widget may now be destroyed.
- Methodstart_editing
GTK2.CellEditable
start_editing(GTK2.GdkEvent
event
)- Description
Begins editing. event is the GDK2.Event that began the editing process. It may be empty, in the instance that editing was initiated through programmatic means.
Class GTK2.CellLayout
- Description
An interface for packing cells.
- Methodadd_attribute
GTK2.CellLayout
add_attribute(GTK2.CellRenderer
cell
,string
attribute
,int
column
)- Description
Adds an attribute mapping.
- Methodclear
GTK2.CellLayout
clear()- Description
Unsets all the mappings on all renderers and removes all renderers.
- Methodclear_attributes
GTK2.CellLayout
clear_attributes(GTK2.CellRenderer
cell
)- Description
Clears all existing attributes.
- Methodpack_end
GTK2.CellLayout
pack_end(GTK2.CellRenderer
cell
,int
expand
)- Description
See pack_start().
- Methodpack_start
GTK2.CellLayout
pack_start(GTK2.CellRenderer
cell
,int
expand
)- Description
Packs the cell into the beginning. If expand is false, then the cell is allocated no more space than it needs. Any unused space is divied evenly between the cells for which expand is true.
- Methodreorder
GTK2.CellLayout
reorder(GTK2.CellRenderer
cell
,int
position
)- Description
Re-inserts cell at position.
- Methodset_cell_data_func
GTK2.CellLayout
set_cell_data_func(GTK2.CellRenderer
cell
,function
(:void
)f
,mixed
user_data
)- Description
Sets the callback to use for this cell layout. This function is used instead of the standard attributes mapping for setting the column value, and should set the value of the cell layout's cell renderer(s) as appropriate. f may be 0 to remove an older one.
Class GTK2.CellRenderer
- Description
Properties: string cell-background GDK2.Color cell-background-gdk int cell-background-set int height int is-expanded int is-expander int mode
CELL_RENDERER_MODE_ACTIVATABLE
,CELL_RENDERER_MODE_EDITABLE
andCELL_RENDERER_MODE_INERT
int sensitive int visible int width float xalign int xpad float yalign int ypadSignals: editing_canceled
editing_started
- Methodactivate
int
activate(GTK2.GdkEvent
event
,GTK2.Widget
widget
,string
path
,GTK2.GdkRectangle
background_area
,GTK2.GdkRectangle
cell_area
,int
flags
)- Description
Passes an activate event to the cell renderer for possible processing. Some cell renderers may use events; for example, W(CellRendererToggle) toggles when it gets a mouse click.
- Methodget_fixed_size
mapping
get_fixed_size()- Description
Fills in width and height with the appropriate size of the cell.
- Methodget_size
mapping
get_size(GTK2.Widget
widget
,GTK2.GdkRectangle
cell_area
)- Description
Obtains the width and heigh needed to render the cell. Used by widgets to determine the appropriate size for the cell_area passed to render(). If cell_area is present, fills in the x and y offset of the cell relative to this location. Please note that the values set in width and height, as well as those in x_offset and y_offset are inclusive of the xpad and ypad properties.
- InheritData
inherit GTK2.Data : Data
- Methodrender
GTK2.CellRenderer
render(GTK2.GdkWindow
window
,GTK2.Widget
widget
,GTK2.GdkRectangle
background_area
,GTK2.GdkRectangle
cell_area
,GTK2.GdkRectangle
expose_area
,int
flags
)- Description
Invokes the virtual render function of the W(CellRenderer). The three passed-in rectangles are areas of window. Most renderers will draw within cell_area; the xalign, yalign, xpad, and ypad fields of the W(CellRenderer) should be honored with respect to cell_area. background_area includes the blank space around the cell, and also the area containing the tree expander; so the background_area rectangles for all cells tile to cover the entire window. expose_area is a clip rectangle. flags is one of
CELL_RENDERER_ACCEL_MODE_GTK
,CELL_RENDERER_ACCEL_MODE_OTHER
,CELL_RENDERER_FOCUSED
,CELL_RENDERER_INSENSITIVE
,CELL_RENDERER_MODE_ACTIVATABLE
,CELL_RENDERER_MODE_EDITABLE
,CELL_RENDERER_MODE_INERT
,CELL_RENDERER_PRELIT
,CELL_RENDERER_SELECTED
andCELL_RENDERER_SORTED
.
- Methodset_fixed_size
GTK2.CellRenderer
set_fixed_size(int
width
,int
height
)- Description
Sets the renderer size to be explicit, independent of the properties set.
- Methodstart_editing
GTK2.CellRenderer
start_editing(GTK2.GdkEvent
event
,GTK2.Widget
widget
,string
path
,GTK2.GdkRectangle
background_area
,GTK2.GdkRectangle
cell_area
,int
flags
)- Description
Passes an activate event to the cell renderer for possible processing.
- Methodstop_editing
GTK2.CellRenderer
stop_editing(int
canceled
)- Description
Informs the cell renderer that the editing is stopped. If canceled is true, the cell renderer will emit the "editing-canceled" signal. This function should be called by cell renderer implementations in response to the "editing-done" signal of W(CellEditable).
Class GTK2.CellRendererAccel
- Description
Properties: int accel-key int accel-mode int accel-mods int keycode
Signals: accel_cleared
accel_edited
- Methodcreate
GTK2.CellRendererAccelGTK2.CellRendererAccel(
mapping
|void
props
)- Description
Create a new GTK2.CellRendererAccel.
- InheritCellRendererText
inherit GTK2.CellRendererText : CellRendererText
Class GTK2.CellRendererCombo
- Description
Properties: int has-entry GTK2.TreeModel model int text-column
- Methodcreate
GTK2.CellRendererComboGTK2.CellRendererCombo(
mapping
|void
props
)- Description
Creates a new W(CellRendererCombo).
- InheritCellRendererText
inherit GTK2.CellRendererText : CellRendererText
Class GTK2.CellRendererPixbuf
- Description
Properties: GDK2.Pixbuf pixbuf GDK2.Pixbuf pixbuf-expander-closed GDK2.Pixbuf pixbuf-expander-open string stock-detail string stock-id int stock-size
- Methodcreate
GTK2.CellRendererPixbufGTK2.CellRendererPixbuf(
mapping
|void
props
)- Description
Creates a new W(CellRendererPixbuf). Adjust rendering parameters using object properties. Object properties can be set globally with G.Object->set(). Also, with W(TreeViewColumn), you can bind a property to a value in a W(TreeModel). For example, you can bind the "pixbuf" property on the cell renderer to a pixbuf value in the model, thus rendering a different image in each row of the W(TreeView).
- InheritCellRenderer
inherit GTK2.CellRenderer : CellRenderer
Class GTK2.CellRendererProgress
- Description
Properties: int orientation int pulse string text float text-xalign float text-yalign int value
- Methodcreate
GTK2.CellRendererProgressGTK2.CellRendererProgress(
mapping
|void
props
)- Description
Create a new W(CellRendererProgress).
- InheritCellRenderer
inherit GTK2.CellRenderer : CellRenderer
Class GTK2.CellRendererSpin
- Description
Properties: int digits GTK2.Adjustment adjustment float climb-rate
- Methodcreate
GTK2.CellRendererSpinGTK2.CellRendererSpin(
mapping
|void
props
)- Description
Create a new GTK2.CellRendererSpin.
- InheritCellRendererText
inherit GTK2.CellRendererText : CellRendererText
Class GTK2.CellRendererText
- Description
Properties: int alignment Pango.AttrList attributes string background GDK2.Color background-gdk int background-set int editable int editable-set int ellipsize
PANGO_ELLIPSIZE_END
,PANGO_ELLIPSIZE_MIDDLE
,PANGO_ELLIPSIZE_NONE
andPANGO_ELLIPSIZE_START
int ellipsize-set string family int family-set string font Pango.FontDescription font-desc string foreground GDK2.Color foreground-gdk int foreground-set string language int language-set string markup int rise int rise-set float scale int scale-set int single-paragraph-mode int size float size-points int size-set int stretchPANGO_STRETCH_CONDENSED
,PANGO_STRETCH_EXPANDED
,PANGO_STRETCH_EXTRA_CONDENSED
,PANGO_STRETCH_EXTRA_EXPANDED
,PANGO_STRETCH_NORMAL
,PANGO_STRETCH_SEMI_CONDENSED
,PANGO_STRETCH_SEMI_EXPANDED
,PANGO_STRETCH_ULTRA_CONDENSED
andPANGO_STRETCH_ULTRA_EXPANDED
int stretch-set int strikethrough int strikethrough-set int stylePANGO_STYLE_ITALIC
,PANGO_STYLE_NORMAL
andPANGO_STYLE_OBLIQUE
int style-set string text int underlinePANGO_UNDERLINE_DOUBLE
,PANGO_UNDERLINE_ERROR
,PANGO_UNDERLINE_LOW
,PANGO_UNDERLINE_NONE
andPANGO_UNDERLINE_SINGLE
int underline-set int variantPANGO_VARIANT_NORMAL
andPANGO_VARIANT_SMALL_CAPS
int variant-set int weight int weight-set int width-charsSignals: edited
- Methodcreate
GTK2.CellRendererTextGTK2.CellRendererText(
mapping
|void
props
)- Description
Creates a new W(CellRendererText). Adjust how text is drawn using object properties. Object properties can be set globally (with G.Object->set()). Also, with W(TreeViewColumn), you can bind a property to a value in a W(TreeModel). For example, you can bind the "text" property on the cell renderer to a string value in the model, thus rendering a different string in each row of the W(TreeView).
- InheritCellRenderer
inherit GTK2.CellRenderer : CellRenderer
- Methodset_fixed_height_from_font
GTK2.CellRendererText
set_fixed_height_from_font(int
number_of_rows
)- Description
Sets the height of a renderer to explicitly be determined by the "font" and "y_bad" property set on it. Further changes in these properties do not affect the height, so they must be accompanied by a subsequent call to this function. Using this function is unflexible, and should really only be used if calculating the size of cell is too slow (i.e., a massive number of cells displayed). If number_of_rows is -1, then the fixed height is unset, and the height is determined by the properties again.
Class GTK2.CellRendererToggle
- Description
Properties: int activatable The toggle button can be activated. int active The toggle state of the button. int inconsistent The inconsistent state of the button. int indicator-size int radio Draw the toggle butotn as a radio button.
Signals: toggled
- Methodcreate
GTK2.CellRendererToggleGTK2.CellRendererToggle(
mapping
|void
props
)- Description
Creates a new W(CellRendererToggle). Adjust rendering parameters using object properties. Object properties can be set globally with set().
- Methodget_active
int
get_active()- Description
Returns whether the cell renderer is active.
- Methodget_radio
int
get_radio()- Description
Returns whether we're rendering radio toggles rather than checkboxes.
- InheritCellRenderer
inherit GTK2.CellRenderer : CellRenderer
- Methodset_active
GTK2.CellRendererToggle
set_active(int
setting
)- Description
Activates or deactivates a cell renderer.
- Methodset_radio
GTK2.CellRendererToggle
set_radio(int
radio
)- Description
If radio is true, the cell renderer renders a radio toggle (i.e a toggle in a group of mutually-exclusive toggles). If false, it renders a check toggle (a standalone boolean option). This can be set globally for the cell renderer, or changed just before rendering each cell in the model (for W(TreeView), you set up a per-row setting using W(TreeViewColumn) to associate model columns with cell renderer properties).
Class GTK2.CellView
- Description
Properties: string background GDK2.Color background-gdk int background-set
- Methodcreate
GTK2.CellViewGTK2.CellView(
string
|GdkPixbuf
|mapping
text
,int
|void
markup
)- Description
Create a new W(CellView) widget.
- Methodget_cell_renderers
array
get_cell_renderers()- Description
Returns the cell renderers which have been added to this view.
- Methodget_displayed_row
GTK2.TreePath
get_displayed_row()- Description
Returns a W(TreePath) referring to the currently displayed row. If no row is currently displayed, 0 is returned.
- Methodget_size_of_row
mapping
get_size_of_row(GTK2.TreePath
path
)- Description
Returns width and height of the size needed to display the model row pointed to by path.
- InheritCellLayout
inherit GTK2.CellLayout : CellLayout
- InheritWidget
inherit GTK2.Widget : Widget
- Methodset_background_color
GTK2.CellView
set_background_color(GTK2.GdkColor
color
)- Description
Sets the background color.
- Methodset_displayed_row
GTK2.CellView
set_displayed_row(GTK2.TreePath
path
)- Description
Sets the row of the model that is currently displayed. If the path is omitted, then the contents of the cellview "stick" at their last value; this is not normally a desired result, but may be a needed intermediate state if say, the mode becomes temporarily empty.
- Methodset_model
GTK2.CellView
set_model(GTK2.TreeModel
model
)- Description
Sets the model. If this view already has a model set, it will remove it before setting the new model.
Class GTK2.CheckButton
- Description
Check buttons inherent many properties and functions from the the toggle buttons, but look a little different. Rather than being buttons with text inside them, they are small squares with the text to the right of them. These are often used for toggling options on and off in applications.
GTK2.CheckButton( "title" )
Style properties: int indicator-size int indicator-spacing
- Methodcreate
GTK2.CheckButtonGTK2.CheckButton(
string
|mapping
label_or_props
,int
|void
mnemonic
)- Description
The argument, if specified, is the label of the item. If no label is specified, use object->add() to add some other widget (such as an pixmap or image widget)
- InheritToggleButton
inherit GTK2.ToggleButton : ToggleButton
Class GTK2.CheckMenuItem
- Description
A check menu item is more or less identical to a check button, but it should be used in menus.
GTK2.CheckMenuItem("Hi there")
GTK2.CheckMenuItem("Hi there")->set_active(1)
Properties: int active int draw-as-radio int inconsistent
Style properties: int indicator-size
Signals: toggled Called when the state of the menu item is changed
- Methodcreate
GTK2.CheckMenuItemGTK2.CheckMenuItem(
string
|mapping
label_or_props
)- Description
The argument, if specified, is the label of the item. If no label is specified, use object->add() to add some other widget (such as an pixmap or image widget)
- Methodget_active
int
get_active()- Description
Get whether item is active.
- Methodget_draw_as_radio
int
get_draw_as_radio()- Description
Get whether check menu item is drawn like a radio button.
- Methodget_inconsistent
int
get_inconsistent()- Description
Retrieves the value set by set_inconsistent().
- InheritMenuItem
inherit GTK2.MenuItem : MenuItem
- Methodset_active
GTK2.CheckMenuItem
set_active(int
new_state
)- Description
State is either 1 or 0. If 1, the button will be 'pressed'.
- Methodset_draw_as_radio
GTK2.CheckMenuItem
set_draw_as_radio(int
draw_as_radio
)- Description
Set whether check menu item is drawn like a radio button.
- Methodset_inconsistent
GTK2.CheckMenuItem
set_inconsistent(int
setting
)- Description
If the user has selected a range of elements (such as some text or spreadsheet cells) that are affected by a boolean setting, and the current values in that range are inconsistent, you may want to display the check in an "in between" state. This function turns on "in between" display.
- Methodtoggled
GTK2.CheckMenuItem
toggled()- Description
Emulate a toggled event
Class GTK2.Clipboard
- Description
Clipboard implementation.
- Methodclear
GTK2.Clipboard
clear()- Description
Clears the contents of the clipboard.
- Methodget
GTK2.Clipboard
get(GDK2.Atom
selection
)- Description
Returns the clipboard object for the given selection.
- Methodget_display
GTK2.GdkDisplay
get_display()- Description
Gets the GDK2.Display associated with this clipboard.
- Methodget_for_display
GTK2.Clipboard
get_for_display(GTK2.GdkDisplay
display
,GDK2.Atom
selection
)- Description
Returns the clipboard object for the given selection.
- InheritObject
inherit G.Object : Object
- Methodset_image
GTK2.Clipboard
set_image(GTK2.GdkPixbuf
pixbuf
)- Description
Sets the contents of the clipboard to the given GDK2(Pixbuf).
- Methodset_text
GTK2.Clipboard
set_text(sprintf_format
text
,sprintf_args
...fmt
)- Description
Sets the contents of the clipboard to the given string. If multiple arguments are supplied, sprintf() is called implicitly.
- Methodwait_for_image
GTK2.GdkPixbuf
wait_for_image()- Description
Requests the contents of the clipboard as image and converts the result to a GDK2.Pixbuf.
- Methodwait_for_rich_text
string
wait_for_rich_text(GTK2.TextBuffer
buffer
)- Description
Requests the contents of the clipboard as rich text.
- Methodwait_for_text
string
wait_for_text()- Description
Requests the contents of the clipboard as text
- Methodwait_is_image_available
int
wait_is_image_available()- Description
Test to see if tehre is an image available to be pasted.
- Methodwait_is_rich_text_available
int
wait_is_rich_text_available(GTK2.TextBuffer
buffer
)- Description
Test to see if there is rich text available to be pasted.
- Methodwait_is_text_available
int
wait_is_text_available()- Description
Test to see if there is text available to be pasted. This is done by requesting the TARGETS atom and checking if it contains any of the supported text targets.
Class GTK2.ColorButton
- Description
Properties: int alpha GDK2.Color color string title int use-alpha
Signals: color_set When a user selects a color.
- Methodcreate
GTK2.ColorButtonGTK2.ColorButton(
GTK2.GdkColor
red_or_props
,int
|void
green
,int
|void
blue
)- Description
Create a new W(ColorButton).
- Methodget_alpha
int
get_alpha()- Description
Get the current alpha value.
- Methodget_color
GTK2.GdkColor
get_color()- Description
Returns the current color.
- Methodget_title
string
get_title()- Description
Get the title.
- Methodget_use_alpha
int
get_use_alpha()- Description
Gets whether the color button uses the alpha channel.
- InheritButton
inherit GTK2.Button : Button
- Methodset_alpha
GTK2.ColorButton
set_alpha(int
alpha
)- Description
Sets the current opacity to alpha.
- Methodset_color
GTK2.ColorButton
set_color(int
|GdkColor
red
,int
|void
green
,int
|void
blue
)- Description
Sets the current color.
- Methodset_title
GTK2.ColorButton
set_title(string
title
)- Description
Sets the title for the color selection dialog.
- Methodset_use_alpha
GTK2.ColorButton
set_use_alpha(int
use_alpha
)- Description
Sets whether or not the color button should use the alpha channel.
Class GTK2.ColorSelection
- Description
The color selection widget is, not surprisingly, a widget for interactive selection of colors. This composite widget lets the user select a color by manipulating RGB (Red, Green, Blue) and HSV (Hue, Saturation, Value) triples. This is done either by adjusting single values with sliders or entries, or by picking the desired color from a hue-saturation wheel/value bar. Optionally, the opacity of the color can also be set.
The color selection widget currently emits only one signal, "color_changed", which is emitted whenever the current color in the widget changes, either when the user changes it or if it's set explicitly through set_color().
GTK2.ColorSelection()
Properties: int current-alpha GDK2.Color current-color int has-opacity-control int has-palette
Signals: color_changed
- Methodcreate
GTK2.ColorSelectionGTK2.ColorSelection(
mapping
|void
props
)- Description
Create a new color selection.
- Methodget_current_alpha
int
get_current_alpha()- Description
Returns the current alpha value.
- Methodget_current_color
mapping
get_current_color()- Description
When you need to query the current color, typically when you've received a "color_changed" signal, you use this function. The return value is an array of floats, See the set_color() function for the description of this array.
- Methodget_has_opacity_control
int
get_has_opacity_control()- Description
Determines whether the colorsel has an opacity control.
- Methodget_has_palette
int
get_has_palette()- Description
Determines whether the color selector has a color palette.
- Methodget_previous_alpha
int
get_previous_alpha()- Description
Returns the previous alpha value.
- Methodget_previous_color
mapping
get_previous_color()- Description
Returns the original color value.
- InheritVbox
inherit GTK2.Vbox : Vbox
- Methodis_adjusting
int
is_adjusting()- Description
Gets the current state of the colorsel.
- Methodset_current_alpha
GTK2.ColorSelection
set_current_alpha(int
alpha
)- Description
Sets the current opacity to be alpha. The first time this is called, it will also set the original opacity to be alpha too.
- Methodset_current_color
GTK2.ColorSelection
set_current_color(mapping
color
)- Description
You can set the current color explicitly by calling this function with an array of colors (floats). The length of the array depends on whether opacity is enabled or not. Position 0 contains the red component, 1 is green, 2 is blue and opacity is at position 3 (only if opacity is enabled, see set_opacity()) All values are between 0 and 65535
- Methodset_has_opacity_control
GTK2.ColorSelection
set_has_opacity_control(int
setting
)- Description
Sets whether or not to use opacity.
- Methodset_has_palette
GTK2.ColorSelection
set_has_palette(int
has_palette
)- Description
Shows and hides the palette based upon the value of has_palette
- Methodset_previous_alpha
GTK2.ColorSelection
set_previous_alpha(int
alpha
)- Description
Sets the 'previous' alpha to be alpha. This function should be called with some hesitation, as it might seem confusing to have that alpha change.
- Methodset_previous_color
GTK2.ColorSelection
set_previous_color(mapping
colors
)- Description
Sets the 'previous' color to be color.
Class GTK2.ColorSelectionDialog
- Description
Color Selection Dialog
- Methodcreate
GTK2.ColorSelectionDialogGTK2.ColorSelectionDialog(
string
|mapping
title_or_props
)- Description
Create a new Color Selection Dialog
- Methodget_cancel_button
GTK2.Widget
get_cancel_button()- Description
The Cancel button.
- Methodget_colorsel
GTK2.Widget
get_colorsel()- Description
The Color Selection widget contained within the dialog
- Methodget_help_button
GTK2.Widget
get_help_button()- Description
The Help button.
- Methodget_ok_button
GTK2.Widget
get_ok_button()- Description
The OK button.
- InheritDialog
inherit GTK2.Dialog : Dialog
Class GTK2.ComboBox
- Description
Properties: int active int add-tearoffs int column-span-column int focus-on-click int has-frame GTK2.TreeModel model int row-span-column string tearoff-title int wrap-width
Style properties: int appears-as-list int arrow-size int shadow-type
Signals: changed
- Methodappend_text
GTK2.ComboBox
append_text(string
text
)- Description
Appends text to the list of strings stored in this combo box. Note that you can only use this function with combo boxes constructed with GTK2.ComboBox("a string").
- Methodcreate
GTK2.ComboBoxGTK2.ComboBox(
GTK2.TreeModel
model_or_props
)- Description
Create a new ComboBox, either empty or with a model. If a string is passed int instead, it will create a new W(ComboBox) with only text strings. If you do so, you should only manipulate it with the following functions: append_text(), insert_text(), prepend_text(), and remove_text().
- Methodget_active
int
get_active()- Description
Returns the index of the currently active item, or -1 if none. If the model is a non-flat treemodel, and the active item is not an immediate child of the root of the tree, this function returns path_get_indices(path)[0], where path is the GTK2.TreePath of the active item.
- Methodget_active_iter
GTK2.TreeIter
get_active_iter()- Description
Get the current active item.
- Methodget_active_text
string
get_active_text()- Description
Returns the currently active string. Note that you can only use this function with combo boxes constructed with GTK2.ComboBox("a string").
- Methodget_add_tearoffs
int
get_add_tearoffs()- Description
Gets whether the popup menu has tearoff items.
- Methodget_column_span_column
int
get_column_span_column()- Description
Returns the column with column span information.
- Methodget_focus_on_click
int
get_focus_on_click()- Description
Returns whether the combo box grabs focus when it is clicked with the mouse.
- Methodget_model
GTK2.TreeModel
get_model()- Description
Get the GTK2.TreeModel which is acting as a data source.
- Methodget_row_span_column
int
get_row_span_column()- Description
Returns the column with row span information.
- Methodget_title
string
get_title()- Description
Gets the current title of the menu in tearoff mode.
- Methodget_wrap_width
int
get_wrap_width()- Description
Returns the wrap width which is used to determine the number of columns for the popup menu. If the wrap width is larger than 1, the combo box is in table mode.
- InheritBin
inherit GTK2.Bin : Bin
- InheritCellEditable
inherit GTK2.CellEditable : CellEditable
- InheritCellLayout
inherit GTK2.CellLayout : CellLayout
- Methodinsert_text
GTK2.ComboBox
insert_text(int
position
,string
text
)- Description
Inserts string at position in the list of strings stored. Note that you can only use this function with combo boxes constructed with GTK2.ComboBox("a string").
- Methodpopdown
GTK2.ComboBox
popdown()- Description
Hides the menu or dropdown list.
- Methodpopup
GTK2.ComboBox
popup()- Description
Pops up the menu or dropdown list.
- Methodprepend_text
GTK2.ComboBox
prepend_text(string
text
)- Description
Prepends string to the list of strings stored in this combo box. Note that you can only use this function with combo boxes constructed with GTK2.ComboBox("a string").
- Methodremove_text
GTK2.ComboBox
remove_text(int
position
)- Description
Removes the string at position from this combo box. Note that you can only use this function with combo boxes constructed with GTK2.ComboBox("a string").
- Methodset_active
GTK2.ComboBox
set_active(int
index_
)- Description
Sets the active item.
- Methodset_active_iter
GTK2.ComboBox
set_active_iter(GTK2.TreeIter
iter
)- Description
Sets the current active item to be the one referenced by iter. iter must correspond to a path of depth one.
- Methodset_add_tearoffs
GTK2.ComboBox
set_add_tearoffs(int
setting
)- Description
Sets whether the popup menu should have a tearoff menu item.
- Methodset_column_span_column
GTK2.ComboBox
set_column_span_column(int
column_span
)- Description
Sets the column span information. The column span column contains integers which indicate how many columns an item should span.
- Methodset_focus_on_click
GTK2.ComboBox
set_focus_on_click(int
setting
)- Description
Sets whether the combo box will grab focus when it is clicked with the mouse.
- Methodset_model
GTK2.ComboBox
set_model(GTK2.TreeModel
model
)- Description
Sets the model used by this widget. Will unset a previously set model. If no arguments are passed, then it will unset the model.
- Methodset_row_separator_func
GTK2.ComboBox
set_row_separator_func(function
(:void
)f
,mixed
user_data
)- Description
Sets the row separator function, which is used to determine whether a row should be drawn as a separator. If the row separator function is 0 no separators are drawn. This is the default value.
- Methodset_row_span_column
GTK2.ComboBox
set_row_span_column(int
row_span
)- Description
Sets the column with row span information. The row span column contains integers which indicate how many rows an item should span.
- Methodset_title
GTK2.ComboBox
set_title(string
title
)- Description
Sets the menu's title in tearoff mode.
- Methodset_wrap_width
GTK2.ComboBox
set_wrap_width(int
width
)- Description
Sets the wrap width. The wrap width is basically the preferred number of columns when you want the popup to be layed out in a table.
Class GTK2.ComboBoxEntry
- Description
Properties: int text-column
- Methodcreate
GTK2.ComboBoxEntryGTK2.ComboBoxEntry(
string
|TreeModel
|mapping
model
,int
|void
text_column
)- Description
Create a new ComboBoxEntry, either empty or with a model.
- Methodentry
GTK2.Widget
entry()- Description
Returns the GTK2.Entry widget
- Methodget_text_column
int
get_text_column()- Description
Returns the column which this widget is using to get the strings from.
- InheritCellEditable
inherit GTK2.CellEditable : CellEditable
- InheritCellLayout
inherit GTK2.CellLayout : CellLayout
- InheritComboBox
inherit GTK2.ComboBox : ComboBox
- Methodset_text_column
GTK2.ComboBoxEntry
set_text_column(int
text_column
)- Description
Sets the model column which this widget should use to get strings from.
Class GTK2.Container
- Description
The basic container class. Properties: int border-width GTK2.Widget child int resize-mode
RESIZE_IMMEDIATE
,RESIZE_PARENT
andRESIZE_QUEUE
Signals: add Called when a new object is added to the container. (used internally)
check_resize Called when the container needs resizing (used internally)
remove Called when a object is removed from the container (used internally)
set_focus_child
- Methodadd
GTK2.Container
add(GTK2.Widget
widget
)- Description
Add a subwidget to the container. Don't forget to call show() in the subwidget. Some (even most) containers can only contain one child. Calling this function might result in a resize of the container.
- Methodcheck_resize
GTK2.Container
check_resize()- Description
Undocumented
- Methodget_border_width
int
get_border_width()- Description
Retrieves the border width.
- Methodget_children
array
get_children()- Description
This function returns all children of the container as an array.
- Methodget_focus_chain
array
get_focus_chain()- Description
Returns the focus chain.
- Methodget_focus_hadjustment
GTK2.Adjustment
get_focus_hadjustment()- Description
Retrieves the horizontal focus adjustment.
- Methodget_focus_vadjustment
GTK2.Adjustment
get_focus_vadjustment()- Description
Retrieves the vertical focus adjustment.
- Methodget_resize_mode
int
get_resize_mode()- Description
Returns the resize mode.
- InheritWidget
inherit GTK2.Widget : Widget
- Methodremove
GTK2.Container
remove(GTK2.Widget
widget
)- Description
Remove a child from the container. The argument is the child to remove. Calling this function might result in a resize of the container.
- Methodresize_children
GTK2.Container
resize_children()- Description
Undocumented.
- Methodset_border_width
GTK2.Container
set_border_width(int
width
)- Description
Sets the border width.
- Methodset_focus_chain
GTK2.Container
set_focus_chain(array
focusable_widgets
)- Description
Sets a focus chain, overriding the one computer automatically by GTK+.
In principle each widget in the chain should be a descendant of the container, but this is not enforced by this method, since it's allowed to set the focus chain before you pack the widgets, or have a widget in the chain that isn't always packed. The necessary checks are done when the focus chain is actually traversed.
- Methodset_focus_child
GTK2.Container
set_focus_child(GTK2.Widget
child
)- Description
Emulate a set_focus_child signal. Focus on the specified child.
- Methodset_focus_hadjustment
GTK2.Container
set_focus_hadjustment(GTK2.Adjustment
adj
)- Description
Set the hadjustment used to focus children.
- Methodset_focus_vadjustment
GTK2.Container
set_focus_vadjustment(GTK2.Adjustment
adj
)- Description
Set the vadjustment used to focus children.
- Methodset_reallocate_redraws
GTK2.Container
set_reallocate_redraws(int
setting
)- Description
Sets the reallocate_redraws flag.
- Methodset_resize_mode
GTK2.Container
set_resize_mode(int
mode
)- Description
One of
RESIZE_IMMEDIATE
,RESIZE_PARENT
andRESIZE_QUEUE
Class GTK2.Data
- Description
A class inherited by all objects used to store data (they are not widgets)
Signals: disconnect
- InheritObject
inherit GTK2.Object : Object
Class GTK2.Databox
- Description
GtkDatabox is designed to display large amounts of numerical data fast and easy. Thousands of data points (X and Y coordinate) may be displayed without any problems, zooming and scrolling as well as optional rulers are already included.
The widget may be used as display for oscilloscopes or other applications that need to display fast changes in their data.
GTK2.Databox x=GTK2.Databox(); x->data_add_x_y(3, ({ 1.0, 0.5, 0.0 }), ({1.0, -1.0, 0.0}),GTK2.GdkColor(Image.Color.red), GTK2.DataboxLines,2); x->rescale(); x->set_size_request(300,300); return x;
Signals: marked
selection_canceled
selection_changed
selection_started
selection_stopped
zoomed
- Methodcreate
GTK2.DataboxGTK2.Databox()
- Description
Create a new databox widget
- Methoddata_add
int
data_add(int
nelems
,array
x
,array
y
,GTK2.GdkColor
color
,int
type
,int
dot_size
)- Description
Type is one of
DATABOX_BARS
,DATABOX_CROSS_SIMPLE
,DATABOX_GRID
,DATABOX_LINES
,DATABOX_NOT_DISPLAYED
andDATABOX_POINTS
- Methoddata_get_color
GTK2.GdkColor
data_get_color(int
index
)- Description
Get the color at index.
- Methoddata_get_extrema
array
data_get_extrema()- Description
Get the bounds of the data set (?)
- Methoddata_get_grid_config
int
data_get_grid_config(int
index
)- Description
See data_set_grid_config().
- Methoddata_get_type
array
data_get_type(int
index
)- Description
Return type and dot size at index.
- Methoddata_get_value
mapping
data_get_value(int
x
,int
y
)- Description
Get the value at the given coordinates.
- Methoddata_get_visible_extrema
array
data_get_visible_extrema()- Description
Get the positions of the edges of the display.
- Methoddata_remove
int
data_remove(int
index
)- Description
Remove data at index.
- Methoddata_remove_all
int
data_remove_all()- Description
Remove all data.
- Methoddata_set_color
int
data_set_color(int
index
,GTK2.GdkColor
color
)- Description
Set the color at index.
- Methoddata_set_grid_config
int
data_set_grid_config(int
index
,int
hlines
,int
vlines
)- Description
Not useful unless the data type is GTK2.DATABOX_GRID.
- Methoddata_set_type
int
data_set_type(int
index
,int
type
,int
dot_size
)- Description
Type is one of
DATABOX_BARS
,DATABOX_CROSS_SIMPLE
,DATABOX_GRID
,DATABOX_LINES
,DATABOX_NOT_DISPLAYED
andDATABOX_POINTS
- Methodget_rulers_enable
GTK2.Databox
get_rulers_enable()- Description
Get whether rulers will be displayed.
- Methodget_scrollbars_enable
GTK2.Databox
get_scrollbars_enable()- Description
Get whether scrollbars will be displayed.
- Methodget_selection_enable
int
get_selection_enable()- Description
Get whether selection is enabled.
- Methodget_selection_fill_enable
int
get_selection_fill_enable()- Description
Get whether the selection will be filled.
- Methodget_zoom_enable
GTK2.Databox
get_zoom_enable()- Description
Get whether zoom is enabled.
- Methodget_zoom_limit
float
get_zoom_limit()- Description
Get the zoom limit.
- InheritVbox
inherit GTK2.Vbox : Vbox
- Methodredraw
GTK2.Databox
redraw()- Description
Redraw.
- Methodrescale
GTK2.Databox
rescale()- Description
Rescale with automatically-calculated extrema.
- Methodrescale_inverted
GTK2.Databox
rescale_inverted(int
invertX
,int
invertY
)- Description
Rescale with an inverted x and/or y direction.
- Methodrescale_with_values
GTK2.Databox
rescale_with_values(float
minx
,float
miny
,float
maxx
,float
maxy
)- Description
Rescale with specific data extrema.
- Methodset_background_color
GTK2.Databox
set_background_color(GTK2.GdkColor
color
)- Description
Set the background color.
- Methodset_rulers_enable
GTK2.Databox
set_rulers_enable(int
setting
)- Description
Set whether rulers will be displayed.
- Methodset_scrollbars_enable
GTK2.Databox
set_scrollbars_enable(int
setting
)- Description
Set whether scrollbars will be displayed.
- Methodset_selection_enable
GTK2.Databox
set_selection_enable(int
setting
)- Description
Set whether selection is enabled.
- Methodset_selection_fill_enable
GTK2.Databox
set_selection_fill_enable(int
setting
)- Description
Set whether the selection will be filled.
- Methodset_zoom_enable
GTK2.Databox
set_zoom_enable(int
setting
)- Description
Set whether zoom is enabled.
- Methodset_zoom_limit
GTK2.Databox
set_zoom_limit(float
limit
)- Description
Set the zoom limit. Default is 0.01, which is 100 times.
Class GTK2.Dialog
- Description
A dialog is a window with a few default widgets added. The 'vbox' is the main content area of the widget. The 'action_area' is allocated for buttons (ok, cancel etc) Properties: int has-separator
Style properties: int action-area-border int button-spacing int content-area-border
Signals: close
response
- Methodadd_action_widget
GTK2.Dialog
add_action_widget(GTK2.Widget
child
,int
response_id
)- Description
Adds an activatable widget to the action area, connecting a signal handler that will emit the "response" signal on the dialog when the widget is activated.
- Methodadd_button
GTK2.Widget
add_button(string
button_text
,int
response_id
)- Description
Adds a button with the given text (or a stock button) and sets things up so that clicking the button will emit the "response" signal with the given response_id.
- Methodcreate
GTK2.DialogGTK2.Dialog(
mapping
|void
props
)- Description
Create a new dialog widget.
- Methodget_action_area
GTK2.HbuttonBox
get_action_area()- Description
The action area, this is where the buttons (ok, cancel etc) go
- Methodget_has_separator
int
get_has_separator()- Description
Accessor for whether the dialog has a separator.
- Methodget_response_for_widget
int
get_response_for_widget(GTK2.Widget
widget
)- Description
Gets the response id of a widget in the action area.
- Methodget_vbox
GTK2.Vbox
get_vbox()- Description
The vertical box that should contain the contents of the dialog
- InheritWindow
inherit GTK2.Window : Window
- Methodresponse
GTK2.Dialog
response(int
response_id
)- Description
Emits the "response" signal with the given response ID.
- Methodrun
int
run()- Description
Run the selected dialog.
- Methodset_default_response
GTK2.Dialog
set_default_response(int
response_id
)- Description
Sets the last widget in the action area with the given response_id as the default widget. Pressing "Enter" normally activates the default widget.
- Methodset_has_separator
GTK2.Dialog
set_has_separator(int
setting
)- Description
Sets whether this dialog has a separator above the buttons. True by default.
- Methodset_response_sensitive
GTK2.Dialog
set_response_sensitive(int
response_id
,int
setting
)- Description
Calls GTK2.Widget->set_sensitive() for each widget in the dialog's action area with the given response_id.
Class GTK2.DrawingArea
- Description
The drawing area is a window you can draw in. Please note that you must handle refresh and resize events on your own. Use W(pDrawingArea) for a drawingarea with automatic refresh/resize handling.
GTK2.DrawingArea()->set_size_request(100,100)
- Methodclear
GTK2.DrawingArea
clear(int
|void
x
,int
|void
y
,int
|void
width
,int
|void
height
)- Description
Either clears the rectangle defined by the arguments, of if no arguments are specified, the whole drawable.
- Methodcopy_area
GTK2.DrawingArea
copy_area(GTK2.GdkGC
gc
,int
xdest
,int
ydest
,GTK2.Widget
source
,int
xsource
,int
ysource
,int
width
,int
height
)- Description
Copies the rectangle defined by xsource,ysource and width,height from the source drawable, and places the results at xdest,ydest in the drawable in which this function is called.
- Methodcreate
GTK2.DrawingAreaGTK2.DrawingArea(
mapping
|void
props
)- Description
Create a new drawing area.
- Methoddraw_arc
GTK2.DrawingArea
draw_arc(GTK2.GdkGC
gc
,int
filledp
,int
x1
,int
y1
,int
x2
,int
y2
,int
angle1
,int
angle2
)- Description
Draws a single circular or elliptical arc. Each arc is specified by a rectangle and two angles. The center of the circle or ellipse is the center of the rectangle, and the major and minor axes are specified by the width and height. Positive angles indicate counterclockwise motion, and negative angles indicate clockwise motion. If the magnitude of angle2 is greater than 360 degrees, it is truncated to 360 degrees.
- Methoddraw_bitmap
GTK2.DrawingArea
draw_bitmap(GTK2.GdkGC
gc
,GTK2.GdkBitmap
bitmap
,int
xsrc
,int
ysrc
,int
xdest
,int
ydest
,int
width
,int
height
)- Description
Draw a GDK2(Bitmap) in this drawable. NOTE: This drawable must be a bitmap as well. This will be fixed in GTK 1.3
- Methoddraw_image
GTK2.DrawingArea
draw_image(GTK2.GdkGC
gc
,GTK2.GdkImage
image
,int
xsrc
,int
ysrc
,int
xdest
,int
ydest
,int
width
,int
height
)- Description
Draw the rectangle specified by xsrc,ysrc+width,height from the GDK2(Image) at xdest,ydest in the destination drawable
- Methoddraw_line
GTK2.DrawingArea
draw_line(GTK2.GdkGC
gc
,int
x1
,int
y1
,int
x2
,int
y2
)- Description
img_begin w = GTK2.DrawingArea()->set_size_request(100,100); delay: g = GDK2.GC(w)->set_foreground( GDK2.Color(255,0,0) ); delay: for(int x = 0; x<10; x++) w->draw_line(g,x*10,0,100-x*10,99); img_end
- Methoddraw_pixbuf
GTK2.DrawingArea
draw_pixbuf(GTK2.GdkGC
gc
,GTK2.GdkPixbuf
pixbuf
,int
xsrc
,int
ysrc
,int
xdest
,int
ydest
,int
width
,int
height
)- Description
Draw a GDK2(Pixbuf) in this drawable.
- Methoddraw_pixmap
GTK2.DrawingArea
draw_pixmap(GTK2.GdkGC
gc
,GTK2.GdkPixmap
pixmap
,int
xsrc
,int
ysrc
,int
xdest
,int
ydest
,int
width
,int
height
)- Description
Draw the rectangle specified by xsrc,ysrc+width,height from the GDK2(Pixmap) at xdest,ydest in the destination drawable
- Methoddraw_point
GTK2.DrawingArea
draw_point(GTK2.GdkGC
gc
,int
x
,int
y
)- Description
img_begin w = GTK2.DrawingArea()->set_size_request(10,10); delay: g = GDK2.GC(w)->set_foreground( GDK2.Color(255,0,0) ); delay: for(int x = 0; x<10; x++) w->draw_point(g, x, x); img_end
- Methoddraw_rectangle
GTK2.DrawingArea
draw_rectangle(GTK2.GdkGC
gc
,int
filledp
,int
x1
,int
y1
,int
x2
,int
y2
)- Description
img_begin w = GTK2.DrawingArea()->set_size_request(100,100); delay: g = GDK2.GC(w)->set_foreground( GDK2.Color(255,0,0) ); delay: for(int x = 0; x<10; x++) w->draw_rectangle(g,0,x*10,0,100-x*10,99); img_end img_begin w = GTK2.DrawingArea()->set_size_request(100,100); delay: g = GDK2.GC(w); delay: for(int x = 0; x<30; x++) { delay: g->set_foreground(GDK2.Color(random(255),random(255),random(255)) ); delay: w->draw_rectangle(g,1,x*10,0,100-x*10,99); delay: } img_end
- Methoddraw_text
GTK2.DrawingArea
draw_text(GTK2.GdkGC
gc
,int
x
,int
y
,string
|PangoLayout
text
)- Description
y is used as the baseline for the text.
- InheritWidget
inherit GTK2.Widget : Widget
- Methodset_background
GTK2.DrawingArea
set_background(GTK2.GdkColor
to
)- Description
Set the background color or image. The argument is either a GDK2.Pixmap or a GDK2.Color object.
Class GTK2.Editable
- Description
Interface for text-editing widgets.
Signals: changed
delete_text
insert_text
- Methodcopy_clipboard
GTK2.Editable
copy_clipboard()- Description
Causes the characters in the current selection to be copied to the clipboard.
- Methodcut_clipboard
GTK2.Editable
cut_clipboard()- Description
Causes the characters in the current selection to be copied to the clipboard and then deleted.
- Methoddelete_selection
GTK2.Editable
delete_selection()- Description
Deletes the current contents of the selection.
- Methoddelete_text
GTK2.Editable
delete_text(int
start
,int
end
)- Description
Deletes a sequence of characters.
- Methodget_chars
string
get_chars(int
start
,int
end
)- Description
Retrieves a sequence of characters.
- Methodget_editable
int
get_editable()- Description
Retrieves whether this widget is editable.
- Methodget_position
int
get_position()- Description
Retrieves the current cursor position.
- Methodget_selection_bounds
array
get_selection_bounds()- Description
Returns the selection bounds.
- Methodinsert_text
int
insert_text(string
text
,int
length
,int
pos
)- Description
Inserts text at a given position. Returns the position after the new text.
- Methodpaste_clipboard
GTK2.Editable
paste_clipboard()- Description
Causes the contents of the clipboard to be pasted into the given widget at the current cursor position.
- Methodselect_region
GTK2.Editable
select_region(int
start
,int
end
)- Description
Selects a region of text.
- Methodset_editable
GTK2.Editable
set_editable(int
setting
)- Description
Determines if the user can edit the text or not.
- Methodset_position
GTK2.Editable
set_position(int
pos
)- Description
Sets the cursor position.
Class GTK2.Entry
- Description
Use this widget when you want the user to input a single line of text.
GTK2.Entry()->set_text("Hello world")->set_editable(1)
Properties: int activates-default int cursor-position int editable int has-frame int inner-border int invisible-char int max-length int scroll-offset int selection-bound int shadow-type string text int truncate-multiline int visibility int width-chars float xalign
Style properties:
Signals: activate
backspace
copy_clipboard
cut_clipboard
delete_from_cursor
insert_at_cursor
move_cursor
paste_clipboard
populate_popup
toggle_overwrite
- Methodcreate
GTK2.EntryGTK2.Entry(
int
|mapping
maxlen_or_props
)- Description
Create a new W(Entry) widget.
- Methodget_activates_default
int
get_activates_default()- Description
Retrieves the value set by set_activates_default().
- Methodget_alignment
float
get_alignment()- Description
Gets the value set by set_alignment().
- Methodget_completion
GTK2.EntryCompletion
get_completion()- Description
Returns the completion object.
- Methodget_cursor_hadjustment
GTK2.Adjustment
get_cursor_hadjustment()- Description
Retrieves the horizontal cursor adjustment
- Methodget_has_frame
int
get_has_frame()- Description
Gets the value set by set_has_frame().
- Methodget_inner_border
array
get_inner_border()- Description
This function returns the entry's inner-border property.
- Methodget_invisible_char
int
get_invisible_char()- Description
Retrieves the character displayed in place of the real characters for entries with visibility set to false.
- Methodget_layout
GTK2.Pango.Layout
get_layout()- Description
Gets the Pango.Layout used to display the entry. The layout is useful to e.g. convert text positions to pixel positions, in combination with get_layout_offsets().
Keep in mind that the layout text may contain a preedit string, so layout_index_to_text_index() and text_index_to_layout_index() are needed to convert byte indices in the layout to byte indices in the entry contents.
- Methodget_layout_offsets
mapping
get_layout_offsets()- Description
Obtains the position of the Pango.Layout used to render text in the entry, in widget coordinates. Useful if you want to line up the text in an entry with some other text, e.g. when using the entry to implement editable cells in a sheet widget.
Also useful to convert mouse events into coordinates inside the Pango.Layout, e.g. to take some action if some part of the entry text is clicked.
Keep in mind that the layout text may contain a preedit string, so layout_index_to_text_index() and text_index_to_layout_index() are needed to convert byte indices in the layout to byte indices in the entry contents.
- Methodget_max_length
int
get_max_length()- Description
Retrieves the maximum allowed length of the text.
- Methodget_text
string
get_text()- Description
Returns the contents of the entry widget.
- Methodget_visibility
int
get_visibility()- Description
Retrieves whether the text is visible.
- Methodget_width_chars
int
get_width_chars()- Description
Gets the value set by set_width_chars().
- InheritCellEditable
inherit GTK2.CellEditable : CellEditable
- InheritEditable
inherit GTK2.Editable : Editable
- InheritWidget
inherit GTK2.Widget : Widget
- Methodlayout_index_to_text_index
int
layout_index_to_text_index(int
layout_index
)- Description
Converts from a position in the entry contents (returned by get_text()) to a position in the entry's Pango.Layout (returned by get_layout()), with text retrieved via Pango.Layout->get_text().
- Methodset_activates_default
GTK2.Entry
set_activates_default(int
setting
)- Description
If setting is true, pressing Enter will activate the default widget for the window containing the entry. This usually means that the dialog box containing the entry will be closed, since the default widget is usually one of the dialog buttons.
- Methodset_alignment
GTK2.Entry
set_alignment(float
align
)- Description
Sets the alignment for the ocntents of the entry. This controls the horizontal positioning of the contents when the displayed text is shorter than the width of the entry.
- Methodset_completion
GTK2.Entry
set_completion(GTK2.EntryCompletion
completion
)- Description
Sets completion to be the auxiliary completion object to use. All further configuration of the completion mechanism is done on completion using the GTK2.EntryCompletion API.
- Methodset_cursor_hadjustment
GTK2.Entry
set_cursor_hadjustment(GTK2.Adjustment
adj
)- Description
Hooks up an adjustment to the cursor position in an entry, so that when the cursor is moved, the adjustment is scrolled to show that position.
- Methodset_has_frame
GTK2.Entry
set_has_frame(int
setting
)- Description
Sets whether the entry has a beveled frame around it.
- Methodset_icon_from_pixbuf
GTK2.Entry
set_icon_from_pixbuf(int
icon_pos
,GTK2.GdkPixbuf
b
)- Description
Set the icon from the given in-memory image, or 0 to remove the icon at that position.
- Methodset_icon_from_stock
GTK2.Entry
set_icon_from_stock(int
icon_pos
,string
id
)- Description
Set the icon using a stock icon. To remove the icon, use set_icon_from_pixbuf().
- Methodset_inner_border
GTK2.Entry
set_inner_border(int
left
,int
right
,int
top
,int
bottom
)- Description
Sets the inner-border property to border, or clears it if 0 is passed. The inner-border is the area around the entry's text, but inside its frame.
If set, this property overrides the inner-border style property. Overriding the style-provided border is useful when you want to do in-place editing of some text in a canvas or list widget, where pixel-exact positioning of the entry is important.
- Methodset_invisible_char
GTK2.Entry
set_invisible_char(int
ch
)- Description
Sets the character to use in place of the actual text when set_visibility() has been called to set text visibility to false. i.e. this is the character used in "password" mode to show the user how many characters have been type. The default invisible char is an asterisk ('*'). If you set the invisible char to 0, then the user will get no feedback at all; there will be no text on the screen as they type.
- Methodset_max_length
GTK2.Entry
set_max_length(int
maxlen
)- Description
Sets the maximum allowed length of the contents. If the current contents are longer than the given length, then they will be truncated to fit. Range is 0-65536. 0 means no maximum.
- Methodset_text
GTK2.Entry
set_text(sprintf_format
text
,sprintf_args
...fmt
)- Description
Set the text to the specified string, replacing the current contents.
- Methodset_visibility
GTK2.Entry
set_visibility(int
visiblep
)- Description
0 indicates invisible text (password boxes, as an example)
- Methodset_width_chars
GTK2.Entry
set_width_chars(int
n_chars
)- Description
changes the size request of the entry to be about the right size for n_chars characters. Note that it changes the size request, the size can still be affected by how you pack the widget into containers. If n_chars is -1, the size reverts to the default entry size.
- Methodtext_index_to_layout_index
int
text_index_to_layout_index(int
text_index
)- Description
Opposite of layout_index_to_text_index().
Class GTK2.EntryCompletion
- Description
Properties: int inline-completion int minimum-key-length GTK2.TreeModel model int popup-completion int popup-single-match int text-column
Signals: action_activated
insert_prefix
match_selected
- Methodcomplete
GTK2.EntryCompletion
complete()- Description
Requests a completion operation, or in other words a refiltering of the current list with completions, using the current key. The completion list view will be updated accordingly.
- Methodcreate
GTK2.EntryCompletionGTK2.EntryCompletion(
mapping
|void
props
)- Description
Creates a new widget.
- Methoddelete_action
GTK2.EntryCompletion
delete_action(int
index
)- Description
Deletes the action at index.
- Methodget_entry
GTK2.Widget
get_entry()- Description
Gets the entry this widget has been attached to.
- Methodget_inline_completion
int
get_inline_completion()- Description
Returns whether the common prefix of the possible completions should be automatically inserted in the entry.
- Methodget_minimum_key_length
int
get_minimum_key_length()- Description
Returns the minimum key length.
- Methodget_model
GTK2.TreeModel
get_model()- Description
Returns the model being used as the data source.
- Methodget_popup_completion
int
get_popup_completion()- Description
Returns whether completions should be presented in a popup window.
- Methodget_popup_set_width
int
get_popup_set_width()- Description
Returns whether the completion popup window will be resized to the width of the entry.
- Methodget_popup_single_match
int
get_popup_single_match()- Description
Returns whether the completion popup window will appear even if there is only a single match.
- Methodget_text_column
int
get_text_column()- Description
Returns the column in the model to get strings from.
- InheritCellLayout
inherit GTK2.CellLayout : CellLayout
- InheritObject
inherit G.Object : Object
- Methodinsert_action_markup
GTK2.EntryCompletion
insert_action_markup(int
index
,string
markup
)- Description
Inserts an action in the action item list at position index with the specified markup.
- Methodinsert_action_text
GTK2.EntryCompletion
insert_action_text(int
index
,string
text
)- Description
Inserts an action in the action item list at position index with the specified text. If you want the action item to have markup, use insert_action_markup().
- Methodinsert_prefix
GTK2.EntryCompletion
insert_prefix()- Description
Requests a prefix insertion.
- Methodset_inline_completion
GTK2.EntryCompletion
set_inline_completion(int
inline_completion
)- Description
Sets whether the common prefix of the possible completions should be automatically inserted in the entry.
- Methodset_inline_selection
GTK2.EntryCompletion
set_inline_selection(int
inline_selection
)- Description
Sets whether it is possible to cycle through the possible completions inside the entry.
- Methodset_match_func
GTK2.EntryCompletion
set_match_func(function
(:void
)cb
)- Description
Sets the function to be called to decide if a specific row should be displayed.
- Methodset_minimum_key_length
GTK2.EntryCompletion
set_minimum_key_length(int
length
)- Description
Requires the length of the search key to be at least length long. This is useful for long lists, where completing using a small key takes a lot of time and will come up with meaningless results anyway (i.e. a too large dataset).
- Methodset_model
GTK2.EntryCompletion
set_model(GTK2.TreeModel
model
)- Description
Sets the model. If this completion already has a model set, it will remove it before setting the new model. If omitted it will unset the model.
- Methodset_popup_completion
GTK2.EntryCompletion
set_popup_completion(int
setting
)- Description
Sets whether the completions should be presented in a popup window.
- Methodset_popup_set_width
GTK2.EntryCompletion
set_popup_set_width(int
setting
)- Description
Sets whether the completion popup window will be resized to be the same width as the entry.
- Methodset_popup_single_match
GTK2.EntryCompletion
set_popup_single_match(int
setting
)- Description
Sets whether the completion popup window will appear even if there is only a single match. You may want to set this to 0 if you are using inline completion.
- Methodset_text_column
GTK2.EntryCompletion
set_text_column(int
column
)- Description
Convenience function for setting up the most used case of this code: a completion list with just strings. This function will set up the completion to have a list displaying all (and just) strings in the list, and to get those strings from column column in the model.
Class GTK2.EventBox
- Description
Some gtk widgets don't have associated X windows, so they just draw on their parents. Because of this, they cannot receive events and if they are incorrectly sized, they don't clip so you can get messy overwritting etc. If you require more from these widgets, the EventBox is for you.
At first glance, the EventBox widget might appear to be totally useless. It draws nothing on the screen and responds to no events. However, it does serve a function - it provides an X window for its child widget. This is important as many GTK2 widgets do not have an associated X window. Not having an X window saves memory and improves performance, but also has some drawbacks. A widget without an X window cannot receive events, and does not perform any clipping on it's contents. Although the name EventBox emphasizes the event-handling function, the widget can also be used for clipping.
The primary use for this widget is when you want to receive events for a widget without a window. Examples of such widgets are labels and images.
GTK2.EventBox()->set_size_request(100,100)
Properties: int above-child int visible-window
- Methodcreate
GTK2.EventBoxGTK2.EventBox(
mapping
|void
props
)- Description
Create a new event box widget
- Methodget_above_child
int
get_above_child()- Description
Returns whether the event box window is above or below the windows of its child.
- Methodget_visible_window
int
get_visible_window()- Description
Returns whether the event box has a visible window.
- InheritBin
inherit GTK2.Bin : Bin
- Methodset_above_child
GTK2.EventBox
set_above_child(int
above_child
)- Description
Sets whether the event box window is positioned above the windows of its child, as opposed to below it. If the window is above, all events inside the event box will go to the event box. If the window is below, events in windows of child widgets will first go to that widget, and then to its parents.
The default is to keep the window below the child.
- Methodset_visible_window
GTK2.EventBox
set_visible_window(int
visible_window
)- Description
Sets whether the event box uses a visible or invisible child window. The default is to use visible windows.
Class GTK2.Expander
- Description
Properties: int expanded string label GTK2.Widget label-widget int spacing int use-markup int use-underline
Style properties: int expander-size int expander-spacing
Signals: activate
- Methodcreate
GTK2.ExpanderGTK2.Expander(
string
|mapping
label
)- Description
Create a new GTK2.Expander. Set mnemonic to 1 for a mnemonic expander, otherwise omitting it creates a regular expander.
- Methodget_expanded
int
get_expanded()- Description
Returns true if the child widget is revealed.
- Methodget_label
string
get_label()- Description
Fetches the text from the label of the expander.
- Methodget_label_widget
GTK2.Widget
get_label_widget()- Description
Retrieves the label widget for the frame.
- Methodget_spacing
int
get_spacing()- Description
Returns the spacing.
- Methodget_use_markup
int
get_use_markup()- Description
Returns whether the label's text is interpreted as marked up with the Pango text markup language.
- Methodget_use_underline
int
get_use_underline()- Description
Returns whether an embedded underline in the label indicates a mnemonic.
- InheritBin
inherit GTK2.Bin : Bin
- Methodset_expanded
GTK2.Expander
set_expanded(int
expanded
)- Description
Sets the state of the expander. Set to true if you want the child widget to be revealed, and false if you want the child widget to be hidden.
- Methodset_label
GTK2.Expander
set_label(string
label
)- Description
Sets the text of the label of the expander.
- Methodset_label_widget
GTK2.Expander
set_label_widget(GTK2.Widget
label
)- Description
Set the label widget for the expander. This is the widget that will appear embedded alongside the expander arrow.
- Methodset_spacing
GTK2.Expander
set_spacing(int
spacing
)- Description
Sets the spacing field of the expander, which is the number of pixels to place between the expander and the child.
- Methodset_use_markup
GTK2.Expander
set_use_markup(int
use_markup
)- Description
Sets whether the text of the label contains markup in Pango's text markup language.
- Methodset_use_underline
GTK2.Expander
set_use_underline(int
use_underline
)- Description
If true, an underline in the text of the label indicates the next character should be used for the mnemonic accelarator key.
Class GTK2.FileChooser
- Description
Properties: int action GTK2.Widget extra-widget string file-system-backend GTK2.FileFilter filter int local-only GTk.Widget preview-widget int preview-widget-active int select-multiple int show-hidden int use-preview-label
Signals: current_folder_changed
file_activated
selection_changed
update_preview
- Methodadd_filter
GTK2.FileChooser
add_filter(GTK2.FileFilter
filter
)- Description
Adds filter to the list of filters that the user can select between. When a filter is selected, only files that are passed by that filter are displayed.
- Methodadd_shortcut_folder
int
add_shortcut_folder(string
folder
)- Description
Adds a folder to be displayed with the shortcut folders in a file chooser. Note that shortcut folders do not get saved, as they are provided by the application. For example, you can use this to add a "/usr/share/mydrawprogram/Clipart" folder to the volume list.
- Methodadd_shortcut_folder_uri
int
add_shortcut_folder_uri(string
uri
)- Description
Adds a folder URI to be displayed with the shortcut folders.
- Methodget_action
int
get_action()- Description
Get the type of action the file chooser is performing.
- Methodget_current_folder
string
get_current_folder()- Description
Gets the current folder as a local filename.
- Methodget_current_folder_uri
string
get_current_folder_uri()- Description
Gets the current folder as a URI.
- Methodget_do_overwrite_confirmation
int
get_do_overwrite_confirmation()- Description
Queries whether a file chooser is set to confirm for overwriting when the user types a file name that already exists.
- Methodget_extra_widget
GTK2.Widget
get_extra_widget()- Description
Gets the extra widget.
- Methodget_filename
string
get_filename()- Description
Gets the filename for the currently select file.
- Methodget_filenames
array
get_filenames()- Description
Get a list of all selected file and subfolders. The returned names are full absolute paths. If files in the current folder cannot be represented as local filenames, they will be ignored. If you want those files, You may want to use get_uris() instead.
- Methodget_filter
GTK2.FileFilter
get_filter()- Description
Gets the current filter.
- Methodget_local_only
int
get_local_only()- Description
Gets whether only local files can be selected in the file selector.
- Methodget_preview_filename
string
get_preview_filename()- Description
Gets the filename that should be previewed in a custom preview widget.
- Methodget_preview_uri
string
get_preview_uri()- Description
Gets the URI that should be previewed in a custom preview widget.
- Methodget_preview_widget
GTK2.Widget
get_preview_widget()- Description
Gets the current preview widget.
- Methodget_preview_widget_active
int
get_preview_widget_active()- Description
Gets whether the preview widget set by set_preview_widget_active() should be shown for the current filename.
- Methodget_select_multiple
int
get_select_multiple()- Description
Gets whether multiple files can be selected.
- Methodget_show_hidden
int
get_show_hidden()- Description
Gets whether hidden files and folders are displayed.
- Methodget_uri
string
get_uri()- Description
Gets the URI for the currently selected file.
- Methodget_uris
array
get_uris()- Description
List all the selected files and subfolders in the current folder. The returned names are full absolute URIs.
- Methodget_use_preview_label
int
get_use_preview_label()- Description
Gets whether a stock label should be drawn with the name of the previewed file.
- Methodlist_filters
array
list_filters()- Description
Lists the current set of user-selectable filters.
- Methodlist_shortcut_folder_uris
array
list_shortcut_folder_uris()- Description
Queries the list of shortcut folders.
- Methodlist_shortcut_folders
array
list_shortcut_folders()- Description
Queries the list of shortcut folders.
- Methodremove_filter
GTK2.FileChooser
remove_filter(GTK2.FileFilter
filter
)- Description
Removes filter from the list of filters that the user can select between.
- Methodremove_shortcut_folder
GTK2.FileChooser
remove_shortcut_folder(string
folder
)- Description
Removes a folder from the list of shortcut folders.
- Methodremove_shortcut_folder_uri
GTK2.FileChooser
remove_shortcut_folder_uri(string
uri
)- Description
Removes a folder URI.
- Methodselect_all
GTK2.FileChooser
select_all()- Description
Select all files.
- Methodselect_filename
int
select_filename(string
filename
)- Description
Selects a filename.
- Methodselect_uri
int
select_uri(string
uri
)- Description
Selects the file by uri.
- Methodset_action
GTK2.FileChooser
set_action(int
action
)- Description
Sets type of action, from opening or saving a file, or opening or saving a folder. Options are:
FILE_CHOOSER_ACTION_OPEN
FILE_CHOOSER_ACTION_SAVE
FILE_CHOOSER_ACTION_SELECT_FOLDER
FILE_CHOOSER_ACTION_CREATE_FOLDER
- Methodset_current_folder
int
set_current_folder(string
folder
)- Description
Sets the current folder from a local filename. The user will be shown the full contents of the current folder, plus user interface elements for navigating to other folders.
- Methodset_current_folder_uri
int
set_current_folder_uri(string
uri
)- Description
Sets the current folder from a URI.
- Methodset_current_name
GTK2.FileChooser
set_current_name(string
filename
)- Description
Sets current name.
- Methodset_do_overwrite_confirmation
GTK2.FileChooser
set_do_overwrite_confirmation(int
setting
)- Description
Sets whether a file chooser in GTK2.FILE_CHOOSER_ACTION_SAVE mode will present a confirmation dialog if the users types a file name that already exists. This is FALSE by default.
Regardless of this setting, the chooser will emit the "confirm-overwrite" signal when appropriate.
If all you need is the stock confirmation dialog, set this property to TRUE. You can override the way confirmation is done by actually handling the "confirm-overwrite" signal.
- Methodset_extra_widget
GTK2.FileChooser
set_extra_widget(GTK2.Widget
widget
)- Description
Sets an application-supplied widget to provide extra options to the user.
- Methodset_filename
int
set_filename(string
filename
)- Description
Sets filename as the current filename. Same as unselect_all() followed by select_filename();
- Methodset_filter
GTK2.FileChooser
set_filter(GTK2.FileFilter
filter
)- Description
Sets the current filter; only the files that pass the filter will be displayed. If the user-selectable list of filters is non-empty, then the filter should be one of the filters in that list. Setting the current filter when the list of filters is empty is useful if you want to restrict the displayed set of files without letting the user change it.
- Methodset_local_only
GTK2.FileChooser
set_local_only(int
local_only
)- Description
Sets whether on local files can be selected.
- Methodset_preview_widget
GTK2.FileChooser
set_preview_widget(GTK2.Widget
widget
)- Description
Sets an application-supplied widget to use to display a custom preview of the currently selected file. To implement a preview, after setting the preview widget, you connect to the "update-preview" signal, and call get_preview_filename() or get_preview_uri() on each change. If you can display a preview of the new file, update your widget and set the preview active using set_preview_widget_active(). Otherwise, set the preview inactive.
When there is no application-supplied preview widget, or the application- supplied preview widget is not active, the file chooser may display an internally generated preview of the current file or it may display no preview at all.
- Methodset_preview_widget_active
GTK2.FileChooser
set_preview_widget_active(int
setting
)- Description
Sets whether the preview widget set by set_preview_widget() should be shown for the current filename. When setting is set to false, the file chooser may display an internally generated preview of the current file or it may display no preview at all.
- Methodset_select_multiple
GTK2.FileChooser
set_select_multiple(int
select_multiple
)- Description
Sets whether multiple files can be selected in the file selector. This is only relevant if the action is set to be
FILE_CHOOSER_ACTION_OPEN
orFILE_CHOOSER_ACTION_SAVE
- Methodset_show_hidden
GTK2.FileChooser
set_show_hidden(int
setting
)- Description
Sets whether hidden files and folders are displayed.
- Methodset_uri
int
set_uri(string
uri
)- Description
Sets the uri as the current file.
- Methodset_use_preview_label
GTK2.FileChooser
set_use_preview_label(int
setting
)- Description
Sets whether the file chooser should display a stock label with the name of the file that is being previewed; the default is true. Applications that want to draw the whole preview area themselves should set this to false and display the name themselves in their preview widget.
- Methodunselect_all
GTK2.FileChooser
unselect_all()- Description
Unselect all files.
- Methodunselect_filename
GTK2.FileChooser
unselect_filename(string
filename
)- Description
Unselects a currently selected filename.
- Methodunselect_uri
GTK2.FileChooser
unselect_uri(string
uri
)- Description
Unselect the uri.
Class GTK2.FileChooserButton
- Description
Properties: GTK2.FileChooserDialog dialog int focus-on-click string title int width-chars
- Methodcreate
GTK2.FileChooserButtonGTK2.FileChooserButton(
string
|mapping
title_or_props
,int
|void
action
)- Description
Create a new file-selecting button widget. action is one of
FILE_CHOOSER_ACTION_CREATE_FOLDER
,FILE_CHOOSER_ACTION_OPEN
,FILE_CHOOSER_ACTION_SAVE
andFILE_CHOOSER_ACTION_SELECT_FOLDER
- Methodget_focus_on_click
int
get_focus_on_click()- Description
Returns whether the button grabs focus when it is clicked.
- Methodget_title
string
get_title()- Description
Retrieves the title of the browse dialog.
- Methodget_width_chars
int
get_width_chars()- Description
Retrieves the width in characters of the button widget's entry and/or label.
- InheritFileChooser
inherit GTK2.FileChooser : FileChooser
- InheritHbox
inherit GTK2.Hbox : Hbox
- Methodset_focus_on_click
GTK2.FileChooserButton
set_focus_on_click(int
focus
)- Description
Sets whether the button will grab focus when it is clicked with the mouse. Making mouse clicks not grab focus is useful in places like toolbars where you don't want the keyboard focus removed from the main area of the application.
- Methodset_title
GTK2.FileChooserButton
set_title(string
title
)- Description
Modifies the title of the browse dialog.
- Methodset_width_chars
GTK2.FileChooserButton
set_width_chars(int
n_chars
)- Description
Sets the width (in characters) that the button will use.
Class GTK2.FileChooserDialog
- Description
GtkFileChooserDialog should be used to retrieve file or directory names from the user. It will create a new dialog window containing a directory list, and a file list corresponding to the current working directory. The filesystem can be navigated using the directory list, the drop-down history menu, or the TAB key can be used to navigate using filename completion common in text based editors such as emacs and jed.
The default filename can be set using set_filename() and the selected filename retrieved using get_filename().
Use complete() to display files that match a given pattern. This can be used for example, to show only *.txt files, or only files beginning with gtk*.
Simple file operations; create directory, delete file, and rename file, are available from buttons at the top of the dialog. These can be hidden using hide_fileop_buttons() and shown again using show_fileop_buttons().
GTK2.FileChooserDialog("File selector", 0, GTK2.FILE_CHOOSER_ACTION_OPEN, ({(["text":"Transmogrify", "id":17]), (["text":"Never mind", "id":42])}))
- Methodcreate
GTK2.FileChooserDialogGTK2.FileChooserDialog(
string
title
,GTK2.Window
parent
,int
mode
,array
buttons
)- Description
Creates a new file selection dialog box. By default it will list the files in the current working directory. Operation buttons allowing the user to create a directory, delete files, and rename files will also be present by default.
- InheritDialog
inherit GTK2.Dialog : Dialog
- InheritFileChooser
inherit GTK2.FileChooser : FileChooser
Class GTK2.FileChooserWidget
- Description
File chooser widget that can be embedded in other widgets.
GTK2.FileChooserWidget(GTK2.FILE_CHOOSER_ACTION_OPEN);
- Methodcreate
GTK2.FileChooserWidgetGTK2.FileChooserWidget(
int
|mapping
action_or_props
)- Description
Create a new file chooser widget. action is one of
FILE_CHOOSER_ACTION_CREATE_FOLDER
,FILE_CHOOSER_ACTION_OPEN
,FILE_CHOOSER_ACTION_SAVE
andFILE_CHOOSER_ACTION_SELECT_FOLDER
- InheritFileChooser
inherit GTK2.FileChooser : FileChooser
- InheritVbox
inherit GTK2.Vbox : Vbox
Class GTK2.FileFilter
- Description
A filter for selecting a file subset.
- Methodadd_mime_type
GTK2.FileFilter
add_mime_type(string
mime_type
)- Description
Adds a rule allowing a given mime type.
- Methodadd_pattern
GTK2.FileFilter
add_pattern(string
pattern
)- Description
Adds a rule allowing a shell style glob.
- Methodadd_pixbuf_formats
GTK2.FileFilter
add_pixbuf_formats()- Description
Adds a rule allowing image files in the formats support by W(Pixbuf).
- Methodcreate
GTK2.FileFilterGTK2.FileFilter()
- Description
Creates a new W(FileFilter) with no rules added to it. Such a filter doesn't accept any files, so is not particularly useful until you add rules with add_mime_type(), add_pattern(), or add_custom(). To create a filter accepts any file, use add_pattern("*").
- Methodget_name
string
get_name()- Description
Gets the human-readable name for the filter.
- InheritData
inherit GTK2.Data : Data
- Methodset_name
GTK2.FileFilter
set_name(string
name
)- Description
Sets the human-readable name of the filter; this is the string that will be displayed in the file selector user interface if there is a selectable list of filters.
Class GTK2.FileSelection
- Description
GtkFileSelection should be used to retrieve file or directory names from the user. It will create a new dialog window containing a directory list, and a file list corresponding to the current working directory. The filesystem can be navigated using the directory list, the drop-down history menu, or the TAB key can be used to navigate using filename completion common in text based editors such as emacs and jed.
The default filename can be set using set_filename() and the selected filename retrieved using get_filename().
Use complete() to display files that match a given pattern. This can be used for example, to show only *.txt files, or only files beginning with gtk*.
Simple file operations; create directory, delete file, and rename file, are available from buttons at the top of the dialog. These can be hidden using hide_fileop_buttons() and shown again using show_fileop_buttons().
GTK2.FileSelection("File selector")
Properties: string filename int select-multiple int show-fileops
- Methodcomplete
GTK2.FileSelection
complete(string
pattern
)- Description
Will attempt to match pattern to a valid filename in the current directory. If a match can be made, the matched filename will appear in the text entry field of the file selection dialog. If a partial match can be made, the "Files" list will contain those file names which have been partially matched.
- Methodcreate
GTK2.FileSelectionGTK2.FileSelection(
string
|mapping
title_or_props
)- Description
Creates a new file selection dialog box. By default it will list the files in the current working directory. Operation buttons allowing the user to create a directory, delete files, and rename files will also be present by default.
- Methodget_action_area
GTK2.Vbox
get_action_area()- Description
The action area
- Methodget_button_area
GTK2.HbuttonBox
get_button_area()- Description
The button area
- Methodget_cancel_button
GTK2.Button
get_cancel_button()- Description
The cancel button
- Methodget_filename
string
get_filename()- Description
Return the filename.
- Methodget_fileop_c_dir
GTK2.Button
get_fileop_c_dir()- Description
The create directory button in the file operation button group
- Methodget_fileop_del_file
GTK2.Button
get_fileop_del_file()- Description
The delete file button in the file operation button group
- Methodget_fileop_dialog
GTK2.Dialog
get_fileop_dialog()- Description
Dialog box for GTK2.FileSelection
- Methodget_fileop_ren_file
GTK2.Button
get_fileop_ren_file()- Description
The rename file button in the file operation button group
- Methodget_help_button
GTK2.Button
get_help_button()- Description
The help button
- Methodget_main_vbox
GTK2.Vbox
get_main_vbox()- Description
The main vbox
- Methodget_ok_button
GTK2.Button
get_ok_button()- Description
The ok button
- Methodget_select_multiple
int
get_select_multiple()- Description
Gets whether the user is allowed to select multiple files.
- Methodget_selection
array
get_selection()- Description
Retrieves the list of selections the user has made.
- Methodhide_fileop_buttons
GTK2.FileSelection
hide_fileop_buttons()- Description
Hides the file operation buttons that normally appear at the top of the dialog. Useful if you wish to create a custom file selector, based on GTK2.FileSelection.
- InheritDialog
inherit GTK2.Dialog : Dialog
- Methodset_filename
GTK2.FileSelection
set_filename(string
fname
)- Description
Sets a default path for the file requestor. If filename includes a directory path, then the requestor will open with that path as its current working directory.
- Methodset_select_multiple
GTK2.FileSelection
set_select_multiple(int
select_multiple
)- Description
Sets whether the user is allowed to select multiple files.
- Methodshow_fileop_buttons
GTK2.FileSelection
show_fileop_buttons()- Description
Shows the file operation buttons, if they have previously been hidden. The rest of the widgets in the dialog will be resized accordingly.
Class GTK2.Fixed
- Description
A fixed container is a container that keeps it's children at fixed locations and give them fixed sizes, both given in pixels.
Example:
GTK2.Fixed()->put(GTK2.Label("100,100"), 100, 100)->put(GTK2.Label("0,0"), 0, 0)->set_size_request(150,115)
Child properties: int x int y
- Methodcreate
GTK2.FixedGTK2.Fixed(
mapping
|void
props
)- Description
Create a new fixed widget
- Methodget_children
array
get_children()- Description
Get a list of the children and their x,y positions.
- Methodget_has_window
int
get_has_window()- Description
Gets whether GTK2.Fixed has its own GDK2.Window.
- InheritContainer
inherit GTK2.Container : Container
- Methodmove
GTK2.Fixed
move(GTK2.Widget
widget
,int
new_xpos
,int
new_ypos
)- Description
Move the widget to new_xpos,new_ypos from it's old location.
- Methodput
GTK2.Fixed
put(GTK2.Widget
widget
,int
x
,int
y
)- Description
Place the widget at xpos,ypos.
- Methodset_has_window
GTK2.Fixed
set_has_window(int
has_window
)- Description
Sets wither a GTK2.Fixed widget is created with a separate GDK2.Window for the window or now.
Class GTK2.FontButton
- Description
Properties: string font-name int show-size int show-style string title int use-font int use-size
Signals: font_set
- Methodcreate
GTK2.FontButtonGTK2.FontButton(
string
|mapping
font_or_props
)- Description
Create a new font picker widget. If font is specified, it will be displayed in the font selection dialog.
- Methodget_font_name
string
get_font_name()- Description
Retrieves the name of the currently selected font.
- Methodget_show_size
int
get_show_size()- Description
Returns whether the font size will be shown in the label.
- Methodget_show_style
int
get_show_style()- Description
Returns whether the name of the font style will be shown in the label.
- Methodget_title
string
get_title()- Description
Retrieves the title of the font selection dialog.
- Methodget_use_font
int
get_use_font()- Description
Returns whether the selected font is used in the label.
- Methodget_use_size
int
get_use_size()- Description
Returns whether the selected size is used in the label.
- InheritButton
inherit GTK2.Button : Button
- Methodset_font_name
int
set_font_name(string
font
)- Description
Sets or updates the currently-displayed font.
- Methodset_show_size
GTK2.FontButton
set_show_size(int
setting
)- Description
If setting is true, the font size will be displayed along with the name of the selected of the selected font.
- Methodset_show_style
GTK2.FontButton
set_show_style(int
setting
)- Description
If setting is true, the font style will be displayed along with the name of the selected font.
- Methodset_title
GTK2.FontButton
set_title(string
title
)- Description
Sets the title for the font selection dialog.
- Methodset_use_font
GTK2.FontButton
set_use_font(int
setting
)- Description
If setting is true, the font name will be written using the selected font.
- Methodset_use_size
GTK2.FontButton
set_use_size(int
setting
)- Description
If setting is true, the font name will be written using the selected size.
Class GTK2.FontSelection
- Description
The W(FontSelection) widget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in W(FontSelectionDialog).
GTK2.FontSelection();
Properties: string font-name string preview-text
- Methodcreate
GTK2.FontSelectionGTK2.FontSelection(
mapping
|void
props
)- Description
Create a new GTK2.FontSelection widget.
- Methodget_font_name
string
get_font_name()- Description
Gets the currently-selected font name.
- Methodget_preview_text
string
get_preview_text()- Description
Gets the text displayed in the preview area.
- InheritVbox
inherit GTK2.Vbox : Vbox
- Methodset_font_name
GTK2.FontSelection
set_font_name(string
fontname
)- Description
This sets the currently displayed font.
- Methodset_preview_text
GTK2.FontSelection
set_preview_text(string
text
)- Description
Sets the text displayed in the preview area.
Class GTK2.FontSelectionDialog
- Description
The GtkFontSelectionDialog widget is a dialog box for selecting a font.
To set the font which is initially selected, use set_font_name().
To get the selected font use get_font_name().
To change the text which is shown in the preview area, use set_preview_text().
GTK2.FontSelectionDialog("Select a font")
- Methodcreate
GTK2.FontSelectionDialogGTK2.FontSelectionDialog(
string
title
)- Description
Create a new font selection dialog with the specified window title
- Methodget_apply_button
GTK2.Button
get_apply_button()- Description
The apply button
- Methodget_cancel_button
GTK2.Button
get_cancel_button()- Description
The cancel button
- Methodget_font_name
string
get_font_name()- Description
Gets the currently-selected font name.
- Methodget_ok_button
GTK2.Button
get_ok_button()- Description
The ok button
- Methodget_preview_text
string
get_preview_text()- Description
Gets the text displayed in the preview area.
- InheritDialog
inherit GTK2.Dialog : Dialog
- Methodset_font_name
int
set_font_name(string
font
)- Description
Sets the currently-selected font.
- Methodset_preview_text
GTK2.FontSelectionDialog
set_preview_text(string
text
)- Description
Sets the text displayed in the preview area.
Class GTK2.Frame
- Description
The frame widget is a Bin that surrounds its child with a decorative frame and an optional label. If present, the label is drawn in a gap in the top side of the frame. The position of the label can be controlled with set_label_align().
Used to visually group objects.
GTK2.Frame("Title")->add(GTK2.Label("Contents"))
GTK2.Frame()->add(GTK2.Label("Contents"))
GTK2.Frame()->add(GTK2.Label("Contents"))->set_shadow_type(GTK2.SHADOW_IN)
Properties: string label GTK2.Widget label-widget float label-xalign float label-yalign int shadow int shadow-type
- Methodcreate
GTK2.FrameGTK2.Frame(
string
|mapping
label_or_props
)- Description
Create a new W(Frame) widget.
- Methodget_label
string
get_label()- Description
Return the text in the label widget.
- Methodget_label_align
array
get_label_align()- Description
Retrieves the x and y alignment of the label.
- Methodget_label_widget
GTK2.Widget
get_label_widget()- Description
Retrieves the label widget.
- Methodget_shadow_type
int
get_shadow_type()- Description
Return the shadow type.
- InheritBin
inherit GTK2.Bin : Bin
- Methodset_label
GTK2.Frame
set_label(string
|void
label_text
)- Description
Set the text of the label.
- Methodset_label_align
GTK2.Frame
set_label_align(float
xalign
,float
yalign
)- Description
Arguments are xalignment and yalignment. 0.0 is left or topmost, 1.0 is right or bottommost. The default value for a newly created Frame is 0.0.
- Methodset_label_widget
GTK2.Frame
set_label_widget(GTK2.Widget
label
)- Description
Sets the label widget for the frame. This is the widget that will appear embedded in the top edge of the frame as a title.
- Methodset_shadow_type
GTK2.Frame
set_shadow_type(int
shadow_type
)- Description
Set the shadow type for the Frame widget. The type is one of
SHADOW_ETCHED_IN
,SHADOW_ETCHED_OUT
,SHADOW_IN
,SHADOW_NONE
andSHADOW_OUT
Class GTK2.GdkBitmap
- Description
A bitmap is a black and white pixmap. Most commonly used as masks for images, widgets and pixmaps.
NOIMG
- Methodcreate
GTK2.GdkBitmapGTK2.GdkBitmap(
int
|Image.Image
xsize_or_image
,int
|void
ysize
,string
|void
bitmap
)- Description
Create a new GDK2.Bitmap object. Argument is either an Image.image object, or {xsisze,ysize,xbitmapdata}.
- InheritDrawable
inherit GDK2.Drawable : Drawable
- Methodref
GDK2.Bitmap
ref()- Description
Add a reference
- Methodunref
GDK2.Bitmap
unref()- Description
Remove a reference
Class GTK2.GdkColor
- Description
The GDK2.Color object is used to represent a color. When you call GDK2.Color(r,g,b) the color will be allocated from the X-server. The constructor can return an exception if there are no more colors to allocate. NOIMG
- Method_destruct
protected
GDK2.Color
_destruct()- Description
Destroys the color object. Please note that this function does not free the color from the X-colormap (in case of pseudocolor) right now.
- Methodblue
int
blue()- Description
Returns the blue color component.
- Methodcreate
GTK2.GdkColorGTK2.GdkColor(
object
|int
color_or_r
,int
|void
g
,int
|void
b
)- Description
r g and b are in the range 0 to 255, inclusive. If color is specified, it should be an Image.Color object, and the only argument.
- Methodgreen
int
green()- Description
Returns the green color component.
- Methodimage_color_object
Image.Color.Color
image_color_object()- Description
Return a Image.Color.Color instance. This gives better precision than the rgb function.
- Methodpixel
int
pixel()- Description
Returns the pixel value of the color. See GDK2.Image->set_pixel.
- Methodred
int
red()- Description
Returns the red color component.
- Methodrgb
array
rgb()- Description
Returns the red green and blue color components as an array.
Class GTK2.GdkColormap
- Description
A colormap is an object that contains the mapping between the color values stored in memory and the RGB values that are used to display color values. In general, colormaps only contain significant information for pseudo-color visuals, but even for other visual types, a colormap object is required in some circumstances.
- Methodalloc_color
int
alloc_color(GTK2.GdkColor
color
,int
writeable
,int
best_match
)- Description
Alocates a single color from a colormap.
- Methodalloc_colors
int
alloc_colors(array
colors
,int
writeable
,int
best_match
)- Description
Allocates colors from a colormap.
- Methodcreate
GTK2.GdkColormapGTK2.GdkColormap(
GTK2.GdkVisual
visual
,int
|void
allocate
,int
|void
system
)- Description
Creates a new colormap.
- Methodfree_colors
GDK2.Colormap
free_colors(array
colors
)- Description
Free colors.
- Methodget_screen
GTK2.GdkScreen
get_screen()- Description
Returns the screen.
- Methodget_visual
GTK2.GdkVisual
get_visual()- Description
Returns the visual.
- Methodquery_color
GTK2.GdkColor
query_color(int
pixel
)- Description
Locates the RGB color corresponding to the given hardware pixel. pixel must be a valid pixel in the colormap; it's a programmer error to call this function with a pixel which is not in the colormap. Hardware pixels are normally obtained from alloc_colors(), or from a GDK2.Image.
Class GTK2.GdkDisplay
- Description
GdkDisplay object.
Signals: closed
- Methodbeep
GDK2.Display
beep()- Description
Emits a short beep on display
- Methodclose
GDK2.Display
close()- Description
Closes the connection to the window system for the given display, and cleans up associated resources.
- Methodcreate
GTK2.GdkDisplayGTK2.GdkDisplay()
- Description
Get the default display.
- Methodflush
GDK2.Display
flush()- Description
Flushes any requests queued for the windowing system; this happens automatically when the main loop blocks waiting for new events, but if your application is drawing without returning control to the main loop, you may need to call this function explicitly. A common case where this function needs to be called is when an application is executing drawing commands from a thread other than the thread where the main loop is running.
- Methodget_default_cursor_size
int
get_default_cursor_size()- Description
Returns the default size to use for cursors.
- Methodget_default_group
GTK2.GdkWindow
get_default_group()- Description
Returns the default group leader window for all toplevel windows. This window is implicitly create by GDK.
- Methodget_default_screen
GTK2.GdkScreen
get_default_screen()- Description
Get the default screen.
- Methodget_event
GTK2.GdkEvent
get_event()- Description
Gets the next GDK2.Event to be processed, fetching events from the windowing system if necessary.
- Methodget_maximal_cursor_size
mapping
get_maximal_cursor_size()- Description
Returns the maximal size to use for cursors.
- Methodget_n_screens
int
get_n_screens()- Description
Gets the number of screens managed by the display.
- Methodget_name
string
get_name()- Description
Gets the name of the display.
- Methodget_pointer
mapping
get_pointer()- Description
Gets the current location of the pointer and the current modifier mask.
- Methodget_screen
GTK2.GdkScreen
get_screen(int
screen_num
)- Description
Returns a screen for one of the screens.
- Methodget_window_at_pointer
mapping
get_window_at_pointer()- Description
Obtains the window underneath the mouse pointer, and the x,y location. Returns 0 if the window is not known to GDK (for example, belongs to another application).
- InheritObject
inherit G.Object : Object
- Methodkeyboard_ungrab
GDK2.Display
keyboard_ungrab()- Description
Release any keyboard grab.
- Methodopen
GDK2.Display
open(string
name
)- Description
Opens a display.
- Methodpeek_event
GTK2.GdkEvent
peek_event()- Description
Gets a copy of the first GDK2.Event in the event queue, without removing the event from the queue. (Note that this function will not get more events from the windowing system. It only checks the events that have already been moved to the GDK event queue.)
- Methodpointer_is_grabbed
int
pointer_is_grabbed()- Description
Test if the pointer is grabbed.
- Methodpointer_ungrab
GDK2.Display
pointer_ungrab()- Description
Release any pointer grab.
- Methodput_event
GDK2.Display
put_event(GTK2.GdkEvent
event
)- Description
Appends a copy of the given event onto the front of the event queue.
- Methodrequest_selection_notification
int
request_selection_notification(GDK2.Atom
selection
)- Description
Request GdkEventOwnerChange events for ownership changes of the selection named by the given atom.
- Methodset_double_click_distance
GDK2.Display
set_double_click_distance(int
distance
)- Description
Sets the double click distance (two clicks within this distance count as a double click and result in a GDK_2BUTTON_PRESS event). See also set_double_click_time().
- Methodset_double_click_time
GDK2.Display
set_double_click_time(int
msec
)- Description
Sets the double click time (two clicks within this time interval counts as a double click and result in a GDK_2BUTTON_PRESS event). Applications should not set this, it is a global user-configured setting.
- Methodstore_clipboard
GDK2.Display
store_clipboard(GTK2.GdkWindow
clipboard_window
,array
targets
)- Description
Issues a request to the clipboard manager to store the clipboard data.
- Methodsupports_clipboard_persistence
int
supports_clipboard_persistence()- Description
Returns whether the specified display supports clipboard persistence, i.e. if it's possible to store the clipboard data after an application has quit. On X11 this checks if a clipboard daemon is running.
- Methodsupports_cursor_alpha
int
supports_cursor_alpha()- Description
Returns true if cursors can use an 8bit alpha channel. Otherwise, cursors are restricted to bilevel alpha (i.e. a mask).
- Methodsupports_cursor_color
int
supports_cursor_color()- Description
Returns true if multicolored cursors are supported. Otherwise, cursors have only a foreground and a background color.
- Methodsupports_input_shapes
int
supports_input_shapes()- Description
Returns true if GDK2.Window->input_shape_combine_mask() can be used to modify the input shape of windows.
- Methodsupports_selection_notification
int
supports_selection_notification()- Description
Returns whether GdkEventOwnerChange events will be sent when the owner of a selection changes.
- Methodsupports_shapes
int
supports_shapes()- Description
Returns true if GDK2.Window->shape_combine_mask() can be used to create shaped windows.
- Methodsync
GDK2.Display
sync()- Description
Flushes any requests queued for the windowing system and waits until all requests have been handled. This is often used for making sure that the display is synchronized with the current state of the program. Calling sync() before (gdk_error_trap_pop()) makes sure that any errors generated from earlier requests are handled before the error trap is removed.
This is most useful for X11. On windowing systems where requests are handled synchronously, this function will do nothing.
- Methodwarp_pointer
GDK2.Display
warp_pointer(GTK2.GdkScreen
screen
,int
x
,int
y
)- Description
Warps the pointer to the point x,y on the screen, unless the pointer is confined to a window by a grab, in which case it will be moved as far as allowed by the grab. Warping the pointer creates events as if the user had moved the mouse instantaneously to the destination.
Class GTK2.GdkDragContext
- Description
The drag context contains all information about the drag'n'drop connected to the signal to which it is an argument.
NOIMG
- Methoddrag_abort
GDK2.DragContext
drag_abort(int
time
)- Description
Abort the drag
- Methoddrag_drop
GDK2.DragContext
drag_drop(int
time
)- Description
Drag drop.
- Methoddrag_finish
GDK2.DragContext
drag_finish(int
success
,int
del
)- Description
If success is true, the drag succeded. If del is true, the source should be deleted. time is the current time.
- Methoddrag_set_icon_default
GDK2.DragContext
drag_set_icon_default()- Description
Use the default drag icon associated with the source widget.
- Methoddrag_set_icon_pixmap
GDK2.DragContext
drag_set_icon_pixmap(GTK2.GdkPixmap
p
,GTK2.GdkBitmap
b
,int
hot_x
,int
hot_y
)- Description
Set the drag pixmap, and optionally mask. The hot_x and hot_y coordinates will be the location of the mouse pointer, relative to the upper left corner of the pixmap.
- Methoddrag_set_icon_widget
GDK2.DragContext
drag_set_icon_widget(GTK2.Widget
widget
,int
hot_x
,int
hot_y
)- Description
Set the drag widget. This is a widget that will be shown, and then dragged around by the user during this drag.
- Methoddrag_status
GDK2.DragContext
drag_status(int
action
)- Description
Setting action to -1 means use the suggested action
- Methoddrop_reply
GDK2.DragContext
drop_reply(int
ok
)- Description
Drop reply.
- Methodget_action
int
get_action()- Description
One of
GDK_ACTION_ASK
,GDK_ACTION_COPY
,GDK_ACTION_DEFAULT
,GDK_ACTION_LINK
,GDK_ACTION_MOVE
andGDK_ACTION_PRIVATE
;
- Methodget_actions
int
get_actions()- Description
A bitwise or of one or more of
GDK_ACTION_ASK
,GDK_ACTION_COPY
,GDK_ACTION_DEFAULT
,GDK_ACTION_LINK
,GDK_ACTION_MOVE
andGDK_ACTION_PRIVATE
;
- Methodget_is_source
int
get_is_source()- Description
Is this application the source?
- Methodget_protocol
int
get_protocol()- Description
One of
GDK_DRAG_PROTO_LOCAL
,GDK_DRAG_PROTO_MOTIF
,GDK_DRAG_PROTO_NONE
,GDK_DRAG_PROTO_OLE2
,GDK_DRAG_PROTO_ROOTWIN
,GDK_DRAG_PROTO_WIN32_DROPFILES
andGDK_DRAG_PROTO_XDND
- Methodget_source_widget
GTK2.Widget
get_source_widget()- Description
Return the drag source widget.
- Methodget_start_time
int
get_start_time()- Description
The start time of this drag, as a unix time_t (seconds since 0:00 1/1 1970)
- Methodget_suggested_action
int
get_suggested_action()- Description
One of
GDK_ACTION_ASK
,GDK_ACTION_COPY
,GDK_ACTION_DEFAULT
,GDK_ACTION_LINK
,GDK_ACTION_MOVE
andGDK_ACTION_PRIVATE
;
Class GTK2.GdkDrawable
- Description
The GDK2.Bitmap, GDK2.Window and GDK2.Pixmap classes are all GDK drawables.
This means that you can use the same set of functions to draw in them.
Pixmaps are offscreen drawables. They can be drawn upon with the standard drawing primitives, then copied to another drawable (such as a GDK2.Window) with window->draw_pixmap(), set as the background for a window or widget, or otherwise used to show graphics (in a W(Pixmap), as an example). The depth of a pixmap is the number of bits per pixels. Bitmaps are simply pixmaps with a depth of 1. (That is, they are monochrome bitmaps - each pixel can be either on or off).
Bitmaps are mostly used as masks when drawing pixmaps, or as a shape for a GDK2.Window or a W(Widget)
- Methodclear
GDK2.Drawable
clear(int
|void
x
,int
|void
y
,int
|void
width
,int
|void
height
)- Description
Either clears the rectangle defined by the arguments, of if no arguments are specified, the whole drawable.
- Methodcopy_area
GDK2.Drawable
copy_area(GTK2.GdkGC
gc
,int
xdest
,int
ydest
,GTK2.Widget
source
,int
xsource
,int
ysource
,int
width
,int
height
)- Description
Copies the rectangle defined by xsource,ysource and width,height from the source drawable, and places the results at xdest,ydest in the drawable in which this function is called.
- Methoddraw_arc
GDK2.Drawable
draw_arc(GTK2.GdkGC
gc
,int
filledp
,int
x1
,int
y1
,int
x2
,int
y2
,int
angle1
,int
angle2
)- Description
Draws a single circular or elliptical arc. Each arc is specified by a rectangle and two angles. The center of the circle or ellipse is the center of the rectangle, and the major and minor axes are specified by the width and height. Positive angles indicate counterclockwise motion, and negative angles indicate clockwise motion. If the magnitude of angle2 is greater than 360 degrees, it is truncated to 360 degrees.
- Methoddraw_bitmap
GDK2.Drawable
draw_bitmap(GTK2.GdkGC
gc
,GTK2.GdkBitmap
bitmap
,int
xsrc
,int
ysrc
,int
xdest
,int
ydest
,int
width
,int
height
)- Description
Draw a GDK2(Bitmap) in this drawable. NOTE: This drawable must be a bitmap as well. This will be fixed in GTK 1.3
- Methoddraw_image
GDK2.Drawable
draw_image(GTK2.GdkGC
gc
,GTK2.GdkImage
image
,int
xsrc
,int
ysrc
,int
xdest
,int
ydest
,int
width
,int
height
)- Description
Draw the rectangle specified by xsrc,ysrc+width,height from the GDK2(Image) at xdest,ydest in the destination drawable
- Methoddraw_line
GDK2.Drawable
draw_line(GTK2.GdkGC
gc
,int
x1
,int
y1
,int
x2
,int
y2
)- Description
img_begin w = GTK2.DrawingArea()->set_size_request(100,100); delay: g = GDK2.GC(w)->set_foreground( GDK2.Color(255,0,0) ); delay: for(int x = 0; x<10; x++) w->draw_line(g,x*10,0,100-x*10,99); img_end
- Methoddraw_pixbuf
GDK2.Drawable
draw_pixbuf(GTK2.GdkGC
gc
,GTK2.GdkPixbuf
pixbuf
,int
xsrc
,int
ysrc
,int
xdest
,int
ydest
,int
width
,int
height
)- Description
Draw a GDK2(Pixbuf) in this drawable.
- Methoddraw_pixmap
GDK2.Drawable
draw_pixmap(GTK2.GdkGC
gc
,GTK2.GdkPixmap
pixmap
,int
xsrc
,int
ysrc
,int
xdest
,int
ydest
,int
width
,int
height
)- Description
Draw the rectangle specified by xsrc,ysrc+width,height from the GDK2(Pixmap) at xdest,ydest in the destination drawable
- Methoddraw_point
GDK2.Drawable
draw_point(GTK2.GdkGC
gc
,int
x
,int
y
)- Description
img_begin w = GTK2.DrawingArea()->set_size_request(10,10); delay: g = GDK2.GC(w)->set_foreground( GDK2.Color(255,0,0) ); delay: for(int x = 0; x<10; x++) w->draw_point(g, x, x); img_end
- Methoddraw_rectangle
GDK2.Drawable
draw_rectangle(GTK2.GdkGC
gc
,int
filledp
,int
x1
,int
y1
,int
x2
,int
y2
)- Description
img_begin w = GTK2.DrawingArea()->set_size_request(100,100); delay: g = GDK2.GC(w)->set_foreground( GDK2.Color(255,0,0) ); delay: for(int x = 0; x<10; x++) w->draw_rectangle(g,0,x*10,0,100-x*10,99); img_end img_begin w = GTK2.DrawingArea()->set_size_request(100,100); delay: g = GDK2.GC(w); delay: for(int x = 0; x<30; x++) { delay: g->set_foreground(GDK2.Color(random(255),random(255),random(255)) ); delay: w->draw_rectangle(g,1,x*10,0,100-x*10,99); delay: } img_end
- Methoddraw_text
GDK2.Drawable
draw_text(GTK2.GdkGC
gc
,int
x
,int
y
,string
|PangoLayout
text
)- Description
y is used as the baseline for the text.
- Methodget_geometry
mapping
get_geometry()- Description
Get width, height position and depth of the drawable as a mapping.
([ "x":xpos, "y":ypos, "width":xsize, "height":ysize, "depth":bits_per_pixel ])
- InheritObject
inherit G.Object : Object
- Methodset_background
GDK2.Drawable
set_background(GTK2.GdkColor
to
)- Description
Set the background color or image. The argument is either a GDK2.Pixmap or a GDK2.Color object.
- Methodxid
int
xid()- Description
Return the xwindow id.
- Methodxsize
int
xsize()- Description
Returns the width of the drawable specified in pixels
- Methodysize
int
ysize()- Description
Returns the height of the drawable specified in pixels
Class GTK2.GdkEvent
- Description
Gdk events.
- Method_index
protected
mixed
_index(string
ind
)- Description
Return an index.
- Methodcast
(
mapping
)GTK2.GdkEvent()- Description
Cast to different types.
Class GTK2.GdkGC
- Description
A GC, or Graphics Context, is used for most low-level drawing operations.
As an example, the foreground color, background color, and drawing function is stored in the GC.
NOIMG
- Methodcopy
GDK2.GC
copy(GTK2.GdkGC
source
)- Description
Copy all attributes from the source GC
- Methodcreate
GTK2.GdkGCGTK2.GdkGC(
GTK2.Widget
context
,mapping
|void
attributes
)- Description
The argument is either a W(Widget) or a GDK2(Drawable) in which the gc will be valid.
- Methodget_screen
GTK2.GdkScreen
get_screen()- Description
Gets the screen.
- Methodget_values
mapping
get_values()- Description
Get all (or rather most) values from the GC. Even though GdkGCValues contains a GdkFont object, we won't return this value because GdkFont is deprecated. The Pango methods should be used instead.
- InheritObject
inherit G.Object : Object
- Methodset_background
GDK2.GC
set_background(GTK2.GdkColor
color
)- Description
Set the background to the specified GDK2.Color.
- Methodset_clip_mask
GDK2.GC
set_clip_mask(GTK2.GdkBitmap
mask
)- Description
Set the clip mask to the specified GDK2.Bitmap
- Methodset_clip_origin
GDK2.GC
set_clip_origin(int
x
,int
y
)- Description
Set the clip mask origin to the specified point.
- Methodset_clip_rectangle
GDK2.GC
set_clip_rectangle(GTK2.GdkRectangle
rect
)- Description
Sets the clip mask for a graphics context from a rectangle. The clip mask is interpreted relative to the clip origin.
- Methodset_clip_region
GDK2.GC
set_clip_region(GTK2.GdkRegion
rect
)- Description
Sets the clip mask for a graphs context from a region. The clip mask is interpreted relative to the clip origin.
- Methodset_dashes
GDK2.GC
set_dashes(int
offset
,array
dashes
)- Description
Sets the way dashed-lines are drawn. Lines will be drawn with alternating on and off segments of the lengths specified in dashes. The manner in which the on and off segments are drawn is determined by the line_style value of the GC.
- Methodset_exposures
GDK2.GC
set_exposures(int
exp
)- Description
Sets whether copying non-visible portions of a drawable using this gc generates exposure events for the corresponding regions of the dest drawable.
- Methodset_fill
GDK2.GC
set_fill(int
fill
)- Description
Set the fill method to fill.
- Methodset_foreground
GDK2.GC
set_foreground(GTK2.GdkColor
color
)- Description
Set the foreground to the specified GDK2.Color.
- Methodset_function
GDK2.GC
set_function(int
fun
)- Description
Set the function to the specified one. One of GDK2.Xor, GDK2.Invert and GDK2.Copy.
- Methodset_line_attributes
GDK2.GC
set_line_attributes(int
line_width
,int
line_style
,int
cap_style
,int
join_style
)- Description
Control how lines are drawn. line_style is one of GDK2.LineSolid, GDK2,LineOnOffDash and GDK2.LineDoubleDash. cap_style is one of GDK2.CapNotLast, GDK2.CapButt, GDK2.CapRound and GDK2.CapProjecting. join_style is one of GDK2.JoinMiter, GDK2.JoinRound and GDK2.JoinBevel.
- Methodset_stipple
GDK2.GC
set_stipple(GTK2.GdkBitmap
stipple
)- Description
Set the background type. Fill must be GDK_STIPPLED or GDK_OPAQUE_STIPPLED.
- Methodset_subwindow
GDK2.GC
set_subwindow(int
draw_on_subwindows
)- Description
If set, anything drawn with this GC will draw on subwindows as well as the window in which the drawing is done.
- Methodset_tile
GDK2.GC
set_tile(GTK2.GdkPixmap
tile
)- Description
Set the background type. Fill must be GDK_TILED
- Methodset_ts_origin
GDK2.GC
set_ts_origin(int
x
,int
y
)- Description
Set the origin when using tiles or stipples with the GC. The tile or stipple will be aligned such that the upper left corner of the tile or stipple will coincide with this point.
Class GTK2.GdkImage
- Description
A gdk (low level) image. Mainly used for W(Image) objects.
NOIMG
- Methodcreate
GTK2.GdkImageGTK2.GdkImage(
int
|void
fast_mode
,Image.Image
|void
image
)- Description
Create a new GDK2.Image object. The first argument is either 0, which indicates that you want a 'slow' image. If you use '1', you indicate that you want a 'fast' image. Fast images are stored in shared memory, and thus are not sent over any network. But please limit your usage of fast images, they use up a possibly limited system resource set. See the man page for shmget(2) for more information on the limits on shared segments on your system.
A 'fast' image will automatically revert back to 'slow' mode if no shared memory is available.
If the second argument is specified, it is the actual image data.
- Methodget_pixel
int
get_pixel(int
x
,int
y
)- Description
Get the pixel value of a pixel as a X-pixel value. It is usualy not very easy to convert this value to a rgb triple. See get_pnm.
- Methodget_pnm
string
get_pnm()- Description
Returns the data in the image as a pnm object. Currently, this is always a P6 (true color raw) image. This could change in the future. To get a pike image object do 'Image.PNM.decode( gdkimage->get_pnm() )'
- Methodgrab
GDK2.Image
grab(GTK2.Widget
widget
,int
xoffset
,int
yoffset
,int
width
,int
height
)- Description
Call this function to grab a portion of a widget (argument 1) to the image. Grabbing non-toplevel widgets may produce unexpected results. To get the size of a widget use ->xsize() and ->ysize(). To get the offset of the upper left corner of the widget, relative to it's X-window (this is what you want for the offset arguments), use ->xoffset() and ->yoffset().
- InheritObject
inherit G.Object : Object
- Methodset
GDK2.Image
set(Image.Image
|int
image_or_xsize
,int
|void
ysize
)- Description
Call this to set this image to either the contents of a pike image or a blank image of a specified size.
- Methodset_pixel
GDK2.Image
set_pixel(int
x
,int
y
,int
pixel
)- Description
Set the pixel value of a pixel. Please note that the pixel argument is a X-pixel value, which is not easily gotten from a RGB color. See get_pixel and set.
Class GTK2.GdkPixbuf
- Description
Properties: int bits-per-sample int colorspace (GdkColorspace) int has-alpha int height int n-channels object pixels int rowstride int width
- Methodadd_alpha
GTK2.GdkPixbuf
add_alpha(int
substitute_color
,int
r
,int
g
,int
b
)- Description
Adds an alpha channel to this pixbuf and returns a copy. If it already has an alpha channel, the channel values are copied from the original; otherwise, the alpha channel is initialized to 255 (full opacity). If substitute_color is true, then the color specified by (r,g,b) will be assigned zero opacity. That is, if you pass (255,255,255) for the substitute color, all white pixels will become fully transparent.
- Methodcomposite
GTK2.GdkPixbuf
composite(GTK2.GdkPixbuf
dest
,int
dest_x
,int
dest_y
,int
dest_width
,int
dest_height
,float
offset_x
,float
offset_y
,float
scale_x
,float
scale_y
,int
type
,int
overall_alpha
)- Description
Creates a transformation of the source image by scalling by scale_x and scale_y, then translating by offset_x and offset_y. This gives an image in the coordinates of the destination pixbuf. The rectangle (dest_x,dest_y,dest_width,dest_height) is then composited onto the corresponding rectangle of the original destination image. when the destination rectangle contain parts not in the source image, the data at the edges of the source image is replicated to infinity.
- Methodcomposite_color
GTK2.GdkPixbuf
composite_color(GTK2.GdkPixbuf
dest
,int
dest_x
,int
dest_y
,int
dest_width
,int
dest_height
,float
offset_x
,float
offset_y
,float
scale_x
,float
scale_y
,int
type
,int
overall_alpha
,int
check_x
,int
check_y
,int
check_size
,int
color1
,int
color2
)- Description
Creates a transformation of the source image by scaling by scale_x and scale_y, then translating by offset_x and offset_y, then composites the rectangle (dest_x,dest_y,dest_width,dest_height) of the resulting image with a checkboard of the colors color1 and color2 and renders it onto the destinagion image.
See composite_color_simple() for a simpler variant of this function suitable for many tasks.
- Methodcomposite_color_simple
GTK2.GdkPixbuf
composite_color_simple(int
dest_width
,int
dest_height
,int
type
,int
overall_alpha
,int
check_size
,int
color1
,int
color2
)- Description
Creates a new W(Pixbuf) by scalling src to dest_width x dest_height and compositing the result with a checkboard of colors color1 and color2.
- Methodcopy
GTK2.GdkPixbuf
copy()- Description
Creates a new GDK2.Pixbuf with a copy of this one.
- Methodcopy_area
GTK2.GdkPixbuf
copy_area(GTK2.GdkPixbuf
dest
,int
src_x
,int
src_y
,int
widt
,int
height
,int
dest_x
,int
dest_y
)- Description
Copies a rectangular area from this pixbuf to dest. Conversion of pixbuf formats is done automatically.
- Methodcreate
GTK2.GdkPixbufGTK2.GdkPixbuf(
string
|mapping
options
)- Description
Create a GDK2.Pixbuf object.
- Parameter
options
options
is either a filename or a mapping of options.If it is a mapping, it may contain:
"filename"
:string
Name of file to load.
"xpm"
:string
If this key exists, then value is xpm data to create from.
"data"
:string
If this key exists, then value is pixel data.
"bits"
:int
Number of bits per sample.
"width"
:int
Width of image.
"height"
:int
Height of image.
"alpha"
:int
True if alpha channel.
"scale"
:int
True if use width and height as scale.
"preserve"
:int
True if preserve aspect ratio.
The following is additional keys may exist if the member
"data"
exists:"colorspace"
:int
Colorspace, default
GDK2.COLORSPACE_RGB
, currently ignored."rowstride"
:int
Distance in bytes between row starts.
- Methodflip
GTK2.GdkPixbuf
flip(int
horizontal
)- Description
Flips a pixbuf horizontally or vertically and returns the result in a new pixbuf.
- Methodget_bits_per_sample
int
get_bits_per_sample()- Description
Queries the number of bits per color sample.
- Methodget_colorspace
int
get_colorspace()- Description
Queries the color space.
- Methodget_has_alpha
int
get_has_alpha()- Description
Queries whether a pixbuf has an alpha channel.
- Methodget_height
int
get_height()- Description
Queries the height.
- Methodget_n_channels
int
get_n_channels()- Description
Queries the number of channels.
- Methodget_option
string
get_option(string
key
)- Description
Looks up key in the list of options that may have been attached to the pixbuf when it was loaded.
- Methodget_pixels
string
get_pixels()- Description
Returns the pixel data as a string.
- Methodget_rowstride
int
get_rowstride()- Description
Queries the rowstride of a pixbuf, which is the number of bytes between the start of a row and the start of the next row.
- Methodget_width
int
get_width()- Description
Queries the width.
- InheritObject
inherit G.Object : Object
- Methodnew_subpixbuf
GTK2.GdkPixbuf
new_subpixbuf(int
src_x
,int
src_y
,int
width
,int
height
)- Description
Creates a new pixbuf which represents a sub-region of src. The new pixbuf shares its pixels with the original pixbuf, so writing to one affects both. The new pixbuf holds a reference to this one, so this object will not be finalized until the new pixbuf is finalized.
- Methodput_pixel
int
put_pixel(int
x
,int
y
,int
r
,int
g
,int
b
)- Description
Set pixel to value.
- Methodrender_threshold_alpha
GTK2.GdkBitmap
render_threshold_alpha(int
src_x
,int
src_y
,int
dest_c
,int
dest_y
,int
width
,int
height
,int
alpha_threshold
)- Description
Takes the opacity values in a rectangular portion of a pixbuf and thresholds them to produce a bi-level alpha mask that can be used as a clipping mask for a drawable.
- Methodrotate_simple
GTK2.GdkPixbuf
rotate_simple(int
angle
)- Description
Rotates a pixbuf by a multiple of 90 degrees, and returns the result in a new pixbuf. angle is either a multiple of 90 degrees (0,90,180,270), or one of
GDK_PIXBUF_ROTATE_CLOCKWISE
,GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE
,GDK_PIXBUF_ROTATE_NONE
andGDK_PIXBUF_ROTATE_UPSIDEDOWN
, which are merely aliases.
- Methodsaturate_and_pixelate
GDK2.Pixbuf
saturate_and_pixelate(GTK2.GdkPixbuf
dest
,float
saturation
,int
pixelate
)- Description
Modifes saturation and optionally pixelates this pixbuf, placing the result in dest. The source and dest may be the same pixbuf with no ill effects. If saturation is 1.0 then saturation is not changed. If it's less than 1.0, saturation is reduced (the image is darkened); if greater than 1.0, saturation is increased (the image is brightened). If pixelate is true, then pixels are faded in a checkerboard pattern to create a pixelated image. This pixbuf and dest must have the same image format, size, and rowstride.
- Methodsave
GTK2.GdkPixbuf
save(string
filename
,string
type
,mapping
|void
options
)- Description
Save to a file in format type. "jpeg", "png", "ico", "bmp", are the only valid writable types at this time. Quality is only valid for jpeg images.
- Methodscale
GTK2.GdkPixbuf
scale(GTK2.GdkPixbuf
dest
,int
dest_x
,int
dest_y
,int
dest_width
,int
dest_height
,float
offset_x
,float
offset_y
,float
scale_x
,float
scale_y
,int
type
)- Description
Creates a transformation of the source image by scaling by scale_x and scale_y, then translating by offset_x and offset_y, then renders the rectangle (dest_x,dest_y,dest_width,dest_height) of the resulting image onto the destination image replacing the previous contents. Try to use scale_simple() first, this function is the industrial- strength power tool you can fall back to if scale_simple() isn't powerful enough.
- Methodscale_simple
GTK2.GdkPixbuf
scale_simple(int
dest_width
,int
dest_height
,int
|void
interp_type
)- Description
Create a new W(Pixbuf) containing a copy of this W(Pixbuf) scaled to dest_width x dest_height. Leaves this W(Pixbuf) unaffected. intertype should be GDK2.INTERP_NEAREST if you want maximum speed (but when scaling down GDK2.INTERP_NEAREST is usually unusably ugly). The default interp_type should be GDK2.INTERP_BILINEAR which offers reasonable quality and speed. You can scale a sub-portion by create a sub-pixbuf with new_subpixbuf().
- Methodset_alpha
int
set_alpha(int
x
,int
y
,int
setting
)- Description
Set alpha value.
- Methodset_option
int
set_option(string
key
,string
value
)- Description
Attaches a key/value pair as an option. If the key already exists in the list of options, the new value is ignored.
Class GTK2.GdkPixbufAnimation
- Description
The GdkPixbufAnimation object. Holds animations, like gifs.
- Methodcreate
GTK2.GdkPixbufAnimationGTK2.GdkPixbufAnimation(
string
filename
)- Description
Create a new PixbufAnimation.
- Methodget_height
int
get_height()- Description
Returns the height of the bounding box.
- Methodget_iter
GTK2.GdkPixbufAnimationIter
get_iter()- Description
Get an iterator for displaying an animation. The iterator provides the frames that should be displayed at a given time.
Returns the beginning of the animation. Afterwards you should probably immediately display the pixbuf return by GDK2.PixbufAnimationIter->get_pixbuf(). Then, you should install a timeout or by some other mechanism ensure that you'll update the image after GDK2.PixbufAnimationIter->get_delay_time() milliseconds. Each time the image is updated, you should reinstall the timeout with the new, possibly changed delay time.
To update the image, call GDK2.PixbufAnimationIter->advance().
- Methodget_static_image
GTK2.GdkPixbuf
get_static_image()- Description
If an animation is really just a plain image (has only one frame), this function returns that image. If the animation is an animation, this function returns reasonable thing to display as a static unanimated image, which might be the first frame, or something more sophisticated. If an animation hasn't loaded any frames yet, this function will return 0.
- Methodget_width
int
get_width()- Description
Returns the width of the bounding box.
- InheritObject
inherit G.Object : Object
- Methodis_static_image
int
is_static_image()- Description
If the file turns out to be a plain, unanimated image, this function will return true. Use get_static_image() to retrieve the image.
Class GTK2.GdkPixbufAnimationIter
- Description
An iterator for a PixbufAnimation.
- Methodadvance
int
advance()- Description
Possibly advance an animation to a new frame.
- Methodget_delay_time
int
get_delay_time()- Description
Gets the number of milliseconds the current pixbuf should be displayed, or -1 if the current pixbuf should be displayed forever.
- Methodget_pixbuf
GTK2.GdkPixbuf
get_pixbuf()- Description
Gets the current pixbuf which should be displayed; the pixbuf will be the same size as the animation itself (GDK2.PixbufAnimation->get_width(), GDK2.PixbufAnimation->get_height()). This pixbuf should be displayed for get_delay_time() milliseconds.
- InheritObject
inherit G.Object : Object
- Methodon_currently_loading_frame
int
on_currently_loading_frame()- Description
Used to determine how to respond to the area_updated signal on GDK2.PixbufLoader when loading an animation.
Class GTK2.GdkPixbufLoader
- Description
Application-driven progressive image loading.
Signals: area_prepared
area_updated
closed
size_prepared
- Methodclose
bool
close()- Description
informs a pixbuf loader that no further writes with write() will occur, so that it can free its internal loading structures. Also, tries to parse any data that hasn't yet been parsed; if the remaining data is partial or corrupt, FALSE will be returned.
- Methodcreate
GTK2.GdkPixbufLoaderGTK2.GdkPixbufLoader()
- Methodget_animation
GTK2.GdkPixbufAnimation
get_animation()- Description
Queries the GDK2.PixbufAnimation that a pixbuf loader is currently creating. In general it only makes sense to call this function after the "area-prepared" signal has been emitted by the loader. If the loader doesn't have enough bytes yet (hasn't emitted the "area-prepared" signal) this function will return NULL.
- InheritObject
inherit G.Object : Object
- Methodset_size
GDK2.PixbufLoader
set_size(int
width
,int
height
)- Description
Causes the image to be scaled while it is loaded. Attempts to set the desired image size are ignored after the emission of the size-prepared signal. (once loading start)
- Methodwrite
bool
write(string
|Stdio.Buffer
data
)- Description
This will cause a pixbuf loader to parse the more data for an image. It will return TRUE if the data was loaded successfully, and FALSE if an error occurred. In the latter case, the loader will be closed, and will not accept further writes.
Class GTK2.GdkPixbufSimpleAnim
- Description
Properties: bool loop
- Methodadd_frame
GDK2.PixbufSimpleAnim
add_frame(GTK2.GdkPixbuf
frame
)- Description
Adds a new frame to animation . The pixbuf must have the dimensions specified when the animation was constructed.
- Methodget_loop
bool
get_loop()- Description
Returns if animation will loop indefinitely when it reaches the end.
- InheritPixbufAnimation
inherit GDK2.PixbufAnimation : PixbufAnimation
- Methodset_loop
GDK2.PixbufSimpleAnim
set_loop(bool
loop
)- Description
Sets whether animation should loop indefinitely when it reaches the end.
Class GTK2.GdkPixmap
- Description
This class creates a GDK2.Pixmap from either an GDK2.Image or Image.image object (or a numeric ID, see your X-manual for XIDs). The GDK2.Pixmap object can be used in a lot of different GTK widgets. The most notable is the W(Pixmap) widget.
NOIMG
- Methodcreate
GTK2.GdkPixmapGTK2.GdkPixmap(
int
|object
image
)- Description
Create a new GDK2.Pixmap object. Argument is a GDK2.Image object or a Image.Image object
- InheritDrawable
inherit GDK2.Drawable : Drawable
- Methodref
GDK2.Pixmap
ref()- Description
Ref this object.
- Methodset
GDK2.Pixmap
set(GTK2.GdkImage
image
)- Description
Argument is a GDK2.Image object or an Image.image object. It is much faster to use an gdkImage object, especially one allocated in shared memory. This is only an issue if you are going to change the contents of the pixmap often, toggling between a small number of images.
- Methodunref
GDK2.Pixmap
unref()- Description
Unref this object.
Class GTK2.GdkRectangle
- Description
Rectangle class.
- Methodcast
(int)GTK2.GdkRectangle()
(float)GTK2.GdkRectangle()
(string)GTK2.GdkRectangle()
(array)GTK2.GdkRectangle()
(mapping)GTK2.GdkRectangle()
(multiset)GTK2.GdkRectangle()- Description
Normally used like (mapping)rectangle or (array)rectangle.
- Methodcreate
GTK2.GdkRectangleGTK2.GdkRectangle(
int
x
,int
y
,int
width
,int
height
)- Description
Create a new rectangle
NOIMG
- Methodset
GDK2.Rectangle
set(int
x
,int
y
,int
width
,int
height
)- Description
Set the upper left corner and the size of the rectangle.
Class GTK2.GdkRegion
- Description
Region information.
- Methodcreate
GTK2.GdkRegionGTK2.GdkRegion()
- Description
Create a new (empty) region
NOIMG
- Methodequal
int
equal(GTK2.GdkRegion
victim
)- Description
Return true if the region used as an argument is equal to the current region. Also available as a==b when a is a region.
- Methodintersect
GTK2.GdkRegion
intersect(GTK2.GdkRegion
victim
)- Description
Computes the intersection of the given region and the region. Also available as region & region
- Methodoffset
GDK2.Region
offset(int
dx
,int
dy
)- Description
Offset(move) the region by dx,dy pixels.
- Methodpoint_in
int
point_in(int
x
,int
y
)- Description
Returns true if the given point resides in the given region
- Methodrect_in
int
rect_in(GTK2.GdkRectangle
r
)- Description
Returns true if the given rectangle resides inside the given region
- Methodshrink
GDK2.Region
shrink(int
dx
,int
dy
)- Description
reduces the size of a region by a specified amount. Positive values shrink the size of the region, and negative values expand the region.
- Methodsubtract
GTK2.GdkRegion
subtract(GTK2.GdkRegion
victim
)- Description
Computes the difference of the given region and the region. Also available as region - region
- Methodunion
GTK2.GdkRegion
union(GTK2.GdkRegion
victim
)- Description
Computes the union of the given rectangle or region and the region. Also available as region | rectangle, region | region, region + region and region + rectangle.
- Methodxor
GTK2.GdkRegion
xor(GTK2.GdkRegion
victim
)- Description
Computes the exlusive or of the given region and the region. Also available as region ^ region
Class GTK2.GdkScreen
- Description
Properties: font-options float resolution
Signals: composited_changed
size_changed
- Methodcreate
GTK2.GdkScreenGTK2.GdkScreen()
- Description
Gets the default screen.
- Methodget_active_window
GTK2.GdkWindow
get_active_window()- Description
Returns the currently active window.
- Methodget_default_colormap
GTK2.GdkColormap
get_default_colormap()- Description
Gets the default colormap.
- Methodget_display
GTK2.GdkDisplay
get_display()- Description
Gets the display to which this screen belongs.
- Methodget_height
int
get_height()- Description
Gets the height in pixels.
- Methodget_height_mm
int
get_height_mm()- Description
Returns the height in millimeters.
- Methodget_monitor_at_point
int
get_monitor_at_point(int
x
,int
y
)- Description
Returns the monitor number in which x,y is located.
- Methodget_monitor_at_window
int
get_monitor_at_window(GTK2.GdkWindow
window
)- Description
Returns the number of the monitor in which the largest area of the bounding rectangle of window resides.
- Methodget_monitor_geometry
GTK2.GdkRectangle
get_monitor_geometry(int
num
)- Description
Retrieves the GDK2.Rectangle representing the size and position of the individual monitor within the entire screen area.
- Methodget_n_monitors
int
get_n_monitors()- Description
Returns the number of monitors which this screen consists of.
- Methodget_number
int
get_number()- Description
Gets the index of this screen among the screens in the display to which it belongs.
- Methodget_resolution
float
get_resolution()- Description
Gets the resolution for font handling.
- Methodget_rgb_colormap
GTK2.GdkColormap
get_rgb_colormap()- Description
Gets the preferred colormap for rendering image data.
- Methodget_rgb_visual
GTK2.GdkVisual
get_rgb_visual()- Description
Get a "preferred visual" chosen by GdkRGB for rendering image data.
- Methodget_rgba_colormap
GTK2.GdkColormap
get_rgba_colormap()- Description
Gets a colormap to use for creating windows or pixmaps with an alpha channel.
- Methodget_rgba_visual
GTK2.GdkVisual
get_rgba_visual()- Description
Gets a visual to use for creating windows or pixmaps with an alpha channel.
- Methodget_root_window
GTK2.GdkWindow
get_root_window()- Description
Gets the root window.
- Methodget_system_colormap
GTK2.GdkColormap
get_system_colormap()- Description
Gets the system default colormap.
- Methodget_system_visual
GTK2.GdkVisual
get_system_visual()- Description
Get the default system visual.
- Methodget_toplevel_windows
array
get_toplevel_windows()- Description
Returns a list of all toplevel windows known to GDK on the screen.
- Methodget_width
int
get_width()- Description
Gets the width of the screen in pixels.
- Methodget_width_mm
int
get_width_mm()- Description
Gets the width in millimeters.
- InheritObject
inherit G.Object : Object
- Methodis_composited
int
is_composited()- Description
Returns whether windows with an RGBA visual can reasonable be expected to have their alpha channel drawn correctly on the screen.
- Methodlist_visuals
array
list_visuals(int
|void
def
)- Description
List the available visuals. If def is true, return the available visuals for the default screen.
- Methodmake_display_name
string
make_display_name()- Description
Determines the name to pass to GDK2.Display->open() to get a GDK2.Display with this screen as the default screen.
- Methodset_default_colormap
GDK2.Screen
set_default_colormap(GTK2.GdkColormap
colormap
)- Description
Sets the default colormap.
- Methodset_resolution
GDK2.Screen
set_resolution(float
dpi
)- Description
Sets the resolution for font handling.
Class GTK2.GdkVisual
- Description
A GdkVisual describes a particular video hardware display format. It includes information about the number of bits used for each color, the way the bits are translated into an RGB value for display, and the way the bits are stored in memory.
- Methodcreate
GTK2.GdkVisualGTK2.GdkVisual(
int
|void
best
,int
|void
depth
,int
|void
type
)- Parameter
best
If best is false the systems default GDK screen is returned, otherwise the screen that best fulfills the given depth and type. If none is given, the one with most colors is selected.
- Parameter
depth
The requested bit depth, or 0.
- Parameter
type
The requested visual type.
GDK_VISUAL_STATIC_GRAY
Each pixel value indexes a grayscale value directly.
GDK_VISUAL_GRAYSCALE
Each pixel is an index into a color map that maps pixel values into grayscale values. The color map can be changed by an application.
GDK_VISUAL_STATIC_COLOR
Each pixel value is an index into a predefined, unmodifiable color map that maps pixel values into RGB values.
GDK_VISUAL_PSEUDO_COLOR
Each pixel is an index into a color map that maps pixel values into rgb values. The color map can be changed by an application.
GDK_VISUAL_TRUE_COLOR
Each pixel value directly contains red, green, and blue components. The red_mask, green_mask, and blue_mask fields of the GdkVisual structure describe how the components are assembled into a pixel value.
GDK_VISUAL_DIRECT_COLOR
Each pixel value contains red, green, and blue components as for
GDK_VISUAL_TRUE_COLOR
, but the components are mapped via a color table into the final output table instead of being converted directly.
- Methodget_screen
GTK2.GdkScreen
get_screen()- Description
Gets the screen to which this visual belongs.
- InheritObject
inherit G.Object : Object
Class GTK2.GdkWindow
- Description
a GDK2.Window object.
NOIMG
- Methodchange_property
GDK2.Window
change_property(GDK2.Atom
property
,GDK2.Atom
type
,int
mode
,string
data
)- Description
mode is one of
GDK_PROP_MODE_APPEND
,GDK_PROP_MODE_PREPEND
andGDK_PROP_MODE_REPLACE
- Methodchildren
array
children()- Description
Returns an array of GDK2.Window objects.
- Methodcreate
GTK2.GdkWindowGTK2.GdkWindow(
GTK2.GdkWindow
parent
,mapping
|void
attributes
)- Description
Not for non-experts. I promise.
- Methoddelete_property
GDK2.Window
delete_property(GDK2.Atom
a
)- Description
Delete a property.
- Methodget_geometry
mapping
get_geometry()- Description
Returns ([ "x":xpos, "y":ypos, "width":width, "height":height, "depth":bits_per_pixel ])
- Methodget_property
mapping
get_property(GDK2.Atom
atom
,int
|void
offset
,int
|void
delete_when_done
)- Description
Returns the value (as a string) of the specified property. The arguments are:
property: The property atom, as an example GDK2.Atom.__SWM_VROOT offset (optional): The starting offset, in elements delete_when_done (optional): If set, the property will be deleted when it has been fetched.
Example usage: Find the 'virtual' root window (many window managers put large windows over the screen)
GDK2.Window root = GTK.root_window(); array maybe=root->children()-> get_property(GDK2.Atom.__SWM_VROOT)-({0}); if(sizeof(maybe)) root=GDK2.Window( maybe[0]->data[0] );
- Methodgrab_input_focus
GDK2.Window
grab_input_focus()- Description
Forcibly grab the input focus.
Useful for override-redirect windows in games. Note that the only way to get rid of the focus is to close the window, be careful.
- InheritDrawable
inherit GDK2.Drawable : Drawable
- Methodis_viewable
int
is_viewable()- Description
Return 1 if the window is mapped.
- Methodis_visible
int
is_visible()- Description
Return 1 if the window, or a part of the window, is visible right now.
- Methodlower
GDK2.Window
lower()- Description
Lower this window if the window manager allows that.
- Methodmove_resize
GDK2.Window
move_resize(int
x
,int
y
,int
w
,int
h
)- Description
Move and resize the window in one call.
- Methodraise
GDK2.Window
raise()- Description
Raise this window if the window manager allows that.
- Methodset_background
GDK2.Window
set_background(GTK2.GdkColor
to
)- Description
Set the background color or image. The argument is either a GDK2.Pixmap or a GDK2.Color object.
- Methodset_bitmap_cursor
GDK2.Window
set_bitmap_cursor(GTK2.GdkBitmap
image
,GTK2.GdkBitmap
mask
,GTK2.GdkColor
fg
,GTK2.GdkColor
bg
,int
xhot
,int
yhot
)- Description
xhot,yhot are the locations of the x and y hotspot relative to the upper left corner of the cursor image.
- Methodset_cursor
GDK2.Window
set_cursor(int
new_cursor
)- Description
Change the window cursor.<table border="0" cellpadding="3" cellspacing="0"> CURS(GDK2.Arrow) CURS(GDK2.BasedArrowDown) CURS(GDK2.BasedArrowUp) CURS(GDK2.Boat) CURS(GDK2.Bogosity) CURS(GDK2.BottomLeftCorner) CURS(GDK2.BottomRightCorner) CURS(GDK2.BottomSide) CURS(GDK2.BottomTee) CURS(GDK2.BoxSpiral) CURS(GDK2.CenterPtr) CURS(GDK2.Circle) CURS(GDK2.Clock) CURS(GDK2.CoffeeMug) CURS(GDK2.Cross) CURS(GDK2.CrossReverse) CURS(GDK2.Crosshair) CURS(GDK2.DiamondCross) CURS(GDK2.Dot) CURS(GDK2.Dotbox) CURS(GDK2.DoubleArrow) CURS(GDK2.DraftLarge) CURS(GDK2.DraftSmall) CURS(GDK2.DrapedBox) CURS(GDK2.Exchange) CURS(GDK2.Fleur) CURS(GDK2.Gobbler) CURS(GDK2.Gumby) CURS(GDK2.Hand1) CURS(GDK2.Hand2) CURS(GDK2.Heart) CURS(GDK2.Icon) CURS(GDK2.IronCross) CURS(GDK2.LeftPtr) CURS(GDK2.LeftSide) CURS(GDK2.LeftTee) CURS(GDK2.Leftbutton) CURS(GDK2.LlAngle) CURS(GDK2.LrAngle) CURS(GDK2.Man) CURS(GDK2.Middlebutton) CURS(GDK2.Mouse) CURS(GDK2.Pencil) CURS(GDK2.Pirate) CURS(GDK2.Plus) CURS(GDK2.QuestionArrow) CURS(GDK2.RightPtr) CURS(GDK2.RightSide) CURS(GDK2.RightTee) CURS(GDK2.Rightbutton) CURS(GDK2.RtlLogo) CURS(GDK2.Sailboat) CURS(GDK2.SbDownArrow) CURS(GDK2.SbHDoubleArrow) CURS(GDK2.SbLeftArrow) CURS(GDK2.SbRightArrow) CURS(GDK2.SbUpArrow) CURS(GDK2.SbVDoubleArrow) CURS(GDK2.Shuttle) CURS(GDK2.Sizing) CURS(GDK2.Spider) CURS(GDK2.Spraycan) CURS(GDK2.Star) CURS(GDK2.Target) CURS(GDK2.Tcross) CURS(GDK2.TopLeftArrow) CURS(GDK2.TopLeftCorner) CURS(GDK2.TopRightCorner) CURS(GDK2.TopSide) CURS(GDK2.TopTee) CURS(GDK2.Trek) CURS(GDK2.UlAngle) CURS(GDK2.Umbrella) CURS(GDK2.UrAngle) CURS(GDK2.Watch) CURS(GDK2.Xterm) </table>
- Methodset_events
GDK2.Window
set_events(int
events
)- Description
events is a bitwise or of one or more of the following constants: GDK2.ExposureMask, GDK2.PointerMotionMask, GDK2.PointerMotion_HINTMask, GDK2.ButtonMotionMask, GDK2.Button1MotionMask, GDK2.Button2MotionMask, GDK2.Button3MotionMask, GDK2.ButtonPressMask, GDK2.ButtonReleaseMask, GDK2.KeyPressMask, GDK2.KeyReleaseMask, GDK2.EnterNotifyMask, GDK2.LeaveNotifyMask, GDK2.FocusChangeMask, GDK2.StructureMask, GDK2.PropertyChangeMask, GDK2.VisibilityNotifyMask, GDK2.ProximityInMask, GDK2.ProximityOutMask and GDK2.AllEventsMask
- Methodset_icon
GDK2.Window
set_icon(GTK2.GdkPixmap
pixmap
,GTK2.GdkBitmap
mask
,GTK2.GdkWindow
window
)- Description
Set the icon to the specified image (with mask) or the specified GDK2.Window. It is up to the window manager to display the icon. Most window manager handles window and pixmap icons, but only a few can handle the mask argument. If you want a shaped icon, the only safe bet is a shaped window.
- Methodset_icon_name
GDK2.Window
set_icon_name(string
name
)- Description
Set the icon name to the specified string.
- Methodshape_combine_mask
GDK2.Window
shape_combine_mask(GTK2.GdkBitmap
mask
,int
xoffset
,int
yoffset
)- Description
Set the shape of the widget, or, rather, it's window, to that of the supplied bitmap.
Class GTK2.Gdk_Atom
- Description
An X-atom. You most likely want to use GDK2.Atom.atom_name instead of GDK2._Atom(name).
- Methodcreate
GTK2.Gdk_AtomGTK2.Gdk_Atom(
string
atom_name
,int
|void
only_if_exists
)- Description
Create a new low-level atom. You should normally not call this function directly. Use GDK2.Atom[name] instead of GDK2._Atom(name,0).
- Methodget_name
string
get_name()- Description
Returns the name of the atom.
Class GTK2.GladeXML
- Description
Glade is a free GUI builder for GTK2+ and Gnome. It's normally used to create C-code, but can also produce code for other languages. Libglade is a utility library that builds the GI from the Glade XML save files. This module uses libglade and allows you to easily make GUI designs to be used with your Pike applications.
- Methodcreate
GTK2.GladeXMLGTK2.GladeXML(
string
filename_or_buffer
,int
|void
size
,string
|void
root
,string
|void
domain
)- Description
Creates a new GladeXML object (and the corresponding widgets) from the XML file. Optionally it will only build the interface from the widget node root. This feature is useful if you only want to build say a toolbar or menu from the XML file, but not the window it is embedded in. Note also that the XML parse tree is cached to speed up creating another GladeXML object from the same file. The third optional argument is used to specify a different translation domain from the default to be used. If xml description is in a string buffer instead, specify the size (or -1 to auto-calculate). If size is 0, then it will assume a file with root and/or domain specified.
- Methodget_signal_id
int
get_signal_id(GTK2.Widget
widget
)- Description
Used to get the signal id attached to a GladeXML object.
- Methodget_widget
GTK2.Widget
get_widget(string
name
)- Description
This function is used to get the widget corresponding to name in the interface description. You would use this if you have to do anything to the widget after loading.
- Methodget_widget_name
string
get_widget_name(GTK2.Widget
widget
)- Description
Used to get the name of a widget that was generated by a GladeXML object.
- Methodget_widget_prefix
array
get_widget_prefix(string
name
)- Description
This function is used to get a list GTK2.Widgets with names that start with the string name in the interface description.
- InheritObject
inherit G.Object : Object
- Methodsignal_autoconnect
GTK2.GladeXML
signal_autoconnect(mapping
callbacks
,mixed
data
)- Description
Try to connect functions to all signals in the interface. The mapping should consist of handler name : function pairs. The data argument will be saved and sent as the first argument to all callback functions.
Class GTK2.Gnome2App
- Description
Toplevel GNOME applications would normally use one Gnome2.App widget as their toplevel window. You can create as many Gnome2.App widgets as you want, for example, some people use one GnomeApp per document their application loads.
Once you have created one instance of this widget, you would add your main application view information to this window by using set_contents() routine.
The GnomeApp has support for including a menubar, one or more toolbars and a statusbar for your application. It also takes care of intalling the accelerators for you when used in conjuction with the gnome-app-helper routines. The toolbars are inserted into Gnome2.Dock widgets.
The gnome-app-helper module provides various helper routines to simplify the configuration of your menus and toolbars, but you can create those yourself and use the set_menus(), add_toolbar(), set_toolbar(), add_dock_item() and add_docked(). Properties: string app-id
- Methodadd_docked
Gnome2.App
add_docked(GTK2.Widget
widget
,string
name
,int
behavior
,int
placement
,int
band_num
,int
band_position
,int
|void
offset
)- Description
Create a new Gnome2.DockItem widget containing widget, and add it to app's dock with the specified layout information. Notice that, if automatic layout configuration is enabled, the layout is overridden by the saved configuration, if any.
widget : Widget to be added to app's dock name : Name for the dock item that will contain toolbar behavior : Behavior for the new dock item. One of
GNOME_DOCK_ITEM_BEH_EXCLUSIVE
,GNOME_DOCK_ITEM_BEH_LOCKED
,GNOME_DOCK_ITEM_BEH_NEVER_FLOATING
,GNOME_DOCK_ITEM_BEH_NEVER_HORIZONTAL
,GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL
andGNOME_DOCK_ITEM_BEH_NORMAL
placement : Placement for the new dock item, one of Gnome2.DockTop, Gnome2.DockRight, Gnome2.DockBottom, Gnome2.DockLeft and Gnome2.DockFloating band_num : Number of the band where the dock item should be placed band_position : Position of the new dock item in band band_num offset : Offset from the previous dock item in the band; if there is no previous item, offset from the beginning of the band.
- Methodadd_toolbar
Gnome2.App
add_toolbar(GTK2.Toolbar
toolbar
,string
name
,int
behavior
,int
placement
,int
band_num
,int
band_position
,int
|void
offset
)- Description
Create a new Gnome2.DockItem widget containing toolbar, and add it to app's dock with the specified layout information. Notice that, if automatic layout configuration is enabled, the layout is overridden by the saved configuration, if any.
toolbar : Toolbar to be added to app's dock name : Name for the dock item that will contain toolbar behavior : Behavior for the new dock item. One or more of
GNOME_DOCK_ITEM_BEH_EXCLUSIVE
,GNOME_DOCK_ITEM_BEH_LOCKED
,GNOME_DOCK_ITEM_BEH_NEVER_FLOATING
,GNOME_DOCK_ITEM_BEH_NEVER_HORIZONTAL
,GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL
andGNOME_DOCK_ITEM_BEH_NORMAL
placement : Placement for the new dock item, one of Gnome2.DockTop, Gnome2.DockRight, Gnome2.DockBottom, Gnome2.DockLeft and Gnome2.DockFloating band_num : Number of the band where the dock item should be placed band_position : Position of the new dock item in band band_num offset : Offset from the previous dock item in the band; if there is no previous item, offset from the beginning of the band.
- Methodcreate
GTK2.Gnome2AppGTK2.Gnome2App(
string
appname
,string
|void
title
)- Description
Create a new (empty) application window. You must specify the application's name (used internally as an identifier). title can be left as 0, in which case the window's title will not be set.
- Methodenable_layout_config
Gnome2.App
enable_layout_config(int
enable
)- Description
Specify whether the the dock's layout configuration should be automatically saved via gnome-config whenever it changes, or not.
- InheritWindow
inherit GTK2.Window : Window
- Methodset_contents
Gnome2.App
set_contents(GTK2.Widget
contents
)- Description
Sets the status bar of the application window.
- Methodset_menus
Gnome2.App
set_menus(GTK2.MenuBar
menu_bar
)- Description
Sets the menu bar of the application window.
- Methodset_statusbar
Gnome2.App
set_statusbar(GTK2.Widget
statusbar
)- Description
Sets the status bar of the application window.
- Methodset_statusbar_custom
Gnome2.App
set_statusbar_custom(GTK2.Widget
container
,GTK2.Widget
statusbar
)- Description
Sets the status bar of the application window, but use container as its container.
- Methodset_toolbar
Gnome2.App
set_toolbar(GTK2.Toolbar
toolbar
)- Description
Sets the main toolbar of the application window.
Class GTK2.Gnome2Appbar
- Description
A bar that GNOME applications put on the bottom of the windows to display status, progress, hints for menu items or a minibuffer for getting some sort of response. It has a stack for status messages
GTK2.Gnome2Appbar( 1, 1, GTK2.GNOME_PREFERENCES_USER )->set_progress_percentage( 0.4 );
Properties: int has-progress int has-status int interactivity
Signals: clear_prompt Emitted when the prompt is cleared. mixed user_data
user_response Emitted when the user hits enter after a prompt. mixed user_data
- Methodclear_prompt
Gnome2.Appbar
clear_prompt()- Description
Remove any prompt.
- Methodclear_stack
Gnome2.Appbar
clear_stack()- Description
Remove all status messages from appbar, and display default status message (if present).
- Methodcreate
GTK2.Gnome2AppbarGTK2.Gnome2Appbar(
int
has_progress
,int
has_status
,int
interactivity
)- Description
Create a new GNOME application status bar. If has_progress is TRUE, a small progress bar widget will be created, and placed on the left side of the appbar. If has_status is TRUE, a status bar, possibly an editable one, is created.
interactivity determines whether the appbar is an interactive "minibuffer" or just a status bar. If it is set to Gnome2.PREFERENCES_NEVER, it is never interactive. If it is set to Gnome2.PREFERENCES_USER we respect user preferences from ui-properties. If it's Gnome2.PREFERENCES_ALWAYS we are interactive whether the user likes it or not. Basically, if your app supports both interactive and not (for example, if you use the gnome-app-util interfaces), you should use Gnome2.PREFERENCES_USER. Otherwise, use the setting you support. Please note that "interactive" mode is not functional now; GtkEntry is inadequate and so a custom widget will be written eventually.
- Methodget_progress
GTK2.ProgressBar
get_progress()- Description
Returns GTK2.ProgressBar widget pointer, so that the progress bar may be manipulated further.
- Methodget_response
string
get_response()- Description
Get the response to the prompt, if any.
- Methodget_status
GTK2.Widget
get_status()- Description
Retrieves the statusbar widget.
- InheritHbox
inherit GTK2.Hbox : Hbox
- Methodpop
Gnome2.Appbar
pop()- Description
Remove current status message, and display previous status message, if any. It is OK to call this with an empty stack.
- Methodpush
Gnome2.Appbar
push(string
what
)- Description
Push a new status message onto the status bar stack, and display it.
- Methodrefresh
Gnome2.Appbar
refresh()- Description
Reflect the current state of stack/default. Useful to force a set_status to disappear.
- Methodset_default
Gnome2.Appbar
set_default(string
default_status
)- Description
What to show when showing nothing else; defaults to "".
- Methodset_progress_percentage
Gnome2.Appbar
set_progress_percentage(float
percentage
)- Description
Sets progress bar to the given percentage.
- Methodset_prompt
Gnome2.Appbar
set_prompt(string
prompt
,int
modal
)- Description
Put a prompt in the appbar and wait for a response. When the user responds or cancels, a "user-response" signal is emitted.
- Methodset_status
Gnome2.Appbar
set_status(string
status
)- Description
Sets the status label without changing widget state; next set or push will destroy this permanently.
Class GTK2.Gnome2Canvas
- Description
Gnome2.Canvas is an engine for structured graphics that offers a rich imaging model, high performance rendering, and a powerful, high level API. It offers a choice of two rendering back-ends, one based on Xlib for extremely fast display, and another based on Libart, a sophisticated, antialiased, alpha-compositing engine. This widget can be used for flexible display of graphics and for creating interactive user interface elements.
A Gnome2.Canvas widget contains one or more Gnome2.CanvasItem objects. Items consist of graphing elements like lines, ellipses, polygons, images, text, and curves. These items are organized using Gnome2.CanvasGroup objects, which are themselves derived from Gnome2.CanvasItem. Since a group is an item it can be contained within other groups, forming a tree of canvas items. Certain operations, like translating and scaling, can be performed on all items in a group. See http://developer.gnome.org/doc/API/2.0/libgnomecanvas/GnomeCanvas.html for more information. Properties: int aa
Signals: draw_background
render_background
- Methodc2w
array
c2w(int
cx
,int
cy
)- Description
Converts canvas pixel coordinates to world coordinates.
- Methodcreate
GTK2.Gnome2CanvasGTK2.Gnome2Canvas(
int
|void
anti_alias
)- Description
Create a new Gnome2.Canvas widget. Set anti_alias to true to create a canvas in antialias mode.
- Methodget_center_scroll_region
int
get_center_scroll_region()- Description
Returns whether the canvas is set to center the scrolling region in the window if the former is smaller than the canvas' allocation.
- Methodget_color
GTK2.GdkColor
get_color(string
|void
spec
)- Description
Allocates a color based on the specified X color specification. An omitted or empty string is considered transparent.
- Methodget_color_pixel
int
get_color_pixel(int
rgba
)- Description
Allocates a color from the RGBA value passed into this function. The alpha opacity value is discarded, since normal X colors do not support it.
- Methodget_dither
int
get_dither()- Description
Returns the type of dithering used to render an antialiased canvas.
- Methodget_item_at
GTK2.Gnome2CanvasItem
get_item_at(float
x
,float
y
)- Description
Looks for the item that is under the specified position, which must be specified in world coordinates.
- Methodget_scroll_offsets
array
get_scroll_offsets()- Description
Queries the scrolling offsets of a canvas. The values are returned in canvas pixel units.
- Methodget_scroll_region
mapping
get_scroll_region()- Description
Queries the scrolling region of a canvas.
- InheritLayout
inherit GTK2.Layout : Layout
- Methodroot
GTK2.Gnome2CanvasGroup
root()- Description
Queries the root group.
- Methodscroll_to
Gnome2.Canvas
scroll_to(int
cx
,int
cy
)- Description
Makes a canvas scroll to the specified offsets, given in canvas pixel units. The canvas will adjust the view so that it is not outside the scrolling region. This function is typically not used, as it is better to hook scrollbars to the canvas layout's scrolling adjustments.
- Methodset_center_scroll_region
Gnome2.Canvas
set_center_scroll_region(int
setting
)- Description
When the scrolling region of the canvas is smaller than the canvas window, e.g. the allocation of the canvas, it can be either centered on the window or simply made to be on the upper-left corner on the window.
- Methodset_dither
Gnome2.Canvas
set_dither(int
dither
)- Description
Controls the dithered rendering for antialiased canvases. The value of dither should be GDK2.RgbDitherNone, GDK2.RgbDitherNormal, or GDK2.RgbDitherMax. The default canvas setting is GDK2.RgbDitherNormal.
- Methodset_pixels_per_unit
Gnome2.Canvas
set_pixels_per_unit(float
n
)- Description
Sets the zooming factor of a canvas by specifying the number of pixels that correspond to one canvas unit.
The anchor point for zooming, i.e. the point that stays fixed and all others zoom inwards or outwards from it, depends on whether the canvas is set to center the scrolling region or not. You can contorl this using the set_center_scroll_region() function. If the canvas is set to center the scroll region, then the center of the canvas window is used as the anchor point for zooming. Otherwise, the upper-left corner of the canvas window is used as the anchor point.
- Methodset_scroll_region
Gnome2.Canvas
set_scroll_region(float
x1
,float
y1
,float
x2
,float
y2
)- Description
Sets the scrolling region of a canvas to the specified rectangle. The canvas will then be able to scroll only within this region. The view of the canvas is adjusted as appropriate to display as much of the new region as possible.
- Methodw2c
array
w2c(float
wx
,float
wy
)- Description
Converts world coordinates into canvas pixel coordinates.
- Methodw2c_affine
array
w2c_affine()- Description
Gets the affine transform that converts from world coordinates to canvas pixel coordinates.
- Methodw2c_d
array
w2c_d(float
wx
,float
wy
)- Description
Converts world coordinates into canvas pixel coordinates. This version returns coordinates in floating point coordinates, for greater precision.
- Methodwindow_to_world
array
window_to_world(float
winx
,float
winy
)- Description
Converts window-relative coordinates into world coordinates. You can use this when you need to convert mouse coordinates into world coordinates, for example.
- Methodworld_to_window
array
world_to_window(float
worldx
,float
worldy
)- Description
Converts world coordinates into window-relative coordinates.
Class GTK2.Gnome2CanvasBpath
- InheritCanvasShape
inherit Gnome2.CanvasShape : CanvasShape
Class GTK2.Gnome2CanvasClipgroup
- Description
Properties: string path int wind
- InheritCanvasGroup
inherit Gnome2.CanvasGroup : CanvasGroup
Class GTK2.Gnome2CanvasEllipse
- InheritCanvasRE
inherit Gnome2.CanvasRE : CanvasRE
Class GTK2.Gnome2CanvasGroup
- InheritCanvasItem
inherit Gnome2.CanvasItem : CanvasItem
Class GTK2.Gnome2CanvasItem
- Description
This is the base class for all canvas items. Canvas items are the drawing elements of a Gnome2.Canvas. Example items include lines, ellipses, polygons, images, text, curves, and even arbitary GTK+ widgets.
Properties: Gnome2.CanvasItem parent
Signals: event
- InheritObject
inherit GTK2.Object : Object
Class GTK2.Gnome2CanvasLine
- Description
Properties: float arrow-shape-a float arrow-shape-b float arrow-shape-c int cap-style string fill-color GDK2.Color fill-color-gdk int fill-color-rgba GDK2.Drawable fill-stipple int first-arrowhead int join-style int last-arrowhead int line-style Gnome2.CanvasPoints points int smooth int spline-steps int width-pixels float width-units
- InheritCanvasItem
inherit Gnome2.CanvasItem : CanvasItem
Class GTK2.Gnome2CanvasPixbuf
- Description
Properties: int anchor float height int height-in-pixels int height-set GDK2.Pixbuf pixbuf float width int width-in-pixels int width-set float x int x-in-pixels float y int y-in-pixels
- InheritCanvasItem
inherit Gnome2.CanvasItem : CanvasItem
Class GTK2.Gnome2CanvasRE
- Description
Properties: float x1 float x2 float y1 float y2
- InheritCanvasShape
inherit Gnome2.CanvasShape : CanvasShape
Class GTK2.Gnome2CanvasRect
- InheritCanvasRE
inherit Gnome2.CanvasRE : CanvasRE
Class GTK2.Gnome2CanvasRichText
- Description
Properties: int anchor int cursor-blink int cursor-visible int direction int editable int grow-height float height int indent int justification int left-margin int pixels-above-lines int pixels-below-lines int pixels-inside-wrap int right-margin string text int visible float width int wrap-mode float x float y
Signals: tag_changed
- Methodget_buffer
GTK2.TextBuffer
get_buffer()- Description
Get the text buffer.
- InheritCanvasItem
inherit Gnome2.CanvasItem : CanvasItem
- Methodset_buffer
Gnome2.CanvasRichText
set_buffer(GTK2.TextBuffer
buffer
)- Description
Set the text buffer.
Class GTK2.Gnome2CanvasShape
- Description
Properties: int cap-style string dash string fill-color GDK2.Color fill-color-gdk int fill-color-rgba GDK2.Drawable fill-stipple int join-style float miterlimit string outline-color GDK2.Color outline-color-gdk int outline-color-rgba GDK2.Drawable outline-stipple int width-pixels float width-units int wind
- InheritCanvasItem
inherit Gnome2.CanvasItem : CanvasItem
Class GTK2.Gnome2CanvasText
- Description
Properties: int anchor Pango.AttrList attributes int clip float clip-height float clip-width string family int family-set string fill-color GDK2.Color fill-color-gdk int fill-color-rgba GDK2.Drawable fill-stipple string font Pango.FontDescription font-dest int justification string markup int rise int rise-set float scale int scale-set int size float size-points int size-set Pango.Stretch stretch int stretch-set int strikethrough int strikethrough-set Pango.Style style int style-set string text float text-height float text-width Pango.Underline underline int underline-set Pango.Variant variant int variant-set int weight float x float x-offset float y float y-offset
- InheritCanvasItem
inherit Gnome2.CanvasItem : CanvasItem
Class GTK2.Gnome2CanvasWidget
- Description
Properties: int anchor float height int size-pixels GTK2.Widget widget float width float x float y
- InheritCanvasItem
inherit Gnome2.CanvasItem : CanvasItem
Class GTK2.Gnome2Client
- Description
Signals: connect Called once the client has been connected to the signal manager. int arg1, mixed user_data
die Called when the session manager wants the client to shut down. mixed user_data
disconnect Called when the client is disconnected from the session manager. mixed user_data
save_complete Called when the session manager has finished checkpointing all of the clients. Clients are then free to change their state. mixed user_data
save_yourself Called when either a "SaveYourself" or a "SaveYourselfPhase2" call is made by the session manager. int arg1: the phase of the "SaveYourself" command ('1' or '2'). int arg2: the data which should be saved (local, global, or both). int arg3: true if the session manager is shutting down. int arg4: how the client is allowed to interact with the user while saving. int arg5: true if this is to be a "fast" shutdown. mixed user_data
shutdown_cancelled Called if the session manager had sent a "SaveYourself" to all clients in preparation for shutting down and the shutdown was then cancelled. A client can then continue running and change its state. mixed user_data
- Methodcreate
GTK2.Gnome2ClientGTK2.Gnome2Client()
- Description
Gets the master session management client.
- Methoddisconnect
Gnome2.Client
disconnect()- Description
Disconnect the client from the session manager.
- Methodflush
Gnome2.Client
flush()- Description
This will force the underlying connection to the session manager to be flushed. This is useful if you have some pending changes that you want to make sure get committed.
- Methodget_config_prefix
string
get_config_prefix()- Description
Get the config prefix. This config prefix provides a suitable place to store any details about the state of the client which can not be described using the app's command line arguments (as set in the restart command).
- Methodget_desktop_id
string
get_desktop_id()- Description
Get the client ID of the desktop's current instance, i.e. if you consider the desktop as a whole as a session managed app, this returns its session ID using a gnome extension to session management. May return empty for apps not running under a recent version of gnome-session; apps should handle that case.
- Methodget_flags
int
get_flags()- Description
Determine the client's status with the session manager.
- Methodget_global_config_prefix
string
get_global_config_prefix()- Description
Get the config prefix that will be returned by get_config_prefix() for clients which have NOT been restarted or cloned (i.e. for clients started by the user without '--sm-' options). This config prefix may be used to write the user's preferred config for these "new"clients".
You could also use this prefix as a place to store and retrieve config details that you wish to apply to ALL instances of the app. However, this practice limits the users freedom to configure each instance in a different way so it should be used with caution.
- Methodget_id
string
get_id()- Description
Returns the session management ID.
- Methodget_previous_id
string
get_previous_id()- Description
Get the session management ID from the previous session.
- InheritObject
inherit GTK2.Object : Object
- Methodrequest_phase_2
Gnome2.Client
request_phase_2()- Description
Request the session manager to emit the "save-yourself" signal for a second time after all the clients in the session have ceased interacting with the user and entered an idle state. This might be useful if your app managers other apps and requires that they are in an idle state before saving its final data.
- Methodrequest_save
Gnome2.Client
request_save(int
save_style
,int
shutdown
,int
interact_style
,int
fast
,int
global
)- Description
Request the session manager to save the session in some way. The arguments correspond with the arguments passed to the "save-yourself" signal handler.
The save_style (
GNOME_SAVE_BOTH
,GNOME_SAVE_GLOBAL
andGNOME_SAVE_LOCAL
) indicates whether the save should affect data accessible to other users (GTK2.GNOME_SAVE_GLOBAL) or only the state visible to the current user (GTK2.GNOME_SAVE_LOCAL), or both. Setting shutdown to true will initiate a logout. The interact_style (GNOME_INTERACT_ANY
,GNOME_INTERACT_ERRORS
andGNOME_INTERACT_NONE
) specifies which kinds of interaction will be available. Setting fast to true will limit the save to setting the session manager properties plus any essential data. Setting the value of global to true will request that all the other apps in the session do a save as well. A global save is mandatory when doing a shutdown.
- Methodsave_any_dialog
Gnome2.Client
save_any_dialog(GTK2.Dialog
dialog
)- Description
May be called during a "save-yourself" handler to request that a (modal) dialog is presented to the user. The session manager decides when the dialog is shown, but it will not be shown it unless the session manager is sending an interaction style of GTK2.GNOME_INTERACT_ANY. "Cancel" and "Log out" buttons will be added during a shutdown.
- Methodsave_error_dialog
Gnome2.Client
save_error_dialog(GTK2.Dialog
dialog
)- Description
May be called during a "save-yourself" handler when an error has occurred during the save.
- Methodset_clone_command
Gnome2.Client
set_clone_command(array
argv
)- Description
Set a command the session manager can use to create a new instance of the application. Not implemented yet.
- Methodset_current_directory
Gnome2.Client
set_current_directory(string
dir
)- Description
Set the directory to be in when running shutdown, discard, restart, etc. commands.
- Methodset_discard_command
Gnome2.Client
set_discard_command(array
argv
)- Description
Provides a command to run when a client is removed from the session. It might delete session-specific config files, for example. Executing the discard command on the local host should delete the information saved as part of the session save that was in progress when the discard command was set. For example: string prefix=client->get_config_prefix(); array argv=({ "rm","-r" }); argv+=({ Gnome2.Config->get_real_path(prefix) }); client->set_discard_command(argv); Not implemented yet.
- Methodset_environment
Gnome2.Client
set_environment(string
name
,string
value
)- Description
Set an environment variable to be placed in the client's environment prior to running restart, shutdown, discard, etc. commands.
- Methodset_global_config_prefix
Gnome2.Client
set_global_config_prefix(string
prefix
)- Description
Set the value used for the global config prefix. The global config prefix defaults to a name based on the name of the executable. This function allows you to set it to a different value. It should be called BEFORE retrieving the config prefix for the first time. Later calls will be ignored.
- Methodset_priority
Gnome2.Client
set_priority(int
priority
)- Description
The gnome-session manager restarts clients in order of their priorities in a similar way to the start up ordering in SysV. This function allows the app to suggest a position in this ordering. The value should be between 0 and 99. A default value of 50 is assigned to apps that do not provide a value. The user may assign a different priority.
- Methodset_resign_command
Gnome2.Client
set_resign_command(array
argv
)- Description
Some clients can be "undone", removing their effects and deleting any saved state. For example, xmodmap could register a resign command to undo the keymap changes it saved.
Used by clients that use the GTK2.GNOME_RESTART_ANYWAY restart style to undo their effects (these clients usually perform initialization functions and leave effects behind after they die). The resign command combines the effects of a shutdown command and a discard command. It is executed when the user decides that the client should cease to be restarted. Not implemented yet.
- Methodset_restart_command
Gnome2.Client
set_restart_command(array
argv
)- Description
When clients crash or the user logs out and back in, they are restarted. This command should perform the restart. Executing the restart command on the local host should reproduce the state of the client at the time of the session save as closely as possible. Saving config info under the get_config_prefix() is generally useful. Not implemented yet.
- Methodset_restart_style
Gnome2.Client
set_restart_style(int
style
)- Description
Tells the session manager how the client should be restarted in future sessions. One of
GNOME_RESTART_ANYWAY
,GNOME_RESTART_IF_RUNNING
,GNOME_RESTART_IMMEDIATELY
andGNOME_RESTART_NEVER
- Methodset_shutdown_command
Gnome2.Client
set_shutdown_command(array
argv
)- Description
GTK2.GNOME_RESTART_ANYWAY clients can set this command to run when the user logs out but the client is no longer running.
Used by clients that use the GTK2.GNOME_RESTART_ANYWAY restart style to undo their effects (these clients usually perform initialization functions and leave effects behind after they die). The shutdown command simply undoes the effects of the client. It is executed during a normal logout. Not implemented yet.
Class GTK2.Gnome2DateEdit
- Description
The GnomeDateEdit widget provides a way to enter dates and times with a helper calendar to let the user select the date.
GTK2.Gnome2DateEdit(time(),1,1);
GTK2.Gnome2DateEdit(time(),0,1);
Properties: int dateedit-flags int initial-time int lower-hour int time int upper-hour
Signals: date_changed
time_changed
- Methodcreate
GTK2.Gnome2DateEditGTK2.Gnome2DateEdit(
int
the_time
,int
show_time
,int
use_24_format
)- Description
Creates a new GnomeDateEdit widget which can be used to provide an easy to use way for entering dates and times.
- Methodget_flags
int
get_flags()- Description
Get the flags.
- Methodget_initial_time
int
get_initial_time()- Description
Queries the initial time that was set using set_time() or during creation.
- Methodget_time
int
get_time()- Description
Return the time entered in the widget.
- InheritHbox
inherit GTK2.Hbox : Hbox
- Methodset_flags
Gnome2.DateEdit
set_flags(int
flags
)- Description
Bitwise or of
GNOME_DATE_EDIT_24_HR
,GNOME_DATE_EDIT_SHOW_TIME
andGNOME_DATE_EDIT_WEEK_STARTS_ON_MONDAY
.
- Methodset_popup_range
Gnome2.DateEdit
set_popup_range(int
low_hour
,int
up_hour
)- Description
Sets the range of times that will be provide by the time popup selectors.
- Methodset_time
Gnome2.DateEdit
set_time(int
the_time
)- Description
Changes the displayed date and time in the GnomeDateEdit widget to be the one represented by the_time.
Class GTK2.Gnome2Druid
- Description
The GNOME druid is a system for assisting the user with installing a service. It is roughly equivalent in functionality to the "Wizards" available in Windows.
There are two major parts of the druid, the Gnome2.Druid widget, and the set of W(Gnome2.DruidPage) widgets. The Gnome2.Druid widget is the main widget that interacts with the user. It has a Next, a Prev, and a Cancel button, and acts as a container for the pages. It is not a top-level window, so it needs to be put in a W(GTK2.Window) in almost all cases. The W(Gnome2.DruidPage) is a virtual widget, from which all of the actual content of the page inherits from. There are currently three of these available within gnome-libs.
GNOME druids are fairly simple to program with. You start by creating a GnomeDruid into which you put all of your pages. This widget will handle the presentation of the W(GnomeDruidPage) widgets.
You then create all appropriate W(GnomeDruidPage) widgets. There are three implementations of these, although there is no reason why more couldn't be written. They are the W(GnomeDruidPageStart), the W(GnomeDruidPageStandard), and the W(GnomeDruidPageFinish). The W(GnomeDruidPageStandard) acts as a W(Container), and is probably the most commonly used druid page. The other ones, as their names might suggest, are used at the endpoints of the druid. More information on the specific properties of these widgets can be found on their respective pages.
You will need to add the pages to the druid in order for them to appear. The druid itself keeps an internal list of all pages, and using the prepend_page(), append_page(), and insert_page() functions will place them into it.
Properties: int show-finish int show-help
Signals: cancel This signal is emitted when the "cancel" button has been pressed. Note that the current druid page has the option to trap the signal and use it, if need be, preventing this signal from being emitted.
help
- Methodappend_page
Gnome2.Druid
append_page(GTK2.Gnome2DruidPage
page
)- Description
This will append a GnomeDruidPage into the internal list of pages that the druid has.
- Methodcreate
GTK2.Gnome2DruidGTK2.Gnome2Druid()
- Description
Create a new druid
- InheritContainer
inherit GTK2.Container : Container
- Methodinsert_page
Gnome2.Druid
insert_page(GTK2.Gnome2DruidPage
back_page
,GTK2.Gnome2DruidPage
page
)- Description
This will insert page after back_page into the list of internal pages that the druid has. If back_page is not present in the list or is 0, page will be prepended to the list.
- Methodprepend_page
Gnome2.Druid
prepend_page(GTK2.Gnome2DruidPage
page
)- Description
This will prepend a GnomeDruidPage into the internal list of pages that the druid has.
- Methodset_buttons_sensitive
Gnome2.Druid
set_buttons_sensitive(int
back_sensitive
,int
next_sensitive
,int
cancel_sensitive
,int
help_sensitive
)- Description
Sets the sensitivity of the druid's control-buttons. If the variables are TRUE, then they will be clickable. This function is used primarily by the actual W(GnomeDruidPage) widgets.
- Methodset_page
Gnome2.Druid
set_page(GTK2.Gnome2DruidPage
page
)- Description
This will make page the currently showing page in the druid. page must already be in the druid.
- Methodset_show_finish
Gnome2.Druid
set_show_finish(int
show_finish
)- Description
Sets the text on the last button on the druid. If show_finish is TRUE, then the text becomes "Finish". If show_finish is FALSE, then the text becomes "Cancel".
- Methodset_show_help
Gnome2.Druid
set_show_help(int
show_help
)- Description
Sets the "Help" button on the druid to be visible in the lower left corner of the widget, if show_help is true.
Class GTK2.Gnome2DruidPage
- Description
This widget is a virtual widget to define the interface to a druid page. It's descendants are placed in a W(Gnome2.Druid) widget.
Signals: back
cancel
finish
next
prepare
- Methodback
int
back()- Description
This will emit the "back" signal for that particular page.
- Methodcancel
int
cancel()- Description
This will emit the "cancel" signal for that particular page.
- Methodcreate
GTK2.Gnome2DruidPageGTK2.Gnome2DruidPage()
- Description
Creates a new Gnome2.DruidPage.
- Methodfinish
Gnome2.DruidPage
finish()- Description
This emits the "finish" signal for the page.
- InheritBin
inherit GTK2.Bin : Bin
- Methodnext
int
next()- Description
This will emit the "next" signal for that particular page. It is called by gnome-druid exclusviely. It is expected that non-linear Druid's will override this signal and return true if it handles changing pages.
- Methodprepare
Gnome2.DruidPage
prepare()- Description
This emits the "prepare" signal for the page. It is called by gnome-druid exclusively. This function is called immediately prior to a druid page being show so that it can "prepare" for display.
Class GTK2.Gnome2DruidPageEdge
- Methodcreate
GTK2.Gnome2DruidPageEdgeGTK2.Gnome2DruidPageEdge(
int
position
,int
|void
anti_alias
)- Description
Create a new Gnome2.DruidPageEdge, with optional anti-aliasing.
- InheritDruidPage
inherit Gnome2.DruidPage : DruidPage
- Methodset_bg_color
Gnome2.DruidPageEdge
set_bg_color(GTK2.GdkColor
color
)- Description
This will set the background color.
- Methodset_logo
Gnome2.DruidPageEdge
set_logo(GTK2.GdkPixbuf
logo
)- Description
Sets a GDK2.Pixbuf as the logo in the top right corner. If omitted, then no logo will be displayed.
- Methodset_logo_bg_color
Gnome2.DruidPageEdge
set_logo_bg_color(GTK2.GdkColor
color
)- Description
Sets the color behind the druid page's logo.
- Methodset_text
Gnome2.DruidPageEdge
set_text(sprintf_format
text
,sprintf_args
...fmt
)- Description
Sets the contents of the text portion.
- Methodset_text_color
Gnome2.DruidPageEdge
set_text_color(GTK2.GdkColor
color
)- Description
Sets the color of the text in the body of the page.
- Methodset_textbox_color
Gnome2.DruidPageEdge
set_textbox_color(GTK2.GdkColor
color
)- Description
Sets the color of the background in the main text area of the page.
- Methodset_title
Gnome2.DruidPageEdge
set_title(string
title
)- Description
Sets the contents of the page's title text.
- Methodset_title_color
Gnome2.DruidPageEdge
set_title_color(GTK2.GdkColor
color
)- Description
Sets the color of the title text.
- Methodset_top_watermark
Gnome2.DruidPageEdge
set_top_watermark(GTK2.GdkPixbuf
watermark
)- Description
Sets a GDK2.Pixbuf as the watermark on top of the top strip on the druid. If watermark is omitted, it is reset to the normal color.
- Methodset_watermark
Gnome2.DruidPageEdge
set_watermark(GTK2.GdkPixbuf
watermark
)- Description
Sets a GDK2.Pixbuf as the watermark on the left strip on the druid. If watermark is omitted, it is reset to the normal color.
Class GTK2.Gnome2DruidPageStandard
- Description
Properties: string background GDK2.Color background-gdk int background-set string contents-background GDK2.Color contents-background-gdk int contents-background-set GDK2.Pixbuf logo string logo-background GDK2.Color logo-background-gdk int logo-background-set string title string title-foreground GDK2.Color title-foreground-gdk int title-foreground-set GDK2.Pixbuf top-watermark
- Methodappend_item
Gnome2.DruidPageStandard
append_item(string
question
,GTK2.Widget
item
,string
additional_info
)- Description
Convenience function to add a GTK2.Widget to the vbox. This function creates a new contents section that has the question text followed by the item widget and then the additional_info text, all stacked vertically from top to bottom.
The item widget could be something like a set of radio checkbuttons requesting a choice from the user.
- Methodcreate
GTK2.Gnome2DruidPageStandardGTK2.Gnome2DruidPageStandard(
string
|void
title
,GTK2.GdkPixbuf
logo
,GTK2.GdkPixbuf
top_watermark
)- Description
Construct a new Gnome2.DruidPageStandard.
- InheritDruidPage
inherit Gnome2.DruidPage : DruidPage
- Methodset_background
Gnome2.DruidPageStandard
set_background(GTK2.GdkColor
color
)- Description
Sets the background color of the top section.
- Methodset_contents_background
Gnome2.DruidPageStandard
set_contents_background(GTK2.GdkColor
color
)- Description
Sets the color of the main contents section's background.
- Methodset_logo
Gnome2.DruidPageStandard
set_logo(GTK2.GdkPixbuf
logo
)- Description
Sets a GDK2.Pixbuf as the logo in the top right corner. If omitted, then no logo will be displayed.
- Methodset_logo_background
Gnome2.DruidPageStandard
set_logo_background(GTK2.GdkColor
color
)- Description
Sets the background color of the logo.
- Methodset_title
Gnome2.DruidPageStandard
set_title(string
title
)- Description
Sets the title.
- Methodset_title_foreground
Gnome2.DruidPageStandard
set_title_foreground(GTK2.GdkColor
color
)- Description
Sets the title text to the specified color.
- Methodset_top_watermark
Gnome2.DruidPageStandard
set_top_watermark(GTK2.GdkPixbuf
watermark
)- Description
Sets a GDK2.Pixbuf as the watermark on top of the top strip on the druid. If watermark is omitted, it is reset to the normal color.
Class GTK2.Gnome2Href
- Description
This widget is a GtkButton button that contains a URL. When clicked it invokes the configured browser for the URL you provided.
GTK2.Gnome2Href( "http://www.gnome.org", "GNOME Web Site" )
GTK2.Gnome2Href( "http://www.gnome.org" )
Properties: string text string url
Style properties: GDK.Color link-color
- Methodcreate
GTK2.Gnome2HrefGTK2.Gnome2Href(
string
url
,string
|void
label
)- Description
Created a GNOME href object, a label widget with a clickable action and an associated URL. If label is set to 0, url is used as the label.
- Methodget_text
string
get_text()- Description
Returns the contents of the label widget used to display the link text.
- Methodget_url
string
get_url()- Description
Return the url
- InheritButton
inherit GTK2.Button : Button
- Methodset_text
Gnome2.Href
set_text(sprintf_format
text
,sprintf_args
...fmt
)- Description
Sets the internal label widget text (used to display a URL's link text) to the given value.
- Methodset_url
Gnome2.Href
set_url(string
url
)- Description
Sets the internal URL
Class GTK2.Gnome2IconEntry
- Description
This widget provides the facilities to select an icon. An icon is displayed inside a button, when the button is pressed, an Icon selector (a dialog with a W(GnomeIconSelection) widget) pops up to let the user choose an icon. It also allows one to Drag and Drop the images to and from the preview button. Properties: string browse-dialog-title string filename string history-id GTK2.Dialog pick-dialog string pixmap-subdir
Signals: browse
changed
- Methodcreate
GTK2.Gnome2IconEntryGTK2.Gnome2IconEntry(
string
history_id
,string
title
)- Description
Creates a new icon entry widget
- Methodget_filename
string
get_filename()- Description
Gets the file name of the image if it was possible to load it into the preview. That is, it will only return a filename if the image exists and it was possible to load it as an image.
- InheritVbox
inherit GTK2.Vbox : Vbox
- Methodpick_dialog
GTK2.Widget
pick_dialog()- Description
If a pick dialog exists, returns it. This is if you need to do something with all dialogs. You would use the browse signal with connect_after to get the pick dialog when it is displayed.
- Methodset_browse_dialog_title
Gnome2.IconEntry
set_browse_dialog_title(string
title
)- Description
Set the title of the browse dialog.
- Methodset_filename
int
set_filename(string
filename
)- Description
Sets the icon of Gnome2.IconEntry to be the one pointed to by filename.
- Methodset_history_id
Gnome2.IconEntry
set_history_id(string
history_id
)- Description
Set the history_id of the entry in the browse dialog and reload the history.
- Methodset_pixmap_subdir
Gnome2.IconEntry
set_pixmap_subdir(string
subdir
)- Description
Sets the subdirectory below gnome's default pixmap directory to use as the default path for the file entry.
Class GTK2.Gnome2IconSelection
- Description
An icon listing/chooser display.
- Methodadd_defaults
Gnome2.IconSelection
add_defaults()- Description
Adds the default pixmap directory into the selection widget.
- Methodadd_directory
Gnome2.IconSelection
add_directory(string
dir
)- Description
Adds the icons from the directory dir to the selection widget.
- Methodclear
Gnome2.IconSelection
clear(int
|void
not_shown
)- Description
Clear the currently shown icons, the ones that weren't shown yet are not cleared unless the not_shown parameter is given, in which case even those are cleared.
- Methodcreate
GTK2.Gnome2IconSelectionGTK2.Gnome2IconSelection()
- Description
Creates a new icon selection widget, it uses a W(GnomeIconList) for the listing of icons
- Methodget_box
GTK2.Widget
get_box()- Description
Gets the W(Vbox) widget.
- Methodget_icon
string
get_icon(int
full_path
)- Description
Gets the currently selected icon name, if full_path is true, it returns the full path to the icon, if none is selected it returns 0.
- InheritVbox
inherit GTK2.Vbox : Vbox
- Methodselect_icon
Gnome2.IconSelection
select_icon(string
filename
)- Description
Selects the icon filename. This icon must have already been added and shown
- Methodshow_icons
Gnome2.IconSelection
show_icons()- Description
Shows the icons inside the widget that were added with add_defaults and add_directory. Before this function isf called the icons aren't actually added to the listing and can't be picked by the user.
- Methodstop_loading
Gnome2.IconSelection
stop_loading()- Description
Stop the loading of images when we are in the loop in show_icons.
Class GTK2.HScrollbar
- Description
A horizontal scrollbar. General documentation: See W(Scrollbar)
GTK2.HScrollbar(GTK2.Adjustment())->set_size_request(300,15)
- Methodcreate
GTK2.HScrollbarGTK2.HScrollbar(
GTK2.Adjustment
adjustment_or_props
)- Description
Used to create a new hscrollbar widget.
- InheritScrollbar
inherit GTK2.Scrollbar : Scrollbar
Class GTK2.HandleBox
- Description
The contents of a handle box can be 'dragged' out of the box by the user. The contents will then be placed in a separate window.
GTK2.HandleBox()->add(GTK2.Label("The contents"))
Properties: int handle-position int shadow int shadow-type int snap-edge int snap-edge-set
Signals: child_attached Called when a new child is added to the box
child_detached Called when a child is removed from the box
- Methodcreate
GTK2.HandleBoxGTK2.HandleBox(
mapping
|void
props
)- Description
Create a new handle box widget.
- Methodget_handle_position
int
get_handle_position()- Description
Get the handle position.
- Methodget_shadow_type
int
get_shadow_type()- Description
Get the shadow type.
- Methodget_snap_edge
int
get_snap_edge()- Description
Get the snap edge.
- InheritBin
inherit GTK2.Bin : Bin
- Methodset_handle_position
GTK2.HandleBox
set_handle_position(int
pos
)- Description
The position of the handle. One of
POS_BOTTOM
,POS_LEFT
,POS_RIGHT
andPOS_TOP
- Methodset_shadow_type
GTK2.HandleBox
set_shadow_type(int
shadow_type
)- Description
One of
SHADOW_ETCHED_IN
,SHADOW_ETCHED_OUT
,SHADOW_IN
,SHADOW_NONE
andSHADOW_OUT
- Methodset_snap_edge
GTK2.HandleBox
set_snap_edge(int
pos
)- Description
The edge to snap to. One of
POS_BOTTOM
,POS_LEFT
,POS_RIGHT
andPOS_TOP
, or -1 for unset.
Class GTK2.Hbox
- Description
Most packing is done by creating boxes. These are invisible widget containers that we can pack our widgets into which come in two forms, a horizontal box, and a vertical box. This is the horizontal one. When packing widgets into a horizontal box, the objects are inserted horizontally from left to right or right to left depending on the call used.
GTK2.Hbox(0,0)->add(GTK2.Button("Hello"))->add(GTK2.Button("World"))->pack_end_defaults(GTK2.Button("From right"))->pack_start_defaults(GTK2.Button("From left"))
GTK2.Hbox(1,0)->add(GTK2.Button("Hello"))->add(GTK2.Button("World"))->pack_end_defaults(GTK2.Button("From right"))->pack_start_defaults(GTK2.Button("From left"))
GTK2.Hbox(1,40)->add(GTK2.Button("Hello"))->add(GTK2.Button("World"))->pack_end_defaults(GTK2.Button("From right"))->pack_start_defaults(GTK2.Button("From left"))
- Methodcreate
GTK2.HboxGTK2.Hbox(
int
|mapping
uniformp_or_props
,int
|void
hpadding
)- Description
Create a new horizontal box widget. If all_same_size is true, all widgets will have exactly the same size. hpadding is added to the left and right of the children.
- InheritBox
inherit GTK2.Box : Box
Class GTK2.HbuttonBox
- Description
A HbuttonBox is very similar to a Hbox. The major diffference is that the button box is made to pack buttons in, and has a few convenience function for normal button layouts.
GTK2.HbuttonBox()->add(GTK2.Button("Hello"))->add(GTK2.Button("World"))->set_size_request(400,30)
GTK2.HbuttonBox()->add(GTK2.Button("Hello"))->add(GTK2.Button("World"))->set_layout(GTK2.BUTTONBOX_SPREAD)->set_size_request(400,30)
GTK2.HbuttonBox()->add(GTK2.Button("Hello"))->add(GTK2.Button("World"))->set_layout(GTK2.BUTTONBOX_EDGE)->set_size_request(400,30)
GTK2.HbuttonBox()->add(GTK2.Button("Hello"))->add(GTK2.Button("World"))->set_layout(GTK2.BUTTONBOX_START)->set_size_request(400,30)
GTK2.HbuttonBox()->add(GTK2.Button("Hello"))->add(GTK2.Button("World"))->set_layout(GTK2.BUTTONBOX_END)->set_size_request(400,30)
- Methodcreate
GTK2.HbuttonBoxGTK2.HbuttonBox(
mapping
|void
props
)- Description
Create a new horizontal button box
- InheritButtonBox
inherit GTK2.ButtonBox : ButtonBox
Class GTK2.Hpaned
- Description
The paned window widgets are useful when you want to divide an area into two parts, with the relative size of the two parts controlled by the user. A groove is drawn between the two portions with a handle that the user can drag to change the ratio. This widgets makes a horizontal division
See W(Paned) for details.
GTK2.Hpaned()->add1(GTK2.Label("Left\nSide\nOf\nPane"))->add2(GTK2.Label("Right\nSide\nOf\nPane"))->set_size_request(100,100)
- Methodcreate
GTK2.HpanedGTK2.Hpaned(
mapping
|void
props
)- Description
Create a new W(Hpaned) widget.
- InheritPaned
inherit GTK2.Paned : Paned
Class GTK2.Hscale
- Description
The GTK2.HScale widget is used to allow the user to select a value using a horizontal slider. A GTK2.Adjustment is used to set the initial value, the lower and upper bounds, and the step and page increments.
See W(Scale) for details
The position to show the current value, and the number of decimal places shown can be set using the parent W(Scale) class's functions.
GTK2.Hscale(GTK2.Adjustment())->set_size_request(300,30)
- Methodcreate
GTK2.HscaleGTK2.Hscale(
GTK2.Adjustment
settings_or_min_props
,float
|void
max
,float
|void
step
)- Description
Used to create a new hscale widget. Either pass an W(Adjustment), or three floats representing min, max, and step values.
- InheritScale
inherit GTK2.Scale : Scale
Class GTK2.Hseparator
- Description
Simply creates a horizontal separator. No bells or whistles.
GTK2.Hseparator()->set_size_request(300,3)
- Methodcreate
GTK2.HseparatorGTK2.Hseparator(
mapping
|void
props
)- Description
Used to create a new hseparator widget.
- InheritSeparator
inherit GTK2.Separator : Separator
Class GTK2.IconFactory
- Description
Icon factory, for holding icon sets.
- Methodadd
GTK2.IconFactory
add(string
stock_id
,GTK2.IconSet
icon_set
)- Description
Adds the given icon_set to the icon factory, under the name of stock_id. stock_id should be namespaced for your application, e.g. "myapp-whatever-icon". Normally applications create a GTK2.IconFactory, then add it to the list of default factories with add_default(). Then they pass the stock_id to widgets such as GTK2.Image to display the icon. Themes can provide an icon with the same name (such as "myapp-whatever-icon") to override your application's default icons. If an icon already existed in this factory for stock_id, it is unreferenced and replaced with the new icon_set.
- Methodadd_default
GTK2.IconFactory
add_default()- Description
Adds an icon factory to the list of icon factories search by GTK2.Style->lookup_icon_set(). This means that, for example, GTK2.Image->create("stock-id") will be able to find icons in factory. There will normally be an icon factory added for each library or application that comes with icons. The default icon factories can be overridden by themes.
- Methodcreate
GTK2.IconFactoryGTK2.IconFactory()
- Description
Creates a new GTK2.IconFactory. An icon factory manages a collection of GTK2.IconSets; a GTK2.IconSet manages a set of variants of a particular icon (i.e. a GTK2.IconSet contains variants for different sizes and widget states). Icons in an icon factory are named by a stock ID, which is a simple string identifying the icon. Each GTK2.Style has a list of GTK2.IconFactorys derived from the current theme; those icon factories are consulted first when searching for an icon. If the theme doesn't set a particular icon, GTK2+ looks for the icon in a list of default icon factories, maintained by add_default() and remove_default(). Applications with icons should add a default icon factory with their icons, which will allow themes to override the icons for the application.
- InheritObject
inherit G.Object : Object
- Methodlookup
GTK2.IconSet
lookup(string
stock_id
)- Description
Looks up stock_id in the icon factory, returning an icon set if found, otherwise 0. For display to the user, you should use GTK2.Style->lookup_icon_set() on the GTK2.Style for the widget that will display the icon, instead of using this function directly, so that themes are taken into account.
- Methodlookup_default
GTK2.IconSet
lookup_default(string
stock_id
)- Description
Looks for an icon in the list of default icon factories. For display to the user, you should use GTK2.Style->lookup_icon_set() on the GTK2.Style for the widget that will display the icon, instead of using this function directly, so that themes are taken into account.
- Methodremove_default
GTK2.IconFactory
remove_default()- Description
Removes an icon factory from the list of default icon factories.
Class GTK2.IconInfo
- Description
Contains information found when looking up an icon in an icon theme.
- Methodcopy
GTK2.IconInfo
copy()- Description
Make a copy.
- Methodget_base_size
int
get_base_size()- Description
Gets the base size for the icon. The base size is a size for the icon that was specified by the icon theme creator. This may be different than the actual size of image; an example of this is small emblem icons that can be attached to a larger icon. These icons will be given the same base size as the larger icons to which they are attached.
- Methodget_builtin_pixbuf
GTK2.GdkPixbuf
get_builtin_pixbuf()- Description
Gets the built-in image for this icon, if any. To allow GTK2+ to use built-in icon images, you must pass the GTK2.ICON_LOOKUP_USE_BUILTIN to GTK2.IconTheme->lookup_icon().
- Methodget_filename
string
get_filename()- Description
Gets the filename for the icon. If the GTK2.ICON_LOOKUP_USE_BUILTIN flag was passed to GTK2.IconTheme->lookup_icon(), there may be no filename if a builtin icon is returned; in this case, you should use get_builtin_pixbuf().
- Methodload_icon
GTK2.GdkPixbuf
load_icon()- Description
Renders an icon previously looked up in an icon theme using GTK2.IconTheme->lookup_icon(); the size will be based on the size passed to GTK2.IconTheme->lookup_icon(). Note that the resulting pixbuf may not be exactly this size; an icon theme may have icons that differe slightly from their nominal sizes, and in addition GTK2+ will avoid scaling icons that it considers sufficiently close to the requested size or for which the source image would have to be scaled up too far. (This maintains sharpness.)
Class GTK2.IconSet
- Description
Iconset. A single icon.
- Methodadd_source
GTK2.IconSet
add_source(GTK2.IconSource
source
)- Description
Icon sets have a list of GTK2.IconSource, which they use as base icons for rendering icons in different states and sizes. Icons are scaled, made to look insensitive, etc. in render_icon(), but GTK2.IconSet needs base images to work with. The base images and when to use them are described by a GTK2.IconSource.
This function copies source, so you can reuse the same source immediately without affecting the icon set.
An example of when you'd use this function: a web browser's "Back to Previous Page" icon might point in a different direciton in Hebrew and in English; it might look different when insensitive; and it might change size depending on toolbar mode (small/large icons). So a single icon set would contain all those variants of the icon, and you might add a separate source for each one.
You should nearly always add a "default" icon source with all fields wildcarded, which will be used as a fallback if no more specific source matches. GTK2.IconSet always prefers more specific icon sources to more generic icon sources. The order in which you add the sources to the icon set does not matter.
- Methodcopy
GTK2.IconSet
copy()- Description
Create a copy.
- Methodcreate
GTK2.IconSetGTK2.IconSet(
GTK2.GdkPixbuf
pixbuf
)- Description
Create a new GTK2.IconSet. A GTK2.IconSet represents a single icon in various sizes and widget states. It can provide a GDK2.Pixbuf for a given size and state on request, and automatically caches some of the rendered GDK2.Pixbuf objects.
Normally you would use GTK2.Widget->render_icon() instead of using GTK2.IconSet directly. The one case where you'd use GTK2.IconSet is to create application-specific icon sets to place in a GTK2.IconFactory.
- Methodget_sizes
array
get_sizes()- Description
Obtains a list of icon sizes this icon set can render.
Class GTK2.IconSize
- Description
Iconsize.
- Methodfrom_name
int
from_name(string
name
)- Description
Looks up the icon size associated with name.
- Methodget_name
string
get_name(int
size
)- Description
Gets the canonical name of the given icon size.
- Methodregister
int
register(string
name
,int
width
,int
height
)- Description
Registers a new icon size, along the same lines as GTK2.ICON_SIZE_MENU, etc. Returns the integer value for the size.
- Methodregister_alias
GTK2.IconSize
register_alias(string
alias
,int
target
)- Description
Registers alias as another name for target. So calling GTK2.IconSize->from_name() with alias will return target.
Class GTK2.IconSource
- Description
Iconsource.
- Methodcreate
GTK2.IconSourceGTK2.IconSource()
- Description
Creates a new GTK2.IconSource. A GTK2.IconSource contains a GDK2.Pixbuf (or image filename) that serves as the base image for one or more of the icons in a GTK2.IconSet, along with a specification for which icons in the icon set will be based on that pixbuf or image file. An icon set contains a set of icons that represent "the same" logical concept in different states, different global text directions, and different sizes.
So for example a web browser's "Back to Previous Page" icon might point in a different direction in Hebrew and in English; it might look different when insensitive; and it might change size depending on toolbar mode small/large icons). So a single icon set would contain all those variants of the icon. GTK2.IconSet contains a list of GTK2.IconSource from which it can derive specific icon variants in the set.
In the simplest case, GTK2.IconSet contains one source pixbuf from which it derives all variants. The convenience function GTK2.IconSet->create(pixbuf) handles this case; if you only have one source pixbuf, just use that function.
If you want to use a different base pixbuf for different icon variants, you create multiple icon sources, mark which variants they'll be used to create, and add them to the icon set with GTK2.IconSet->add_source().
By default, the icon source has all parameters wildcarded. That is, the icon source will be used as the base icon for any desired text direction, widget state, or icon size.
- Methodget_direction
int
get_direction()- Description
Obtains the text direction this icon source applies to. The return value is only useful/meaningful if the text direction is not wildcarded.
- Methodget_direction_wildcarded
int
get_direction_wildcarded()- Description
Gets the value set by set_direction_wildcarded().
- Methodget_filename
string
get_filename()- Description
Retrieves the source filename, or empty.
- Methodget_icon_name
string
get_icon_name()- Description
Retrieves the source icon name, or empty.
- Methodget_pixbuf
GTK2.GdkPixbuf
get_pixbuf()- Description
Retrieves the source pixbuf, or 0. In addition, if a filename source is in use, this function in some cases will return the pixbuf loaded from the filename. This is, for example, true for the GTK2.IconSource passed to the GTK2.Style->render_icon() virtual function.
- Methodget_size
int
get_size()- Description
Obtains the icon size this source applies to. The return value is only useful/meaningful if the icon size is not wildcarded.
- Methodget_size_wildcarded
int
get_size_wildcarded()- Description
Gets the value set by set_size_wildcarded().
- Methodget_state
int
get_state()- Description
Obtains the widget state this icon source applies to. The return value is only useful/meaningful if the widget state is not wildcarded.
- Methodget_state_wildcarded
int
get_state_wildcarded()- Description
Gets the value set by set_state_wildcarded().
- Methodset_direction
GTK2.IconSource
set_direction(int
dir
)- Description
Sets the text direction this icon source is intended to be used with.
Setting the text direction on an icon source makes no difference if the text direction is wildcarded. Therefore, you should usually call set_direction_wildcarded() to un-wildcard it in addition to calling this function.
- Methodset_direction_wildcarded
GTK2.IconSource
set_direction_wildcarded(int
setting
)- Description
If the text direction is wildcarded, this source can be used as the base image for an icon in any text direction. If the text direction is not wildcarded, then the text direction the icon source applies to should be set with set_direction(), and the icon source will only be used with that text direction.
GTK2.IconSet prefers non-wildcarded sources (exact matches) over wildcarded sources, and will use an exact match when possible.
- Methodset_filename
GTK2.IconSource
set_filename(string
filename
)- Description
Sets the name of an image file to use as a base image when creating icon variants for GTK2.IconSet. The filename must be absolute.
- Methodset_icon_name
GTK2.IconSource
set_icon_name(string
name
)- Description
Sets the name of an icon to look up in the current icon theme to use as a base image.
- Methodset_pixbuf
GTK2.IconSource
set_pixbuf(GTK2.GdkPixbuf
pixbuf
)- Description
Sets a pixbuf to use as a base image.
- Methodset_size
GTK2.IconSource
set_size(int
size
)- Description
Sets the icon size this icon source is intended to be with.
- Methodset_size_wildcarded
GTK2.IconSource
set_size_wildcarded(int
setting
)- Description
If the icon size is wildcarded, this source can be used as the base image for an icon of any size. If the size is not wildcarded, then the size the source applies to should be set with set_size() and the icon source will only be used with that specific size.
- Methodset_state
GTK2.IconSource
set_state(int
state
)- Description
Sets the widget state this icon source is intended to be used with.
- Methodset_state_wildcarded
GTK2.IconSource
set_state_wildcarded(int
setting
)- Description
If the widget state is wildcarded, this source can be used as the base image for an icon in any state. If the widget state is not wildcarded, then the state the source applies to should be set with set_state() and the icon source will only be used with that specific state.
Class GTK2.IconTheme
- Description
Looking up icons by name.
Signals: changed
- Methodappend_search_path
GTK2.IconTheme
append_search_path(string
path
)- Description
Appends a directory to the search path.
- Methodcreate
GTK2.IconThemeGTK2.IconTheme()
- Description
Creates a new icon theme object. Icon theme objects are used to lookup an icon by name in a particular icon theme. Usually you'll want to use get_default() rather than creating a new icon theme object from scratch.
- Methodget_example_icon_name
string
get_example_icon_name()- Description
Gets the name of an icon that is representative of the current theme (for instance, to use when presenting a list of themes to the user.)
- Methodget_icon_sizes
array
get_icon_sizes(string
name
)- Description
Returns an array of integers describing the sizes at which the icon is available without scaling. A size of -1 means that the icon is available in a scalable format.
- Methodget_search_path
array
get_search_path()- Description
Gets the current search path.
- Methodhas_icon
int
has_icon(string
icon_name
)- Description
Checks whether this icon theme includes an icon for a particular name.
- InheritObject
inherit G.Object : Object
- Methodlist_icons
array
list_icons(string
|void
context
)- Description
Lists the icons in the current icon theme. Only a subset of the icons can be listed by providing a context string. The set of values for the context string is system dependent, but will typically include such values as 'apps' and 'mimetypes'.
- Methodload_icon
GTK2.GdkPixbuf
load_icon(string
name
,int
size
,int
flags
)- Description
Looks up an icon in an icon theme, scales it to the given size and renders it into a pixbuf.
- Methodlookup_icon
GTK2.IconInfo
lookup_icon(string
name
,int
size
,int
flags
)- Description
Looks up a named icon and returns an object containing information such as the filename of the icon. The icon can then be rendered into a pixbuf using GTK2.IconInfo->load_icon().
- Methodprepend_search_path
GTK2.IconTheme
prepend_search_path(string
path
)- Description
Prepends a directory to the search path.
- Methodrescan_if_needed
int
rescan_if_needed()- Description
Checks to see if the icon theme has changed; if it has, any currently cached information is discarded and will be reloaded next time this theme is accessed.
- Methodset_custom_theme
GTK2.IconTheme
set_custom_theme(string
theme_name
)- Description
Sets the name of the icon theme that the GTK2.IconTheme object uses overriding system configuration. This function cannot be called on the icon theme objects return from get_default().
- Methodset_search_path
GTK2.IconTheme
set_search_path(array
path
)- Description
Sets the search path for the icon theme object. When looking for an icon theme, GTK2+ will search for a subdirectory of one or more of the directories in path with the same name as the icon theme. (Themes from multiple of the path elemets are combined to allow themes to be extended by adding icons in the user's home directory.)
In addition if an icon found isn't found either in the current icon theme or the default icon theme, and an image file with the right name is found directly in one of the elements of path, then that image will be used for the icon name. (This is a legacy feature, and new icons should be put into the default icon theme, which is called DEFAULT_THEME_NAME, rather than directly on the icon path.)
Class GTK2.IconView
- Description
GTK2.IconView provides an alternative view on a list model. It displays the model as a grid of icons with labels. Like GTK2.TreeView, it allows to select one or multiple items (depending on the selection mode). In addition to seleciton with the arrow keys, GTK2.IconView supports rubberband selections, which is controlled by dragging the pointer. Properties: int column-spacing int columns int item-width int margin int markup-column GTK2.TreeModel model int orientation int pixbuf-column int row-spacing int selection-mode int spacing int text-column
Style properties: int selection-box-alpha GDK2.Color selection-box-color
Signals: activate_cursor_item
item_activated
move_cursor
select_all
select_cursor_item
selection_changed
set_scroll_adjustments
toggle_cursor_item
unselect_all
- Methodcreate
GTK2.IconViewGTK2.IconView(
GTK2.TreeModel
model_or_props
)- Description
Creates a new GTK2.IconView widget Not implemented yet.
- Methodget_column_spacing
int
get_column_spacing()- Description
Returns the value of the column-spacing property.
- Methodget_columns
int
get_columns()- Description
Returns the value of the columns property.
- Methodget_cursor
array
get_cursor()- Description
Returns the GTK2.TreePath and GTK2.CellRenderer of the current cursor path and cell. If the cursor isn't currently set, then path will be 0. If no cell currently has focus, then cell will be 0.
- Methodget_item_at_pos
array
get_item_at_pos(int
x
,int
y
)- Description
Finds the path at the point (x,y) relative to widget coordinates. In contrast to get_path_at_pos(), this function also obtains the cell at the specified position.
- Methodget_item_width
int
get_item_width()- Description
Returns the value of the item-width property.
- Methodget_margin
int
get_margin()- Description
Returns the value of the margin property.
- Methodget_markup_column
int
get_markup_column()- Description
Returns the column with markup text.
- Methodget_model
GTK2.TreeModel
get_model()- Description
Gets the model.
- Methodget_orientation
int
get_orientation()- Description
Returns the value of the orientation property.
- Methodget_path_at_pos
GTK2.TreePath
get_path_at_pos(int
x
,int
y
)- Description
Finds the path at the point(x,y) relative to widget coordinates.
- Methodget_pixbuf_column
int
get_pixbuf_column()- Description
Returns the column with pixbufs.
- Methodget_reorderable
int
get_reorderable()- Description
Retrieves whether the user can reorder the list via drag-and-drop.
- Methodget_row_spacing
int
get_row_spacing()- Description
Returns the value of the row-spacing property.
- Methodget_selected_items
array
get_selected_items()- Description
Creates a list of paths of all selected items. Not implemented yet.
- Methodget_selection_mode
int
get_selection_mode()- Description
Gets the selection mode.
- Methodget_spacing
int
get_spacing()- Description
Returns the value of the spacing property
- Methodget_text_column
int
get_text_column()- Description
Returns the column with text.
- Methodget_visible_range
array
get_visible_range()- Description
Returns the first and last visible path. Note that there may be invisible paths in between.
- InheritContainer
inherit GTK2.Container : Container
- Methoditem_activated
GTK2.IconView
item_activated(GTK2.TreePath
path
)- Description
Activates the item determined by path.
- Methodpath_is_selected
int
path_is_selected(GTK2.TreePath
path
)- Description
Returns true if the icon pointed to by path is currently selected. If icon does not point to a valid location, false is returned.
- Methodscroll_to_path
GTK2.IconView
scroll_to_path(GTK2.TreePath
path
,int
use_align
,float
row_align
,float
col_align
)- Description
Moves the alignments to the position specified by path. row_align determines where the row is placed, and col_align determines where column is placed. Both are expected to be between 0.0 and 1.0. 0.0 means left/top alignment, 1.0 means right/bottom alignment, 0.5 means center.
If use_align is FALSE, then the alignment arguments are ignored, and the tree does the minimum amount of work to scroll the item onto the screen. This means that the item will be scrolled to the edge closest to its current position. If the item is currently visible on the screen, nothing is done.
This funciton only works if the model is set, and path is a valid row on the model. If the model changes before this icon view is realized, the centered path will be modified to reflect this change.
- Methodselect_all
GTK2.IconView
select_all()- Description
Selects all the icons. This widget must have its selection mode set to GTK2.SELECTION_MULTIPLE.
- Methodselect_path
GTK2.IconView
select_path(GTK2.TreePath
path
)- Description
Selects the row at path
- Methodset_column_spacing
GTK2.IconView
set_column_spacing(int
column_spacing
)- Description
Sets the column-spacing property which specifies the space which is inserted between the columns of the icon view.
- Methodset_columns
GTK2.IconView
set_columns(int
columns
)- Description
Sets the columns property which determines in how many columns the icons are arranged. If columns is -1, the number of columns will be chosen automatically to fill the available area.
- Methodset_cursor
GTK2.IconView
set_cursor(GTK2.TreePath
path
,GTK2.CellRenderer
cell
,int
|void
start_editing
)- Description
Sets the current keyboard focus to be at path, and selects it. This is usefull when you want to focus the user's attention on a particular item. If cell is not 0, then focus is given to the cell speicified by it. Additionally, if start_editing is TRUE, then editing should be started in the specified cell.
This function is often followed by grab_focus() in order to give keyboard focus to the widget.
- Methodset_item_width
GTK2.IconView
set_item_width(int
item_width
)- Description
Sets the item-width property which specifies the width to use for each item. If it is set to -1, the icon view will automatically determine a suitable item size.
- Methodset_margin
GTK2.IconView
set_margin(int
margin
)- Description
Sets the margin property.
- Methodset_markup_column
GTK2.IconView
set_markup_column(int
column
)- Description
Sets the column with markup information to be column.
- Methodset_model
GTK2.IconView
set_model(GTK2.TreeModel
model
)- Description
Sets the model.
- Methodset_orientation
GTK2.IconView
set_orientation(int
orientation
)- Description
Sets the orientation property which determines whether the labels are drawn beside the icons instead of below. One of
ORIENTATION_HORIZONTAL
andORIENTATION_VERTICAL
- Methodset_pixbuf_column
GTK2.IconView
set_pixbuf_column(int
column
)- Description
Sets the column with pixbufs to be column.
- Methodset_reorderable
GTK2.IconView
set_reorderable(int
setting
)- Description
This function is a convenience function to allow you to reorder models. Both GTK2.TreeStore and GTK2.ListStore support this. If setting is TRUE, then the user can reorder the model by dragging and dropping rows. The developer can listen to these changes by connecting to the model's "row-inserted" and "row-deleted" signals.
- Methodset_row_spacing
GTK2.IconView
set_row_spacing(int
row_spacing
)- Description
Sets the row-spacing property which specifies the space which is inserted between the rows of the icon view.
- Methodset_selection_mode
GTK2.IconView
set_selection_mode(int
mode
)- Description
Sets the selection mode. One of
SELECTION_BROWSE
,SELECTION_MULTIPLE
,SELECTION_NONE
andSELECTION_SINGLE
- Methodset_spacing
GTK2.IconView
set_spacing(int
spacing
)- Description
Sets the spacing property which specifies the space which is inserted between the cells (i.e. the icon and the text) of an item.
- Methodset_text_column
GTK2.IconView
set_text_column(int
column
)- Description
Sets the column with text to be column.
- Methodunselect_all
GTK2.IconView
unselect_all()- Description
Unselects all the icons.
- Methodunselect_path
GTK2.IconView
unselect_path(GTK2.TreePath
path
)- Description
Unselects the row at path
Class GTK2.Image
- Description
An image is a image object stored in client, not X server, memory. A pixmap, on the other hand, is a image object stored in the X-server. See GDK2.Image and GDK2.Pixmap.
GTK2.Image("tornado_nguyen_big.jpg");
Properties: string file string icon-name icon-set int icon-size GDK2.Image image GDK2.Pixmap mask GDK2.Pixbuf pixbuf GDK2.PixbufAnimation pixbuf-animation int pixel-size GDK2.Pixmap pixmap string stock int storage-type
IMAGE_ANIMATION
,IMAGE_EMPTY
,IMAGE_ICON_NAME
,IMAGE_ICON_SET
,IMAGE_IMAGE
,IMAGE_PIXBUF
,IMAGE_PIXMAP
andIMAGE_STOCK
- Methodclear
GTK2.Image
clear()- Description
Resets the image to be empty.
- Methodcreate
GTK2.ImageGTK2.Image(
string
|GdkPixbuf
|GdkPixbufAnimation
|GdkImage
|GdkPixmap
|mapping
file_or_props
,GTK2.GdkBitmap
mask_or_size
)- Description
Create a new W(Image) from either a file or a GDK2.Pixbuf.
- Methodget_animation
GTK2.GdkPixbufAnimation
get_animation()- Description
Gets the GDK2.PixbufAnimation being displayed.
- Methodget_icon_name
mapping
get_icon_name()- Description
Gets the icon name and size.
- Methodget_image
mapping
get_image()- Description
Returns ([ "image":GDK2.Image img, "mask":GDK2.Bitmap mask ])
- Methodget_pixbuf
GTK2.GdkPixbuf
get_pixbuf()- Description
Gets the GDK2.Pixbuf being displayed. The storage type of the image must be GTK2.IMAGE_EMPTY or GTK2.IMAGE_PIXBUF).
- Methodget_pixel_size
int
get_pixel_size()- Description
Gets the pixel size used for named icons.
- Methodget_pixmap
mapping
get_pixmap()- Description
Gets the pixmap and mask.
- Methodget_stock
mapping
get_stock()- Description
Gets the stock icon name and size.
- Methodget_storage_type
int
get_storage_type()- Description
Gets the type of representation being used to store data. If it has no image data, the return value will be GTK2.IMAGE_EMPTY. One of
IMAGE_ANIMATION
,IMAGE_EMPTY
,IMAGE_ICON_NAME
,IMA