flat assembler
Message board for the users of flat assembler.

Index > Linux > GTK+ 2.0 gtkenums.h to gtkenums.inc

Author
Thread Post new topic Reply to topic
devilsclaw



Joined: 30 Oct 2003
Posts: 8
devilsclaw
This is my first attempt at converting this so there could be a couple sections not fully correct but i think its all correct

Code:
;/* GTK - The GIMP Toolkit
; * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
; *
; * This library is free software; you can redistribute it and/or
; * modify it under the terms of the GNU Lesser General Public
; * License as published by the Free Software Foundation; either
; * version 2 of the License, or (at your option) any later version.
; *
; * This library is distributed in the hope that it will be useful,
; * but WITHOUT ANY WARRANTY; without even the implied warranty of
; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
; * Lesser General Public License for more details.
; *
; * You should have received a copy of the GNU Lesser General Public
; * License along with this library; if not, write to the
; * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
; * Boston, MA 02111-1307, USA.
; */
;
;/*
; * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
; * file for a list of people on the GTK+ Team.  See the ChangeLog
; * files for a list of changes.  These files are distributed with
; * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
; */

;Etras for other stuff
FALSE = 0
TRUE  = 1
NULL  = 0

;/* Anchor types */
;GtkAnchorType
GTK_ANCHOR_CENTER     = 0
GTK_ANCHOR_NORTH      = 1
GTK_ANCHOR_NORTH_WEST = 2
GTK_ANCHOR_NORTH_EAST = 3
GTK_ANCHOR_SOUTH      = 4
GTK_ANCHOR_SOUTH_WEST = 5
GTK_ANCHOR_SOUTH_EAST = 6
GTK_ANCHOR_WEST       = 7
GTK_ANCHOR_EAST       = 8
GTK_ANCHOR_N          = GTK_ANCHOR_NORTH
GTK_ANCHOR_NW         = GTK_ANCHOR_NORTH_WEST
GTK_ANCHOR_NE         = GTK_ANCHOR_NORTH_EAST
GTK_ANCHOR_S          = GTK_ANCHOR_SOUTH
GTK_ANCHOR_SW         = GTK_ANCHOR_SOUTH_WEST
GTK_ANCHOR_SE         = GTK_ANCHOR_SOUTH_EAST
GTK_ANCHOR_W          = GTK_ANCHOR_WEST
GTK_ANCHOR_E          = GTK_ANCHOR_EAST


;/* Arrow types */
;GtkArrowType
GTK_ARROW_UP    = 0
GTK_ARROW_DOWN  = 1
GTK_ARROW_LEFT  = 2
GTK_ARROW_RIGHT = 3

;/* Attach options (for tables) */
;GtkAttachOptions

GTK_EXPAND = 1
GTK_SHRINK = 2
GTK_FILL   = 4

;/* Button box styles */
;GtkButtonBoxStyle

GTK_BUTTONBOX_DEFAULT_STYLE = 0
GTK_BUTTONBOX_SPREAD        = 1
GTK_BUTTONBOX_EDGE          = 2
GTK_BUTTONBOX_START         = 3
GTK_BUTTONBOX_END           = 4

;/* Curve types */
;GtkCurveType

GTK_CURVE_TYPE_LINEAR = 0       ;/* linear interpolation */
GTK_CURVE_TYPE_SPLINE = 1       ;/* spline interpolation */
GTK_CURVE_TYPE_FREE = 2         ;/* free form curve */

;GtkDeleteType
GTK_DELETE_CHARS             = 0
GTK_DELETE_WORD_ENDS         = 1 ;/* delete only the portion of the word to the
                                 ; * left/right of cursor if we're in the middle
                                 ; * of a word */
GTK_DELETE_WORDS             = 2
GTK_DELETE_DISPLAY_LINES     = 3
GTK_DELETE_DISPLAY_LINE_ENDS = 4
GTK_DELETE_PARAGRAPH_ENDS    = 5 ;/* like C-k in Emacs (or its reverse) */
GTK_DELETE_PARAGRAPHS        = 6 ;/* C-k in pico, kill whole line */
GTK_DELETE_WHITESPACE        = 7 ;/* M-\ in Emacs */

;/* Focus movement types */
;GtkDirectionType

GTK_DIR_TAB_FORWARD  = 0
GTK_DIR_TAB_BACKWARD = 1
GTK_DIR_UP           = 2
GTK_DIR_DOWN         = 3
GTK_DIR_LEFT         = 4
GTK_DIR_RIGHT        = 5

;/* Expander styles */
;GtkExpanderStyle

GTK_EXPANDER_COLLAPSED      = 0
GTK_EXPANDER_SEMI_COLLAPSED = 1
GTK_EXPANDER_SEMI_EXPANDED  = 2
GTK_EXPANDER_EXPANDED       = 3

;/* Built-in stock icon sizes */
;GtkIconSize

GTK_ICON_SIZE_INVALID       = 0
GTK_ICON_SIZE_MENU          = 1
GTK_ICON_SIZE_SMALL_TOOLBAR = 2
GTK_ICON_SIZE_LARGE_TOOLBAR = 3
GTK_ICON_SIZE_BUTTON        = 4
GTK_ICON_SIZE_DND           = 5
GTK_ICON_SIZE_DIALOG        = 6

