ReactOS  0.4.14-dev-49-gfb4591c
imgedwnd.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _OPEN_IMAGE_EDIT_INFO
 
struct  _EDIT_WND_INFO
 

Macros

#define MONOCHROMEBITS   1
 
#define GREYSCALEBITS   8
 
#define PALLETEBITS   8
 
#define TRUECOLORBITS   24
 
#define PIXELS   0
 
#define CENTIMETERS   1
 
#define INCHES   2
 

Typedefs

typedef enum _MDI_EDITOR_TYPE MDI_EDITOR_TYPE
 
typedef enum _MDI_EDITOR_TYPEPMDI_EDITOR_TYPE
 
typedef struct _OPEN_IMAGE_EDIT_INFO OPEN_IMAGE_EDIT_INFO
 
typedef struct _OPEN_IMAGE_EDIT_INFOPOPEN_IMAGE_EDIT_INFO
 
typedef struct _EDIT_WND_INFO EDIT_WND_INFO
 
typedef struct _EDIT_WND_INFOPEDIT_WND_INFO
 

Enumerations

enum  _MDI_EDITOR_TYPE { metUnknown = 0, metImageEditor, metUnknown = 0, metImageEditor }
 
enum  TOOL {
  tSelect = 0, tMove, tLasso, tZoom,
  tMagicWand, tBrush, tEraser, tPencil,
  tColorPick, tStamp, tFill, tLine,
  tPolyline, tRectangle, tRoundRectangle, tPolygon,
  tElipse
}
 

Functions

BOOL CreateImageEditWindow (struct _MAIN_WND_INFO *MainWnd, POPEN_IMAGE_EDIT_INFO OpenInfo)
 
VOID SetImageEditorEnvironment (PEDIT_WND_INFO Info, BOOL Setup)
 
BOOL InitImageEditWindowImpl (VOID)
 
VOID UninitImageEditWindowImpl (VOID)
 

Macro Definition Documentation

◆ CENTIMETERS

#define CENTIMETERS   1

Definition at line 7 of file imgedwnd.h.

◆ GREYSCALEBITS

#define GREYSCALEBITS   8

Definition at line 2 of file imgedwnd.h.

◆ INCHES

#define INCHES   2

Definition at line 8 of file imgedwnd.h.

◆ MONOCHROMEBITS

#define MONOCHROMEBITS   1

Definition at line 1 of file imgedwnd.h.

◆ PALLETEBITS

#define PALLETEBITS   8

Definition at line 3 of file imgedwnd.h.

◆ PIXELS

#define PIXELS   0

Definition at line 6 of file imgedwnd.h.

◆ TRUECOLORBITS

#define TRUECOLORBITS   24

Definition at line 4 of file imgedwnd.h.

Typedef Documentation

◆ EDIT_WND_INFO

◆ MDI_EDITOR_TYPE

◆ OPEN_IMAGE_EDIT_INFO

◆ PEDIT_WND_INFO

◆ PMDI_EDITOR_TYPE

◆ POPEN_IMAGE_EDIT_INFO

Enumeration Type Documentation

◆ _MDI_EDITOR_TYPE

Enumerator
metUnknown 
metImageEditor 
metUnknown 
metImageEditor 

Definition at line 16 of file imgedwnd.h.

