Changeset - r19741:5a6c5d07730e
[Not reviewed]
master
0 2 0
frosch - 12 years ago 2012-11-11 16:01:34
frosch@openttd.org
(svn r24696) -Doc: Improve documentation for button widget types.
2 files changed with 10 insertions and 10 deletions:
0 comments (0 inline, 0 general)
src/widget_type.h
Show inline comments
 
@@ -49,11 +49,11 @@ enum WidgetType {
 

	
 
	WWT_PANEL,      ///< Simple depressed panel
 
	WWT_INSET,      ///< Pressed (inset) panel, most commonly used as combo box _text_ area
 
	WWT_IMGBTN,     ///< Button with image
 
	WWT_IMGBTN_2,   ///< Button with diff image when clicked
 
	WWT_ARROWBTN,   ///< Button with an arrow
 
	WWT_TEXTBTN,    ///< Button with text
 
	WWT_TEXTBTN_2,  ///< Button with diff text when clicked
 
	WWT_IMGBTN,     ///< (Toggle) Button with image
 
	WWT_IMGBTN_2,   ///< (Toggle) Button with diff image when clicked
 
	WWT_ARROWBTN,   ///< (Toggle) Button with an arrow
 
	WWT_TEXTBTN,    ///< (Toggle) Button with text
 
	WWT_TEXTBTN_2,  ///< (Toggle) Button with diff text when clicked
 
	WWT_LABEL,      ///< Centered label
 
	WWT_TEXT,       ///< Pure simple text
 
	WWT_MATRIX,     ///< Grid of rows and columns. @see MatrixWidgetValues
 
@@ -98,10 +98,10 @@ enum WidgetType {
 

	
 
	WWB_PUSHBUTTON    = 1 << 7,
 

	
 
	WWT_PUSHBTN       = WWT_PANEL    | WWB_PUSHBUTTON,
 
	WWT_PUSHTXTBTN    = WWT_TEXTBTN  | WWB_PUSHBUTTON,
 
	WWT_PUSHIMGBTN    = WWT_IMGBTN   | WWB_PUSHBUTTON,
 
	WWT_PUSHARROWBTN  = WWT_ARROWBTN | WWB_PUSHBUTTON,
 
	WWT_PUSHBTN       = WWT_PANEL    | WWB_PUSHBUTTON,    ///< Normal push-button (no toggle button) with custom drawing
 
	WWT_PUSHTXTBTN    = WWT_TEXTBTN  | WWB_PUSHBUTTON,    ///< Normal push-button (no toggle button) with text caption
 
	WWT_PUSHIMGBTN    = WWT_IMGBTN   | WWB_PUSHBUTTON,    ///< Normal push-button (no toggle button) with image caption
 
	WWT_PUSHARROWBTN  = WWT_ARROWBTN | WWB_PUSHBUTTON,    ///< Normal push-button (no toggle button) with arrow caption
 
	NWID_PUSHBUTTON_DROPDOWN = NWID_BUTTON_DROPDOWN | WWB_PUSHBUTTON,
 
};
 

	
src/window_gui.h
Show inline comments
 
@@ -175,7 +175,7 @@ struct WindowDesc : ZeroedMemoryAllocato
 
	int16 default_height;          ///< Prefered initial height of the window.
 
	WindowClass cls;               ///< Class of the window, @see WindowClass.
 
	WindowClass parent_cls;        ///< Class of the parent window. @see WindowClass
 
	uint32 flags;                  ///< Flags. @see WindowDefaultFlags
 
	uint32 flags;                  ///< Flags. @see WindowDefaultFlag
 
	const NWidgetPart *nwid_parts; ///< Nested widget parts describing the window.
 
	int16 nwid_length;             ///< Length of the #nwid_parts array.
 
};
0 comments (0 inline, 0 general)