;#ifndef GTK_DISABLE_DEPRECATED
;/* side types */
;GtkSideType

GTK_SIDE_TOP    = 0
GTK_SIDE_BOTTOM = 1
GTK_SIDE_LEFT   = 2
GTK_SIDE_RIGHT  = 3

;/* Reading directions for text */
;GtkTextDirection

GTK_TEXT_DIR_NONE = 0
GTK_TEXT_DIR_LTR  = 1
GTK_TEXT_DIR_RTL  = 2

;/* justification for label and maybe other widgets (text?) */
;GtkJustification;

GTK_JUSTIFY_LEFT   = 0
GTK_JUSTIFY_RIGHT  = 1
GTK_JUSTIFY_CENTER = 2
GTK_JUSTIFY_FILL   = 3

;#ifndef GTK_DISABLE_DEPRECATED
;/* GtkPatternSpec match types */
;GtkMatchType

GTK_MATCH_ALL      = 0       ;/* "*A?A*" */
GTK_MATCH_ALL_TAIL = 1       ;/* "*A?AA" */
GTK_MATCH_HEAD     = 2       ;/* "AAAA*" */
GTK_MATCH_TAIL     = 3       ;/* "*AAAA" */
GTK_MATCH_EXACT    = 4       ;/* "AAAAA" */
GTK_MATCH_LAST     = 5

;/* Menu keyboard movement types */
;GtkMenuDirectionType

GTK_MENU_DIR_PARENT = 0
GTK_MENU_DIR_CHILD  = 1
GTK_MENU_DIR_NEXT   = 2
GTK_MENU_DIR_PREV   = 3

;GtkMetricType

GTK_PIXELS      = 0
GTK_INCHES      = 1
GTK_CENTIMETERS = 2

;GtkMovementStep
GTK_MOVEMENT_LOGICAL_POSITIONS = 0 ;/* move by forw/back graphemes */
GTK_MOVEMENT_VISUAL_POSITIONS  = 1 ;/* move by left/right graphemes */
GTK_MOVEMENT_WORDS             = 2 ;/* move by forward/back words */
GTK_MOVEMENT_DISPLAY_LINES     = 3 ;/* move up/down lines (wrapped lines) */
GTK_MOVEMENT_DISPLAY_LINE_ENDS = 4 ;/* move up/down lines (wrapped lines) */
GTK_MOVEMENT_PARAGRAPHS        = 5 ;/* move up/down paragraphs (newline-ended lines) */
GTK_MOVEMENT_PARAGRAPH_ENDS    = 6 ;/* move to either end of a paragraph */
GTK_MOVEMENT_PAGES             = 7 ;/* move by pages */
GTK_MOVEMENT_BUFFER_ENDS       = 8 ;/* move to ends of the buffer */

;/* Orientation for toolbars, etc. */
;GtkOrientation

GTK_ORIENTATION_HORIZONTAL = 0
GTK_ORIENTATION_VERTICAL   = 1

;/* Placement type for scrolled window */
;GtkCornerType

GTK_CORNER_TOP_LEFT     = 0
GTK_CORNER_BOTTOM_LEFT  = 1
GTK_CORNER_TOP_RIGHT    = 2
GTK_CORNER_BOTTOM_RIGHT = 3

;/* Packing types (for boxes) */
;GtkPackType

GTK_PACK_START = 0
GTK_PACK_END   = 1

;/* priorities for path lookups */
;GtkPathPriorityType

GTK_PATH_PRIO_LOWEST      = 0
GTK_PATH_PRIO_GTK         = 4
GTK_PATH_PRIO_APPLICATION = 8
GTK_PATH_PRIO_THEME       = 10
GTK_PATH_PRIO_RC          = 12
GTK_PATH_PRIO_HIGHEST     = 15

;#define GTK_PATH_PRIO_MASK 0x0f
;/* widget path types */
;GtkPathType

GTK_PATH_WIDGET       = 0
GTK_PATH_WIDGET_CLASS = 1
GTK_PATH_CLASS        = 2

;/* Scrollbar policy types (for scrolled windows) */
;GtkPolicyType

GTK_POLICY_ALWAYS    = 0
GTK_POLICY_AUTOMATIC = 1
GTK_POLICY_NEVER     = 2

;GtkPositionType

GTK_POS_LEFT   = 0
GTK_POS_RIGHT  = 1
GTK_POS_TOP    = 2
GTK_POS_BOTTOM = 3

;#ifndef GTK_DISABLE_DEPRECATED
;GtkPreviewType

GTK_PREVIEW_COLOR     = 0
GTK_PREVIEW_GRAYSCALE = 1

;/* Style for buttons */
;GtkReliefStyle

  GTK_RELIEF_NORMAL = 0
  GTK_RELIEF_HALF   = 1
  GTK_RELIEF_NONE   = 2

;/* Resize type */
;GtkResizeMode