16  {
17  metUnknown = 0,
enum _MDI_EDITOR_TYPE MDI_EDITOR_TYPE
enum _MDI_EDITOR_TYPE * PMDI_EDITOR_TYPE

◆ TOOL

Enumerator
tSelect 
tMove 
tLasso 
tZoom 
tMagicWand 
tBrush 
tEraser 
tPencil 
tColorPick 
tStamp 
tFill 
tLine 
tPolyline 
tRectangle 
tRoundRectangle 
tPolygon 
tElipse 

Definition at line 21 of file imgedwnd.h.

22 {
23  tSelect = 0,
24  tMove,
25  tLasso,
26  tZoom,
27  tMagicWand,
28  tBrush,
29  tEraser,
30  tPencil,
31  tColorPick,
32  tStamp,
33  tFill,
34  tLine,
35  tPolyline,
36  tRectangle,
38  tPolygon,
39  tElipse,
40 } TOOL;
Definition: imgedwnd.h:34
TOOL
Definition: imgedwnd.h:21
Definition: imgedwnd.h:24
Definition: imgedwnd.h:26
Definition: imgedwnd.h:33

Function Documentation

◆ CreateImageEditWindow()

BOOL CreateImageEditWindow ( struct _MAIN_WND_INFO MainWnd,
POPEN_IMAGE_EDIT_INFO  OpenInfo 
)

◆ InitImageEditWindowImpl()

BOOL InitImageEditWindowImpl ( VOID  )

Definition at line 513 of file imgedwnd.c.

514 {
515  WNDCLASSEX wc = {0};
516 
517  wc.cbSize = sizeof(WNDCLASSEX);
518  wc.style = CS_HREDRAW | CS_VREDRAW;
520  wc.hInstance = hInstance;
521  wc.hIcon = LoadIcon(hInstance,
529  IMAGE_ICON,
530  16,
531  16,
532  LR_SHARED);
533 
534  return RegisterClassEx(&wc) != (ATOM)0;
535 }
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define IDC_PAINTBRUSHCURSOR
Definition: resource.h:246
UINT style
Definition: winuser.h:3176
#define MAKEINTRESOURCE
Definition: winuser.h:591
static HICON
Definition: imagelist.c:84
#define LR_SHARED
Definition: winuser.h:1090
#define IMAGE_ICON
Definition: winuser.h:212
#define RegisterClassEx
Definition: winuser.h:5738
static const TCHAR szImageEditWndClass[]
Definition: imgedwnd.c:3
HCURSOR hCursor
Definition: winuser.h:3182
WNDPROC lpfnWndProc
Definition: winuser.h:3177
LPCSTR lpszClassName
Definition: winuser.h:3185
WORD ATOM
Definition: dimm.idl:113
#define CS_HREDRAW
Definition: winuser.h:648
#define WHITE_BRUSH
Definition: wingdi.h:901
HICON hIconSm
Definition: winuser.h:3186
HINSTANCE hInstance
Definition: charmap.c:20
HINSTANCE hInstance
Definition: winuser.h:3180
#define IDI_IMAGESOFTICON
Definition: resource.h:13
UINT cbSize
Definition: winuser.h:3175
HBRUSH hbrBackground
Definition: winuser.h:3183
#define CS_VREDRAW
Definition: winuser.h:653
HICON hIcon
Definition: winuser.h:3181
#define LoadCursor
Definition: winuser.h:5713
#define LoadImage
Definition: winuser.h:5716
WNDCLASSEXA WNDCLASSEX
Definition: winuser.h:5620
#define LoadIcon
Definition: winuser.h:5714
static LRESULT CALLBACK ImageEditWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: imgedwnd.c:232

Referenced by _tWinMain().

◆ SetImageEditorEnvironment()

VOID SetImageEditorEnvironment ( PEDIT_WND_INFO  Info,
BOOL  Setup 
)

Definition at line 445 of file imgedwnd.c.

447 {
448  if (Setup)
449  {
450  /* FIXME - setup editor environment (e.g. show toolbars, enable menus etc) */
451  }
452  else
453  {
454  /* FIXME - cleanup editor environment (e.g. hide toolbars, disable menus etc) */
455  }
456 }
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE ACPI_HANDLE ACPI_HANDLE *OutHandle ACPI_HANDLE *OutHandle void *Context void *Context ACPI_EVENT_HANDLER Handler UINT32 UINT32 ACPI_GPE_HANDLER void *Context UINT32 ACPI_NOTIFY_HANDLER void *Context ACPI_ADR_SPACE_TYPE ACPI_ADR_SPACE_HANDLER ACPI_ADR_SPACE_SETUP Setup
Definition: acpixf.h:822

Referenced by MainWndSwitchEditorContext().

◆ UninitImageEditWindowImpl()

VOID UninitImageEditWindowImpl ( VOID  )

Definition at line 538 of file imgedwnd.c.

539 {
541  hInstance);
542 }
static const TCHAR szImageEditWndClass[]
Definition: imgedwnd.c:3
HINSTANCE hInstance
Definition: charmap.c:20
#define UnregisterClass
Definition: winuser.h:5762

Referenced by _tWinMain().