pub struct FormObject {
pub common: CommonObjAttr,
pub form_type: FormType,
pub name: String,
pub caption: String,
pub text: String,
pub width: u32,
pub height: u32,
pub fore_color: u32,
pub back_color: u32,
pub value: i32,
pub enabled: bool,
pub properties: HashMap<String, String>,
}Expand description
양식 개체 (‘form’ 컨트롤, ctrl_id=0x666f726d)
Fields§
§common: CommonObjAttr개체 공통 배치 속성 (위치·크기·기준·정렬·어울림)
[#6266] 양식 개체도 다른 개체와 같은 배치 계약을 갖는다. 이 필드가 없던 동안 렌더러는 양식 개체를 인라인 말고는 놓을 수 없었고, 쪽 하단 가운데에 놓인 서식 일련번호가 제목 줄 안에 그려졌다(2955289 1쪽).
form_type: FormType양식 개체 타입
name: String개체 이름
caption: String캡션 (PushButton, CheckBox, RadioButton)
text: String텍스트 내용 (ComboBox, Edit)
width: u32너비 (HWPUNIT)
height: u32높이 (HWPUNIT)
fore_color: u32글자 색 (0x00BBGGRR)
back_color: u32배경 색 (0x00BBGGRR)
value: i32선택 상태 (CheckBox/RadioButton: 0=해제, 1=선택)
enabled: bool활성화 여부
properties: HashMap<String, String>기타 속성 (원본 키-값 보존)
[#4488] serde 직렬화는 정렬 순회를 강제한다 — HashMap 순회 순서가 다이제스트(model::raw_provenance)에 실리면 봉인이 비결정적이 된다.
Trait Implementations§
Auto Trait Implementations§
impl Forget for FormObject
impl Freeze for FormObject
impl Move for FormObject
impl RefUnwindSafe for FormObject
impl Send for FormObject
impl Sync for FormObject
impl Unpin for FormObject
impl UnsafeUnpin for FormObject
impl UnwindSafe for FormObject
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.