Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUINinePatch.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef GUININEPATCH__H_
11#define GUININEPATCH__H_
12#include "eC_Math.h"
13
15
41{
42public:
45
52 CGUINinePatch(const eC_UInt& uiTop, const eC_UInt& uiBottom, const eC_UInt& uiLeft, const eC_UInt& uiRight);
53
60 void Assign(const eC_UInt& uiTop, const eC_UInt& uiBottom, const eC_UInt& uiLeft, const eC_UInt& uiRight)
61 {
62 m_uiTopBorder = uiTop;
63 m_uiBottomBorder = uiBottom;
64 m_uiLeftBorder = uiLeft;
65 m_uiRightBorder = uiRight;
66 }
67
71 void Assign(const CGUINinePatch& kOther)
72 {
77 }
78
80 inline eC_UInt GetTop() const { return m_uiTopBorder; }
82 inline eC_UInt GetBottom() const { return m_uiBottomBorder; }
84 inline eC_UInt GetLeft() const { return m_uiLeftBorder; }
86 inline eC_UInt GetRight() const { return m_uiRightBorder; }
87
88#ifdef GUILIANI_STREAM_GUI
94#endif
95
96#ifdef GUILIANI_WRITE_GUI
102#endif
103
104protected:
109};
110#endif
Helper class to for storing Nine-Patch images.
Definition: GUINinePatch.h:41
void ReadFromStream()
eC_UInt m_uiBottomBorder
Nine Patch Bottom Border size in pixels.
Definition: GUINinePatch.h:106
eC_UInt m_uiRightBorder
Nine Patch Right Border size in pixels.
Definition: GUINinePatch.h:108
void Assign(const eC_UInt &uiTop, const eC_UInt &uiBottom, const eC_UInt &uiLeft, const eC_UInt &uiRight)
Definition: GUINinePatch.h:60
eC_UInt GetTop() const
Definition: GUINinePatch.h:80
eC_UInt GetRight() const
Definition: GUINinePatch.h:86
eC_UInt m_uiTopBorder
Nine Patch Top Border size in pixels.
Definition: GUINinePatch.h:105
void WriteToStream()
eC_UInt GetBottom() const
Definition: GUINinePatch.h:82
eC_UInt GetLeft() const
Definition: GUINinePatch.h:84
void Assign(const CGUINinePatch &kOther)
Definition: GUINinePatch.h:71
eC_UInt m_uiLeftBorder
Nine Patch Left Border size in pixels.
Definition: GUINinePatch.h:107
CGUINinePatch(const eC_UInt &uiTop, const eC_UInt &uiBottom, const eC_UInt &uiLeft, const eC_UInt &uiRight)