GTK_RESIZE_PARENT    = 0        ;/* Pass resize request to the parent */
GTK_RESIZE_QUEUE     = 1        ;/* Queue resizes on this widget */
GTK_RESIZE_IMMEDIATE = 2        ;/* Perform the resizes now */

;#ifndef GTK_DISABLE_DEPRECATED
;/* signal run types */
;GtkSignalRunType   ;/*< flags >*/

;  GTK_RUN_FIRST      = "G_SIGNAL_RUN_FIRST"
;  GTK_RUN_LAST       = "G_SIGNAL_RUN_LAST"
;  GTK_RUN_BOTH       = "GTK_RUN_FIRST + GTK_RUN_LAST"
;  GTK_RUN_NO_RECURSE = "G_SIGNAL_NO_RECURSE"
;  GTK_RUN_ACTION     = "G_SIGNAL_ACTION"
;  GTK_RUN_NO_HOOKS   = "G_SIGNAL_NO_HOOKS"

;/* scrolling types */
;GtkScrollType

GTK_SCROLL_NONE          = 0
GTK_SCROLL_JUMP          = 1
GTK_SCROLL_STEP_BACKWARD = 2
GTK_SCROLL_STEP_FORWARD  = 3
GTK_SCROLL_PAGE_BACKWARD = 4
GTK_SCROLL_PAGE_FORWARD  = 5
GTK_SCROLL_STEP_UP       = 6
GTK_SCROLL_STEP_DOWN     = 7
GTK_SCROLL_PAGE_UP       = 8
GTK_SCROLL_PAGE_DOWN     = 9
GTK_SCROLL_STEP_LEFT     = 10
GTK_SCROLL_STEP_RIGHT    = 11
GTK_SCROLL_PAGE_LEFT     = 12
GTK_SCROLL_PAGE_RIGHT    = 13
GTK_SCROLL_START         = 14
GTK_SCROLL_END           = 15

;/* list selection modes */
;GtkSelectionMode

GTK_SELECTION_NONE     = 0                             ;/* Nothing can be selected */
GTK_SELECTION_SINGLE   = 1
GTK_SELECTION_BROWSE   = 2
GTK_SELECTION_MULTIPLE = 3
GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE ;/* Deprecated */

;/* Shadow types */
;GtkShadowType

GTK_SHADOW_NONE       = 0
GTK_SHADOW_IN         = 1
GTK_SHADOW_OUT        = 2
GTK_SHADOW_ETCHED_IN  = 3
GTK_SHADOW_ETCHED_OUT = 4

;/* Widget states */
;GtkStateType

GTK_STATE_NORMAL      = 0
GTK_STATE_ACTIVE      = 1
GTK_STATE_PRELIGHT    = 2
GTK_STATE_SELECTED    = 3
GTK_STATE_INSENSITIVE = 4

;#if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_MENU_INTERNALS)
;/* Directions for submenus */
;GtkSubmenuDirection

GTK_DIRECTION_LEFT  = 0
GTK_DIRECTION_RIGHT = 1

;/* Placement of submenus */
;GtkSubmenuPlacement

GTK_TOP_BOTTOM = 0
GTK_LEFT_RIGHT = 1

;/* Style for toolbars */
;GtkToolbarStyle

GTK_TOOLBAR_ICONS      = 0
GTK_TOOLBAR_TEXT       = 1
GTK_TOOLBAR_BOTH       = 2
GTK_TOOLBAR_BOTH_HORIZ = 3


;/* Data update types (for ranges) */
;GtkUpdateType

GTK_UPDATE_CONTINUOUS    = 0
GTK_UPDATE_DISCONTINUOUS = 1
GTK_UPDATE_DELAYED       = 2

;/* Generic visibility flags */
;GtkVisibility

GTK_VISIBILITY_NONE    = 0
GTK_VISIBILITY_PARTIAL = 1
GTK_VISIBILITY_FULL    = 2

;/* Window position types */
;GtkWindowPosition

GTK_WIN_POS_NONE             = 0
GTK_WIN_POS_CENTER           = 1
GTK_WIN_POS_MOUSE            = 2
GTK_WIN_POS_CENTER_ALWAYS    = 3
GTK_WIN_POS_CENTER_ON_PARENT = 4

;/* Window types */
;GtkWindowType

GTK_WINDOW_TOPLEVEL = 0
GTK_WINDOW_POPUP    = 1

;/* Text wrap */
;GtkWrapMode

GTK_WRAP_NONE = 0
GTK_WRAP_CHAR = 1
GTK_WRAP_WORD = 2

;/* How to sort */
;GtkSortType

GTK_SORT_ASCENDING  = 0
GTK_SORT_DESCENDING = 1

;/* Style for gtk input method preedit/status */
;GtkIMPreeditStyle

GTK_IM_PREEDIT_NOTHING  = 0
GTK_IM_PREEDIT_CALLBACK = 1

;GtkIMStatusStyle

GTK_IM_STATUS_NOTHING  = 0
GTK_IM_STATUS_CALLBACK = 1
    
Post 30 Oct 2003, 09:28
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.