Blame rdtk/include/rdtk/rdtk.h

Packit Service fa4841
/**
Packit Service fa4841
 * RdTk: Remote Desktop Toolkit
Packit Service fa4841
 *
Packit Service fa4841
 * Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Packit Service fa4841
 *
Packit Service fa4841
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit Service fa4841
 * you may not use this file except in compliance with the License.
Packit Service fa4841
 * You may obtain a copy of the License at
Packit Service fa4841
 *
Packit Service fa4841
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit Service fa4841
 *
Packit Service fa4841
 * Unless required by applicable law or agreed to in writing, software
Packit Service fa4841
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit Service fa4841
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit Service fa4841
 * See the License for the specific language governing permissions and
Packit Service fa4841
 * limitations under the License.
Packit Service fa4841
 */
Packit Service fa4841
Packit Service fa4841
#ifndef RDTK_H
Packit Service fa4841
#define RDTK_H
Packit Service fa4841
Packit Service fa4841
#include <rdtk/api.h>
Packit Service fa4841
Packit Service fa4841
#include <winpr/crt.h>
Packit Service fa4841
#include <winpr/windows.h>
Packit Service fa4841
Packit Service fa4841
#include <freerdp/codec/color.h>
Packit Service fa4841
#include <freerdp/codec/region.h>
Packit Service fa4841
Packit Service fa4841
typedef struct rdtk_engine rdtkEngine;
Packit Service fa4841
typedef struct rdtk_font rdtkFont;
Packit Service fa4841
typedef struct rdtk_glyph rdtkGlyph;
Packit Service fa4841
typedef struct rdtk_surface rdtkSurface;
Packit Service fa4841
typedef struct rdtk_button rdtkButton;
Packit Service fa4841
typedef struct rdtk_label rdtkLabel;
Packit Service fa4841
typedef struct rdtk_text_field rdtkTextField;
Packit Service fa4841
typedef struct rdtk_nine_patch rdtkNinePatch;
Packit Service fa4841
Packit Service fa4841
#ifdef __cplusplus
Packit Service b1ea74
extern "C"
Packit Service b1ea74
{
Packit Service fa4841
#endif
Packit Service fa4841
Packit Service b1ea74
	/* Engine */
Packit Service fa4841
Packit Service b1ea74
	RDTK_EXPORT rdtkEngine* rdtk_engine_new();
Packit Service b1ea74
	RDTK_EXPORT void rdtk_engine_free(rdtkEngine* engine);
Packit Service fa4841
Packit Service b1ea74
	/* Surface */
Packit Service fa4841
Packit Service b1ea74
	RDTK_EXPORT int rdtk_surface_fill(rdtkSurface* surface, int x, int y, int width, int height,
Packit Service b1ea74
	                                  UINT32 color);
Packit Service fa4841
Packit Service b1ea74
	RDTK_EXPORT rdtkSurface* rdtk_surface_new(rdtkEngine* engine, BYTE* data, int width, int height,
Packit Service b1ea74
	                                          int scanline);
Packit Service b1ea74
	RDTK_EXPORT void rdtk_surface_free(rdtkSurface* surface);
Packit Service fa4841
Packit Service b1ea74
	/* Font */
Packit Service fa4841
Packit Service b1ea74
	RDTK_EXPORT int rdtk_font_draw_text(rdtkSurface* surface, int nXDst, int nYDst, rdtkFont* font,
Packit Service b1ea74
	                                    const char* text);
Packit Service fa4841
Packit Service b1ea74
	/* Button */
Packit Service fa4841
Packit Service b1ea74
	RDTK_EXPORT int rdtk_button_draw(rdtkSurface* surface, int nXDst, int nYDst, int nWidth,
Packit Service b1ea74
	                                 int nHeight, rdtkButton* button, const char* text);
Packit Service fa4841
Packit Service b1ea74
	/* Label */
Packit Service fa4841
Packit Service b1ea74
	RDTK_EXPORT int rdtk_label_draw(rdtkSurface* surface, int nXDst, int nYDst, int nWidth,
Packit Service b1ea74
	                                int nHeight, rdtkLabel* label, const char* text, int hAlign,
Packit Service b1ea74
	                                int vAlign);
Packit Service fa4841
Packit Service b1ea74
	/* TextField */
Packit Service fa4841
Packit Service b1ea74
	RDTK_EXPORT int rdtk_text_field_draw(rdtkSurface* surface, int nXDst, int nYDst, int nWidth,
Packit Service b1ea74
	                                     int nHeight, rdtkTextField* textField, const char* text);
Packit Service fa4841
Packit Service fa4841
#ifdef __cplusplus
Packit Service fa4841
}
Packit Service fa4841
#endif
Packit Service fa4841
Packit Service fa4841
#endif /* RDTK_H */